mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
parent
becde1745a
commit
06879e2e89
@ -1,7 +1,7 @@
|
|||||||
" zip.vim: Handles browsing zipfiles
|
" zip.vim: Handles browsing zipfiles
|
||||||
" AUTOLOAD PORTION
|
" AUTOLOAD PORTION
|
||||||
" Date: Jul 02, 2013
|
" Date: Sep 13, 2016
|
||||||
" Version: 27
|
" Version: 28
|
||||||
" Maintainer: Charles E Campbell <NdrOchip@ScampbellPfamily.AbizM-NOSPAM>
|
" Maintainer: Charles E Campbell <NdrOchip@ScampbellPfamily.AbizM-NOSPAM>
|
||||||
" License: Vim License (see vim's :help license)
|
" License: Vim License (see vim's :help license)
|
||||||
" Copyright: Copyright (C) 2005-2013 Charles E. Campbell {{{1
|
" Copyright: Copyright (C) 2005-2013 Charles E. Campbell {{{1
|
||||||
@ -20,10 +20,10 @@
|
|||||||
if &cp || exists("g:loaded_zip")
|
if &cp || exists("g:loaded_zip")
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let g:loaded_zip= "v27"
|
let g:loaded_zip= "v28"
|
||||||
if v:version < 702
|
if v:version < 702
|
||||||
echohl WarningMsg
|
echohl WarningMsg
|
||||||
echo "***warning*** this version of zip needs vim 7.2"
|
echo "***warning*** this version of zip needs vim 7.2 or later"
|
||||||
echohl Normal
|
echohl Normal
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
@ -53,6 +53,9 @@ endif
|
|||||||
if !exists("g:zip_unzipcmd")
|
if !exists("g:zip_unzipcmd")
|
||||||
let g:zip_unzipcmd= "unzip"
|
let g:zip_unzipcmd= "unzip"
|
||||||
endif
|
endif
|
||||||
|
if !exists("g:zip_extractcmd")
|
||||||
|
let g:zip_extractcmd= g:zip_unzipcmd
|
||||||
|
endif
|
||||||
|
|
||||||
" ----------------
|
" ----------------
|
||||||
" Functions: {{{1
|
" Functions: {{{1
|
||||||
@ -136,8 +139,10 @@ fun! zip#Browse(zipfile)
|
|||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Maps associated with zip plugin
|
||||||
setlocal noma nomod ro
|
setlocal noma nomod ro
|
||||||
noremap <silent> <buffer> <cr> :call <SID>ZipBrowseSelect()<cr>
|
noremap <silent> <buffer> <cr> :call <SID>ZipBrowseSelect()<cr>
|
||||||
|
noremap <silent> <buffer> x :call zip#Extract()<cr>
|
||||||
|
|
||||||
let &report= repkeep
|
let &report= repkeep
|
||||||
" call Dret("zip#Browse")
|
" call Dret("zip#Browse")
|
||||||
@ -204,6 +209,15 @@ fun! zip#Read(fname,mode)
|
|||||||
endif
|
endif
|
||||||
" call Decho("zipfile<".zipfile.">")
|
" call Decho("zipfile<".zipfile.">")
|
||||||
" call Decho("fname <".fname.">")
|
" call Decho("fname <".fname.">")
|
||||||
|
" sanity check
|
||||||
|
if !executable(substitute(g:zip_unzipcmd,'\s\+.*$','',''))
|
||||||
|
redraw!
|
||||||
|
echohl Error | echo "***error*** (zip#Read) sorry, your system doesn't appear to have the ".g:zip_unzipcmd." program" | echohl None
|
||||||
|
" call inputsave()|call input("Press <cr> to continue")|call inputrestore()
|
||||||
|
let &report= repkeep
|
||||||
|
" call Dret("zip#Write")
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
" the following code does much the same thing as
|
" the following code does much the same thing as
|
||||||
" exe "keepj sil! r! ".g:zip_unzipcmd." -p -- ".s:Escape(zipfile,1)." ".s:Escape(fnameescape(fname),1)
|
" exe "keepj sil! r! ".g:zip_unzipcmd." -p -- ".s:Escape(zipfile,1)." ".s:Escape(fnameescape(fname),1)
|
||||||
@ -236,9 +250,9 @@ fun! zip#Write(fname)
|
|||||||
set report=10
|
set report=10
|
||||||
|
|
||||||
" sanity checks
|
" sanity checks
|
||||||
if !executable(g:zip_zipcmd)
|
if !executable(substitute(g:zip_zipcmd,'\s\+.*$','',''))
|
||||||
redraw!
|
redraw!
|
||||||
echohl Error | echo "***error*** (zip#Write) sorry, your system doesn't appear to have the zip pgm" | echohl None
|
echohl Error | echo "***error*** (zip#Write) sorry, your system doesn't appear to have the ".g:zip_zipcmd." program" | echohl None
|
||||||
" call inputsave()|call input("Press <cr> to continue")|call inputrestore()
|
" call inputsave()|call input("Press <cr> to continue")|call inputrestore()
|
||||||
let &report= repkeep
|
let &report= repkeep
|
||||||
" call Dret("zip#Write")
|
" call Dret("zip#Write")
|
||||||
@ -344,6 +358,48 @@ fun! zip#Write(fname)
|
|||||||
" call Dret("zip#Write")
|
" call Dret("zip#Write")
|
||||||
endfun
|
endfun
|
||||||
|
|
||||||
|
" ---------------------------------------------------------------------
|
||||||
|
" zip#Extract: extract a file from a zip archive {{{2
|
||||||
|
fun! zip#Extract()
|
||||||
|
" call Dfunc("zip#Extract()")
|
||||||
|
|
||||||
|
let repkeep= &report
|
||||||
|
set report=10
|
||||||
|
let fname= getline(".")
|
||||||
|
" call Decho("fname<".fname.">")
|
||||||
|
|
||||||
|
" sanity check
|
||||||
|
if fname =~ '^"'
|
||||||
|
let &report= repkeep
|
||||||
|
" call Dret("zip#Extract")
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
if fname =~ '/$'
|
||||||
|
redraw!
|
||||||
|
echohl Error | echo "***error*** (zip#Extract) Please specify a file, not a directory" | echohl None
|
||||||
|
let &report= repkeep
|
||||||
|
" call Dret("zip#Extract")
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
|
" extract the file mentioned under the cursor
|
||||||
|
" call Decho("system(".g:zip_extractcmd." ".shellescape(b:zipfile)." ".shellescape(shell).")")
|
||||||
|
call system(g:zip_extractcmd." ".shellescape(b:zipfile)." ".shellescape(shell))
|
||||||
|
" call Decho("zipfile<".b:zipfile.">")
|
||||||
|
if v:shell_error != 0
|
||||||
|
echohl Error | echo "***error*** ".g:zip_extractcmd." ".b:zipfile." ".fname.": failed!" | echohl NONE
|
||||||
|
elseif !filereadable(fname)
|
||||||
|
echohl Error | echo "***error*** attempted to extract ".fname." but it doesn't appear to be present!"
|
||||||
|
else
|
||||||
|
echo "***note*** successfully extracted ".fname
|
||||||
|
endif
|
||||||
|
|
||||||
|
" restore option
|
||||||
|
let &report= repkeep
|
||||||
|
|
||||||
|
" call Dret("zip#Extract")
|
||||||
|
endfun
|
||||||
|
|
||||||
" ---------------------------------------------------------------------
|
" ---------------------------------------------------------------------
|
||||||
" s:Escape: {{{2
|
" s:Escape: {{{2
|
||||||
fun! s:Escape(fname,isfilt)
|
fun! s:Escape(fname,isfilt)
|
||||||
|
@ -2092,7 +2092,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
uhex Show unprintable characters hexadecimal as <xx>
|
uhex Show unprintable characters hexadecimal as <xx>
|
||||||
instead of using ^C and ~C.
|
instead of using ^C and ~C.
|
||||||
|
|
||||||
When neither "lastline" or "truncate" is included, a last line that
|
When neither "lastline" nor "truncate" is included, a last line that
|
||||||
doesn't fit is replaced with "@" lines.
|
doesn't fit is replaced with "@" lines.
|
||||||
|
|
||||||
*'eadirection'* *'ead'*
|
*'eadirection'* *'ead'*
|
||||||
@ -4889,7 +4889,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
ordering. This is for preferences to overrule or add to the
|
ordering. This is for preferences to overrule or add to the
|
||||||
distributed defaults or system-wide settings (rarely needed).
|
distributed defaults or system-wide settings (rarely needed).
|
||||||
|
|
||||||
More entries are added when using |packages|.
|
More entries are added when using |packages|. If it gets very long
|
||||||
|
then `:set rtp` will be truncated, use `:echo &rtp` to see the full
|
||||||
|
string.
|
||||||
|
|
||||||
Note that, unlike 'path', no wildcards like "**" are allowed. Normal
|
Note that, unlike 'path', no wildcards like "**" are allowed. Normal
|
||||||
wildcards are allowed, but can significantly slow down searching for
|
wildcards are allowed, but can significantly slow down searching for
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
Author: Charles E. Campbell <NdrOchip@ScampbellPfamily.AbizM>
|
Author: Charles E. Campbell <NdrOchip@ScampbellPfamily.AbizM>
|
||||||
(remove NOSPAM from Campbell's email first)
|
(remove NOSPAM from Campbell's email first)
|
||||||
Copyright: Copyright (C) 2005-2012 Charles E Campbell *zip-copyright*
|
Copyright: Copyright (C) 2005-2015 Charles E Campbell *zip-copyright*
|
||||||
The VIM LICENSE (see |copyright|) applies to the files in this
|
The VIM LICENSE (see |copyright|) applies to the files in this
|
||||||
package, including zipPlugin.vim, zip.vim, and pi_zip.vim. except use
|
package, including zipPlugin.vim, zip.vim, and pi_zip.vim. except use
|
||||||
"zip.vim" instead of "VIM". Like anything else that's free, zip.vim
|
"zip.vim" instead of "VIM". Like anything else that's free, zip.vim
|
||||||
@ -33,6 +33,9 @@ Copyright: Copyright (C) 2005-2012 Charles E Campbell *zip-copyright*
|
|||||||
also write to the file. Currently, one may not make a new file in
|
also write to the file. Currently, one may not make a new file in
|
||||||
zip archives via the plugin.
|
zip archives via the plugin.
|
||||||
|
|
||||||
|
*zip-x*
|
||||||
|
x : may extract a listed file when the cursor is atop it
|
||||||
|
|
||||||
OPTIONS
|
OPTIONS
|
||||||
|
|
||||||
*g:zip_nomax*
|
*g:zip_nomax*
|
||||||
@ -60,6 +63,11 @@ Copyright: Copyright (C) 2005-2012 Charles E Campbell *zip-copyright*
|
|||||||
It's used during the writing (updating) of a file already in a zip
|
It's used during the writing (updating) of a file already in a zip
|
||||||
file; by default: >
|
file; by default: >
|
||||||
let g:zip_zipcmd= "zip"
|
let g:zip_zipcmd= "zip"
|
||||||
|
<
|
||||||
|
*g:zip_extractcmd*
|
||||||
|
This option specifies the program (and any options needed) used to
|
||||||
|
extract a file from a zip archive. By default, >
|
||||||
|
let g:zip_extractcmd= g:zip_unzipcmd
|
||||||
<
|
<
|
||||||
PREVENTING LOADING~
|
PREVENTING LOADING~
|
||||||
|
|
||||||
@ -83,8 +91,26 @@ Copyright: Copyright (C) 2005-2012 Charles E Campbell *zip-copyright*
|
|||||||
One can simply extend this line to accommodate additional extensions that
|
One can simply extend this line to accommodate additional extensions that
|
||||||
should be treated as zip files.
|
should be treated as zip files.
|
||||||
|
|
||||||
|
Alternatively, one may change *g:zipPlugin_ext* in one's .vimrc.
|
||||||
|
Currently (11/30/15) it holds: >
|
||||||
|
|
||||||
|
let g:zipPlugin_ext= '*.zip,*.jar,*.xpi,*.ja,*.war,*.ear,*.celzip,
|
||||||
|
\ *.oxt,*.kmz,*.wsz,*.xap,*.docx,*.docm,*.dotx,*.dotm,*.potx,*.potm,
|
||||||
|
\ *.ppsx,*.ppsm,*.pptx,*.pptm,*.ppam,*.sldx,*.thmx,*.xlam,*.xlsx,*.xlsm,
|
||||||
|
\ *.xlsb,*.xltx,*.xltm,*.xlam,*.crtx,*.vdw,*.glox,*.gcsx,*.gqsx,*.epub'
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
4. History *zip-history* {{{1
|
4. History *zip-history* {{{1
|
||||||
|
v28 Oct 08, 2014 * changed the sanity checks for executables to reflect
|
||||||
|
the command actually to be attempted in zip#Read()
|
||||||
|
and zip#Write()
|
||||||
|
* added the extraction of a file capability
|
||||||
|
Nov 30, 2015 * added *.epub to the |g:zipPlugin_ext| list
|
||||||
|
Sep 13, 2016 * added *.apk to the |g:zipPlugin_ext| list and
|
||||||
|
sorted the suffices.
|
||||||
|
v27 Jul 02, 2013 * sanity check: zipfile must have "PK" as its first
|
||||||
|
two bytes.
|
||||||
|
* modified to allow zipfile: entries in quickfix lists
|
||||||
v26 Nov 15, 2012 * (Jason Spiro) provided a lot of new extensions that
|
v26 Nov 15, 2012 * (Jason Spiro) provided a lot of new extensions that
|
||||||
are synonyms for .zip
|
are synonyms for .zip
|
||||||
v25 Jun 27, 2011 * using keepj with unzip -Z
|
v25 Jun 27, 2011 * using keepj with unzip -Z
|
||||||
|
@ -3496,8 +3496,8 @@ SYNTAX ISKEYWORD SETTING *:syn-iskeyword*
|
|||||||
and also determines where |:syn-keyword| will be checked for a new
|
and also determines where |:syn-keyword| will be checked for a new
|
||||||
match.
|
match.
|
||||||
|
|
||||||
It is recommended when writing syntax files, to use this command
|
It is recommended when writing syntax files, to use this command to
|
||||||
to the correct value for the specific syntax language and not change
|
set the correct value for the specific syntax language and not change
|
||||||
the 'iskeyword' option.
|
the 'iskeyword' option.
|
||||||
|
|
||||||
DEFINING KEYWORDS *:syn-keyword*
|
DEFINING KEYWORDS *:syn-keyword*
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim support file to detect file types
|
" Vim support file to detect file types
|
||||||
"
|
"
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
" Last Change: 2016 Aug 26
|
" Last Change: 2016 Sep 15
|
||||||
|
|
||||||
" Listen very carefully, I will say this only once
|
" Listen very carefully, I will say this only once
|
||||||
if exists("did_load_filetypes")
|
if exists("did_load_filetypes")
|
||||||
@ -672,6 +672,9 @@ au BufNewFile,BufRead *.dts,*.dtsi setf dts
|
|||||||
" EDIF (*.edf,*.edif,*.edn,*.edo)
|
" EDIF (*.edf,*.edif,*.edn,*.edo)
|
||||||
au BufNewFile,BufRead *.ed\(f\|if\|n\|o\) setf edif
|
au BufNewFile,BufRead *.ed\(f\|if\|n\|o\) setf edif
|
||||||
|
|
||||||
|
" EditorConfig (close enough to dosini)
|
||||||
|
au BufNewFile,BufRead .editorconfig setf dosini
|
||||||
|
|
||||||
" Embedix Component Description
|
" Embedix Component Description
|
||||||
au BufNewFile,BufRead *.ecd setf ecd
|
au BufNewFile,BufRead *.ecd setf ecd
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
" zipPlugin.vim: Handles browsing zipfiles
|
" zipPlugin.vim: Handles browsing zipfiles
|
||||||
" PLUGIN PORTION
|
" PLUGIN PORTION
|
||||||
" Date: Jun 07, 2013
|
" Date: Sep 13, 2016
|
||||||
" Maintainer: Charles E Campbell <NdrOchip@ScampbellPfamily.AbizM-NOSPAM>
|
" Maintainer: Charles E Campbell <NdrOchip@ScampbellPfamily.AbizM-NOSPAM>
|
||||||
" License: Vim License (see vim's :help license)
|
" License: Vim License (see vim's :help license)
|
||||||
" Copyright: Copyright (C) 2005-2013 Charles E. Campbell {{{1
|
" Copyright: Copyright (C) 2005-2016 Charles E. Campbell {{{1
|
||||||
" Permission is hereby granted to use and distribute this code,
|
" Permission is hereby granted to use and distribute this code,
|
||||||
" with or without modifications, provided that this copyright
|
" with or without modifications, provided that this copyright
|
||||||
" notice is copied with it. Like anything else that's free,
|
" notice is copied with it. Like anything else that's free,
|
||||||
@ -20,14 +20,14 @@
|
|||||||
if &cp || exists("g:loaded_zipPlugin")
|
if &cp || exists("g:loaded_zipPlugin")
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let g:loaded_zipPlugin = "v27"
|
let g:loaded_zipPlugin = "v28"
|
||||||
let s:keepcpo = &cpo
|
let s:keepcpo = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
" ---------------------------------------------------------------------
|
" ---------------------------------------------------------------------
|
||||||
" Options: {{{1
|
" Options: {{{1
|
||||||
if !exists("g:zipPlugin_ext")
|
if !exists("g:zipPlugin_ext")
|
||||||
let g:zipPlugin_ext= '*.zip,*.jar,*.xpi,*.ja,*.war,*.ear,*.celzip,*.oxt,*.kmz,*.wsz,*.xap,*.docx,*.docm,*.dotx,*.dotm,*.potx,*.potm,*.ppsx,*.ppsm,*.pptx,*.pptm,*.ppam,*.sldx,*.thmx,*.xlam,*.xlsx,*.xlsm,*.xlsb,*.xltx,*.xltm,*.xlam,*.crtx,*.vdw,*.glox,*.gcsx,*.gqsx'
|
let g:zipPlugin_ext='*.apk,*.celzip,*.crtx,*.docm,*.docx,*.dotm,*.dotx,*.ear,*.epub,*.gcsx,*.glox,*.gqsx,*.ja,*.jar,*.kmz,*.oxt,*.potm,*.potx,*.ppam,*.ppsm,*.ppsx,*.pptm,*.pptx,*.sldx,*.thmx,*.vdw,*.war,*.wsz,*.xap,*.xlam,*.xlam,*.xlsb,*.xlsm,*.xlsx,*.xltm,*.xltx,*.xpi,*.zip'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" ---------------------------------------------------------------------
|
" ---------------------------------------------------------------------
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: Python
|
" Language: Python
|
||||||
" Maintainer: Zvezdan Petkovic <zpetkovic@acm.org>
|
" Maintainer: Zvezdan Petkovic <zpetkovic@acm.org>
|
||||||
" Last Change: 2016 Aug 14
|
" Last Change: 2016 Sep 14
|
||||||
" Credits: Neil Schemenauer <nas@python.ca>
|
" Credits: Neil Schemenauer <nas@python.ca>
|
||||||
" Dmitry Vasiliev
|
" Dmitry Vasiliev
|
||||||
"
|
"
|
||||||
@ -88,14 +88,14 @@ syn keyword pythonAsync async await
|
|||||||
" followed by decorator name, optional parenthesized list of arguments,
|
" followed by decorator name, optional parenthesized list of arguments,
|
||||||
" and the next line with either def, class, or another decorator.
|
" and the next line with either def, class, or another decorator.
|
||||||
syn match pythonDecorator
|
syn match pythonDecorator
|
||||||
\ "\%(\%(^\s*\)\%(\%(>>>\|\.\.\.\)\s\+\)\=\)\zs@\%(\s*\h\%(\w\|\.\)*\%(([^)]*)\)\=\s*\n\s*\%(\.\.\.\s\+\)\=\%(@\s*\h\|\%(def\|class\)\s\+\)\)\@="
|
\ "\%(\%(^\s*\)\%(\%(>>>\|\.\.\.\)\s\+\)\=\)\zs@\%(\s*\h\%(\w\|\.\)*\s*\%((\_\s\{-}[^)]\_.\{-})\s*\)\=\%(#.*\)\=\n\s*\%(\.\.\.\s\+\)\=\%(@\s*\h\|\%(def\|class\)\s\+\)\)\@="
|
||||||
\ display nextgroup=pythonDecoratorName skipwhite
|
\ display nextgroup=pythonDecoratorName skipwhite
|
||||||
|
|
||||||
" A dot must be allowed because of @MyClass.myfunc decorators.
|
" A dot must be allowed because of @MyClass.myfunc decorators.
|
||||||
" It must be preceded by a decorator symbol and on a separate line from
|
" It must be preceded by a decorator symbol and on a separate line from
|
||||||
" a function/class it decorates.
|
" a function/class it decorates.
|
||||||
syn match pythonDecoratorName
|
syn match pythonDecoratorName
|
||||||
\ "\%(@\s*\)\@<=\h\%(\w\|\.\)*\%(\%(([^)]*)\)\=\s*\n\)\@="
|
\ "\%(@\s*\)\@<=\h\%(\w\|\.\)*\%(\s*\%((\_\s\{-}[^)]\_.\{-})\s*\)\=\%(#.*\)\=\n\)\@="
|
||||||
\ contained display nextgroup=pythonFunction skipnl
|
\ contained display nextgroup=pythonFunction skipnl
|
||||||
|
|
||||||
" The zero-length non-grouping match of def or class before the function
|
" The zero-length non-grouping match of def or class before the function
|
||||||
@ -289,43 +289,41 @@ endif
|
|||||||
" Sync at the beginning of class, function, or method definition.
|
" Sync at the beginning of class, function, or method definition.
|
||||||
syn sync match pythonSync grouphere NONE "^\s*\%(def\|class\)\s\+\h\w*\s*("
|
syn sync match pythonSync grouphere NONE "^\s*\%(def\|class\)\s\+\h\w*\s*("
|
||||||
|
|
||||||
|
|
||||||
" The default highlight links. Can be overridden later.
|
" The default highlight links. Can be overridden later.
|
||||||
hi def link pythonStatement Statement
|
hi def link pythonStatement Statement
|
||||||
hi def link pythonConditional Conditional
|
hi def link pythonConditional Conditional
|
||||||
hi def link pythonRepeat Repeat
|
hi def link pythonRepeat Repeat
|
||||||
hi def link pythonOperator Operator
|
hi def link pythonOperator Operator
|
||||||
hi def link pythonException Exception
|
hi def link pythonException Exception
|
||||||
hi def link pythonInclude Include
|
hi def link pythonInclude Include
|
||||||
hi def link pythonAsync Statement
|
hi def link pythonAsync Statement
|
||||||
hi def link pythonDecorator Define
|
hi def link pythonDecorator Define
|
||||||
hi def link pythonDecoratorName Function
|
hi def link pythonDecoratorName Function
|
||||||
hi def link pythonFunction Function
|
hi def link pythonFunction Function
|
||||||
hi def link pythonComment Comment
|
hi def link pythonComment Comment
|
||||||
hi def link pythonTodo Todo
|
hi def link pythonTodo Todo
|
||||||
hi def link pythonString String
|
hi def link pythonString String
|
||||||
hi def link pythonRawString String
|
hi def link pythonRawString String
|
||||||
hi def link pythonQuotes String
|
hi def link pythonQuotes String
|
||||||
hi def link pythonTripleQuotes pythonQuotes
|
hi def link pythonTripleQuotes pythonQuotes
|
||||||
hi def link pythonEscape Special
|
hi def link pythonEscape Special
|
||||||
if !exists("python_no_number_highlight")
|
if !exists("python_no_number_highlight")
|
||||||
hi def link pythonNumber Number
|
hi def link pythonNumber Number
|
||||||
endif
|
endif
|
||||||
if !exists("python_no_builtin_highlight")
|
if !exists("python_no_builtin_highlight")
|
||||||
hi def link pythonBuiltin Function
|
hi def link pythonBuiltin Function
|
||||||
endif
|
endif
|
||||||
if !exists("python_no_exception_highlight")
|
if !exists("python_no_exception_highlight")
|
||||||
hi def link pythonExceptions Structure
|
hi def link pythonExceptions Structure
|
||||||
endif
|
endif
|
||||||
if exists("python_space_error_highlight")
|
if exists("python_space_error_highlight")
|
||||||
hi def link pythonSpaceError Error
|
hi def link pythonSpaceError Error
|
||||||
endif
|
endif
|
||||||
if !exists("python_no_doctest_highlight")
|
if !exists("python_no_doctest_highlight")
|
||||||
hi def link pythonDoctest Special
|
hi def link pythonDoctest Special
|
||||||
hi def link pythonDoctestValue Define
|
hi def link pythonDoctestValue Define
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
let b:current_syntax = "python"
|
let b:current_syntax = "python"
|
||||||
|
|
||||||
let &cpo = s:cpo_save
|
let &cpo = s:cpo_save
|
||||||
|
Loading…
Reference in New Issue
Block a user