mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
parent
492f2cfeff
commit
8f32c04df4
@ -1,4 +1,4 @@
|
|||||||
*autocmd.txt* For Vim version 7.4. Last change: 2016 Apr 20
|
*autocmd.txt* For Vim version 7.4. Last change: 2016 Jun 09
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -1229,6 +1229,8 @@ option will not cause any commands to be executed.
|
|||||||
argument is present. You probably want to use
|
argument is present. You probably want to use
|
||||||
<nomodeline> for events that are not used when loading
|
<nomodeline> for events that are not used when loading
|
||||||
a buffer, such as |User|.
|
a buffer, such as |User|.
|
||||||
|
Processing modelines is also skipped when no
|
||||||
|
matching autocommands were executed.
|
||||||
|
|
||||||
*:doautoa* *:doautoall*
|
*:doautoa* *:doautoall*
|
||||||
:doautoa[ll] [<nomodeline>] [group] {event} [fname]
|
:doautoa[ll] [<nomodeline>] [group] {event} [fname]
|
||||||
|
@ -1470,7 +1470,7 @@ v:exception The value of the exception most recently caught and not
|
|||||||
|
|
||||||
*v:false* *false-variable*
|
*v:false* *false-variable*
|
||||||
v:false Special value used to put "false" in JSON and msgpack. See
|
v:false Special value used to put "false" in JSON and msgpack. See
|
||||||
|json_encode()|. This value is converted to "false" when used
|
|json_encode()|. This value is converted to "v:false" when used
|
||||||
as a String (e.g. in |expr5| with string concatenation
|
as a String (e.g. in |expr5| with string concatenation
|
||||||
operator) and to zero when used as a Number (e.g. in |expr5|
|
operator) and to zero when used as a Number (e.g. in |expr5|
|
||||||
or |expr7| when used with numeric operators).
|
or |expr7| when used with numeric operators).
|
||||||
@ -1620,7 +1620,7 @@ v:msgpack_types Dictionary containing msgpack types used by |msgpackparse()|
|
|||||||
|
|
||||||
*v:null* *null-variable*
|
*v:null* *null-variable*
|
||||||
v:null Special value used to put "null" in JSON and NIL in msgpack.
|
v:null Special value used to put "null" in JSON and NIL in msgpack.
|
||||||
See |json_encode()|. This value is converted to "null" when
|
See |json_encode()|. This value is converted to "v:null" when
|
||||||
used as a String (e.g. in |expr5| with string concatenation
|
used as a String (e.g. in |expr5| with string concatenation
|
||||||
operator) and to zero when used as a Number (e.g. in |expr5|
|
operator) and to zero when used as a Number (e.g. in |expr5|
|
||||||
or |expr7| when used with numeric operators).
|
or |expr7| when used with numeric operators).
|
||||||
@ -1807,7 +1807,7 @@ v:throwpoint The point where the exception most recently caught and not
|
|||||||
|
|
||||||
*v:true* *true-variable*
|
*v:true* *true-variable*
|
||||||
v:true Special value used to put "true" in JSON and msgpack. See
|
v:true Special value used to put "true" in JSON and msgpack. See
|
||||||
|json_encode()|. This value is converted to "true" when used
|
|json_encode()|. This value is converted to "v:true" when used
|
||||||
as a String (e.g. in |expr5| with string concatenation
|
as a String (e.g. in |expr5| with string concatenation
|
||||||
operator) and to one when used as a Number (e.g. in |expr5| or
|
operator) and to one when used as a Number (e.g. in |expr5| or
|
||||||
|expr7| when used with numeric operators).
|
|expr7| when used with numeric operators).
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*index.txt* For Vim version 7.4. Last change: 2016 Apr 12
|
*index.txt* For Vim version 7.4. Last change: 2016 Jun 12
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -1152,8 +1152,9 @@ tag command action ~
|
|||||||
|:chdir| :chd[ir] change directory
|
|:chdir| :chd[ir] change directory
|
||||||
|:checkpath| :che[ckpath] list included files
|
|:checkpath| :che[ckpath] list included files
|
||||||
|:checktime| :checkt[ime] check timestamp of loaded buffers
|
|:checktime| :checkt[ime] check timestamp of loaded buffers
|
||||||
|:clist| :cl[ist] list all errors
|
|
||||||
|:clast| :cla[st] go to the specified error, default last one
|
|:clast| :cla[st] go to the specified error, default last one
|
||||||
|
|:clearjumps| :cle[arjumps] clear the jump list
|
||||||
|
|:clist| :cl[ist] list all errors
|
||||||
|:close| :clo[se] close current window
|
|:close| :clo[se] close current window
|
||||||
|:cmap| :cm[ap] like ":map" but for Command-line mode
|
|:cmap| :cm[ap] like ":map" but for Command-line mode
|
||||||
|:cmapclear| :cmapc[lear] clear all mappings for Command-line mode
|
|:cmapclear| :cmapc[lear] clear all mappings for Command-line mode
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*map.txt* For Vim version 7.4. Last change: 2016 Jan 10
|
*map.txt* For Vim version 7.4. Last change: 2016 Jun 10
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -1408,11 +1408,11 @@ The valid escape sequences are
|
|||||||
expands to nothing.
|
expands to nothing.
|
||||||
*<mods>*
|
*<mods>*
|
||||||
<mods> The command modifiers, if specified. Otherwise, expands to
|
<mods> The command modifiers, if specified. Otherwise, expands to
|
||||||
nothing. Supported modifiers are |aboveleft|, |belowright|,
|
nothing. Supported modifiers are |:aboveleft|, |:belowright|,
|
||||||
|botright|, |browse|, |confirm|, |hide|, |keepalt|,
|
|:botright|, |:browse|, |:confirm|, |:hide|, |:keepalt|,
|
||||||
|keepjumps|, |keepmarks|, |keeppatterns|, |lockmarks|,
|
|:keepjumps|, |:keepmarks|, |:keeppatterns|, |:lockmarks|,
|
||||||
|noswapfile|, |silent|, |tab|, |topleft|, |verbose|, and
|
|:noswapfile|, |:silent|, |:tab|, |:topleft|, |:verbose|, and
|
||||||
|vertical|.
|
|:vertical|.
|
||||||
Examples: >
|
Examples: >
|
||||||
command! -nargs=+ -complete=file MyEdit
|
command! -nargs=+ -complete=file MyEdit
|
||||||
\ for f in expand(<q-args>, 0, 1) |
|
\ for f in expand(<q-args>, 0, 1) |
|
||||||
|
@ -1013,6 +1013,9 @@ CTRL-I Go to [count] newer cursor position in jump list
|
|||||||
*:ju* *:jumps*
|
*:ju* *:jumps*
|
||||||
:ju[mps] Print the jump list (not a motion command).
|
:ju[mps] Print the jump list (not a motion command).
|
||||||
|
|
||||||
|
*:cle* *:clearjumps*
|
||||||
|
:cle[arjumps] Clear the jump list of the current window.
|
||||||
|
|
||||||
*jumplist*
|
*jumplist*
|
||||||
Jumps are remembered in a jump list. With the CTRL-O and CTRL-I command you
|
Jumps are remembered in a jump list. With the CTRL-O and CTRL-I command you
|
||||||
can go to cursor positions before older jumps, and back again. Thus you can
|
can go to cursor positions before older jumps, and back again. Thus you can
|
||||||
|
@ -2682,6 +2682,40 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
It is not allowed to change text or jump to another window while
|
It is not allowed to change text or jump to another window while
|
||||||
evaluating 'foldtext' |textlock|.
|
evaluating 'foldtext' |textlock|.
|
||||||
|
|
||||||
|
*'formatexpr'* *'fex'*
|
||||||
|
'formatexpr' 'fex' string (default "")
|
||||||
|
local to buffer
|
||||||
|
{not available when compiled without the |+eval|
|
||||||
|
feature}
|
||||||
|
Expression which is evaluated to format a range of lines for the |gq|
|
||||||
|
operator or automatic formatting (see 'formatoptions'). When this
|
||||||
|
option is empty 'formatprg' is used.
|
||||||
|
|
||||||
|
The |v:lnum| variable holds the first line to be formatted.
|
||||||
|
The |v:count| variable holds the number of lines to be formatted.
|
||||||
|
The |v:char| variable holds the character that is going to be
|
||||||
|
inserted if the expression is being evaluated due to
|
||||||
|
automatic formatting. This can be empty. Don't insert
|
||||||
|
it yet!
|
||||||
|
|
||||||
|
Example: >
|
||||||
|
:set formatexpr=mylang#Format()
|
||||||
|
< This will invoke the mylang#Format() function in the
|
||||||
|
autoload/mylang.vim file in 'runtimepath'. |autoload|
|
||||||
|
|
||||||
|
The expression is also evaluated when 'textwidth' is set and adding
|
||||||
|
text beyond that limit. This happens under the same conditions as
|
||||||
|
when internal formatting is used. Make sure the cursor is kept in the
|
||||||
|
same spot relative to the text then! The |mode()| function will
|
||||||
|
return "i" or "R" in this situation.
|
||||||
|
|
||||||
|
When the expression evaluates to non-zero Vim will fall back to using
|
||||||
|
the internal format mechanism.
|
||||||
|
|
||||||
|
The expression will be evaluated in the |sandbox| when set from a
|
||||||
|
modeline, see |sandbox-option|. That stops the option from working,
|
||||||
|
since changing the buffer text is not allowed.
|
||||||
|
|
||||||
*'formatoptions'* *'fo'*
|
*'formatoptions'* *'fo'*
|
||||||
'formatoptions' 'fo' string (default: "tcqj", Vi default: "vt")
|
'formatoptions' 'fo' string (default: "tcqj", Vi default: "vt")
|
||||||
local to buffer
|
local to buffer
|
||||||
@ -2720,40 +2754,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
This option cannot be set from a |modeline| or in the |sandbox|, for
|
This option cannot be set from a |modeline| or in the |sandbox|, for
|
||||||
security reasons.
|
security reasons.
|
||||||
|
|
||||||
*'formatexpr'* *'fex'*
|
|
||||||
'formatexpr' 'fex' string (default "")
|
|
||||||
local to buffer
|
|
||||||
{not available when compiled without the |+eval|
|
|
||||||
feature}
|
|
||||||
Expression which is evaluated to format a range of lines for the |gq|
|
|
||||||
operator or automatic formatting (see 'formatoptions'). When this
|
|
||||||
option is empty 'formatprg' is used.
|
|
||||||
|
|
||||||
The |v:lnum| variable holds the first line to be formatted.
|
|
||||||
The |v:count| variable holds the number of lines to be formatted.
|
|
||||||
The |v:char| variable holds the character that is going to be
|
|
||||||
inserted if the expression is being evaluated due to
|
|
||||||
automatic formatting. This can be empty. Don't insert
|
|
||||||
it yet!
|
|
||||||
|
|
||||||
Example: >
|
|
||||||
:set formatexpr=mylang#Format()
|
|
||||||
< This will invoke the mylang#Format() function in the
|
|
||||||
autoload/mylang.vim file in 'runtimepath'. |autoload|
|
|
||||||
|
|
||||||
The expression is also evaluated when 'textwidth' is set and adding
|
|
||||||
text beyond that limit. This happens under the same conditions as
|
|
||||||
when internal formatting is used. Make sure the cursor is kept in the
|
|
||||||
same spot relative to the text then! The |mode()| function will
|
|
||||||
return "i" or "R" in this situation.
|
|
||||||
|
|
||||||
When the expression evaluates to non-zero Vim will fall back to using
|
|
||||||
the internal format mechanism.
|
|
||||||
|
|
||||||
The expression will be evaluated in the |sandbox| when set from a
|
|
||||||
modeline, see |sandbox-option|. That stops the option from working,
|
|
||||||
since changing the buffer text is not allowed.
|
|
||||||
|
|
||||||
*'fsync'* *'fs'*
|
*'fsync'* *'fs'*
|
||||||
'fsync' 'fs' boolean (default on)
|
'fsync' 'fs' boolean (default on)
|
||||||
global
|
global
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*pattern.txt* For Vim version 7.4. Last change: 2016 Apr 26
|
*pattern.txt* For Vim version 7.4. Last change: 2016 Jun 08
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -947,14 +947,18 @@ $ At end of pattern or in front of "\|", "\)" or "\n" ('magic' on):
|
|||||||
< When 'hlsearch' is set and you move the cursor around and make changes
|
< When 'hlsearch' is set and you move the cursor around and make changes
|
||||||
this will clearly show when the match is updated or not.
|
this will clearly show when the match is updated or not.
|
||||||
To match the text up to column 17: >
|
To match the text up to column 17: >
|
||||||
/.*\%17v
|
/^.*\%17v
|
||||||
< Column 17 is included, because that's where the "\%17v" matches,
|
< Column 17 is not included, because this is a |/zero-width| match. To
|
||||||
even though this is a |/zero-width| match. Adding a dot to match the
|
include the column use: >
|
||||||
next character has the same result: >
|
/^.*\%17v.
|
||||||
/.*\%17v.
|
|
||||||
< This command does the same thing, but also matches when there is no
|
< This command does the same thing, but also matches when there is no
|
||||||
character in column 17: >
|
character in column 17: >
|
||||||
/.*\%<18v.
|
/^.*\%<18v.
|
||||||
|
< Note that without the "^" to anchor the match in the first column,
|
||||||
|
this will also highlight column 17: >
|
||||||
|
/.*\%17v
|
||||||
|
< Column 17 is highlighted by 'hlsearch' because there is another match
|
||||||
|
where ".*" matches zero characters.
|
||||||
<
|
<
|
||||||
|
|
||||||
Character classes:
|
Character classes:
|
||||||
|
@ -529,7 +529,7 @@ whether Vim supports a feature or a dependency is missing.
|
|||||||
You can also load an optional plugin at startup, by putting this command in
|
You can also load an optional plugin at startup, by putting this command in
|
||||||
your |.vimrc|: >
|
your |.vimrc|: >
|
||||||
:packadd! foodebug
|
:packadd! foodebug
|
||||||
The extra "!" is so that the plugin isn't loaded with Vim was started with
|
The extra "!" is so that the plugin isn't loaded if Vim was started with
|
||||||
|--noplugin|.
|
|--noplugin|.
|
||||||
|
|
||||||
It is perfectly normal for a package to only have files in the "opt"
|
It is perfectly normal for a package to only have files in the "opt"
|
||||||
@ -608,7 +608,7 @@ the command after changing the plugin help: >
|
|||||||
|
|
||||||
Dependencies between plugins ~
|
Dependencies between plugins ~
|
||||||
*packload-two-steps*
|
*packload-two-steps*
|
||||||
Suppose you have a two plugins that depend on the same functionality. You can
|
Suppose you have two plugins that depend on the same functionality. You can
|
||||||
put the common functionality in an autoload directory, so that it will be
|
put the common functionality in an autoload directory, so that it will be
|
||||||
found automatically. Your package would have these files:
|
found automatically. Your package would have these files:
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*starting.txt* For Vim version 7.4. Last change: 2016 Apr 05
|
*starting.txt* For Vim version 7.4. Last change: 2016 Jun 12
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
|
@ -602,7 +602,9 @@ String manipulation: *string-functions*
|
|||||||
strdisplaywidth() size of string when displayed, deals with tabs
|
strdisplaywidth() size of string when displayed, deals with tabs
|
||||||
substitute() substitute a pattern match with a string
|
substitute() substitute a pattern match with a string
|
||||||
submatch() get a specific match in ":s" and substitute()
|
submatch() get a specific match in ":s" and substitute()
|
||||||
strpart() get part of a string
|
strpart() get part of a string using byte index
|
||||||
|
strcharpart() get part of a string using char index
|
||||||
|
strgetchar() get character from a string using char index
|
||||||
expand() expand special keywords
|
expand() expand special keywords
|
||||||
iconv() convert text from one encoding to another
|
iconv() convert text from one encoding to another
|
||||||
byteidx() byte index of a character in a string
|
byteidx() byte index of a character in a string
|
||||||
@ -732,11 +734,14 @@ Working with text in the current buffer: *text-functions*
|
|||||||
searchpair() find the other end of a start/skip/end
|
searchpair() find the other end of a start/skip/end
|
||||||
searchpairpos() find the other end of a start/skip/end
|
searchpairpos() find the other end of a start/skip/end
|
||||||
searchdecl() search for the declaration of a name
|
searchdecl() search for the declaration of a name
|
||||||
|
getcharsearch() return character search information
|
||||||
|
setcharsearch() set character search information
|
||||||
|
|
||||||
*system-functions* *file-functions*
|
*system-functions* *file-functions*
|
||||||
System functions and manipulation of files:
|
System functions and manipulation of files:
|
||||||
glob() expand wildcards
|
glob() expand wildcards
|
||||||
globpath() expand wildcards in a number of directories
|
globpath() expand wildcards in a number of directories
|
||||||
|
glob2regpat() convert a glob pattern into a search pattern
|
||||||
findfile() find a file in a list of directories
|
findfile() find a file in a list of directories
|
||||||
finddir() find a directory in a list of directories
|
finddir() find a directory in a list of directories
|
||||||
resolve() find out where a shortcut points to
|
resolve() find out where a shortcut points to
|
||||||
@ -748,6 +753,7 @@ System functions and manipulation of files:
|
|||||||
filereadable() check if a file can be read
|
filereadable() check if a file can be read
|
||||||
filewritable() check if a file can be written to
|
filewritable() check if a file can be written to
|
||||||
getfperm() get the permissions of a file
|
getfperm() get the permissions of a file
|
||||||
|
setfperm() set the permissions of a file
|
||||||
getftype() get the kind of a file
|
getftype() get the kind of a file
|
||||||
isdirectory() check if a directory exists
|
isdirectory() check if a directory exists
|
||||||
getfsize() get the size of a file
|
getfsize() get the size of a file
|
||||||
@ -790,6 +796,11 @@ Buffers, windows and the argument list:
|
|||||||
bufwinnr() get the window number of a specific buffer
|
bufwinnr() get the window number of a specific buffer
|
||||||
winbufnr() get the buffer number of a specific window
|
winbufnr() get the buffer number of a specific window
|
||||||
getbufline() get a list of lines from the specified buffer
|
getbufline() get a list of lines from the specified buffer
|
||||||
|
win_findbuf() find windows containing a buffer
|
||||||
|
win_getid() get window ID of a window
|
||||||
|
win_gotoid() go to window with ID
|
||||||
|
win_id2tabwin() get tab and window nr from window ID
|
||||||
|
win_id2win() get window nr from window ID
|
||||||
getbufinfo() get a list with buffer information
|
getbufinfo() get a list with buffer information
|
||||||
gettabinfo() get a list with tab page information
|
gettabinfo() get a list with tab page information
|
||||||
getwininfo() get a list with window information
|
getwininfo() get a list with window information
|
||||||
@ -906,6 +917,10 @@ Testing: *test-functions*
|
|||||||
assert_exception() assert that a command throws an exception
|
assert_exception() assert that a command throws an exception
|
||||||
assert_fails() assert that a function call fails
|
assert_fails() assert that a function call fails
|
||||||
|
|
||||||
|
Timers: *timer-functions*
|
||||||
|
timer_start() create a timer
|
||||||
|
timer_stop() stop a timer
|
||||||
|
|
||||||
Various: *various-functions*
|
Various: *various-functions*
|
||||||
mode() get current editing mode
|
mode() get current editing mode
|
||||||
visualmode() last visual mode used
|
visualmode() last visual mode used
|
||||||
@ -1402,9 +1417,9 @@ Now we can instantiate a Dutch translation object: >
|
|||||||
And a German translator: >
|
And a German translator: >
|
||||||
|
|
||||||
:let uk2de = copy(transdict)
|
:let uk2de = copy(transdict)
|
||||||
:let uk2de.words = {'one': 'ein', 'two': 'zwei', 'three': 'drei'}
|
:let uk2de.words = {'one': 'eins', 'two': 'zwei', 'three': 'drei'}
|
||||||
:echo uk2de.translate('three one')
|
:echo uk2de.translate('three one')
|
||||||
< drei ein ~
|
< drei eins ~
|
||||||
|
|
||||||
You see that the copy() function is used to make a copy of the "transdict"
|
You see that the copy() function is used to make a copy of the "transdict"
|
||||||
Dictionary and then the copy is changed to add the words. The original
|
Dictionary and then the copy is changed to add the words. The original
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*windows.txt* For Vim version 7.4. Last change: 2016 Feb 01
|
*windows.txt* For Vim version 7.4. Last change: 2016 Jun 10
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -70,6 +70,16 @@ places where a Normal mode command can't be used or is inconvenient.
|
|||||||
The main Vim window can hold several split windows. There are also tab pages
|
The main Vim window can hold several split windows. There are also tab pages
|
||||||
|tab-page|, each of which can hold multiple windows.
|
|tab-page|, each of which can hold multiple windows.
|
||||||
|
|
||||||
|
Each window has a unique identifier called the window ID. This identifier
|
||||||
|
will not change within a Vim session. The |win_getid()| and |win_id2tabwin()|
|
||||||
|
functions can be used to convert between the window/tab number and the
|
||||||
|
identifier. There is also the window number, which may change whenever
|
||||||
|
windows are opened or closed, see |winnr()|.
|
||||||
|
|
||||||
|
Each buffer has a unique number and the number will not change within a Vim
|
||||||
|
session. The |bufnr()| and |bufname()| functions can be used to convert
|
||||||
|
between a buffer name and the buffer number.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
2. Starting Vim *windows-starting*
|
2. Starting Vim *windows-starting*
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: C
|
" Language: C
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
" Last Change: 2012 Jul 10
|
" Last Change: 2016 Jun 12
|
||||||
|
|
||||||
" Only do this when not done yet for this buffer
|
" Only do this when not done yet for this buffer
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
@ -32,7 +32,7 @@ setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
|
|||||||
" When the matchit plugin is loaded, this makes the % command skip parens and
|
" When the matchit plugin is loaded, this makes the % command skip parens and
|
||||||
" braces in comments.
|
" braces in comments.
|
||||||
let b:match_words = &matchpairs . ',^\s*#\s*if\(\|def\|ndef\)\>:^\s*#\s*elif\>:^\s*#\s*else\>:^\s*#\s*endif\>'
|
let b:match_words = &matchpairs . ',^\s*#\s*if\(\|def\|ndef\)\>:^\s*#\s*elif\>:^\s*#\s*else\>:^\s*#\s*endif\>'
|
||||||
let b:match_skip = 's:comment\|string\|character'
|
let b:match_skip = 's:comment\|string\|character\|special'
|
||||||
|
|
||||||
" Win32 can filter files in the browse dialog
|
" Win32 can filter files in the browse dialog
|
||||||
if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
|
if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: python
|
" Language: python
|
||||||
" Maintainer: Johannes Zellner <johannes@zellner.org>
|
" Maintainer: James Sully <sullyj3@gmail.com>
|
||||||
" Last Change: 2014 Feb 09
|
" Previous Maintainer: Johannes Zellner <johannes@zellner.org>
|
||||||
" Last Change By Johannes: Wed, 21 Apr 2004 13:13:08 CEST
|
" Last Change: Fri, 10 June 2016
|
||||||
|
" https://github.com/sullyj3/vim-ftplugin-python
|
||||||
|
|
||||||
if exists("b:did_ftplugin") | finish | endif
|
if exists("b:did_ftplugin") | finish | endif
|
||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
@ -21,10 +22,10 @@ setlocal omnifunc=pythoncomplete#Complete
|
|||||||
|
|
||||||
set wildignore+=*.pyc
|
set wildignore+=*.pyc
|
||||||
|
|
||||||
nnoremap <silent> <buffer> ]] :call <SID>Python_jump('/^\(class\\|def\)')<cr>
|
nnoremap <silent> <buffer> ]] :call <SID>Python_jump('/^\(class\\|def\)\>')<cr>
|
||||||
nnoremap <silent> <buffer> [[ :call <SID>Python_jump('?^\(class\\|def\)')<cr>
|
nnoremap <silent> <buffer> [[ :call <SID>Python_jump('?^\(class\\|def\)\>')<cr>
|
||||||
nnoremap <silent> <buffer> ]m :call <SID>Python_jump('/^\s*\(class\\|def\)')<cr>
|
nnoremap <silent> <buffer> ]m :call <SID>Python_jump('/^\s*\(class\\|def\)\>')<cr>
|
||||||
nnoremap <silent> <buffer> [m :call <SID>Python_jump('?^\s*\(class\\|def\)')<cr>
|
nnoremap <silent> <buffer> [m :call <SID>Python_jump('?^\s*\(class\\|def\)\>')<cr>
|
||||||
|
|
||||||
if !exists('*<SID>Python_jump')
|
if !exists('*<SID>Python_jump')
|
||||||
fun! <SID>Python_jump(motion) range
|
fun! <SID>Python_jump(motion) range
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: Vim .viminfo file
|
" Language: Vim .viminfo file
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
" Last Change: 2012 Feb 03
|
" Last Change: 2016 Jun 05
|
||||||
|
|
||||||
" Quit when a (custom) syntax file was already loaded
|
" Quit when a (custom) syntax file was already loaded
|
||||||
if exists("b:current_syntax")
|
if exists("b:current_syntax")
|
||||||
@ -30,11 +30,15 @@ syn match viminfoOptionName "\*\a*"ms=s+1 contained
|
|||||||
" Comments
|
" Comments
|
||||||
syn match viminfoComment "^#.*"
|
syn match viminfoComment "^#.*"
|
||||||
|
|
||||||
|
" New style lines. TODO: highlight numbers and strings.
|
||||||
|
syn match viminfoNew "^|.*"
|
||||||
|
|
||||||
" Define the default highlighting.
|
" Define the default highlighting.
|
||||||
" Only used when an item doesn't have highlighting yet
|
" Only used when an item doesn't have highlighting yet
|
||||||
hi def link viminfoComment Comment
|
hi def link viminfoComment Comment
|
||||||
hi def link viminfoError Error
|
hi def link viminfoError Error
|
||||||
hi def link viminfoStatement Statement
|
hi def link viminfoStatement Statement
|
||||||
|
hi def link viminfoNew String
|
||||||
|
|
||||||
let b:current_syntax = "viminfo"
|
let b:current_syntax = "viminfo"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user