mirror of
https://github.com/neovim/neovim.git
synced 2024-09-17 20:58:20 -04:00
parent
4f67f5ba6e
commit
228bc4c416
@ -1373,7 +1373,7 @@ to the name of an external program for Vim to use for text formatting. The
|
|||||||
program.
|
program.
|
||||||
|
|
||||||
*format-formatexpr*
|
*format-formatexpr*
|
||||||
The 'formatexpr' option can be set to a Vim Script function that performs
|
The 'formatexpr' option can be set to a Vim script function that performs
|
||||||
reformatting of the buffer. This should usually happen in an |ftplugin|,
|
reformatting of the buffer. This should usually happen in an |ftplugin|,
|
||||||
since formatting is highly dependent on the type of file. It makes
|
since formatting is highly dependent on the type of file. It makes
|
||||||
sense to use an |autoload| script, so the corresponding script is only loaded
|
sense to use an |autoload| script, so the corresponding script is only loaded
|
||||||
@ -1407,7 +1407,7 @@ text. Put it in your autoload directory, e.g. ~/.vim/autoload/format.vim: >
|
|||||||
|
|
||||||
You can then enable the formatting by executing: >
|
You can then enable the formatting by executing: >
|
||||||
setlocal formatexpr=format#Format()
|
setlocal formatexpr=format#Format()
|
||||||
>
|
|
||||||
Note: this function explicitly returns non-zero when called from insert mode
|
Note: this function explicitly returns non-zero when called from insert mode
|
||||||
(which basically means, text is inserted beyond the 'textwidth' limit). This
|
(which basically means, text is inserted beyond the 'textwidth' limit). This
|
||||||
causes Vim to fall back to reformat the text by using the internal formatter.
|
causes Vim to fall back to reformat the text by using the internal formatter.
|
||||||
|
@ -372,12 +372,16 @@ Example (this does almost the same as 'diffexpr' being empty): >
|
|||||||
endif
|
endif
|
||||||
silent execute "!diff -a --binary " . opt . v:fname_in . " " . v:fname_new .
|
silent execute "!diff -a --binary " . opt . v:fname_in . " " . v:fname_new .
|
||||||
\ " > " . v:fname_out
|
\ " > " . v:fname_out
|
||||||
|
redraw!
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
The "-a" argument is used to force comparing the files as text, comparing as
|
The "-a" argument is used to force comparing the files as text, comparing as
|
||||||
binaries isn't useful. The "--binary" argument makes the files read in binary
|
binaries isn't useful. The "--binary" argument makes the files read in binary
|
||||||
mode, so that a CTRL-Z doesn't end the text on DOS.
|
mode, so that a CTRL-Z doesn't end the text on DOS.
|
||||||
|
|
||||||
|
The `redraw!` command may not be needed, depending on whether executing a
|
||||||
|
shell command shows something on the display or not.
|
||||||
|
|
||||||
*E810* *E97*
|
*E810* *E97*
|
||||||
Vim will do a test if the diff output looks alright. If it doesn't, you will
|
Vim will do a test if the diff output looks alright. If it doesn't, you will
|
||||||
get an error message. Possible causes:
|
get an error message. Possible causes:
|
||||||
|
@ -2339,7 +2339,7 @@ tolower({expr}) String the String {expr} switched to lowercase
|
|||||||
toupper({expr}) String the String {expr} switched to uppercase
|
toupper({expr}) String the String {expr} switched to uppercase
|
||||||
tr({src}, {fromstr}, {tostr}) String translate chars of {src} in {fromstr}
|
tr({src}, {fromstr}, {tostr}) String translate chars of {src} in {fromstr}
|
||||||
to chars in {tostr}
|
to chars in {tostr}
|
||||||
trim({text}[, {mask}]) String trim characters in {mask} from {text}
|
trim({text} [, {mask}]) String trim characters in {mask} from {text}
|
||||||
trunc({expr}) Float truncate Float {expr}
|
trunc({expr}) Float truncate Float {expr}
|
||||||
type({name}) Number type of variable {name}
|
type({name}) Number type of variable {name}
|
||||||
undofile({name}) String undo file name for {name}
|
undofile({name}) String undo file name for {name}
|
||||||
@ -3890,7 +3890,7 @@ getbufinfo([{dict}])
|
|||||||
endfor
|
endfor
|
||||||
<
|
<
|
||||||
To get buffer-local options use: >
|
To get buffer-local options use: >
|
||||||
getbufvar({bufnr}, '&')
|
getbufvar({bufnr}, '&option_name')
|
||||||
|
|
||||||
<
|
<
|
||||||
*getbufline()*
|
*getbufline()*
|
||||||
@ -8028,7 +8028,7 @@ tr({src}, {fromstr}, {tostr}) *tr()*
|
|||||||
echo tr("<blob>", "<>", "{}")
|
echo tr("<blob>", "<>", "{}")
|
||||||
< returns "{blob}"
|
< returns "{blob}"
|
||||||
|
|
||||||
trim({text}[, {mask}]) *trim()*
|
trim({text} [, {mask}]) *trim()*
|
||||||
Return {text} as a String where any character in {mask} is
|
Return {text} as a String where any character in {mask} is
|
||||||
removed from the beginning and end of {text}.
|
removed from the beginning and end of {text}.
|
||||||
If {mask} is not given, {mask} is all characters up to 0x20,
|
If {mask} is not given, {mask} is all characters up to 0x20,
|
||||||
|
@ -236,4 +236,4 @@ It also has a few other mappings:
|
|||||||
Note: This binding is only available in MacVim.
|
Note: This binding is only available in MacVim.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
vim:tw=78:sw=4:noet:ts=8:ft=help:norl:
|
vim:tw=78:sw=4:ts=8:noet:ft=help:norl:
|
||||||
|
@ -559,9 +559,9 @@ Virtual Replace mode Virtual Replace mode is similar to Replace mode, but
|
|||||||
If the 'showmode' option is on "-- VREPLACE --" is
|
If the 'showmode' option is on "-- VREPLACE --" is
|
||||||
shown at the bottom of the window.
|
shown at the bottom of the window.
|
||||||
|
|
||||||
Insert Normal mode Entered when CTRL-O given in Insert mode. This is
|
Insert Normal mode Entered when CTRL-O is typed in Insert mode (see
|
||||||
like Normal mode, but after executing one command Vim
|
|i_CTRL-O|). This is like Normal mode, but after
|
||||||
returns to Insert mode.
|
executing one command Vim returns to Insert mode.
|
||||||
If the 'showmode' option is on "-- (insert) --" is
|
If the 'showmode' option is on "-- (insert) --" is
|
||||||
shown at the bottom of the window.
|
shown at the bottom of the window.
|
||||||
|
|
||||||
|
@ -3201,6 +3201,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
so far, matches. The matched string is highlighted. If the pattern
|
so far, matches. The matched string is highlighted. If the pattern
|
||||||
is invalid or not found, nothing is shown. The screen will be updated
|
is invalid or not found, nothing is shown. The screen will be updated
|
||||||
often, this is only useful on fast terminals.
|
often, this is only useful on fast terminals.
|
||||||
|
Also applies to the `:s`, `:g` and `:v` commands.
|
||||||
Note that the match will be shown, but the cursor will return to its
|
Note that the match will be shown, but the cursor will return to its
|
||||||
original position when no match is found and when pressing <Esc>. You
|
original position when no match is found and when pressing <Esc>. You
|
||||||
still need to finish the search command with <Enter> to move the
|
still need to finish the search command with <Enter> to move the
|
||||||
@ -3213,9 +3214,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
The |hl-IncSearch| highlight group determines the highlighting.
|
The |hl-IncSearch| highlight group determines the highlighting.
|
||||||
When 'hlsearch' is on, all matched strings are highlighted too while
|
When 'hlsearch' is on, all matched strings are highlighted too while
|
||||||
typing a search command. See also: 'hlsearch'.
|
typing a search command. See also: 'hlsearch'.
|
||||||
If you don't want turn 'hlsearch' on, but want to highlight all matches
|
If you don't want to turn 'hlsearch' on, but want to highlight all
|
||||||
while searching, you can turn on and off 'hlsearch' with autocmd.
|
matches while searching, you can turn on and off 'hlsearch' with
|
||||||
Example: >
|
autocmd. Example: >
|
||||||
augroup vimrc-incsearch-highlight
|
augroup vimrc-incsearch-highlight
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd CmdlineEnter /,\? :set hlsearch
|
autocmd CmdlineEnter /,\? :set hlsearch
|
||||||
@ -4863,7 +4864,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
tabpages all tab pages; without this only the current tab page
|
tabpages all tab pages; without this only the current tab page
|
||||||
is restored, so that you can make a session for each
|
is restored, so that you can make a session for each
|
||||||
tab page separately
|
tab page separately
|
||||||
terminal include terminal windows where the command can be restored
|
terminal include terminal windows where the command can be
|
||||||
|
restored
|
||||||
unix with Unix end-of-line format (single <NL>), even when
|
unix with Unix end-of-line format (single <NL>), even when
|
||||||
on Windows or DOS
|
on Windows or DOS
|
||||||
winpos position of the whole Vim window
|
winpos position of the whole Vim window
|
||||||
@ -5747,7 +5749,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
line is displayed. The current buffer and current window will be set
|
line is displayed. The current buffer and current window will be set
|
||||||
temporarily to that of the window (and buffer) whose statusline is
|
temporarily to that of the window (and buffer) whose statusline is
|
||||||
currently being drawn. The expression will evaluate in this context.
|
currently being drawn. The expression will evaluate in this context.
|
||||||
The variable "actual_curbuf" is set to the 'bufnr()' number of the
|
The variable "g:actual_curbuf" is set to the `bufnr()` number of the
|
||||||
real current buffer.
|
real current buffer.
|
||||||
|
|
||||||
The 'statusline' option will be evaluated in the |sandbox| if set from
|
The 'statusline' option will be evaluated in the |sandbox| if set from
|
||||||
|
@ -36,6 +36,8 @@ Note: If you have problems printing with |:hardcopy|, an alternative is to use
|
|||||||
'printexpr' through |v:cmdarg|. Otherwise [arguments]
|
'printexpr' through |v:cmdarg|. Otherwise [arguments]
|
||||||
is ignored. 'printoptions' can be used to specify
|
is ignored. 'printoptions' can be used to specify
|
||||||
paper size, duplex, etc.
|
paper size, duplex, etc.
|
||||||
|
Note: If you want PDF, there are tools such as
|
||||||
|
"ps2pdf" that can convert the PostScript to PDF.
|
||||||
|
|
||||||
:[range]ha[rdcopy][!] >{filename}
|
:[range]ha[rdcopy][!] >{filename}
|
||||||
As above, but write the resulting PostScript in file
|
As above, but write the resulting PostScript in file
|
||||||
|
@ -231,8 +231,10 @@ REORDERING TAB PAGES:
|
|||||||
:tabm[ove] [N] *:tabm* *:tabmove*
|
:tabm[ove] [N] *:tabm* *:tabmove*
|
||||||
:[N]tabm[ove]
|
:[N]tabm[ove]
|
||||||
Move the current tab page to after tab page N. Use zero to
|
Move the current tab page to after tab page N. Use zero to
|
||||||
make the current tab page the first one. Without N the tab
|
make the current tab page the first one. N is counted before
|
||||||
page is made the last one. >
|
the move, thus if the second tab is the current one,
|
||||||
|
`:tabmove 1` and `:tabmove 2` have no effect.
|
||||||
|
Without N the tab page is made the last one. >
|
||||||
:.tabmove " do nothing
|
:.tabmove " do nothing
|
||||||
:-tabmove " move the tab page to the left
|
:-tabmove " move the tab page to the left
|
||||||
:+tabmove " move the tab page to the right
|
:+tabmove " move the tab page to the right
|
||||||
|
@ -281,4 +281,4 @@ Address to send checks to:
|
|||||||
|
|
||||||
This address is expected to be valid for a long time.
|
This address is expected to be valid for a long time.
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -383,4 +383,4 @@ if it is not what you want do 'u.'. This will remove the contents of the
|
|||||||
first put, and repeat the put command for the second register. Repeat the
|
first put, and repeat the put command for the second register. Repeat the
|
||||||
'u.' until you got what you want.
|
'u.' until you got what you want.
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -109,4 +109,4 @@ donate part of the profit to help AIDS victims in Uganda. See |iccf|.
|
|||||||
|
|
||||||
Next chapter: |usr_02.txt| The first steps in Vim
|
Next chapter: |usr_02.txt| The first steps in Vim
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -687,4 +687,4 @@ Summary: *help-summary* >
|
|||||||
|
|
||||||
Next chapter: |usr_03.txt| Moving around
|
Next chapter: |usr_03.txt| Moving around
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -650,4 +650,4 @@ You will notice a few special marks. These include:
|
|||||||
|
|
||||||
Next chapter: |usr_04.txt| Making small changes
|
Next chapter: |usr_04.txt| Making small changes
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -511,4 +511,4 @@ else:
|
|||||||
|
|
||||||
Next chapter: |usr_05.txt| Set your settings
|
Next chapter: |usr_05.txt| Set your settings
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -610,4 +610,4 @@ This does mean there is less room to edit text, thus it's a compromise.
|
|||||||
|
|
||||||
Next chapter: |usr_06.txt| Using syntax highlighting
|
Next chapter: |usr_06.txt| Using syntax highlighting
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -274,4 +274,4 @@ others look at the colored text.
|
|||||||
|
|
||||||
Next chapter: |usr_07.txt| Editing more than one file
|
Next chapter: |usr_07.txt| Editing more than one file
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -476,4 +476,4 @@ This protects you from accidentally overwriting another file.
|
|||||||
|
|
||||||
Next chapter: |usr_08.txt| Splitting windows
|
Next chapter: |usr_08.txt| Splitting windows
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -597,4 +597,4 @@ For more information about tab pages see |tab-page|.
|
|||||||
|
|
||||||
Next chapter: |usr_09.txt| Using the GUI
|
Next chapter: |usr_09.txt| Using the GUI
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -283,4 +283,4 @@ You can tune the way Select mode works with the 'selectmode' option.
|
|||||||
|
|
||||||
Next chapter: |usr_10.txt| Making big changes
|
Next chapter: |usr_10.txt| Making big changes
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -820,4 +820,4 @@ has written. To tell Vim to redraw the screen: >
|
|||||||
|
|
||||||
Next chapter: |usr_11.txt| Recovering from a crash
|
Next chapter: |usr_11.txt| Recovering from a crash
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -299,4 +299,4 @@ If you really don't want to see this message, you can add the 'A' flag to the
|
|||||||
|
|
||||||
Next chapter: |usr_12.txt| Clever tricks
|
Next chapter: |usr_12.txt| Clever tricks
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -343,4 +343,4 @@ matches and where they are.
|
|||||||
|
|
||||||
Next chapter: |usr_20.txt| Typing command-line commands quickly
|
Next chapter: |usr_20.txt| Typing command-line commands quickly
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -381,4 +381,4 @@ there can be only one.
|
|||||||
|
|
||||||
Next chapter: |usr_21.txt| Go away and come back
|
Next chapter: |usr_21.txt| Go away and come back
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -488,4 +488,4 @@ For more details see |modeline|.
|
|||||||
|
|
||||||
Next chapter: |usr_22.txt| Finding the file to edit
|
Next chapter: |usr_22.txt| Finding the file to edit
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -397,4 +397,4 @@ can't be editing nothing!
|
|||||||
|
|
||||||
Next chapter: |usr_23.txt| Editing other files
|
Next chapter: |usr_23.txt| Editing other files
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -256,4 +256,4 @@ decompression. You might need to install the programs first.
|
|||||||
|
|
||||||
Next chapter: |usr_24.txt| Inserting quickly
|
Next chapter: |usr_24.txt| Inserting quickly
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -603,4 +603,4 @@ This deletes up to the third word into register g.
|
|||||||
|
|
||||||
Next chapter: |usr_25.txt| Editing formatted text
|
Next chapter: |usr_25.txt| Editing formatted text
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -579,4 +579,4 @@ The "gR" command uses Virtual Replace mode. This preserves the layout:
|
|||||||
|
|
||||||
Next chapter: |usr_26.txt| Repeating
|
Next chapter: |usr_26.txt| Repeating
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -207,4 +207,4 @@ start all over, use the "-W" argument. It overwrites any existing file.
|
|||||||
|
|
||||||
Next chapter: |usr_27.txt| Search commands and patterns
|
Next chapter: |usr_27.txt| Search commands and patterns
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -560,4 +560,4 @@ and "\w" for "[0-9A-Za-z_]".
|
|||||||
|
|
||||||
Next chapter: |usr_28.txt| Folding
|
Next chapter: |usr_28.txt| Folding
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -423,4 +423,4 @@ the defined folds. Then you can delete or add folds manually.
|
|||||||
|
|
||||||
Next chapter: |usr_29.txt| Moving through programs
|
Next chapter: |usr_29.txt| Moving through programs
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -608,4 +608,4 @@ for the identifier. Example (cursor on "idx"):
|
|||||||
|
|
||||||
Next chapter: |usr_30.txt| Editing programs
|
Next chapter: |usr_30.txt| Editing programs
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -640,4 +640,4 @@ For more details see |format-comments|.
|
|||||||
|
|
||||||
Next chapter: |usr_31.txt| Exploiting the GUI
|
Next chapter: |usr_31.txt| Exploiting the GUI
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -269,4 +269,4 @@ another font size, for example.
|
|||||||
|
|
||||||
Next chapter: |usr_32.txt| The undo tree
|
Next chapter: |usr_32.txt| The undo tree
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -177,4 +177,4 @@ use the |undotree()| function. To see what it returns: >
|
|||||||
|
|
||||||
Next chapter: |usr_40.txt| Make new commands
|
Next chapter: |usr_40.txt| Make new commands
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -654,4 +654,4 @@ To set it back to the normal behavior, make 'eventignore' empty: >
|
|||||||
|
|
||||||
Next chapter: |usr_41.txt| Write a Vim script
|
Next chapter: |usr_41.txt| Write a Vim script
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -2514,4 +2514,4 @@ utility is recommended.
|
|||||||
|
|
||||||
Next chapter: |usr_42.txt| Add new menus
|
Next chapter: |usr_42.txt| Add new menus
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -355,4 +355,4 @@ is...
|
|||||||
|
|
||||||
Next chapter: |usr_43.txt| Using filetypes
|
Next chapter: |usr_43.txt| Using filetypes
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -175,4 +175,4 @@ and sources a script or executes a function to check the contents of the file.
|
|||||||
|
|
||||||
Next chapter: |usr_44.txt| Your own syntax highlighted
|
Next chapter: |usr_44.txt| Your own syntax highlighted
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -716,4 +716,4 @@ up scrolling backwards and CTRL-L.
|
|||||||
|
|
||||||
Next chapter: |usr_45.txt| Select your language
|
Next chapter: |usr_45.txt| Select your language
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -392,4 +392,4 @@ Don't type the spaces. See |i_CTRL-V_digit| for the details.
|
|||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -335,4 +335,4 @@ Make Vim work as you like it.
|
|||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
|
||||||
Copyright: see |manual-copyright| vim:tw=78:ts=8:ft=help:norl:
|
Copyright: see |manual-copyright| vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -363,4 +363,4 @@ Move cursor beyond lines.
|
|||||||
and figures easily.
|
and figures easily.
|
||||||
|
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -524,4 +524,4 @@ g CTRL-H Start Select mode, blockwise. This is like CTRL-V,
|
|||||||
but starts Select mode instead of Visual mode.
|
but starts Select mode instead of Visual mode.
|
||||||
Mnemonic: "get Highlighted".
|
Mnemonic: "get Highlighted".
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -1273,4 +1273,4 @@ unlisted The buffer is not in the buffer list. It is not used for
|
|||||||
:setlocal nobuflisted
|
:setlocal nobuflisted
|
||||||
<
|
<
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:noet:ft=help:norl:
|
||||||
|
@ -582,7 +582,7 @@ au BufNewFile,BufRead auto.master setf conf
|
|||||||
au BufNewFile,BufRead *.mas,*.master setf master
|
au BufNewFile,BufRead *.mas,*.master setf master
|
||||||
|
|
||||||
" Forth
|
" Forth
|
||||||
au BufNewFile,BufRead *.fs,*.ft setf forth
|
au BufNewFile,BufRead *.fs,*.ft,*.fth setf forth
|
||||||
|
|
||||||
" Reva Forth
|
" Reva Forth
|
||||||
au BufNewFile,BufRead *.frt setf reva
|
au BufNewFile,BufRead *.frt setf reva
|
||||||
@ -1864,6 +1864,9 @@ au BufNewFile,BufRead */etc/xdg/menus/*.menu setf xml
|
|||||||
" ATI graphics driver configuration
|
" ATI graphics driver configuration
|
||||||
au BufNewFile,BufRead fglrxrc setf xml
|
au BufNewFile,BufRead fglrxrc setf xml
|
||||||
|
|
||||||
|
" Web Services Description Language (WSDL)
|
||||||
|
au BufNewFile,BufRead *.wsdl setf xml
|
||||||
|
|
||||||
" XLIFF (XML Localisation Interchange File Format) is also XML
|
" XLIFF (XML Localisation Interchange File Format) is also XML
|
||||||
au BufNewFile,BufRead *.xlf setf xml
|
au BufNewFile,BufRead *.xlf setf xml
|
||||||
au BufNewFile,BufRead *.xliff setf xml
|
au BufNewFile,BufRead *.xliff setf xml
|
||||||
|
@ -1,164 +1,262 @@
|
|||||||
encoding
|
abolish
|
||||||
|
abolish_category
|
||||||
|
abolish_events
|
||||||
|
abolish_object
|
||||||
|
abolish_protocol
|
||||||
|
abs
|
||||||
|
acos
|
||||||
|
acyclic_term
|
||||||
|
after
|
||||||
|
alias
|
||||||
|
always_true_or_false_goals
|
||||||
|
arg
|
||||||
|
asin
|
||||||
|
asserta
|
||||||
|
assertz
|
||||||
|
atan
|
||||||
|
atan2
|
||||||
|
atom
|
||||||
|
atomic
|
||||||
|
atom_chars
|
||||||
|
atom_chars
|
||||||
|
atom_codes
|
||||||
|
atom_codes
|
||||||
|
atom_concat
|
||||||
|
atom_concat
|
||||||
|
atom_length
|
||||||
|
at_end_of_stream
|
||||||
|
bagof
|
||||||
|
before
|
||||||
|
built_in
|
||||||
|
call
|
||||||
|
callable
|
||||||
calls
|
calls
|
||||||
|
catch
|
||||||
category
|
category
|
||||||
|
category_property
|
||||||
|
ceiling
|
||||||
|
char_code
|
||||||
|
char_conversion
|
||||||
|
clause
|
||||||
|
clean
|
||||||
|
close
|
||||||
|
code_prefix
|
||||||
|
coinduction
|
||||||
|
coinductive
|
||||||
|
compare
|
||||||
|
complements
|
||||||
|
complements
|
||||||
|
complements_object
|
||||||
|
compound
|
||||||
|
conforms_to_protocol
|
||||||
|
context
|
||||||
|
context_switching_calls
|
||||||
|
copy_term
|
||||||
|
cos
|
||||||
|
create_category
|
||||||
|
create_logtalk_flag
|
||||||
|
create_object
|
||||||
|
create_protocol
|
||||||
|
current_category
|
||||||
|
current_char_conversion
|
||||||
|
current_event
|
||||||
|
current_input
|
||||||
|
current_logtalk_flag
|
||||||
|
current_object
|
||||||
|
current_op
|
||||||
|
current_output
|
||||||
|
current_predicate
|
||||||
|
current_prolog_flag
|
||||||
|
current_protocol
|
||||||
|
debug
|
||||||
|
define_events
|
||||||
|
deprecated
|
||||||
|
discontiguous
|
||||||
|
div
|
||||||
|
domain_error
|
||||||
|
duplicated_directives
|
||||||
dynamic
|
dynamic
|
||||||
|
dynamic_declarations
|
||||||
|
elif
|
||||||
|
else
|
||||||
|
encoding
|
||||||
|
encoding_directive
|
||||||
|
endif
|
||||||
end_category
|
end_category
|
||||||
end_object
|
end_object
|
||||||
end_protocol
|
end_protocol
|
||||||
info
|
engines
|
||||||
initialization
|
ensure_loaded
|
||||||
object
|
evaluation_error
|
||||||
protocol
|
events
|
||||||
synchronized
|
existence_error
|
||||||
threaded
|
exp
|
||||||
uses
|
expand_goal
|
||||||
alias
|
expand_term
|
||||||
discontiguous
|
export
|
||||||
meta_predicate
|
|
||||||
mode
|
|
||||||
op
|
|
||||||
private
|
|
||||||
protected
|
|
||||||
public
|
|
||||||
current_object
|
|
||||||
current_protocol
|
|
||||||
current_category
|
|
||||||
object_property
|
|
||||||
protocol_property
|
|
||||||
category_property
|
|
||||||
create_object
|
|
||||||
create_protocol
|
|
||||||
create_category
|
|
||||||
abolish_object
|
|
||||||
abolish_protocol
|
|
||||||
abolish_category
|
|
||||||
complements
|
|
||||||
complements_object
|
|
||||||
extends
|
extends
|
||||||
|
extends_category
|
||||||
extends_object
|
extends_object
|
||||||
extends_protocol
|
extends_protocol
|
||||||
extends_category
|
fail
|
||||||
|
false
|
||||||
|
findall
|
||||||
|
float
|
||||||
|
float_fractional_part
|
||||||
|
float_integer_part
|
||||||
|
floor
|
||||||
|
flush_output
|
||||||
|
forall
|
||||||
|
forward
|
||||||
|
functor
|
||||||
|
get_byte
|
||||||
|
get_char
|
||||||
|
get_code
|
||||||
|
goal_expansion
|
||||||
|
ground
|
||||||
|
halt
|
||||||
|
hook
|
||||||
|
if
|
||||||
|
ignore
|
||||||
implements
|
implements
|
||||||
implements_protocol
|
implements_protocol
|
||||||
imports
|
imports
|
||||||
imports_category
|
imports_category
|
||||||
|
include
|
||||||
|
info
|
||||||
|
initialization
|
||||||
instantiates
|
instantiates
|
||||||
instantiates_class
|
instantiates_class
|
||||||
specializes
|
instantiation_error
|
||||||
specializes_class
|
integer
|
||||||
abolish_events
|
keysort
|
||||||
current_event
|
lambda_variables
|
||||||
define_events
|
log
|
||||||
logtalk_load
|
|
||||||
logtalk_compile
|
logtalk_compile
|
||||||
logtalk_library_path
|
logtalk_library_path
|
||||||
current_logtalk_flag
|
logtalk_load
|
||||||
set_logtalk_flag
|
logtalk_load_context
|
||||||
threaded_call
|
logtalk_make
|
||||||
threaded_once
|
logtalk_make_target_action
|
||||||
threaded_ignore
|
max
|
||||||
threaded_exit
|
meta_non_terminal
|
||||||
threaded_peek
|
meta_predicate
|
||||||
threaded_wait
|
min
|
||||||
threaded_notify
|
missing_directives
|
||||||
self
|
mod
|
||||||
this
|
mode
|
||||||
sender
|
modules
|
||||||
parameter
|
multifile
|
||||||
before
|
nl
|
||||||
after
|
|
||||||
phrase
|
|
||||||
expand_term
|
|
||||||
goal_expansion
|
|
||||||
term_expansion
|
|
||||||
true
|
|
||||||
fail
|
|
||||||
call
|
|
||||||
catch
|
|
||||||
throw
|
|
||||||
unify_with_occurs_check
|
|
||||||
var
|
|
||||||
atom
|
|
||||||
integer
|
|
||||||
float
|
|
||||||
atomic
|
|
||||||
compound
|
|
||||||
nonvar
|
nonvar
|
||||||
number
|
number
|
||||||
arg
|
numbervars
|
||||||
copy_term
|
number_chars
|
||||||
functor
|
number_chars
|
||||||
current_predicate
|
number_codes
|
||||||
predicate_property
|
number_codes
|
||||||
abolish
|
object
|
||||||
assertz
|
object_property
|
||||||
asserta
|
once
|
||||||
clause
|
op
|
||||||
retract
|
|
||||||
retractall
|
|
||||||
bagof
|
|
||||||
findall
|
|
||||||
forall
|
|
||||||
setof
|
|
||||||
current_input
|
|
||||||
current_output
|
|
||||||
set_input
|
|
||||||
set_output
|
|
||||||
open
|
open
|
||||||
close
|
optimize
|
||||||
flush_output
|
parameter
|
||||||
stream_property
|
peek_byte
|
||||||
at_end_of_stream
|
|
||||||
set_stream_position
|
|
||||||
get_char
|
|
||||||
get_code
|
|
||||||
peek_char
|
peek_char
|
||||||
peek_code
|
peek_code
|
||||||
|
permission_error
|
||||||
|
phrase
|
||||||
|
portability
|
||||||
|
predicate_property
|
||||||
|
private
|
||||||
|
prolog_compatible_version
|
||||||
|
prolog_compiler
|
||||||
|
prolog_dialect
|
||||||
|
prolog_loader
|
||||||
|
prolog_version
|
||||||
|
protected
|
||||||
|
protocol
|
||||||
|
protocol_property
|
||||||
|
public
|
||||||
|
put_byte
|
||||||
put_char
|
put_char
|
||||||
put_code
|
put_code
|
||||||
nl
|
|
||||||
get_byte
|
|
||||||
peek_byte
|
|
||||||
put_byte
|
|
||||||
read
|
read
|
||||||
read_term
|
read_term
|
||||||
|
redefined_built_ins
|
||||||
|
reexport
|
||||||
|
reload
|
||||||
|
rem
|
||||||
|
repeat
|
||||||
|
report
|
||||||
|
representation_error
|
||||||
|
resource_error
|
||||||
|
retract
|
||||||
|
retractall
|
||||||
|
round
|
||||||
|
scratch_directory
|
||||||
|
self
|
||||||
|
sender
|
||||||
|
setof
|
||||||
|
set_input
|
||||||
|
set_logtalk_flag
|
||||||
|
set_output
|
||||||
|
set_prolog_flag
|
||||||
|
set_stream_position
|
||||||
|
sign
|
||||||
|
sin
|
||||||
|
singleton_variables
|
||||||
|
sort
|
||||||
|
source_data
|
||||||
|
specializes
|
||||||
|
specializes_class
|
||||||
|
sqrt
|
||||||
|
stream_property
|
||||||
|
subsumes_term
|
||||||
|
sub_atom
|
||||||
|
suspicious_calls
|
||||||
|
synchronized
|
||||||
|
syntax_error
|
||||||
|
system_error
|
||||||
|
tabling
|
||||||
|
tan
|
||||||
|
term_expansion
|
||||||
|
term_variables
|
||||||
|
this
|
||||||
|
threaded
|
||||||
|
threaded_call
|
||||||
|
threaded_engine
|
||||||
|
threaded_engine_create
|
||||||
|
threaded_engine_destroy
|
||||||
|
threaded_engine_fetch
|
||||||
|
threaded_engine_next
|
||||||
|
threaded_engine_next_reified
|
||||||
|
threaded_engine_post
|
||||||
|
threaded_engine_self
|
||||||
|
threaded_engine_yield
|
||||||
|
threaded_exit
|
||||||
|
threaded_ignore
|
||||||
|
threaded_notify
|
||||||
|
threaded_once
|
||||||
|
threaded_peek
|
||||||
|
threaded_wait
|
||||||
|
threads
|
||||||
|
throw
|
||||||
|
trivial_goal_fails
|
||||||
|
true
|
||||||
|
truncate
|
||||||
|
type_error
|
||||||
|
undefined_predicates
|
||||||
|
underscore_variables
|
||||||
|
unify_with_occurs_check
|
||||||
|
unknown_entities
|
||||||
|
unknown_predicates
|
||||||
|
uses
|
||||||
|
use_module
|
||||||
|
var
|
||||||
|
version
|
||||||
write
|
write
|
||||||
writeq
|
writeq
|
||||||
write_canonical
|
write_canonical
|
||||||
atom_chars
|
xor
|
||||||
atom_codes
|
|
||||||
atom_concat
|
|
||||||
number_chars
|
|
||||||
number_codes
|
|
||||||
current_op
|
|
||||||
char_conversion
|
|
||||||
current_char_conversion
|
|
||||||
once
|
|
||||||
repeat
|
|
||||||
atom_length
|
|
||||||
atom_concat
|
|
||||||
sub_atom
|
|
||||||
atom_chars
|
|
||||||
atom_codes
|
|
||||||
char_code
|
|
||||||
number_chars
|
|
||||||
number_codes
|
|
||||||
set_prolog_flag
|
|
||||||
current_prolog_flag
|
|
||||||
halt
|
|
||||||
abs
|
|
||||||
atan
|
|
||||||
ceiling
|
|
||||||
cos
|
|
||||||
exp
|
|
||||||
float_fractional_part
|
|
||||||
float_integer_part
|
|
||||||
floor
|
|
||||||
log
|
|
||||||
mod
|
|
||||||
rem
|
|
||||||
round
|
|
||||||
sign
|
|
||||||
sin
|
|
||||||
sqrt
|
|
||||||
truncate
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Logtalk filetype plugin file
|
" Logtalk filetype plugin file
|
||||||
" Language: Logtalk
|
" Language: Logtalk
|
||||||
" Maintainer: Paulo Moura <pmoura@logtalk.org>
|
" Maintainer: Paulo Moura <pmoura@logtalk.org>
|
||||||
" Latest Revision: 2007-07-06
|
" Latest Revision: 2018-08-03
|
||||||
|
|
||||||
if exists("b:did_ftplugin")
|
if exists("b:did_ftplugin")
|
||||||
finish
|
finish
|
||||||
@ -10,9 +10,10 @@ let b:did_ftplugin = 1
|
|||||||
|
|
||||||
let b:undo_ftplugin = "setl ts< sw< fdm< fdc< ai< dict<"
|
let b:undo_ftplugin = "setl ts< sw< fdm< fdc< ai< dict<"
|
||||||
|
|
||||||
"setlocal ts=4
|
setlocal ts=4
|
||||||
setlocal sw=4
|
setlocal sw=4
|
||||||
setlocal fdm=syntax
|
setlocal fdm=syntax
|
||||||
|
setlocal fdn=10
|
||||||
setlocal fdc=2
|
setlocal fdc=2
|
||||||
setlocal autoindent
|
setlocal autoindent
|
||||||
setlocal dict=$VIMRUNTIME/ftplugin/logtalk.dict
|
setlocal dict=$VIMRUNTIME/ftplugin/logtalk.dict
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin
|
" Vim filetype plugin
|
||||||
" Language: Vim
|
" Language: Vim
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
" Last Change: 2017 Dec 05
|
" Last Change: 2018 Aug 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")
|
||||||
@ -17,20 +17,20 @@ set cpo-=C
|
|||||||
if !exists('*VimFtpluginUndo')
|
if !exists('*VimFtpluginUndo')
|
||||||
func VimFtpluginUndo()
|
func VimFtpluginUndo()
|
||||||
setl fo< isk< com< tw< commentstring< keywordprg<
|
setl fo< isk< com< tw< commentstring< keywordprg<
|
||||||
if exists(b:did_add_maps)
|
if exists('b:did_add_maps')
|
||||||
silent! nunmap <buffer> [['
|
silent! nunmap <buffer> [[
|
||||||
silent! vunmap <buffer> [['
|
silent! vunmap <buffer> [[
|
||||||
silent! nunmap <buffer> ]]'
|
silent! nunmap <buffer> ]]
|
||||||
silent! vunmap <buffer> ]]'
|
silent! vunmap <buffer> ]]
|
||||||
silent! nunmap <buffer> []'
|
silent! nunmap <buffer> []
|
||||||
silent! vunmap <buffer> []'
|
silent! vunmap <buffer> []
|
||||||
silent! nunmap <buffer> ]['
|
silent! nunmap <buffer> ][
|
||||||
silent! vunmap <buffer> ]['
|
silent! vunmap <buffer> ][
|
||||||
silent! nunmap <buffer> ]"'
|
silent! nunmap <buffer> ]"
|
||||||
silent! vunmap <buffer> ]"'
|
silent! vunmap <buffer> ]"
|
||||||
silent! nunmap <buffer> ["'
|
silent! nunmap <buffer> ["
|
||||||
silent! vunmap <buffer> ["'
|
silent! vunmap <buffer> ["
|
||||||
endif
|
endif
|
||||||
unlet! b:match_ignorecase b:match_words b:match_skip b:did_add_maps
|
unlet! b:match_ignorecase b:match_words b:match_skip b:did_add_maps
|
||||||
endfunc
|
endfunc
|
||||||
endif
|
endif
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
" Maintainer: Paulo Moura <pmoura@logtalk.org>
|
" Maintainer: Paulo Moura <pmoura@logtalk.org>
|
||||||
" Revised on: 2008.06.02
|
" Revised on: 2018.08.04
|
||||||
" Language: Logtalk
|
" Language: Logtalk
|
||||||
|
|
||||||
" This Logtalk indent file is a modified version of the Prolog
|
" This Logtalk indent file is a modified version of the Prolog
|
||||||
@ -42,6 +42,9 @@ function! GetLogtalkIndent()
|
|||||||
" Check for clause head on previous line
|
" Check for clause head on previous line
|
||||||
elseif pline =~ ':-\s*\(%.*\)\?$'
|
elseif pline =~ ':-\s*\(%.*\)\?$'
|
||||||
let ind = ind + shiftwidth()
|
let ind = ind + shiftwidth()
|
||||||
|
" Check for grammar rule head on previous line
|
||||||
|
elseif pline =~ '-->\s*\(%.*\)\?$'
|
||||||
|
let ind = ind + shiftwidth()
|
||||||
" Check for entity closing directive on previous line
|
" Check for entity closing directive on previous line
|
||||||
elseif pline =~ '^\s*:-\send_\(object\|protocol\|category\)\.\(%.*\)\?$'
|
elseif pline =~ '^\s*:-\send_\(object\|protocol\|category\)\.\(%.*\)\?$'
|
||||||
let ind = ind - shiftwidth()
|
let ind = ind - shiftwidth()
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
" Maintainer: Debian Vim Maintainers
|
" Maintainer: Debian Vim Maintainers
|
||||||
" Former Maintainers: Gerfried Fuchs <alfie@ist.org>
|
" Former Maintainers: Gerfried Fuchs <alfie@ist.org>
|
||||||
" Wichert Akkerman <wakkerma@debian.org>
|
" Wichert Akkerman <wakkerma@debian.org>
|
||||||
" Last Change: 2018 May 31
|
" Last Change: 2018 Aug 11
|
||||||
" URL: https://salsa.debian.org/vim-team/vim-debian/blob/master/syntax/debcontrol.vim
|
" URL: https://salsa.debian.org/vim-team/vim-debian/blob/master/syntax/debcontrol.vim
|
||||||
|
|
||||||
" Standard syntax initialization
|
" Standard syntax initialization
|
||||||
@ -30,7 +30,7 @@ let s:kernels = ['linux', 'hurd', 'kfreebsd', 'knetbsd', 'kopensolaris', 'netbsd
|
|||||||
let s:archs = [
|
let s:archs = [
|
||||||
\ 'alpha', 'amd64', 'armeb', 'armel', 'armhf', 'arm64', 'avr32', 'hppa'
|
\ 'alpha', 'amd64', 'armeb', 'armel', 'armhf', 'arm64', 'avr32', 'hppa'
|
||||||
\, 'i386', 'ia64', 'lpia', 'm32r', 'm68k', 'mipsel', 'mips64el', 'mips'
|
\, 'i386', 'ia64', 'lpia', 'm32r', 'm68k', 'mipsel', 'mips64el', 'mips'
|
||||||
\, 'powerpcspe', 'powerpc', 'ppc64el', 'ppc64', 's390x', 's390', 'sh3eb'
|
\, 'powerpcspe', 'powerpc', 'ppc64el', 'ppc64', 'riscv64', 's390x', 's390', 'sh3eb'
|
||||||
\, 'sh3', 'sh4eb', 'sh4', 'sh', 'sparc64', 'sparc', 'x32'
|
\, 'sh3', 'sh4eb', 'sh4', 'sh', 'sparc64', 'sparc', 'x32'
|
||||||
\ ]
|
\ ]
|
||||||
let s:pairs = [
|
let s:pairs = [
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
" Language: Debian sources.list
|
" Language: Debian sources.list
|
||||||
" Maintainer: Debian Vim Maintainers
|
" Maintainer: Debian Vim Maintainers
|
||||||
" Former Maintainer: Matthijs Mohlmann <matthijs@cacholong.nl>
|
" Former Maintainer: Matthijs Mohlmann <matthijs@cacholong.nl>
|
||||||
" Last Change: 2018 May 03
|
" Last Change: 2018 Aug 11
|
||||||
" URL: https://salsa.debian.org/vim-team/vim-debian/blob/master/syntax/debsources.vim
|
" URL: https://salsa.debian.org/vim-team/vim-debian/blob/master/syntax/debsources.vim
|
||||||
|
|
||||||
" Standard syntax initialization
|
" Standard syntax initialization
|
||||||
@ -25,7 +25,7 @@ let s:supported = [
|
|||||||
\ 'oldstable', 'stable', 'testing', 'unstable', 'experimental',
|
\ 'oldstable', 'stable', 'testing', 'unstable', 'experimental',
|
||||||
\ 'wheezy', 'jessie', 'stretch', 'sid', 'rc-buggy',
|
\ 'wheezy', 'jessie', 'stretch', 'sid', 'rc-buggy',
|
||||||
\
|
\
|
||||||
\ 'trusty', 'xenial', 'artful', 'bionic', 'cosmic', 'devel'
|
\ 'trusty', 'xenial', 'bionic', 'cosmic', 'devel'
|
||||||
\ ]
|
\ ]
|
||||||
let s:unsupported = [
|
let s:unsupported = [
|
||||||
\ 'buzz', 'rex', 'bo', 'hamm', 'slink', 'potato',
|
\ 'buzz', 'rex', 'bo', 'hamm', 'slink', 'potato',
|
||||||
@ -34,7 +34,7 @@ let s:unsupported = [
|
|||||||
\ 'warty', 'hoary', 'breezy', 'dapper', 'edgy', 'feisty',
|
\ 'warty', 'hoary', 'breezy', 'dapper', 'edgy', 'feisty',
|
||||||
\ 'gutsy', 'hardy', 'intrepid', 'jaunty', 'karmic', 'lucid',
|
\ 'gutsy', 'hardy', 'intrepid', 'jaunty', 'karmic', 'lucid',
|
||||||
\ 'maverick', 'natty', 'oneiric', 'precise', 'quantal', 'raring', 'saucy',
|
\ 'maverick', 'natty', 'oneiric', 'precise', 'quantal', 'raring', 'saucy',
|
||||||
\ 'utopic', 'vivid', 'wily', 'yakkety', 'zesty'
|
\ 'utopic', 'vivid', 'wily', 'yakkety', 'zesty', 'artful'
|
||||||
\ ]
|
\ ]
|
||||||
let &cpo=s:cpo
|
let &cpo=s:cpo
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"
|
"
|
||||||
" Language: Logtalk
|
" Language: Logtalk
|
||||||
" Maintainer: Paulo Moura <pmoura@logtalk.org>
|
" Maintainer: Paulo Moura <pmoura@logtalk.org>
|
||||||
" Last Change: February 4, 2012
|
" Last Change: August 3, 2018
|
||||||
|
|
||||||
|
|
||||||
" quit when a syntax file was already loaded
|
" quit when a syntax file was already loaded
|
||||||
@ -79,13 +79,13 @@ syn region logtalkDir matchgroup=logtalkDirTag start=":- elif(" matchgroup=log
|
|||||||
syn match logtalkDirTag ":- else\."
|
syn match logtalkDirTag ":- else\."
|
||||||
syn match logtalkDirTag ":- endif\."
|
syn match logtalkDirTag ":- endif\."
|
||||||
syn region logtalkDir matchgroup=logtalkDirTag start=":- alias(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
syn region logtalkDir matchgroup=logtalkDirTag start=":- alias(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
||||||
syn region logtalkDir matchgroup=logtalkDirTag start=":- calls(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
|
||||||
syn region logtalkDir matchgroup=logtalkDirTag start=":- coinductive(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
syn region logtalkDir matchgroup=logtalkDirTag start=":- coinductive(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
||||||
syn region logtalkDir matchgroup=logtalkDirTag start=":- encoding(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
syn region logtalkDir matchgroup=logtalkDirTag start=":- encoding(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
||||||
syn region logtalkDir matchgroup=logtalkDirTag start=":- initialization(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
syn region logtalkDir matchgroup=logtalkDirTag start=":- initialization(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
||||||
syn region logtalkDir matchgroup=logtalkDirTag start=":- info(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
syn region logtalkDir matchgroup=logtalkDirTag start=":- info(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
||||||
syn region logtalkDir matchgroup=logtalkDirTag start=":- mode(" matchgroup=logtalkDirTag end=")\." contains=logtalkOperator, logtalkAtom
|
syn region logtalkDir matchgroup=logtalkDirTag start=":- mode(" matchgroup=logtalkDirTag end=")\." contains=logtalkOperator, logtalkAtom
|
||||||
syn region logtalkDir matchgroup=logtalkDirTag start=":- dynamic(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
syn region logtalkDir matchgroup=logtalkDirTag start=":- dynamic(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
||||||
|
syn match logtalkDirTag ":- built_in\."
|
||||||
syn match logtalkDirTag ":- dynamic\."
|
syn match logtalkDirTag ":- dynamic\."
|
||||||
syn region logtalkDir matchgroup=logtalkDirTag start=":- discontiguous(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
syn region logtalkDir matchgroup=logtalkDirTag start=":- discontiguous(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
||||||
syn region logtalkDir matchgroup=logtalkDirTag start=":- multifile(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
syn region logtalkDir matchgroup=logtalkDirTag start=":- multifile(" matchgroup=logtalkDirTag end=")\." contains=ALL
|
||||||
@ -131,17 +131,20 @@ syn match logtalkBuiltIn "\<\(instantiat\|specializ\)es_class\ze("
|
|||||||
syn match logtalkBuiltIn "\<\(abolish\|define\)_events\ze("
|
syn match logtalkBuiltIn "\<\(abolish\|define\)_events\ze("
|
||||||
syn match logtalkBuiltIn "\<current_event\ze("
|
syn match logtalkBuiltIn "\<current_event\ze("
|
||||||
|
|
||||||
syn match logtalkBuiltIn "\<\(curren\|se\)t_logtalk_flag\ze("
|
syn match logtalkBuiltIn "\<\(create\|current\|set\)_logtalk_flag\ze("
|
||||||
|
|
||||||
syn match logtalkBuiltIn "\<logtalk_\(compile\|l\(ibrary_path\|oad\|oad_context\)\)\ze("
|
syn match logtalkBuiltIn "\<logtalk_\(compile\|l\(ibrary_path\|oad\|oad_context\)\|make\(_target_action\)\?\)\ze("
|
||||||
|
syn match logtalkBuiltIn "\<logtalk_make\>"
|
||||||
|
|
||||||
syn match logtalkBuiltIn "\<\(for\|retract\)all\ze("
|
syn match logtalkBuiltIn "\<\(for\|retract\)all\ze("
|
||||||
|
|
||||||
syn match logtalkBuiltIn "\<threaded\(_\(call\|once\|ignore\|exit\|peek\|wait\|notify\)\)\?\ze("
|
syn match logtalkBuiltIn "\<threaded\(_\(call\|once\|ignore\|exit\|peek\|wait\|notify\)\)\?\ze("
|
||||||
|
syn match logtalkBuiltIn "\<threaded_engine\(_\(create\|destroy\|self\|next\|next_reified\|yield\|post\|fetch\)\)\?\ze("
|
||||||
|
|
||||||
|
|
||||||
" Logtalk built-in methods
|
" Logtalk built-in methods
|
||||||
|
|
||||||
|
syn match logtalkBuiltInMethod "\<context\ze("
|
||||||
syn match logtalkBuiltInMethod "\<parameter\ze("
|
syn match logtalkBuiltInMethod "\<parameter\ze("
|
||||||
syn match logtalkBuiltInMethod "\<se\(lf\|nder\)\ze("
|
syn match logtalkBuiltInMethod "\<se\(lf\|nder\)\ze("
|
||||||
syn match logtalkBuiltInMethod "\<this\ze("
|
syn match logtalkBuiltInMethod "\<this\ze("
|
||||||
@ -159,6 +162,8 @@ syn match logtalkBuiltInMethod "\<f\(ind\|or\)all\ze("
|
|||||||
syn match logtalkBuiltInMethod "\<before\ze("
|
syn match logtalkBuiltInMethod "\<before\ze("
|
||||||
syn match logtalkBuiltInMethod "\<after\ze("
|
syn match logtalkBuiltInMethod "\<after\ze("
|
||||||
|
|
||||||
|
syn match logtalkBuiltInMethod "\<forward\ze("
|
||||||
|
|
||||||
syn match logtalkBuiltInMethod "\<expand_\(goal\|term\)\ze("
|
syn match logtalkBuiltInMethod "\<expand_\(goal\|term\)\ze("
|
||||||
syn match logtalkBuiltInMethod "\<\(goal\|term\)_expansion\ze("
|
syn match logtalkBuiltInMethod "\<\(goal\|term\)_expansion\ze("
|
||||||
syn match logtalkBuiltInMethod "\<phrase\ze("
|
syn match logtalkBuiltInMethod "\<phrase\ze("
|
||||||
@ -174,6 +179,7 @@ syn match logtalkOperator "@"
|
|||||||
|
|
||||||
syn match logtalkKeyword "\<true\>"
|
syn match logtalkKeyword "\<true\>"
|
||||||
syn match logtalkKeyword "\<fail\>"
|
syn match logtalkKeyword "\<fail\>"
|
||||||
|
syn match logtalkKeyword "\<false\>"
|
||||||
syn match logtalkKeyword "\<ca\(ll\|tch\)\ze("
|
syn match logtalkKeyword "\<ca\(ll\|tch\)\ze("
|
||||||
syn match logtalkOperator "!"
|
syn match logtalkOperator "!"
|
||||||
" syn match logtalkOperator ","
|
" syn match logtalkOperator ","
|
||||||
@ -181,11 +187,14 @@ syn match logtalkOperator ";"
|
|||||||
syn match logtalkOperator "-->"
|
syn match logtalkOperator "-->"
|
||||||
syn match logtalkOperator "->"
|
syn match logtalkOperator "->"
|
||||||
syn match logtalkKeyword "\<throw\ze("
|
syn match logtalkKeyword "\<throw\ze("
|
||||||
|
syn match logtalkKeyword "\<\(instantiation\|system\)_error\>"
|
||||||
|
syn match logtalkKeyword "\<\(type\|domain\|existence\|permission\|representation\|evaluation\|resource\|syntax\)_error\ze("
|
||||||
|
|
||||||
|
|
||||||
" Term unification
|
" Term unification
|
||||||
|
|
||||||
syn match logtalkOperator "="
|
syn match logtalkOperator "="
|
||||||
|
syn match logtalkKeyword "\<subsumes_term\ze("
|
||||||
syn match logtalkKeyword "\<unify_with_occurs_check\ze("
|
syn match logtalkKeyword "\<unify_with_occurs_check\ze("
|
||||||
syn match logtalkOperator "\\="
|
syn match logtalkOperator "\\="
|
||||||
|
|
||||||
@ -199,6 +208,7 @@ syn match logtalkKeyword "\<float\ze("
|
|||||||
syn match logtalkKeyword "\<c\(allable\|ompound\)\ze("
|
syn match logtalkKeyword "\<c\(allable\|ompound\)\ze("
|
||||||
syn match logtalkKeyword "\<n\(onvar\|umber\)\ze("
|
syn match logtalkKeyword "\<n\(onvar\|umber\)\ze("
|
||||||
syn match logtalkKeyword "\<ground\ze("
|
syn match logtalkKeyword "\<ground\ze("
|
||||||
|
syn match logtalkKeyword "\<acyclic_term\ze("
|
||||||
|
|
||||||
|
|
||||||
" Term comparison
|
" Term comparison
|
||||||
@ -219,14 +229,20 @@ syn match logtalkKeyword "\<arg\ze("
|
|||||||
syn match logtalkOperator "=\.\."
|
syn match logtalkOperator "=\.\."
|
||||||
syn match logtalkKeyword "\<copy_term\ze("
|
syn match logtalkKeyword "\<copy_term\ze("
|
||||||
syn match logtalkKeyword "\<numbervars\ze("
|
syn match logtalkKeyword "\<numbervars\ze("
|
||||||
|
syn match logtalkKeyword "\<term_variables\ze("
|
||||||
|
|
||||||
|
|
||||||
" Arithemtic evaluation
|
" Predicate aliases
|
||||||
|
|
||||||
|
syn match logtalkOperator "\<as\>"
|
||||||
|
|
||||||
|
|
||||||
|
" Arithmetic evaluation
|
||||||
|
|
||||||
syn match logtalkOperator "\<is\>"
|
syn match logtalkOperator "\<is\>"
|
||||||
|
|
||||||
|
|
||||||
" Arithemtic comparison
|
" Arithmetic comparison
|
||||||
|
|
||||||
syn match logtalkOperator "=:="
|
syn match logtalkOperator "=:="
|
||||||
syn match logtalkOperator "=\\="
|
syn match logtalkOperator "=\\="
|
||||||
@ -299,16 +315,18 @@ syn match logtalkOperator "-"
|
|||||||
syn match logtalkOperator "\*"
|
syn match logtalkOperator "\*"
|
||||||
syn match logtalkOperator "//"
|
syn match logtalkOperator "//"
|
||||||
syn match logtalkOperator "/"
|
syn match logtalkOperator "/"
|
||||||
|
syn match logtalkKeyword "\<div\ze("
|
||||||
syn match logtalkKeyword "\<r\(ound\|em\)\ze("
|
syn match logtalkKeyword "\<r\(ound\|em\)\ze("
|
||||||
syn match logtalkKeyword "\<e\>"
|
syn match logtalkKeyword "\<e\>"
|
||||||
syn match logtalkKeyword "\<pi\>"
|
syn match logtalkKeyword "\<pi\>"
|
||||||
|
syn match logtalkKeyword "\<div\>"
|
||||||
syn match logtalkKeyword "\<rem\>"
|
syn match logtalkKeyword "\<rem\>"
|
||||||
syn match logtalkKeyword "\<mod\ze("
|
syn match logtalkKeyword "\<m\(ax\|in\|od\)\ze("
|
||||||
syn match logtalkKeyword "\<mod\>"
|
syn match logtalkKeyword "\<mod\>"
|
||||||
syn match logtalkKeyword "\<abs\ze("
|
syn match logtalkKeyword "\<abs\ze("
|
||||||
syn match logtalkKeyword "\<sign\ze("
|
syn match logtalkKeyword "\<sign\ze("
|
||||||
syn match logtalkKeyword "\<flo\(or\|at\(_\(integer\|fractional\)_part\)\?\)\ze("
|
syn match logtalkKeyword "\<flo\(or\|at\(_\(integer\|fractional\)_part\)\?\)\ze("
|
||||||
syn match logtalkKeyword "\<truncate\ze("
|
syn match logtalkKeyword "\<t\(an\|runcate\)\ze("
|
||||||
syn match logtalkKeyword "\<ceiling\ze("
|
syn match logtalkKeyword "\<ceiling\ze("
|
||||||
|
|
||||||
|
|
||||||
@ -317,7 +335,7 @@ syn match logtalkKeyword "\<ceiling\ze("
|
|||||||
syn match logtalkOperator "\*\*"
|
syn match logtalkOperator "\*\*"
|
||||||
syn match logtalkKeyword "\<s\(in\|qrt\)\ze("
|
syn match logtalkKeyword "\<s\(in\|qrt\)\ze("
|
||||||
syn match logtalkKeyword "\<cos\ze("
|
syn match logtalkKeyword "\<cos\ze("
|
||||||
syn match logtalkKeyword "\<atan\ze("
|
syn match logtalkKeyword "\<a\(cos\|sin\|tan\|tan2\)\ze("
|
||||||
syn match logtalkKeyword "\<exp\ze("
|
syn match logtalkKeyword "\<exp\ze("
|
||||||
syn match logtalkKeyword "\<log\ze("
|
syn match logtalkKeyword "\<log\ze("
|
||||||
|
|
||||||
@ -329,6 +347,7 @@ syn match logtalkOperator "<<"
|
|||||||
syn match logtalkOperator "/\\"
|
syn match logtalkOperator "/\\"
|
||||||
syn match logtalkOperator "\\/"
|
syn match logtalkOperator "\\/"
|
||||||
syn match logtalkOperator "\\"
|
syn match logtalkOperator "\\"
|
||||||
|
syn match logtalkKeyword "\<xor\ze("
|
||||||
|
|
||||||
|
|
||||||
" Logtalk list operator
|
" Logtalk list operator
|
||||||
@ -347,7 +366,7 @@ syn match logtalkNumber "\<\d\+\>"
|
|||||||
syn match logtalkNumber "\<\d\+\.\d\+\>"
|
syn match logtalkNumber "\<\d\+\.\d\+\>"
|
||||||
syn match logtalkNumber "\<\d\+[eE][-+]\=\d\+\>"
|
syn match logtalkNumber "\<\d\+[eE][-+]\=\d\+\>"
|
||||||
syn match logtalkNumber "\<\d\+\.\d\+[eE][-+]\=\d\+\>"
|
syn match logtalkNumber "\<\d\+\.\d\+[eE][-+]\=\d\+\>"
|
||||||
syn match logtalkNumber "\<0'.\|0''\|0'\"\>"
|
syn match logtalkNumber "\<0'[\\]\?.\|0''\|0'\"\>"
|
||||||
syn match logtalkNumber "\<0b[0-1]\+\>"
|
syn match logtalkNumber "\<0b[0-1]\+\>"
|
||||||
syn match logtalkNumber "\<0o\o\+\>"
|
syn match logtalkNumber "\<0o\o\+\>"
|
||||||
syn match logtalkNumber "\<0x\x\+\>"
|
syn match logtalkNumber "\<0x\x\+\>"
|
||||||
|
Loading…
Reference in New Issue
Block a user