mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
@ -1351,7 +1351,7 @@ have changed autocommands, or when Vim has executed the wrong autocommands
|
|||||||
Note that the 'eventignore' option applies here too. Events listed in this
|
Note that the 'eventignore' option applies here too. Events listed in this
|
||||||
option will not cause any commands to be executed.
|
option will not cause any commands to be executed.
|
||||||
|
|
||||||
*:do* *:doau* *:doautocmd* *E217*
|
*:do* *:doau* *:doaut* *:doautocmd* *E217*
|
||||||
:do[autocmd] [<nomodeline>] [group] {event} [fname]
|
:do[autocmd] [<nomodeline>] [group] {event} [fname]
|
||||||
Apply the autocommands matching [fname] (default:
|
Apply the autocommands matching [fname] (default:
|
||||||
current file name) for {event} to the current buffer.
|
current file name) for {event} to the current buffer.
|
||||||
|
@ -175,7 +175,7 @@ hidden buffers. You can use ":hide" to close a window without unloading the
|
|||||||
buffer. If you don't want a buffer to remain used for the diff do ":set
|
buffer. If you don't want a buffer to remain used for the diff do ":set
|
||||||
nodiff" before hiding it.
|
nodiff" before hiding it.
|
||||||
|
|
||||||
*:dif* *:diffupdate*
|
*:dif* *:diff* *:diffupdate*
|
||||||
:dif[fupdate][!] Update the diff highlighting and folds.
|
:dif[fupdate][!] Update the diff highlighting and folds.
|
||||||
|
|
||||||
Vim attempts to keep the differences updated when you make changes to the
|
Vim attempts to keep the differences updated when you make changes to the
|
||||||
|
@ -555,7 +555,7 @@ You can use the argument list with the following commands, and with the
|
|||||||
expression functions |argc()| and |argv()|. These all work on the argument
|
expression functions |argc()| and |argv()|. These all work on the argument
|
||||||
list of the current window.
|
list of the current window.
|
||||||
|
|
||||||
*:ar* *:args*
|
*:ar* *:arg* *:args*
|
||||||
:ar[gs] Print the argument list, with the current file in
|
:ar[gs] Print the argument list, with the current file in
|
||||||
square brackets.
|
square brackets.
|
||||||
|
|
||||||
|
@ -9750,7 +9750,7 @@ This does NOT work: >
|
|||||||
opposite of |:lockvar|.
|
opposite of |:lockvar|.
|
||||||
|
|
||||||
|
|
||||||
:if {expr1} *:if* *:endif* *:en* *E171* *E579* *E580*
|
:if {expr1} *:if* *:end* *:endif* *:en* *E171* *E579* *E580*
|
||||||
:en[dif] Execute the commands until the next matching ":else"
|
:en[dif] Execute the commands until the next matching ":else"
|
||||||
or ":endif" if {expr1} evaluates to non-zero.
|
or ":endif" if {expr1} evaluates to non-zero.
|
||||||
|
|
||||||
|
@ -436,7 +436,7 @@ zk Move upwards to the end of the previous fold. A closed fold
|
|||||||
|
|
||||||
EXECUTING COMMANDS ON FOLDS ~
|
EXECUTING COMMANDS ON FOLDS ~
|
||||||
|
|
||||||
:[range]foldd[oopen] {cmd} *:foldd* *:folddoopen*
|
:[range]foldd[oopen] {cmd} *:foldd* *:folddo* *:folddoopen*
|
||||||
Execute {cmd} on all lines that are not in a closed fold.
|
Execute {cmd} on all lines that are not in a closed fold.
|
||||||
When [range] is given, only these lines are used.
|
When [range] is given, only these lines are used.
|
||||||
Each time {cmd} is executed the cursor is positioned on the
|
Each time {cmd} is executed the cursor is positioned on the
|
||||||
|
@ -39,7 +39,7 @@ modes.
|
|||||||
:om[ap] {lhs} {rhs} |mapmode-o| *:om* *:omap*
|
:om[ap] {lhs} {rhs} |mapmode-o| *:om* *:omap*
|
||||||
:map! {lhs} {rhs} |mapmode-ic| *:map!*
|
:map! {lhs} {rhs} |mapmode-ic| *:map!*
|
||||||
:im[ap] {lhs} {rhs} |mapmode-i| *:im* *:imap*
|
:im[ap] {lhs} {rhs} |mapmode-i| *:im* *:imap*
|
||||||
:lm[ap] {lhs} {rhs} |mapmode-l| *:lm* *:lmap*
|
:lm[ap] {lhs} {rhs} |mapmode-l| *:lm* *:lma* *:lmap*
|
||||||
:cm[ap] {lhs} {rhs} |mapmode-c| *:cm* *:cmap*
|
:cm[ap] {lhs} {rhs} |mapmode-c| *:cm* *:cmap*
|
||||||
:tma[p] {lhs} {rhs} |mapmode-t| *:tma* *:tmap*
|
:tma[p] {lhs} {rhs} |mapmode-t| *:tma* *:tmap*
|
||||||
Map the key sequence {lhs} to {rhs} for the modes
|
Map the key sequence {lhs} to {rhs} for the modes
|
||||||
@ -52,12 +52,12 @@ modes.
|
|||||||
:nn[oremap] {lhs} {rhs} |mapmode-n| *:nn* *:nnoremap*
|
:nn[oremap] {lhs} {rhs} |mapmode-n| *:nn* *:nnoremap*
|
||||||
:vn[oremap] {lhs} {rhs} |mapmode-v| *:vn* *:vnoremap*
|
:vn[oremap] {lhs} {rhs} |mapmode-v| *:vn* *:vnoremap*
|
||||||
:xn[oremap] {lhs} {rhs} |mapmode-x| *:xn* *:xnoremap*
|
:xn[oremap] {lhs} {rhs} |mapmode-x| *:xn* *:xnoremap*
|
||||||
:snor[emap] {lhs} {rhs} |mapmode-s| *:snor* *:snoremap*
|
:snor[emap] {lhs} {rhs} |mapmode-s| *:snor* *:snore* *:snoremap*
|
||||||
:ono[remap] {lhs} {rhs} |mapmode-o| *:ono* *:onoremap*
|
:ono[remap] {lhs} {rhs} |mapmode-o| *:ono* *:onoremap*
|
||||||
:no[remap]! {lhs} {rhs} |mapmode-ic| *:no!* *:noremap!*
|
:no[remap]! {lhs} {rhs} |mapmode-ic| *:no!* *:noremap!*
|
||||||
:ino[remap] {lhs} {rhs} |mapmode-i| *:ino* *:inoremap*
|
:ino[remap] {lhs} {rhs} |mapmode-i| *:ino* *:inor* *:inoremap*
|
||||||
:ln[oremap] {lhs} {rhs} |mapmode-l| *:ln* *:lnoremap*
|
:ln[oremap] {lhs} {rhs} |mapmode-l| *:ln* *:lnoremap*
|
||||||
:cno[remap] {lhs} {rhs} |mapmode-c| *:cno* *:cnoremap*
|
:cno[remap] {lhs} {rhs} |mapmode-c| *:cno* *:cnor* *:cnoremap*
|
||||||
:tno[remap] {lhs} {rhs} |mapmode-t| *:tno* *:tnoremap*
|
:tno[remap] {lhs} {rhs} |mapmode-t| *:tno* *:tnoremap*
|
||||||
Map the key sequence {lhs} to {rhs} for the modes
|
Map the key sequence {lhs} to {rhs} for the modes
|
||||||
where the map command applies. Disallow mapping of
|
where the map command applies. Disallow mapping of
|
||||||
@ -74,7 +74,7 @@ modes.
|
|||||||
:unm[ap]! {lhs} |mapmode-ic| *:unm!* *:unmap!*
|
:unm[ap]! {lhs} |mapmode-ic| *:unm!* *:unmap!*
|
||||||
:iu[nmap] {lhs} |mapmode-i| *:iu* *:iunmap*
|
:iu[nmap] {lhs} |mapmode-i| *:iu* *:iunmap*
|
||||||
:lu[nmap] {lhs} |mapmode-l| *:lu* *:lunmap*
|
:lu[nmap] {lhs} |mapmode-l| *:lu* *:lunmap*
|
||||||
:cu[nmap] {lhs} |mapmode-c| *:cu* *:cunmap*
|
:cu[nmap] {lhs} |mapmode-c| *:cu* *:cun* *:cunmap*
|
||||||
:tunma[p] {lhs} |mapmode-t| *:tunma* *:tunmap*
|
:tunma[p] {lhs} |mapmode-t| *:tunma* *:tunmap*
|
||||||
Remove the mapping of {lhs} for the modes where the
|
Remove the mapping of {lhs} for the modes where the
|
||||||
map command applies. The mapping may remain defined
|
map command applies. The mapping may remain defined
|
||||||
@ -972,7 +972,7 @@ See |:verbose-cmd| for more information.
|
|||||||
:norea[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
|
:norea[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
|
||||||
same as ":ab", but no remapping for this {rhs}
|
same as ":ab", but no remapping for this {rhs}
|
||||||
|
|
||||||
*:ca* *:cabbrev*
|
*:ca* *:cab* *:cabbrev*
|
||||||
:ca[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
|
:ca[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
|
||||||
same as ":ab", but for Command-line mode only.
|
same as ":ab", but for Command-line mode only.
|
||||||
|
|
||||||
|
@ -924,7 +924,7 @@ These commands are not marks themselves, but jump to a mark:
|
|||||||
[` [count] times to lowercase mark before the cursor.
|
[` [count] times to lowercase mark before the cursor.
|
||||||
|
|
||||||
|
|
||||||
:loc[kmarks] {command} *:loc* *:lockmarks*
|
:loc[kmarks] {command} *:loc* *:lock* *:lockmarks*
|
||||||
Execute {command} without adjusting marks. This is
|
Execute {command} without adjusting marks. This is
|
||||||
useful when changing text in a way that the line count
|
useful when changing text in a way that the line count
|
||||||
will be the same when the change has completed.
|
will be the same when the change has completed.
|
||||||
@ -950,7 +950,7 @@ These commands are not marks themselves, but jump to a mark:
|
|||||||
- folds
|
- folds
|
||||||
- diffs
|
- diffs
|
||||||
|
|
||||||
:kee[pmarks] {command} *:kee* *:keepmarks*
|
:kee[pmarks] {command} *:kee* *:keep* *:keepmarks*
|
||||||
Currently only has effect for the filter command
|
Currently only has effect for the filter command
|
||||||
|:range!|:
|
|:range!|:
|
||||||
- When the number of lines after filtering is equal to
|
- When the number of lines after filtering is equal to
|
||||||
|
@ -87,7 +87,7 @@ processing a quickfix or location list command, it will be aborted.
|
|||||||
:ll[!] [nr] Same as ":cc", except the location list for the
|
:ll[!] [nr] Same as ":cc", except the location list for the
|
||||||
current window is used instead of the quickfix list.
|
current window is used instead of the quickfix list.
|
||||||
|
|
||||||
*:cn* *:cnext* *E553*
|
*:cn* *:cne* *:cnext* *E553*
|
||||||
:[count]cn[ext][!] Display the [count] next error in the list that
|
:[count]cn[ext][!] Display the [count] next error in the list that
|
||||||
includes a file name. If there are no file names at
|
includes a file name. If there are no file names at
|
||||||
all, go to the [count] next error. See |:cc| for
|
all, go to the [count] next error. See |:cc| for
|
||||||
@ -177,7 +177,7 @@ processing a quickfix or location list command, it will be aborted.
|
|||||||
'encoding' option, you can use the 'makeencoding'
|
'encoding' option, you can use the 'makeencoding'
|
||||||
option to specify the encoding.
|
option to specify the encoding.
|
||||||
|
|
||||||
*:lf* *:lfile*
|
*:lf* *:lfi* *:lfile*
|
||||||
:lf[ile][!] [errorfile] Same as ":cfile", except the location list for the
|
:lf[ile][!] [errorfile] Same as ":cfile", except the location list for the
|
||||||
current window is used instead of the quickfix list.
|
current window is used instead of the quickfix list.
|
||||||
You can not use the -q command-line option to set
|
You can not use the -q command-line option to set
|
||||||
@ -192,7 +192,7 @@ processing a quickfix or location list command, it will be aborted.
|
|||||||
option to specify the encoding.
|
option to specify the encoding.
|
||||||
|
|
||||||
|
|
||||||
:lg[etfile] [errorfile] *:lg* *:lgetfile*
|
:lg[etfile] [errorfile] *:lg* *:lge* *:lgetfile*
|
||||||
Same as ":cgetfile", except the location list for the
|
Same as ":cgetfile", except the location list for the
|
||||||
current window is used instead of the quickfix list.
|
current window is used instead of the quickfix list.
|
||||||
|
|
||||||
@ -230,7 +230,7 @@ processing a quickfix or location list command, it will be aborted.
|
|||||||
the current window is used instead of the quickfix
|
the current window is used instead of the quickfix
|
||||||
list.
|
list.
|
||||||
|
|
||||||
*:cad* *:caddbuffer*
|
*:cad* *:cadd* *:caddbuffer*
|
||||||
:cad[dbuffer] [bufnr] Read the error list from the current buffer and add
|
:cad[dbuffer] [bufnr] Read the error list from the current buffer and add
|
||||||
the errors to the current quickfix list. If a
|
the errors to the current quickfix list. If a
|
||||||
quickfix list is not present, then a new list is
|
quickfix list is not present, then a new list is
|
||||||
@ -277,7 +277,7 @@ processing a quickfix or location list command, it will be aborted.
|
|||||||
Example: >
|
Example: >
|
||||||
:g/mypattern/caddexpr expand("%") . ":" . line(".") . ":" . getline(".")
|
:g/mypattern/caddexpr expand("%") . ":" . line(".") . ":" . getline(".")
|
||||||
<
|
<
|
||||||
*:lad* *:laddexpr*
|
*:lad* *:addd* *:laddexpr*
|
||||||
:lad[dexpr] {expr} Same as ":caddexpr", except the location list for the
|
:lad[dexpr] {expr} Same as ":caddexpr", except the location list for the
|
||||||
current window is used instead of the quickfix list.
|
current window is used instead of the quickfix list.
|
||||||
|
|
||||||
|
@ -731,7 +731,7 @@ vimrc file.
|
|||||||
options to [file] (default ".exrc" in the current
|
options to [file] (default ".exrc" in the current
|
||||||
directory).
|
directory).
|
||||||
|
|
||||||
*:mkv* *:mkvimrc*
|
*:mkv* *:mkvi* *:mkvimrc*
|
||||||
:mkv[imrc][!] [file] Like ":mkexrc", but the default is ".nvimrc" in the
|
:mkv[imrc][!] [file] Like ":mkexrc", but the default is ".nvimrc" in the
|
||||||
current directory. The ":version" command is also
|
current directory. The ":version" command is also
|
||||||
written to the file.
|
written to the file.
|
||||||
|
@ -5124,6 +5124,15 @@ load the syntax file.
|
|||||||
The command also deletes the "b:current_syntax" variable, since no syntax is
|
The command also deletes the "b:current_syntax" variable, since no syntax is
|
||||||
loaded after this command.
|
loaded after this command.
|
||||||
|
|
||||||
|
To clean up specific syntax groups for the current buffer: >
|
||||||
|
:syntax clear {group-name} ..
|
||||||
|
This removes all patterns and keywords for {group-name}.
|
||||||
|
|
||||||
|
To clean up specific syntax group lists for the current buffer: >
|
||||||
|
:syntax clear @{grouplist-name} ..
|
||||||
|
This sets {grouplist-name}'s contents to an empty list.
|
||||||
|
|
||||||
|
*:syntax-off* *:syn-off*
|
||||||
If you want to disable syntax highlighting for all buffers, you need to remove
|
If you want to disable syntax highlighting for all buffers, you need to remove
|
||||||
the autocommands that load the syntax files: >
|
the autocommands that load the syntax files: >
|
||||||
:syntax off
|
:syntax off
|
||||||
@ -5133,14 +5142,6 @@ What this command actually does, is executing the command >
|
|||||||
See the "nosyntax.vim" file for details. Note that for this to work
|
See the "nosyntax.vim" file for details. Note that for this to work
|
||||||
$VIMRUNTIME must be valid. See |$VIMRUNTIME|.
|
$VIMRUNTIME must be valid. See |$VIMRUNTIME|.
|
||||||
|
|
||||||
To clean up specific syntax groups for the current buffer: >
|
|
||||||
:syntax clear {group-name} ..
|
|
||||||
This removes all patterns and keywords for {group-name}.
|
|
||||||
|
|
||||||
To clean up specific syntax group lists for the current buffer: >
|
|
||||||
:syntax clear @{grouplist-name} ..
|
|
||||||
This sets {grouplist-name}'s contents to an empty list.
|
|
||||||
|
|
||||||
*:syntax-reset* *:syn-reset*
|
*:syntax-reset* *:syn-reset*
|
||||||
If you have changed the colors and messed them up, use this command to get the
|
If you have changed the colors and messed them up, use this command to get the
|
||||||
defaults back: >
|
defaults back: >
|
||||||
|
@ -802,7 +802,7 @@ CTRL-W d Open a new window, with the cursor on the first
|
|||||||
(default: whole file).
|
(default: whole file).
|
||||||
See |:search-args| for [/] and [!].
|
See |:search-args| for [/] and [!].
|
||||||
|
|
||||||
*:che* *:checkpath*
|
*:che* *:chec* *:check* *:checkpath*
|
||||||
:che[ckpath] List all the included files that could not be found.
|
:che[ckpath] List all the included files that could not be found.
|
||||||
|
|
||||||
:che[ckpath]! List all the included files.
|
:che[ckpath]! List all the included files.
|
||||||
|
@ -193,13 +193,12 @@ too slow, you might want to disable syntax highlighting for a moment: >
|
|||||||
|
|
||||||
When editing another file (or the same one) the colors will come back.
|
When editing another file (or the same one) the colors will come back.
|
||||||
|
|
||||||
*:syn-off*
|
|
||||||
If you want to stop highlighting completely use: >
|
If you want to stop highlighting completely use: >
|
||||||
|
|
||||||
:syntax off
|
:syntax off
|
||||||
|
|
||||||
This will completely disable syntax highlighting and remove it immediately for
|
This will completely disable syntax highlighting and remove it immediately for
|
||||||
all buffers.
|
all buffers. See |:syntax-off| for more details.
|
||||||
|
|
||||||
*:syn-manual*
|
*:syn-manual*
|
||||||
If you want syntax highlighting only for specific files, use this: >
|
If you want syntax highlighting only for specific files, use this: >
|
||||||
|
@ -283,7 +283,7 @@ g8 Print the hex values of the bytes used in the
|
|||||||
*:!!*
|
*:!!*
|
||||||
:!! Repeat last ":!{cmd}".
|
:!! Repeat last ":!{cmd}".
|
||||||
|
|
||||||
*:ve* *:version*
|
*:ve* *:ver* *:version*
|
||||||
:ve[rsion] Print editor version and build information.
|
:ve[rsion] Print editor version and build information.
|
||||||
See also |feature-compile|.
|
See also |feature-compile|.
|
||||||
|
|
||||||
|
@ -192,7 +192,7 @@ CTRL-W CTRL_N *CTRL-W_CTRL-N*
|
|||||||
:[N]sv[iew] [++opt] [+cmd] {file} *:sv* *:sview* *splitview*
|
:[N]sv[iew] [++opt] [+cmd] {file} *:sv* *:sview* *splitview*
|
||||||
Same as ":split", but set 'readonly' option for this buffer.
|
Same as ":split", but set 'readonly' option for this buffer.
|
||||||
|
|
||||||
:[N]sf[ind] [++opt] [+cmd] {file} *:sf* *:sfind* *splitfind*
|
:[N]sf[ind] [++opt] [+cmd] {file} *:sf* *:sfi* *:sfind* *splitfind*
|
||||||
Same as ":split", but search for {file} in 'path' like in
|
Same as ":split", but search for {file} in 'path' like in
|
||||||
|:find|. Doesn't split if {file} is not found.
|
|:find|. Doesn't split if {file} is not found.
|
||||||
|
|
||||||
@ -1174,7 +1174,7 @@ list of buffers. |unlisted-buffer|
|
|||||||
Uses 'switchbuf'.
|
Uses 'switchbuf'.
|
||||||
Also see |+cmd|.
|
Also see |+cmd|.
|
||||||
|
|
||||||
:br[ewind][!] [+cmd] *:br* *:brewind*
|
:br[ewind][!] [+cmd] *:br* *:bre* *:brewind*
|
||||||
Go to first buffer in buffer list. If the buffer list is
|
Go to first buffer in buffer list. If the buffer list is
|
||||||
empty, go to the first unlisted buffer.
|
empty, go to the first unlisted buffer.
|
||||||
See |:buffer-!| for [!].
|
See |:buffer-!| for [!].
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
" Language: fstab file
|
" Language: fstab file
|
||||||
" Maintainer: Radu Dineiu <radu.dineiu@gmail.com>
|
" Maintainer: Radu Dineiu <radu.dineiu@gmail.com>
|
||||||
" URL: https://raw.github.com/rid9/vim-fstab/master/fstab.vim
|
" URL: https://raw.github.com/rid9/vim-fstab/master/fstab.vim
|
||||||
" Last Change: 2017 Nov 09
|
" Last Change: 2019 Jun 06
|
||||||
" Version: 1.2
|
" Version: 1.3
|
||||||
"
|
"
|
||||||
" Credits:
|
" Credits:
|
||||||
" David Necas (Yeti) <yeti@physics.muni.cz>
|
" David Necas (Yeti) <yeti@physics.muni.cz>
|
||||||
@ -68,7 +68,7 @@ syn match fsOptionsString /[a-zA-Z0-9_-]\+/
|
|||||||
syn keyword fsOptionsYesNo yes no
|
syn keyword fsOptionsYesNo yes no
|
||||||
syn cluster fsOptionsCheckCluster contains=fsOptionsExt2Check,fsOptionsFatCheck
|
syn cluster fsOptionsCheckCluster contains=fsOptionsExt2Check,fsOptionsFatCheck
|
||||||
syn keyword fsOptionsSize 512 1024 2048
|
syn keyword fsOptionsSize 512 1024 2048
|
||||||
syn keyword fsOptionsGeneral async atime auto bind current defaults dev devgid devmode devmtime devuid dirsync exec force fstab kudzu loop mand move noatime noauto noclusterr noclusterw nodev nodevmtime nodiratime noexec nomand norelatime nosuid nosymfollow nouser owner rbind rdonly relatime remount ro rq rw suid suiddir supermount sw sync union update user users wxallowed xx
|
syn keyword fsOptionsGeneral async atime auto bind current defaults dev devgid devmode devmtime devuid dirsync exec force fstab kudzu loop mand move noatime noauto noclusterr noclusterw nodev nodevmtime nodiratime noexec nomand norelatime nosuid nosymfollow nouser owner rbind rdonly relatime remount ro rq rw suid suiddir supermount sw sync union update user users wxallowed xx nofail
|
||||||
syn match fsOptionsGeneral /_netdev/
|
syn match fsOptionsGeneral /_netdev/
|
||||||
|
|
||||||
" Options: adfs
|
" Options: adfs
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: none; used to see highlighting
|
" Language: none; used to see highlighting
|
||||||
" Maintainer: Ronald Schild <rs@scutum.de>
|
" Maintainer: Ronald Schild <rs@scutum.de>
|
||||||
" Last Change: 2017 Jul 28
|
" Last Change: 2019 Jun 06
|
||||||
" Version: 5.4n.1
|
" Version: 5.4n.1
|
||||||
|
" Additional Changes By: Lifepillar, Bram
|
||||||
|
|
||||||
" To see your current highlight settings, do
|
" To see your current highlight settings, do
|
||||||
" :so $VIMRUNTIME/syntax/hitest.vim
|
" :so $VIMRUNTIME/syntax/hitest.vim
|
||||||
@ -12,6 +13,7 @@ let s:hidden = &hidden
|
|||||||
let s:lazyredraw = &lazyredraw
|
let s:lazyredraw = &lazyredraw
|
||||||
let s:more = &more
|
let s:more = &more
|
||||||
let s:report = &report
|
let s:report = &report
|
||||||
|
let s:whichwrap = &whichwrap
|
||||||
let s:shortmess = &shortmess
|
let s:shortmess = &shortmess
|
||||||
let s:wrapscan = &wrapscan
|
let s:wrapscan = &wrapscan
|
||||||
let s:register_a = @a
|
let s:register_a = @a
|
||||||
@ -19,10 +21,11 @@ let s:register_se = @/
|
|||||||
|
|
||||||
" set global options
|
" set global options
|
||||||
set hidden lazyredraw nomore report=99999 shortmess=aoOstTW wrapscan
|
set hidden lazyredraw nomore report=99999 shortmess=aoOstTW wrapscan
|
||||||
|
set whichwrap&
|
||||||
|
|
||||||
" print current highlight settings into register a
|
" print current highlight settings into register a
|
||||||
redir @a
|
redir @a
|
||||||
highlight
|
silent highlight
|
||||||
redir END
|
redir END
|
||||||
|
|
||||||
" Open a new window if the current one isn't empty
|
" Open a new window if the current one isn't empty
|
||||||
@ -34,25 +37,32 @@ endif
|
|||||||
edit Highlight\ test
|
edit Highlight\ test
|
||||||
|
|
||||||
" set local options
|
" set local options
|
||||||
setlocal autoindent noexpandtab formatoptions=t shiftwidth=16 noswapfile tabstop=16
|
setlocal autoindent noexpandtab formatoptions=t shiftwidth=18 noswapfile tabstop=18
|
||||||
let &textwidth=&columns
|
let &textwidth=&columns
|
||||||
|
|
||||||
" insert highlight settings
|
" insert highlight settings
|
||||||
% delete
|
% delete
|
||||||
put a
|
put a
|
||||||
|
|
||||||
|
" remove cleared groups
|
||||||
|
silent! g/ cleared$/d
|
||||||
|
|
||||||
" remove the colored xxx items
|
" remove the colored xxx items
|
||||||
g/xxx /s///e
|
g/xxx /s///e
|
||||||
|
|
||||||
" remove color settings (not needed here)
|
" remove color settings (not needed here)
|
||||||
global! /links to/ substitute /\s.*$//e
|
global! /links to/ substitute /\s.*$//e
|
||||||
|
|
||||||
|
" Move split 'links to' lines to the same line
|
||||||
|
% substitute /^\(\w\+\)\n\s*\(links to.*\)/\1\t\2/e
|
||||||
|
|
||||||
" move linked groups to the end of file
|
" move linked groups to the end of file
|
||||||
global /links to/ move $
|
global /links to/ move $
|
||||||
|
|
||||||
" move linked group names to the matching preferred groups
|
" move linked group names to the matching preferred groups
|
||||||
|
" TODO: this fails if the group linked to isn't defined
|
||||||
% substitute /^\(\w\+\)\s*\(links to\)\s*\(\w\+\)$/\3\t\2 \1/e
|
% substitute /^\(\w\+\)\s*\(links to\)\s*\(\w\+\)$/\3\t\2 \1/e
|
||||||
global /links to/ normal mz3ElD0#$p'zdd
|
silent! global /links to/ normal mz3ElD0#$p'zdd
|
||||||
|
|
||||||
" delete empty lines
|
" delete empty lines
|
||||||
global /^ *$/ delete
|
global /^ *$/ delete
|
||||||
@ -124,6 +134,7 @@ let &lazyredraw = s:lazyredraw
|
|||||||
let &more = s:more
|
let &more = s:more
|
||||||
let &report = s:report
|
let &report = s:report
|
||||||
let &shortmess = s:shortmess
|
let &shortmess = s:shortmess
|
||||||
|
let &whichwrap = s:whichwrap
|
||||||
let &wrapscan = s:wrapscan
|
let &wrapscan = s:wrapscan
|
||||||
let @a = s:register_a
|
let @a = s:register_a
|
||||||
|
|
||||||
@ -133,6 +144,6 @@ let @/ = s:register_se
|
|||||||
|
|
||||||
" remove variables
|
" remove variables
|
||||||
unlet s:hidden s:lazyredraw s:more s:report s:shortmess
|
unlet s:hidden s:lazyredraw s:more s:report s:shortmess
|
||||||
unlet s:wrapscan s:register_a s:register_se
|
unlet s:whichwrap s:wrapscan s:register_a s:register_se
|
||||||
|
|
||||||
" vim: ts=8
|
" vim: ts=8
|
||||||
|
Reference in New Issue
Block a user