mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge #7491 'vim-patch: runtime'
This commit is contained in:
commit
946c2a8ee8
@ -1,7 +1,7 @@
|
|||||||
" Vim completion script
|
" Vim completion script
|
||||||
" Language: Java Script
|
" Language: Java Script
|
||||||
" Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
|
" Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
|
||||||
" Last Change: 2006 Apr 30
|
" Last Change: 2017 Mar 04
|
||||||
|
|
||||||
function! javascriptcomplete#CompleteJS(findstart, base)
|
function! javascriptcomplete#CompleteJS(findstart, base)
|
||||||
if a:findstart
|
if a:findstart
|
||||||
@ -563,7 +563,7 @@ function! javascriptcomplete#CompleteJS(findstart, base)
|
|||||||
for i in arguments
|
for i in arguments
|
||||||
let g:ia = i
|
let g:ia = i
|
||||||
let f_elements = matchlist(i, 'function\s\+\(\k\+\)\s*(\(.\{-}\))')
|
let f_elements = matchlist(i, 'function\s\+\(\k\+\)\s*(\(.\{-}\))')
|
||||||
if len(f_elements) == 3
|
if len(f_elements) >= 3
|
||||||
let b:js_menuinfo[f_elements[1].'('] = f_elements[2]
|
let b:js_menuinfo[f_elements[1].'('] = f_elements[2]
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: BDF to PCF Conversion
|
" Compiler: BDF to PCF Conversion
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2006-04-19
|
" Latest Revision: 2006-04-19
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: GNU C Compiler
|
" Compiler: GNU C Compiler
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2010-10-14
|
" Latest Revision: 2010-10-14
|
||||||
" added line suggested by Anton Lindqvist 2016 Mar 31
|
" added line suggested by Anton Lindqvist 2016 Mar 31
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim compiler file
|
" Vim compiler file
|
||||||
" Compiler: reStructuredText Documentation Format
|
" Compiler: reStructuredText Documentation Format
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2006-04-19
|
" Latest Revision: 2006-04-19
|
||||||
|
|
||||||
if exists("current_compiler")
|
if exists("current_compiler")
|
||||||
finish
|
finish
|
||||||
|
@ -236,7 +236,7 @@ If you want to keep the changed buffer without saving it, switch on the
|
|||||||
|
|
||||||
*:vie* *:view*
|
*:vie* *:view*
|
||||||
:vie[w][!] [++opt] [+cmd] file
|
:vie[w][!] [++opt] [+cmd] file
|
||||||
When used in Ex mode: Leave |Ex mode|, go back to
|
When used in Ex mode: Leave |Ex-mode|, go back to
|
||||||
Normal mode. Otherwise same as |:edit|, but set
|
Normal mode. Otherwise same as |:edit|, but set
|
||||||
'readonly' option for this buffer.
|
'readonly' option for this buffer.
|
||||||
|
|
||||||
|
@ -1870,6 +1870,8 @@ v:termresponse The escape sequence returned by the terminal for the DA
|
|||||||
|
|
||||||
*v:testing* *testing-variable*
|
*v:testing* *testing-variable*
|
||||||
v:testing Must be set before using `test_garbagecollect_now()`.
|
v:testing Must be set before using `test_garbagecollect_now()`.
|
||||||
|
Also, when set certain error messages won't be shown for 2
|
||||||
|
seconds. (e.g. "'dictionary' option is empty")
|
||||||
|
|
||||||
*v:this_session* *this_session-variable*
|
*v:this_session* *this_session-variable*
|
||||||
v:this_session Full filename of the last loaded or saved session file. See
|
v:this_session Full filename of the last loaded or saved session file. See
|
||||||
@ -3197,7 +3199,7 @@ execute({command} [, {silent}]) *execute()*
|
|||||||
"" no `:silent` used
|
"" no `:silent` used
|
||||||
"silent" `:silent` used
|
"silent" `:silent` used
|
||||||
"silent!" `:silent!` used
|
"silent!" `:silent!` used
|
||||||
The default is 'silent'. Note that with "silent!", unlike
|
The default is "silent". Note that with "silent!", unlike
|
||||||
`:redir`, error messages are dropped.
|
`:redir`, error messages are dropped.
|
||||||
|
|
||||||
To get a list of lines use |split()| on the result: >
|
To get a list of lines use |split()| on the result: >
|
||||||
@ -3775,10 +3777,10 @@ get({dict}, {key} [, {default}])
|
|||||||
get({func}, {what})
|
get({func}, {what})
|
||||||
Get item {what} from Funcref {func}. Possible values for
|
Get item {what} from Funcref {func}. Possible values for
|
||||||
{what} are:
|
{what} are:
|
||||||
'name' The function name
|
"name" The function name
|
||||||
'func' The function
|
"func" The function
|
||||||
'dict' The dictionary
|
"dict" The dictionary
|
||||||
'args' The list with arguments
|
"args" The list with arguments
|
||||||
|
|
||||||
*getbufinfo()*
|
*getbufinfo()*
|
||||||
getbufinfo([{expr}])
|
getbufinfo([{expr}])
|
||||||
@ -7657,7 +7659,7 @@ taglist({expr}[, {filename}]) *taglist()*
|
|||||||
may appear, they give the name of the entity the tag is
|
may appear, they give the name of the entity the tag is
|
||||||
contained in.
|
contained in.
|
||||||
|
|
||||||
The ex-command 'cmd' can be either an ex search pattern, a
|
The ex-command "cmd" can be either an ex search pattern, a
|
||||||
line number or a line number followed by a byte number.
|
line number or a line number followed by a byte number.
|
||||||
|
|
||||||
If there are no matching tags, then an empty list is returned.
|
If there are no matching tags, then an empty list is returned.
|
||||||
|
@ -58,7 +58,7 @@ whichever is lower. These are empty or white lines and lines starting
|
|||||||
with a character in 'foldignore'. White space is skipped before checking for
|
with a character in 'foldignore'. White space is skipped before checking for
|
||||||
characters in 'foldignore'. For C use "#" to ignore preprocessor lines.
|
characters in 'foldignore'. For C use "#" to ignore preprocessor lines.
|
||||||
|
|
||||||
When you want to ignore lines in another way, use the 'expr' method. The
|
When you want to ignore lines in another way, use the "expr" method. The
|
||||||
|indent()| function can be used in 'foldexpr' to get the indent of a line.
|
|indent()| function can be used in 'foldexpr' to get the indent of a line.
|
||||||
|
|
||||||
|
|
||||||
@ -133,7 +133,7 @@ fold level. But note that foldlevel() may return -1 if the level is not known
|
|||||||
yet. And it returns the level at the start of the line, while a fold might
|
yet. And it returns the level at the start of the line, while a fold might
|
||||||
end in that line.
|
end in that line.
|
||||||
|
|
||||||
It may happened that folds are not updated properly. You can use |zx| or |zX|
|
It may happen that folds are not updated properly. You can use |zx| or |zX|
|
||||||
to force updating folds.
|
to force updating folds.
|
||||||
|
|
||||||
|
|
||||||
|
@ -305,7 +305,7 @@ the applicable Vim version. The last field specifies the last modification
|
|||||||
date of the file. Each field is separated by a tab.
|
date of the file. Each field is separated by a tab.
|
||||||
|
|
||||||
At the bottom of the help file, place a Vim modeline to set the 'textwidth'
|
At the bottom of the help file, place a Vim modeline to set the 'textwidth'
|
||||||
and 'tabstop' options and the 'filetype' to 'help'. Never set a global option
|
and 'tabstop' options and the 'filetype' to "help". Never set a global option
|
||||||
in such a modeline, that can have consequences undesired by whoever reads that
|
in such a modeline, that can have consequences undesired by whoever reads that
|
||||||
help.
|
help.
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ To see what version of Ruby you have: >
|
|||||||
|
|
||||||
*:rubyfile* *:rubyf*
|
*:rubyfile* *:rubyf*
|
||||||
:rubyf[ile] {file} Execute the Ruby script in {file}. This is the same as
|
:rubyf[ile] {file} Execute the Ruby script in {file}. This is the same as
|
||||||
":ruby load 'file'", but allows file name completion.
|
`:ruby load 'file'`, but allows file name completion.
|
||||||
|
|
||||||
Executing Ruby commands is not possible in the |sandbox|.
|
Executing Ruby commands is not possible in the |sandbox|.
|
||||||
|
|
||||||
|
@ -993,10 +993,12 @@ tag command action in Command-line editing mode ~
|
|||||||
|c_<CR>| <CR> execute entered command
|
|c_<CR>| <CR> execute entered command
|
||||||
|c_CTRL-M| CTRL-M same as <CR>
|
|c_CTRL-M| CTRL-M same as <CR>
|
||||||
|c_CTRL-N| CTRL-N after using 'wildchar' with multiple matches:
|
|c_CTRL-N| CTRL-N after using 'wildchar' with multiple matches:
|
||||||
go to next match, otherwise: same as <Down>
|
go to next match, otherwise: recall older
|
||||||
|
command-line from history.
|
||||||
CTRL-O not used
|
CTRL-O not used
|
||||||
|c_CTRL-P| CTRL-P after using 'wildchar' with multiple matches:
|
|c_CTRL-P| CTRL-P after using 'wildchar' with multiple matches:
|
||||||
go to previous match, otherwise: same as <Up>
|
go to previous match, otherwise: recall older
|
||||||
|
command-line from history.
|
||||||
|c_CTRL-Q| CTRL-Q same as CTRL-V, unless it's used for terminal
|
|c_CTRL-Q| CTRL-Q same as CTRL-V, unless it's used for terminal
|
||||||
control flow
|
control flow
|
||||||
|c_CTRL-R| CTRL-R {0-9a-z"%#*:= CTRL-F CTRL-P CTRL-W CTRL-A}
|
|c_CTRL-R| CTRL-R {0-9a-z"%#*:= CTRL-F CTRL-P CTRL-W CTRL-A}
|
||||||
|
@ -1077,7 +1077,7 @@ items:
|
|||||||
empty when non-zero this match will be added even when it is
|
empty when non-zero this match will be added even when it is
|
||||||
an empty string
|
an empty string
|
||||||
|
|
||||||
All of these except 'icase', 'dup' and 'empty' must be a string. If an item
|
All of these except "icase", "dup" and "empty" must be a string. If an item
|
||||||
does not meet these requirements then an error message is given and further
|
does not meet these requirements then an error message is given and further
|
||||||
items in the list are not used. You can mix string and Dictionary items in
|
items in the list are not used. You can mix string and Dictionary items in
|
||||||
the returned list.
|
the returned list.
|
||||||
|
@ -556,7 +556,8 @@ Upper and lowercase differences are ignored.
|
|||||||
|
|
||||||
*map-comments*
|
*map-comments*
|
||||||
It is not possible to put a comment after these commands, because the '"'
|
It is not possible to put a comment after these commands, because the '"'
|
||||||
character is considered to be part of the {lhs} or {rhs}.
|
character is considered to be part of the {lhs} or {rhs}. However, one can
|
||||||
|
use |", since this starts a new, empty command with a comment.
|
||||||
|
|
||||||
*map_bar* *map-bar*
|
*map_bar* *map-bar*
|
||||||
Since the '|' character is used to separate a map command from the next
|
Since the '|' character is used to separate a map command from the next
|
||||||
|
@ -172,6 +172,7 @@ Send an e-mail to the Vim maintainer <maintainer@vim.org>.
|
|||||||
special characters like "&" and "<Tab>" need to be
|
special characters like "&" and "<Tab>" need to be
|
||||||
included. Spaces and dots need to be escaped with a
|
included. Spaces and dots need to be escaped with a
|
||||||
backslash, just like in other |:menu| commands.
|
backslash, just like in other |:menu| commands.
|
||||||
|
Case in {english} is ignored.
|
||||||
|
|
||||||
See the $VIMRUNTIME/lang directory for examples.
|
See the $VIMRUNTIME/lang directory for examples.
|
||||||
|
|
||||||
|
@ -184,7 +184,7 @@ l or *l*
|
|||||||
|
|
||||||
*$* *<End>* *<kEnd>*
|
*$* *<End>* *<kEnd>*
|
||||||
$ or <End> To the end of the line. When a count is given also go
|
$ or <End> To the end of the line. When a count is given also go
|
||||||
[count - 1] lines downward |inclusive|.
|
[count - 1] lines downward. |inclusive| motion.
|
||||||
In Visual mode the cursor goes to just after the last
|
In Visual mode the cursor goes to just after the last
|
||||||
character in the line.
|
character in the line.
|
||||||
When 'virtualedit' is active, "$" may move the cursor
|
When 'virtualedit' is active, "$" may move the cursor
|
||||||
|
@ -959,8 +959,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
wildmode More matches in |cmdline-completion| available
|
wildmode More matches in |cmdline-completion| available
|
||||||
(depends on the 'wildmode' setting).
|
(depends on the 'wildmode' setting).
|
||||||
|
|
||||||
This is most useful, to fine tune when in insert mode the bell should
|
This is most useful to fine tune when in Insert mode the bell should
|
||||||
be rung. For normal mode and ex commands, the bell is often rung to
|
be rung. For Normal mode and Ex commands, the bell is often rung to
|
||||||
indicate that an error occurred. It can be silenced by adding the
|
indicate that an error occurred. It can be silenced by adding the
|
||||||
"error" keyword.
|
"error" keyword.
|
||||||
|
|
||||||
@ -3099,6 +3099,28 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
global
|
global
|
||||||
The builtin |highlight-groups| cannot be changed.
|
The builtin |highlight-groups| cannot be changed.
|
||||||
|
|
||||||
|
*'history'* *'hi'*
|
||||||
|
'history' 'hi' number (Vim default: 10000, Vi default: 0)
|
||||||
|
global
|
||||||
|
A history of ":" commands, and a history of previous search patterns
|
||||||
|
is remembered. This option decides how many entries may be stored in
|
||||||
|
each of these histories (see |cmdline-editing|).
|
||||||
|
The maximum value is 10000.
|
||||||
|
|
||||||
|
*'hkmap'* *'hk'* *'nohkmap'* *'nohk'*
|
||||||
|
'hkmap' 'hk' boolean (default off)
|
||||||
|
global
|
||||||
|
When on, the keyboard is mapped for the Hebrew character set.
|
||||||
|
Normally you would set 'allowrevins' and use CTRL-_ in insert mode to
|
||||||
|
toggle this option. See |rileft.txt|.
|
||||||
|
|
||||||
|
*'hkmapp'* *'hkp'* *'nohkmapp'* *'nohkp'*
|
||||||
|
'hkmapp' 'hkp' boolean (default off)
|
||||||
|
global
|
||||||
|
When on, phonetic keyboard mapping is used. 'hkmap' must also be on.
|
||||||
|
This is useful if you have a non-Hebrew keyboard.
|
||||||
|
See |rileft.txt|.
|
||||||
|
|
||||||
*'hlsearch'* *'hls'* *'nohlsearch'* *'nohls'*
|
*'hlsearch'* *'hls'* *'nohlsearch'* *'nohls'*
|
||||||
'hlsearch' 'hls' boolean (default on)
|
'hlsearch' 'hls' boolean (default on)
|
||||||
global
|
global
|
||||||
@ -3122,28 +3144,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
You can specify whether the highlight status is restored on startup
|
You can specify whether the highlight status is restored on startup
|
||||||
with the 'h' flag in 'shada' |shada-h|.
|
with the 'h' flag in 'shada' |shada-h|.
|
||||||
|
|
||||||
*'history'* *'hi'*
|
|
||||||
'history' 'hi' number (Vim default: 10000, Vi default: 0)
|
|
||||||
global
|
|
||||||
A history of ":" commands, and a history of previous search patterns
|
|
||||||
is remembered. This option decides how many entries may be stored in
|
|
||||||
each of these histories (see |cmdline-editing|).
|
|
||||||
The maximum value is 10000.
|
|
||||||
|
|
||||||
*'hkmap'* *'hk'* *'nohkmap'* *'nohk'*
|
|
||||||
'hkmap' 'hk' boolean (default off)
|
|
||||||
global
|
|
||||||
When on, the keyboard is mapped for the Hebrew character set.
|
|
||||||
Normally you would set 'allowrevins' and use CTRL-_ in insert mode to
|
|
||||||
toggle this option. See |rileft.txt|.
|
|
||||||
|
|
||||||
*'hkmapp'* *'hkp'* *'nohkmapp'* *'nohkp'*
|
|
||||||
'hkmapp' 'hkp' boolean (default off)
|
|
||||||
global
|
|
||||||
When on, phonetic keyboard mapping is used. 'hkmap' must also be on.
|
|
||||||
This is useful if you have a non-Hebrew keyboard.
|
|
||||||
See |rileft.txt|.
|
|
||||||
|
|
||||||
*'icon'* *'noicon'*
|
*'icon'* *'noicon'*
|
||||||
'icon' boolean (default off, on when title can be restored)
|
'icon' boolean (default off, on when title can be restored)
|
||||||
global
|
global
|
||||||
@ -5668,7 +5668,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
word. The expression must evaluate to a List of
|
word. The expression must evaluate to a List of
|
||||||
Lists, each with a suggestion and a score.
|
Lists, each with a suggestion and a score.
|
||||||
Example:
|
Example:
|
||||||
[['the', 33], ['that', 44]]
|
[['the', 33], ['that', 44]] ~
|
||||||
Set 'verbose' and use |z=| to see the scores that the
|
Set 'verbose' and use |z=| to see the scores that the
|
||||||
internal methods use. A lower score is better.
|
internal methods use. A lower score is better.
|
||||||
This may invoke |spellsuggest()| if you temporarily
|
This may invoke |spellsuggest()| if you temporarily
|
||||||
|
@ -853,10 +853,13 @@ $ At end of pattern or in front of "\|", "\)" or "\n" ('magic' on):
|
|||||||
\%V Match inside the Visual area. When Visual mode has already been
|
\%V Match inside the Visual area. When Visual mode has already been
|
||||||
stopped match in the area that |gv| would reselect.
|
stopped match in the area that |gv| would reselect.
|
||||||
This is a |/zero-width| match. To make sure the whole pattern is
|
This is a |/zero-width| match. To make sure the whole pattern is
|
||||||
inside the Visual area put it at the start and end of the pattern,
|
inside the Visual area put it at the start and just before the end of
|
||||||
e.g.: >
|
the pattern, e.g.: >
|
||||||
|
/\%Vfoo.*ba\%Vr
|
||||||
|
< This also works if only "foo bar" was Visually selected. This: >
|
||||||
/\%Vfoo.*bar\%V
|
/\%Vfoo.*bar\%V
|
||||||
< Only works for the current buffer.
|
< would match "foo bar" if the Visual selection continues after the "r".
|
||||||
|
Only works for the current buffer.
|
||||||
|
|
||||||
*/\%#* *cursor-position*
|
*/\%#* *cursor-position*
|
||||||
\%# Matches with the cursor position. Only works when matching in a
|
\%# Matches with the cursor position. Only works when matching in a
|
||||||
|
@ -32,10 +32,13 @@ The 'errorformat' option should be set to match the error messages from your
|
|||||||
compiler (see |errorformat| below).
|
compiler (see |errorformat| below).
|
||||||
|
|
||||||
*location-list* *E776*
|
*location-list* *E776*
|
||||||
A location list is similar to a quickfix list and contains a list of positions
|
A location list is a window-local quickfix list. You get one after commands
|
||||||
in files. A location list is associated with a window and each window can
|
like `:lvimgrep`, `:lgrep`, `:lhelpgrep`, `:lmake`, etc., which create a
|
||||||
have a separate location list. A location list can be associated with only
|
location list instead of a quickfix list as the corresponding `:vimgrep`,
|
||||||
one window. The location list is independent of the quickfix list.
|
`:grep`, `:helpgrep`, `:make` do.
|
||||||
|
A location list is associated with a window and each window can have a
|
||||||
|
separate location list. A location list can be associated with only one
|
||||||
|
window. The location list is independent of the quickfix list.
|
||||||
|
|
||||||
When a window with a location list is split, the new window gets a copy of the
|
When a window with a location list is split, the new window gets a copy of the
|
||||||
location list. When there are no longer any references to a location list,
|
location list. When there are no longer any references to a location list,
|
||||||
@ -1362,7 +1365,7 @@ prints information about entering a directory in the form "Making all in dir".
|
|||||||
Making all in dir2 ./dir1/dir2
|
Making all in dir2 ./dir1/dir2
|
||||||
|
|
||||||
This can be solved by printing absolute directories in the "enter directory"
|
This can be solved by printing absolute directories in the "enter directory"
|
||||||
message or by printing "leave directory" messages..
|
message or by printing "leave directory" messages.
|
||||||
|
|
||||||
To avoid this problem, ensure to print absolute directory names and "leave
|
To avoid this problem, ensure to print absolute directory names and "leave
|
||||||
directory" messages.
|
directory" messages.
|
||||||
|
@ -211,7 +211,7 @@ past its buffer's limits.
|
|||||||
However, if a 'scrollbind' window that has a relative offset that is past its
|
However, if a 'scrollbind' window that has a relative offset that is past its
|
||||||
buffer's limits is given the cursor focus, the other 'scrollbind' windows must
|
buffer's limits is given the cursor focus, the other 'scrollbind' windows must
|
||||||
jump to a location where the current window's relative offset is valid. This
|
jump to a location where the current window's relative offset is valid. This
|
||||||
behavior can be changed by clearing the 'jump' flag from the 'scrollopt'
|
behavior can be changed by clearing the "jump" flag from the 'scrollopt'
|
||||||
option.
|
option.
|
||||||
|
|
||||||
*syncbind* *:syncbind* *:sync*
|
*syncbind* *:syncbind* *:sync*
|
||||||
|
@ -2616,9 +2616,9 @@ later, and part earlier) adds.
|
|||||||
|
|
||||||
RESTRUCTURED TEXT *rst.vim* *ft-rst-syntax*
|
RESTRUCTURED TEXT *rst.vim* *ft-rst-syntax*
|
||||||
|
|
||||||
You may set what syntax definitions should be used for code blocks via
|
You may set what syntax definitions should be used for code blocks via >
|
||||||
let rst_syntax_code_list = ['vim', 'lisp', ...]
|
let rst_syntax_code_list = ['vim', 'lisp', ...]
|
||||||
|
<
|
||||||
|
|
||||||
REXX *rexx.vim* *ft-rexx-syntax*
|
REXX *rexx.vim* *ft-rexx-syntax*
|
||||||
|
|
||||||
|
@ -543,7 +543,7 @@ Summary: *help-summary* >
|
|||||||
8) Ex-commands always start with ":", so to go to the :s command help: >
|
8) Ex-commands always start with ":", so to go to the :s command help: >
|
||||||
:help :s
|
:help :s
|
||||||
|
|
||||||
9) Commands specifically for debugging start with ">". To go to to the help
|
9) Commands specifically for debugging start with ">". To go to the help
|
||||||
for the "cont" debug command: >
|
for the "cont" debug command: >
|
||||||
:help >cont
|
:help >cont
|
||||||
|
|
||||||
@ -652,7 +652,7 @@ Summary: *help-summary* >
|
|||||||
22) Autocommand events can be found by their name: >
|
22) Autocommand events can be found by their name: >
|
||||||
:help BufWinLeave
|
:help BufWinLeave
|
||||||
< To see all possible events: >
|
< To see all possible events: >
|
||||||
:help autocommands-events
|
:help autocommand-events
|
||||||
|
|
||||||
23) Command-line switches always start with "-". So for the help of the -f
|
23) Command-line switches always start with "-". So for the help of the -f
|
||||||
command switch of Vim use: >
|
command switch of Vim use: >
|
||||||
|
@ -95,7 +95,7 @@ Then there is the ":let i += 1" command. This does the same thing as
|
|||||||
to the same variable.
|
to the same variable.
|
||||||
|
|
||||||
The example was given to explain the commands, but would you really want to
|
The example was given to explain the commands, but would you really want to
|
||||||
make such a loop it can be written much more compact: >
|
make such a loop, it can be written much more compact: >
|
||||||
|
|
||||||
:for i in range(1, 4)
|
:for i in range(1, 4)
|
||||||
: echo "count is" i
|
: echo "count is" i
|
||||||
@ -692,6 +692,7 @@ Other computation: *bitwise-function*
|
|||||||
Variables: *var-functions*
|
Variables: *var-functions*
|
||||||
type() type of a variable
|
type() type of a variable
|
||||||
islocked() check if a variable is locked
|
islocked() check if a variable is locked
|
||||||
|
funcref() get a Funcref for a function reference
|
||||||
function() get a Funcref for a function name
|
function() get a Funcref for a function name
|
||||||
getbufvar() get a variable value from a specific buffer
|
getbufvar() get a variable value from a specific buffer
|
||||||
setbufvar() set a variable in a specific buffer
|
setbufvar() set a variable in a specific buffer
|
||||||
@ -883,6 +884,7 @@ GUI: *gui-functions*
|
|||||||
getfontname() get name of current font being used
|
getfontname() get name of current font being used
|
||||||
getwinposx() X position of the GUI Vim window
|
getwinposx() X position of the GUI Vim window
|
||||||
getwinposy() Y position of the GUI Vim window
|
getwinposy() Y position of the GUI Vim window
|
||||||
|
balloon_show() set the balloon content
|
||||||
|
|
||||||
Vim server: *server-functions*
|
Vim server: *server-functions*
|
||||||
serverlist() return the list of server names
|
serverlist() return the list of server names
|
||||||
@ -1541,7 +1543,7 @@ WHITE SPACE
|
|||||||
Blank lines are allowed and ignored.
|
Blank lines are allowed and ignored.
|
||||||
|
|
||||||
Leading whitespace characters (blanks and TABs) are always ignored. The
|
Leading whitespace characters (blanks and TABs) are always ignored. The
|
||||||
whitespaces between parameters (e.g. between the 'set' and the 'cpoptions' in
|
whitespaces between parameters (e.g. between the "set" and the "cpoptions" in
|
||||||
the example below) are reduced to one blank character and plays the role of a
|
the example below) are reduced to one blank character and plays the role of a
|
||||||
separator, the whitespaces after the last (visible) character may or may not
|
separator, the whitespaces after the last (visible) character may or may not
|
||||||
be ignored depending on the situation, see below.
|
be ignored depending on the situation, see below.
|
||||||
|
@ -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: 2017 Jan 06
|
" Last Change: 2017 Mar 13
|
||||||
|
|
||||||
" 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")
|
||||||
@ -1362,6 +1362,9 @@ endfunc
|
|||||||
" Not Quite C
|
" Not Quite C
|
||||||
au BufNewFile,BufRead *.nqc setf nqc
|
au BufNewFile,BufRead *.nqc setf nqc
|
||||||
|
|
||||||
|
" NSE - Nmap Script Engine - uses Lua syntax
|
||||||
|
au BufNewFile,BufRead *.nse setf lua
|
||||||
|
|
||||||
" NSIS
|
" NSIS
|
||||||
au BufNewFile,BufRead *.nsi,*.nsh setf nsis
|
au BufNewFile,BufRead *.nsi,*.nsh setf nsis
|
||||||
|
|
||||||
@ -2276,6 +2279,9 @@ au BufNewFile,BufRead .tidyrc,tidyrc setf tidy
|
|||||||
" TF mud client
|
" TF mud client
|
||||||
au BufNewFile,BufRead *.tf,.tfrc,tfrc setf tf
|
au BufNewFile,BufRead *.tf,.tfrc,tfrc setf tf
|
||||||
|
|
||||||
|
" tmux configuration
|
||||||
|
au BufNewFile,BufRead {.,}tmux*.conf setf tmux
|
||||||
|
|
||||||
" TPP - Text Presentation Program
|
" TPP - Text Presentation Program
|
||||||
au BufNewFile,BufReadPost *.tpp setf tpp
|
au BufNewFile,BufReadPost *.tpp setf tpp
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: a2ps(1) configuration file
|
" Language: a2ps(1) configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: alsaconf(8) configuration file
|
" Language: alsaconf(8) configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: GNU Arch inventory file
|
" Language: GNU Arch inventory file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: Automake
|
" Language: Automake
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: BDF font definition
|
" Language: BDF font definition
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: calendar(1) input file
|
" Language: calendar(1) input file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2007-12-04
|
" Latest Revision: 2007-12-04
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: generic configuration file
|
" Language: generic configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: CRM114
|
" Language: CRM114
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: CSS
|
" Language: CSS
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: cvs(1) RC file
|
" Language: cvs(1) RC file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2007-12-04
|
" Latest Revision: 2007-12-04
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: dict(1) configuration file
|
" Language: dict(1) configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: dictd(8) configuration file
|
" Language: dictd(8) configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: dircolors(1) input file
|
" Language: dircolors(1) input file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: Configuration File (ini file) for MSDOS/MS Windows
|
" Language: Configuration File (ini file) for MSDOS/MS Windows
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: elinks(1) configuration file
|
" Language: elinks(1) configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: eterm(1) configuration file
|
" Language: eterm(1) configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: fetchmail(1) RC File
|
" Language: fetchmail(1) RC File
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim ftplugin file
|
" Vim ftplugin file
|
||||||
" Language: FrameScript
|
" Language: FrameScript
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-19
|
" Latest Revision: 2008-07-19
|
||||||
|
|
||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: gpg(1) configuration file
|
" Language: gpg(1) configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: group(5) user group file
|
" Language: group(5) user group file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: grub(8) configuration file
|
" Language: grub(8) configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
" Vim filetype plugin
|
" Vim filetype plugin
|
||||||
" Language: Hamster Script
|
" Language: Hamster Script
|
||||||
" Version: 2.0.6.0
|
" Version: 2.0.6.0
|
||||||
" Maintainer: David Fishburn <fishburn@ianywhere.com>
|
" Maintainer: David Fishburn <dfishburn dot vim at gmail dot com>
|
||||||
" Last Change: Wed Nov 08 2006 12:03:09 PM
|
" Last Change: 2017 Mar 07
|
||||||
|
|
||||||
" 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")
|
||||||
@ -13,6 +13,7 @@ endif
|
|||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
|
set cpo&vim
|
||||||
set cpo-=C
|
set cpo-=C
|
||||||
|
|
||||||
let b:undo_ftplugin = "setl fo< com< tw< commentstring<"
|
let b:undo_ftplugin = "setl fo< com< tw< commentstring<"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: Haskell
|
" Language: Haskell
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: Vim help file
|
" Language: Vim help file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2007-12-04
|
" Latest Revision: 2007-12-04
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: hosts_access(5) control file
|
" Language: hosts_access(5) control file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: indent(1) configuration file
|
" Language: indent(1) configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: ld(1) script
|
" Language: ld(1) script
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: lftp(1) configuration file
|
" Language: lftp(1) configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: libao.conf(5) configuration file
|
" Language: libao.conf(5) configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: limits(5) configuration file
|
" Language: limits(5) configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: login.access(5) configuration file
|
" Language: login.access(5) configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: login.defs(5) configuration file
|
" Language: login.defs(5) configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: m4
|
" Language: m4
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: Mailcap configuration file
|
" Language: Mailcap configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: man.conf(5) - man configuration file
|
" Language: man.conf(5) - man configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: modules.conf(5) configuration file
|
" Language: modules.conf(5) configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: mplayer(1) configuration file
|
" Language: mplayer(1) configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: mutt RC File
|
" Language: mutt RC File
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2006-04-19
|
" Latest Revision: 2006-04-19
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: nanorc(5) - GNU nano configuration file
|
" Language: nanorc(5) - GNU nano configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: netrc(5) configuration file
|
" Language: netrc(5) configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim ftplugin file
|
" Vim ftplugin file
|
||||||
" Language: NSIS script
|
" Language: NSIS script
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
let s:cpo_save = &cpo
|
let s:cpo_save = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: pam(8) configuration file
|
" Language: pam(8) configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: passwd(5) password file
|
" Language: passwd(5) password file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: pinfo(1) configuration file
|
" Language: pinfo(1) configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: procmail(1) configuration file
|
" Language: procmail(1) configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: Prolog
|
" Language: Prolog
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: protocols(5) - Internet protocols definition file
|
" Language: protocols(5) - Internet protocols definition file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: Quake[1-3] configuration file
|
" Language: Quake[1-3] configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: Racc input file
|
" Language: Racc input file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: readline(3) configuration file
|
" Language: readline(3) configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: Relax NG compact syntax
|
" Language: Relax NG compact syntax
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: reStructuredText documentation format
|
" Language: reStructuredText documentation format
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: screen(1) configuration file
|
" Language: screen(1) configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: sensors.conf(5) - libsensors configuration file
|
" Language: sensors.conf(5) - libsensors configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: services(5) - Internet network services list
|
" Language: services(5) - Internet network services list
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: setserial(8) configuration file
|
" Language: setserial(8) configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: Sieve filtering language input file
|
" Language: Sieve filtering language input file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: RFC 2614 - An API for Service Location configuration file
|
" Language: RFC 2614 - An API for Service Location configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: RFC 2614 - An API for Service Location registration file
|
" Language: RFC 2614 - An API for Service Location registration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: RFC 2614 - An API for Service Location SPI file
|
" Language: RFC 2614 - An API for Service Location SPI file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
" SQL filetype plugin file
|
" SQL filetype plugin file
|
||||||
" Language: SQL (Common for Oracle, Microsoft SQL Server, Sybase)
|
" Language: SQL (Common for Oracle, Microsoft SQL Server, Sybase)
|
||||||
" Version: 11.0
|
" Version: 12.0
|
||||||
" Maintainer: David Fishburn <dfishburn dot vim at gmail dot com>
|
" Maintainer: David Fishburn <dfishburn dot vim at gmail dot com>
|
||||||
" Last Change: 2013 May 13
|
" Last Change: 2017 Mar 07
|
||||||
" Download: http://vim.sourceforge.net/script.php?script_id=454
|
" Download: http://vim.sourceforge.net/script.php?script_id=454
|
||||||
|
|
||||||
" For more details please use:
|
" For more details please use:
|
||||||
@ -36,6 +36,14 @@
|
|||||||
"
|
"
|
||||||
" History
|
" History
|
||||||
"
|
"
|
||||||
|
" Version 12.0 (April 2013)
|
||||||
|
"
|
||||||
|
" NF: Added support for "BEGIN TRY ... END TRY ... BEGIN CATCH ... END CATCH
|
||||||
|
" BF: This plugin is designed to be used with other plugins to enable the
|
||||||
|
" SQL completion with Perl, Python, Java, ... The loading mechanism
|
||||||
|
" was not checking if the SQL objects were created, which can lead to
|
||||||
|
" the plugin not loading the SQL support.
|
||||||
|
"
|
||||||
" Version 11.0 (May 2013)
|
" Version 11.0 (May 2013)
|
||||||
"
|
"
|
||||||
" NF: Updated to use SyntaxComplete's new regex support for syntax groups.
|
" NF: Updated to use SyntaxComplete's new regex support for syntax groups.
|
||||||
@ -80,15 +88,17 @@
|
|||||||
|
|
||||||
|
|
||||||
" 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")
|
" This ftplugin can be used with other ftplugins. So ensure loading
|
||||||
finish
|
" happens if all elements of this plugin have not yet loaded.
|
||||||
|
if exists("b:did_ftplugin") && exists("b:current_ftplugin") && b:current_ftplugin == 'sql'
|
||||||
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
" Disable autowrapping for code, but enable for comments
|
" Disable autowrapping for code, but enable for comments
|
||||||
" t Auto-wrap text using textwidth
|
" t Auto-wrap text using textwidth
|
||||||
" c Auto-wrap comments using textwidth, inserting the current comment
|
" c Auto-wrap comments using textwidth, inserting the current comment
|
||||||
" leader automatically.
|
" leader automatically.
|
||||||
setlocal formatoptions-=t
|
setlocal formatoptions-=t
|
||||||
@ -171,6 +181,9 @@ if !exists("*SQL_SetType")
|
|||||||
if exists("b:current_syntax")
|
if exists("b:current_syntax")
|
||||||
" echomsg 'SQLSetType - clearing syntax'
|
" echomsg 'SQLSetType - clearing syntax'
|
||||||
syntax clear
|
syntax clear
|
||||||
|
if exists("b:current_syntax")
|
||||||
|
unlet b:current_syntax
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
if exists("b:did_indent")
|
if exists("b:did_indent")
|
||||||
" echomsg 'SQLSetType - clearing indent'
|
" echomsg 'SQLSetType - clearing indent'
|
||||||
@ -187,7 +200,7 @@ if !exists("*SQL_SetType")
|
|||||||
" Do not specify a buffer local variable if it is
|
" Do not specify a buffer local variable if it is
|
||||||
" the default value
|
" the default value
|
||||||
if new_sql_type == 'sql'
|
if new_sql_type == 'sql'
|
||||||
let new_sql_type = 'sqloracle'
|
let new_sql_type = 'sqloracle'
|
||||||
endif
|
endif
|
||||||
let b:sql_type_override = new_sql_type
|
let b:sql_type_override = new_sql_type
|
||||||
|
|
||||||
@ -234,25 +247,26 @@ if exists("b:sql_type_override")
|
|||||||
" echo 'sourcing buffer ftplugin/'.b:sql_type_override.'.vim'
|
" echo 'sourcing buffer ftplugin/'.b:sql_type_override.'.vim'
|
||||||
if globpath(&runtimepath, 'ftplugin/'.b:sql_type_override.'.vim') != ''
|
if globpath(&runtimepath, 'ftplugin/'.b:sql_type_override.'.vim') != ''
|
||||||
exec 'runtime ftplugin/'.b:sql_type_override.'.vim'
|
exec 'runtime ftplugin/'.b:sql_type_override.'.vim'
|
||||||
" else
|
" else
|
||||||
" echomsg 'ftplugin/'.b:sql_type_override.' not exist, using default'
|
" echomsg 'ftplugin/'.b:sql_type_override.' not exist, using default'
|
||||||
endif
|
endif
|
||||||
elseif exists("g:sql_type_default")
|
elseif exists("g:sql_type_default")
|
||||||
" echo 'sourcing global ftplugin/'.g:sql_type_default.'.vim'
|
" echo 'sourcing global ftplugin/'.g:sql_type_default.'.vim'
|
||||||
if globpath(&runtimepath, 'ftplugin/'.g:sql_type_default.'.vim') != ''
|
if globpath(&runtimepath, 'ftplugin/'.g:sql_type_default.'.vim') != ''
|
||||||
exec 'runtime ftplugin/'.g:sql_type_default.'.vim'
|
exec 'runtime ftplugin/'.g:sql_type_default.'.vim'
|
||||||
" else
|
" else
|
||||||
" echomsg 'ftplugin/'.g:sql_type_default.'.vim not exist, using default'
|
" echomsg 'ftplugin/'.g:sql_type_default.'.vim not exist, using default'
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" If the above runtime command succeeded, do not load the default settings
|
" If the above runtime command succeeded, do not load the default settings
|
||||||
if exists("b:did_ftplugin")
|
" as they should have already been loaded from a previous run.
|
||||||
finish
|
if exists("b:did_ftplugin") && exists("b:current_ftplugin") && b:current_ftplugin == 'sql'
|
||||||
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let b:undo_ftplugin = "setl comments< formatoptions< define< omnifunc<" .
|
let b:undo_ftplugin = "setl comments< formatoptions< define< omnifunc<" .
|
||||||
\ " | unlet! b:browsefilter b:match_words"
|
\ " | unlet! b:browsefilter b:match_words"
|
||||||
|
|
||||||
" Don't load another plugin for this buffer
|
" Don't load another plugin for this buffer
|
||||||
let b:did_ftplugin = 1
|
let b:did_ftplugin = 1
|
||||||
@ -261,7 +275,7 @@ let b:current_ftplugin = 'sql'
|
|||||||
" Win32 can filter files in the browse dialog
|
" Win32 can filter files in the browse dialog
|
||||||
if has("gui_win32") && !exists("b:browsefilter")
|
if has("gui_win32") && !exists("b:browsefilter")
|
||||||
let b:browsefilter = "SQL Files (*.sql)\t*.sql\n" .
|
let b:browsefilter = "SQL Files (*.sql)\t*.sql\n" .
|
||||||
\ "All Files (*.*)\t*.*\n"
|
\ "All Files (*.*)\t*.*\n"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Some standard expressions for use with the matchit strings
|
" Some standard expressions for use with the matchit strings
|
||||||
@ -312,14 +326,24 @@ if !exists("b:match_words")
|
|||||||
" WHEN column_not_found THEN
|
" WHEN column_not_found THEN
|
||||||
" WHEN OTHERS THEN
|
" WHEN OTHERS THEN
|
||||||
"
|
"
|
||||||
|
" begin try
|
||||||
|
" end try
|
||||||
|
" begin catch
|
||||||
|
" end catch
|
||||||
|
"
|
||||||
" create[ or replace] procedure|function|event
|
" create[ or replace] procedure|function|event
|
||||||
" \ '^\s*\<\%(do\|for\|while\|loop\)\>.*:'.
|
" \ '^\s*\<\%(do\|for\|while\|loop\)\>.*:'.
|
||||||
|
|
||||||
" For ColdFusion support
|
" For ColdFusion support
|
||||||
setlocal matchpairs+=<:>
|
setlocal matchpairs+=<:>
|
||||||
let b:match_words = &matchpairs .
|
let b:match_words = &matchpairs .
|
||||||
\ ',\<begin\>:\<end\>\W*$,'.
|
\ ',\%(\<begin\)\%(\s\+\%(try\|catch\)\>\)\@!:\<end\>\W*$,'.
|
||||||
\
|
\
|
||||||
|
\ '\<begin\s\+try\>:'.
|
||||||
|
\ '\<end\s\+try\>:'.
|
||||||
|
\ '\<begin\s\+catch\>:'.
|
||||||
|
\ '\<end\s\+catch\>,'.
|
||||||
|
\
|
||||||
\ s:notend . '\<if\>:'.
|
\ s:notend . '\<if\>:'.
|
||||||
\ '\<elsif\>\|\<elseif\>\|\<else\>:'.
|
\ '\<elsif\>\|\<elseif\>\|\<else\>:'.
|
||||||
\ '\<end\s\+if\>,'.
|
\ '\<end\s\+if\>,'.
|
||||||
@ -339,14 +363,14 @@ if !exists("b:match_words")
|
|||||||
\ '\%(\<create\s\+' . s:or_replace . '\)\?'.
|
\ '\%(\<create\s\+' . s:or_replace . '\)\?'.
|
||||||
\ '\%(function\|procedure\|event\):'.
|
\ '\%(function\|procedure\|event\):'.
|
||||||
\ '\<returns\?\>'
|
\ '\<returns\?\>'
|
||||||
" \ '\<begin\>\|\<returns\?\>:'.
|
" \ '\<begin\>\|\<returns\?\>:'.
|
||||||
" \ '\<end\>\(;\)\?\s*$'
|
" \ '\<end\>\(;\)\?\s*$'
|
||||||
" \ '\<exception\>:'.s:when_no_matched_or_others.
|
" \ '\<exception\>:'.s:when_no_matched_or_others.
|
||||||
" \ ':\<when\s\+others\>,'.
|
" \ ':\<when\s\+others\>,'.
|
||||||
"
|
"
|
||||||
" \ '\%(\<exception\>\|\%('. s:notend . '\<case\>\)\):'.
|
" \ '\%(\<exception\>\|\%('. s:notend . '\<case\>\)\):'.
|
||||||
" \ '\%(\<default\>\|'.s:when_no_matched_or_others.'\):'.
|
" \ '\%(\<default\>\|'.s:when_no_matched_or_others.'\):'.
|
||||||
" \ '\%(\%(\<when\s\+others\>\)\|\<end\s\+case\>\),' .
|
" \ '\%(\%(\<when\s\+others\>\)\|\<end\s\+case\>\),' .
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Define how to find the macro definition of a variable using the various
|
" Define how to find the macro definition of a variable using the various
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: OpenSSH client configuration file
|
" Language: OpenSSH client configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: sudoers(5) configuration files
|
" Language: sudoers(5) configuration files
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: sysctl.conf(5) configuration file
|
" Language: sysctl.conf(5) configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: terminfo(5) definition
|
" Language: terminfo(5) definition
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
12
runtime/ftplugin/tmux.vim
Normal file
12
runtime/ftplugin/tmux.vim
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
" Vim filetype plugin file
|
||||||
|
" Language: tmux(1) configuration file
|
||||||
|
" URL: https://github.com/ericpruitt/tmux.vim/
|
||||||
|
" Maintainer: Eric Pruitt <eric.pruitt@gmail.com>
|
||||||
|
" Last Changed: 2017 Mar 10
|
||||||
|
|
||||||
|
if exists("b:did_ftplugin")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let b:did_ftplugin = 1
|
||||||
|
|
||||||
|
setlocal commentstring=#\ %s
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: Treetop
|
" Language: Treetop
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2011-03-14
|
" Latest Revision: 2011-03-14
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: udev(8) configuration file
|
" Language: udev(8) configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: udev(8) permissions file
|
" Language: udev(8) permissions file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: udev(8) rules file
|
" Language: udev(8) rules file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: updatedb.conf(5) configuration file
|
" Language: updatedb.conf(5) configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: X resources files like ~/.Xdefaults (xrdb)
|
" Language: X resources files like ~/.Xdefaults (xrdb)
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: XFree86 Configuration File
|
" Language: XFree86 Configuration File
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: xinetd.conf(5) configuration file
|
" Language: xinetd.conf(5) configuration file
|
||||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2008-07-09
|
" Latest Revision: 2008-07-09
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user