mirror of
https://github.com/zoriya/vim.git
synced 2025-12-24 16:15:21 +00:00
Compare commits
116 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
321a9ec680 | ||
|
|
09ba6d766b | ||
|
|
52cc266dae | ||
|
|
21691f896a | ||
|
|
34feacbcce | ||
|
|
32c8f1cb19 | ||
|
|
60ec5f35a5 | ||
|
|
57e4ee4d38 | ||
|
|
a54bf40017 | ||
|
|
9750bb199e | ||
|
|
0f9d0869c7 | ||
|
|
81484f4215 | ||
|
|
15d55dec03 | ||
|
|
862cfa356d | ||
|
|
2a94225c23 | ||
|
|
f135435f80 | ||
|
|
2e18a12780 | ||
|
|
97d4ea71d6 | ||
|
|
f4f1956724 | ||
|
|
2df58b4a58 | ||
|
|
9411615985 | ||
|
|
d4ad0d4e21 | ||
|
|
b347963869 | ||
|
|
dd53a41553 | ||
|
|
442b5c48fd | ||
|
|
8866d277c9 | ||
|
|
02e14d67b9 | ||
|
|
7854e3abcf | ||
|
|
c83a44bf8f | ||
|
|
ff8cf2be66 | ||
|
|
fe9fb927ae | ||
|
|
7331304fd3 | ||
|
|
ef6585abef | ||
|
|
77642c0fef | ||
|
|
65d7396cb4 | ||
|
|
8d4eecc5e8 | ||
|
|
d59762dcb6 | ||
|
|
c0d4759373 | ||
|
|
7c5f120410 | ||
|
|
8288149866 | ||
|
|
0ac24e1ef4 | ||
|
|
b031626427 | ||
|
|
99a547d3a1 | ||
|
|
97d62497f5 | ||
|
|
41b884b273 | ||
|
|
b826ddb034 | ||
|
|
3ab72c5c72 | ||
|
|
e3a2246227 | ||
|
|
9c9cbf1351 | ||
|
|
12a753a5ca | ||
|
|
95e09eaaad | ||
|
|
a80888d296 | ||
|
|
17aa8cc255 | ||
|
|
a9a2d8f4d0 | ||
|
|
707cfb82dc | ||
|
|
f00dc2627b | ||
|
|
e8d8fd2add | ||
|
|
3a0d8090b1 | ||
|
|
67a4f6cfb4 | ||
|
|
faca84059a | ||
|
|
cfb807026f | ||
|
|
bffa06ddb8 | ||
|
|
003d14a267 | ||
|
|
c4b98fbb3e | ||
|
|
f3408e76fb | ||
|
|
b6101cf77f | ||
|
|
2d17fa3ebd | ||
|
|
9f340fa57b | ||
|
|
205f9f5e2d | ||
|
|
b88adbf844 | ||
|
|
dac7569612 | ||
|
|
d04da7cb4a | ||
|
|
7bc4f93c07 | ||
|
|
172ddb60c2 | ||
|
|
b73568149f | ||
|
|
0c17875ef3 | ||
|
|
b35c338f96 | ||
|
|
0c5fa7d740 | ||
|
|
d1f13fd597 | ||
|
|
4ccb265bd4 | ||
|
|
7d11244c99 | ||
|
|
97cc2384c0 | ||
|
|
14f5827940 | ||
|
|
8139889a5f | ||
|
|
6f3d6b48a6 | ||
|
|
e1704bada4 | ||
|
|
b213da0b57 | ||
|
|
ec3cfeb199 | ||
|
|
1e91f2606b | ||
|
|
718f007499 | ||
|
|
d09acef44b | ||
|
|
66b7985ec9 | ||
|
|
770456589e | ||
|
|
696c2116dc | ||
|
|
f94a13c286 | ||
|
|
01c10524d2 | ||
|
|
f5fe79a5f3 | ||
|
|
6f586de755 | ||
|
|
2b017fae8f | ||
|
|
4fabd7dd4a | ||
|
|
be1e9e9fc1 | ||
|
|
2623b4f412 | ||
|
|
e8cdcef875 | ||
|
|
fca93c093e | ||
|
|
c11073c9aa | ||
|
|
afa6b9af86 | ||
|
|
cdab905136 | ||
|
|
77fceb8908 | ||
|
|
e48a2dd3af | ||
|
|
231e1a1723 | ||
|
|
e2db4361d2 | ||
|
|
ac0ddc15e9 | ||
|
|
7c0a86b1e8 | ||
|
|
b4a80cdd91 | ||
|
|
7c82130a76 | ||
|
|
2c66669c33 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -30,6 +30,7 @@ src/auto/pathdef.c
|
||||
*.suo
|
||||
*.res
|
||||
*.RES
|
||||
src/if_perl.c
|
||||
src/pathdef.c
|
||||
src/Obj*/pathdef.c
|
||||
gvimext.dll
|
||||
@@ -41,6 +42,7 @@ gvimext.lib
|
||||
*.mo
|
||||
*.swp
|
||||
*~
|
||||
src/po/vim.pot
|
||||
|
||||
# Generated by "make test"
|
||||
src/po/*.ck
|
||||
|
||||
14
Filelist
14
Filelist
@@ -261,6 +261,7 @@ SRC_DOS = \
|
||||
src/Make_mvc.mak \
|
||||
src/Make_w16.mak \
|
||||
src/bigvim.bat \
|
||||
src/bigvim64.bat \
|
||||
src/msvcsetup.bat \
|
||||
src/msvc2008.bat \
|
||||
src/msvc2010.bat \
|
||||
@@ -352,6 +353,7 @@ SRC_DOS_BIN = \
|
||||
src/xpm/COPYRIGHT \
|
||||
src/xpm/README.txt \
|
||||
src/xpm/include/*.h \
|
||||
src/xpm/x64/lib/libXpm.a \
|
||||
src/xpm/x64/lib/libXpm.lib \
|
||||
src/xpm/x86/lib/libXpm.a \
|
||||
src/xpm/x86/lib/libXpm.lib \
|
||||
@@ -691,9 +693,17 @@ LANG_GEN = \
|
||||
runtime/tutor/Makefile \
|
||||
runtime/tutor/tutor.utf-8 \
|
||||
runtime/tutor/tutor.?? \
|
||||
runtime/tutor/tutor.??.* \
|
||||
runtime/tutor/tutor.??.utf-8 \
|
||||
runtime/tutor/tutor.??.euc \
|
||||
runtime/tutor/tutor.??.sjis \
|
||||
runtime/tutor/tutor.??.iso9 \
|
||||
runtime/tutor/tutor.??.big5 \
|
||||
runtime/tutor/tutor.??.cp1250 \
|
||||
runtime/tutor/tutor.??.cp1251 \
|
||||
runtime/tutor/tutor.??.cp737 \
|
||||
runtime/tutor/tutor.??_??.utf-8 \
|
||||
runtime/tutor/tutor.bar \
|
||||
runtime/tutor/tutor.bar.* \
|
||||
runtime/tutor/tutor.bar.utf-8 \
|
||||
runtime/spell/README.txt \
|
||||
runtime/spell/??/*.diff \
|
||||
runtime/spell/??/main.aap \
|
||||
|
||||
@@ -97,10 +97,12 @@ The latest news about Vim can be found on the Vim home page:
|
||||
If you have problems, have a look at the Vim FAQ:
|
||||
http://vimdoc.sf.net/vimfaq.html
|
||||
|
||||
Send bug reports to:
|
||||
Bram Moolenaar <Bram@vim.org>
|
||||
If you still have problems or any other questions, use one of the mailing
|
||||
lists to discuss them with Vim users and developers:
|
||||
http://www.vim.org/maillist.php
|
||||
|
||||
There are several mailing lists for Vim, see http://www.vim.org/maillist.php.
|
||||
If nothing else works, report bugs directly:
|
||||
Bram Moolenaar <Bram@vim.org>
|
||||
|
||||
|
||||
MAIN AUTHOR
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -106,7 +106,7 @@ fun! netrwSettings#NetrwSettings()
|
||||
put = 'let g:netrw_browsex_viewer = (not defined)'
|
||||
endif
|
||||
put = 'let g:netrw_compress = '.g:netrw_compress
|
||||
put = 'let g:netrw_cursorline = '.g:netrw_cursorline
|
||||
put = 'let g:netrw_cursor = '.g:netrw_cursor
|
||||
let decompressline= line("$")
|
||||
put ='let g:netrw_decompress...'
|
||||
put = 'let g:netrw_dirhistmax = '.g:netrw_dirhistmax
|
||||
@@ -125,9 +125,9 @@ fun! netrwSettings#NetrwSettings()
|
||||
put = 'let g:netrw_list_hide = '.g:netrw_list_hide
|
||||
put = 'let g:netrw_liststyle = '.g:netrw_liststyle
|
||||
put = 'let g:netrw_localcopycmd = '.g:netrw_localcopycmd
|
||||
put = 'let g:netrw_local_mkdir = '.g:netrw_local_mkdir
|
||||
put = 'let g:netrw_localmkdir = '.g:netrw_localmkdir
|
||||
put = 'let g:netrw_localmovecmd = '.g:netrw_localmovecmd
|
||||
put = 'let g:netrw_local_rmdir = '.g:netrw_local_rmdir
|
||||
put = 'let g:netrw_localrmdir = '.g:netrw_localrmdir
|
||||
put = 'let g:netrw_maxfilenamelen = '.g:netrw_maxfilenamelen
|
||||
put = 'let g:netrw_menu = '.g:netrw_menu
|
||||
put = 'let g:netrw_mkdir_cmd = '.g:netrw_mkdir_cmd
|
||||
|
||||
@@ -1,23 +1,43 @@
|
||||
" Vim OMNI completion script for SQL
|
||||
" Language: SQL
|
||||
" Maintainer: David Fishburn <dfishburn dot vim at gmail dot com>
|
||||
" Version: 12.0
|
||||
" Last Change: 2012 Feb 08
|
||||
" Version: 14.0
|
||||
" Last Change: 2012 Dec 04
|
||||
" Homepage: http://www.vim.org/scripts/script.php?script_id=1572
|
||||
" Usage: For detailed help
|
||||
" ":help sql.txt"
|
||||
" or ":help ft-sql-omni"
|
||||
" or read $VIMRUNTIME/doc/sql.txt
|
||||
|
||||
" History
|
||||
" Version 12.0
|
||||
"
|
||||
" Version 14.0 (Dec 2012)
|
||||
" - BF: Added check for cpo
|
||||
"
|
||||
" Version 13.0 (Dec 2012)
|
||||
" - NF: When completing column lists or drilling into a table
|
||||
" and g:omni_sql_include_owner is enabled, the
|
||||
" only the table name would be replaced with the column
|
||||
" list instead of the table name and owner (if specified).
|
||||
" - NF: When completing column lists using table aliases
|
||||
" and g:omni_sql_include_owner is enabled, account
|
||||
" for the owner name when looking up the table
|
||||
" list instead of the table name and owner (if specified).
|
||||
" - BF: When completing column lists or drilling into a table
|
||||
" and g:omni_sql_include_owner is enabled, the
|
||||
" column list could often not be found for the table.
|
||||
" - BF: When OMNI popped up, possibly the wrong word
|
||||
" would be replaced for column and column list options.
|
||||
"
|
||||
" Version 12.0 (Feb 2012)
|
||||
" - Partial column name completion did not work when a table
|
||||
" name or table alias was provided (Jonas Enberg).
|
||||
" - Improved the handling of column completion. First we match any
|
||||
" columns from a previous completion. If not matches are found, we
|
||||
" consider the partial name to be a table or table alias for the
|
||||
" consider the partial name to be a table or table alias for the
|
||||
" query and attempt to match on it.
|
||||
"
|
||||
" Version 11.0
|
||||
" Version 11.0 (Jan 2012)
|
||||
" Added g:omni_sql_default_compl_type variable
|
||||
" - You can specify which type of completion to default to
|
||||
" when pressing <C-X><C-O>. The entire list of available
|
||||
@@ -40,7 +60,7 @@
|
||||
" - Prepends error message with SQLComplete so you know who issued
|
||||
" the error.
|
||||
"
|
||||
" Version 9.0
|
||||
" Version 9.0 (May 2010)
|
||||
" This change removes some of the support for tables with spaces in their
|
||||
" names in order to simplify the regexes used to pull out query table
|
||||
" aliases for more robust table name and column name code completion.
|
||||
@@ -51,10 +71,10 @@
|
||||
" Incorrectly re-executed the g:ftplugin_sql_omni_key_right and g:ftplugin_sql_omni_key_left
|
||||
" when drilling in and out of a column list for a table.
|
||||
"
|
||||
" Version 7.0
|
||||
" Version 7.0 (Jan 2010)
|
||||
" Better handling of object names
|
||||
"
|
||||
" Version 6.0
|
||||
" Version 6.0 (Apr 2008)
|
||||
" Supports object names with spaces "my table name"
|
||||
"
|
||||
" Set completion with CTRL-X CTRL-O to autoloaded function.
|
||||
@@ -71,7 +91,9 @@ endif
|
||||
if exists('g:loaded_sql_completion')
|
||||
finish
|
||||
endif
|
||||
let g:loaded_sql_completion = 120
|
||||
let g:loaded_sql_completion = 130
|
||||
let s:keepcpo= &cpo
|
||||
set cpo&vim
|
||||
|
||||
" Maintains filename of dictionary
|
||||
let s:sql_file_table = ""
|
||||
@@ -137,6 +159,13 @@ if !exists('g:omni_sql_default_compl_type')
|
||||
endif
|
||||
|
||||
" This function is used for the 'omnifunc' option.
|
||||
" It is called twice by omni and it is responsible
|
||||
" for returning the completion list of items.
|
||||
" But it must also determine context of what to complete
|
||||
" and what to "replace" with the completion.
|
||||
" The a:base, is replaced directly with what the user
|
||||
" chooses from the choices.
|
||||
" The s:prepend provides context for the completion.
|
||||
function! sqlcomplete#Complete(findstart, base)
|
||||
|
||||
" Default to table name completion
|
||||
@@ -145,6 +174,7 @@ function! sqlcomplete#Complete(findstart, base)
|
||||
if exists('b:sql_compl_type')
|
||||
let compl_type = b:sql_compl_type
|
||||
endif
|
||||
let begindot = 0
|
||||
|
||||
" First pass through this function determines how much of the line should
|
||||
" be replaced by whatever is chosen from the completion list
|
||||
@@ -153,7 +183,6 @@ function! sqlcomplete#Complete(findstart, base)
|
||||
let line = getline('.')
|
||||
let start = col('.') - 1
|
||||
let lastword = -1
|
||||
let begindot = 0
|
||||
" Check if the first character is a ".", for column completion
|
||||
if line[start - 1] == '.'
|
||||
let begindot = 1
|
||||
@@ -179,7 +208,10 @@ function! sqlcomplete#Complete(findstart, base)
|
||||
" If lastword has already been set for column completion
|
||||
" break from the loop, since we do not also want to pickup
|
||||
" a table name if it was also supplied.
|
||||
" Unless g:omni_sql_include_owner == 1, then we can
|
||||
" include the ownername.
|
||||
if lastword != -1 && compl_type == 'column'
|
||||
\ && g:omni_sql_include_owner == 0
|
||||
break
|
||||
endif
|
||||
" If column completion was specified stop at the "." if
|
||||
@@ -191,7 +223,7 @@ function! sqlcomplete#Complete(findstart, base)
|
||||
" If omni_sql_include_owner = 0, do not include the table
|
||||
" name as part of the substitution, so break here
|
||||
if lastword == -1 &&
|
||||
\ compl_type =~ 'table\|view\|procedure\column_csv' &&
|
||||
\ compl_type =~ '\<\(table\|view\|procedure\|column\|column_csv\)\>' &&
|
||||
\ g:omni_sql_include_owner == 0
|
||||
let lastword = start
|
||||
break
|
||||
@@ -288,6 +320,12 @@ function! sqlcomplete#Complete(findstart, base)
|
||||
let table = matchstr( base, '^\(.*\.\)\?\zs.*\ze\..*' )
|
||||
let column = matchstr( base, '.*\.\zs.*' )
|
||||
|
||||
if g:omni_sql_include_owner == 1 && owner == '' && table != '' && column != ''
|
||||
let owner = table
|
||||
let table = column
|
||||
let column = ''
|
||||
endif
|
||||
|
||||
" It is pretty well impossible to determine if the user
|
||||
" has entered:
|
||||
" owner.table
|
||||
@@ -370,7 +408,16 @@ function! sqlcomplete#Complete(findstart, base)
|
||||
let list_type = 'csv'
|
||||
endif
|
||||
|
||||
let compl_list = s:SQLCGetColumns(table, list_type)
|
||||
" If we are including the OWNER for the objects, then for
|
||||
" table completion, if we have it, it should be included
|
||||
" as there can be the same table names in a database yet
|
||||
" with different owner names.
|
||||
if g:omni_sql_include_owner == 1 && owner != '' && table != ''
|
||||
let compl_list = s:SQLCGetColumns(owner.'.'.table, list_type)
|
||||
else
|
||||
let compl_list = s:SQLCGetColumns(table, list_type)
|
||||
endif
|
||||
|
||||
if column != ''
|
||||
" If no column prefix has been provided and the table
|
||||
" name was provided, append it to each of the items
|
||||
@@ -393,11 +440,14 @@ function! sqlcomplete#Complete(findstart, base)
|
||||
endif
|
||||
elseif compl_type == 'resetCache'
|
||||
" Reset all cached items
|
||||
let s:tbl_name = []
|
||||
let s:tbl_alias = []
|
||||
let s:tbl_cols = []
|
||||
let s:syn_list = []
|
||||
let s:syn_value = []
|
||||
let s:tbl_name = []
|
||||
let s:tbl_alias = []
|
||||
let s:tbl_cols = []
|
||||
let s:syn_list = []
|
||||
let s:syn_value = []
|
||||
let s:sql_file_table = ""
|
||||
let s:sql_file_procedure = ""
|
||||
let s:sql_file_view = ""
|
||||
|
||||
let msg = "All SQL cached items have been removed."
|
||||
call s:SQLCWarningMsg(msg)
|
||||
@@ -423,12 +473,27 @@ function! sqlcomplete#Complete(findstart, base)
|
||||
" let expr = 'v:val '.(g:omni_sql_ignorecase==1?'=~?':'=~#').' "\\(^'.base.'\\|\\(\\.\\)\\?'.base.'\\)"'
|
||||
" let expr = 'v:val '.(g:omni_sql_ignorecase==1?'=~?':'=~#').' "\\(^'.base.'\\|\\([^.]*\\)\\?'.base.'\\)"'
|
||||
let compl_list = filter(deepcopy(compl_list), expr)
|
||||
|
||||
if empty(compl_list) && compl_type == 'table' && base =~ '\.$'
|
||||
" It is possible we could be looking for column name completion
|
||||
" and the user simply hit C-X C-O to lets try it as well
|
||||
" since we had no hits with the tables.
|
||||
" If the base ends with a . it is hard to know if we are
|
||||
" completing table names or column names.
|
||||
let list_type = ''
|
||||
|
||||
let compl_list = s:SQLCGetColumns(base, list_type)
|
||||
endif
|
||||
endif
|
||||
|
||||
if exists('b:sql_compl_savefunc') && b:sql_compl_savefunc != ""
|
||||
let &omnifunc = b:sql_compl_savefunc
|
||||
endif
|
||||
|
||||
if empty(compl_list)
|
||||
call s:SQLCWarningMsg( 'Could not find type['.compl_type.'] using prepend[.'.s:prepended.'] base['.a:base.']' )
|
||||
endif
|
||||
|
||||
return compl_list
|
||||
endfunc
|
||||
|
||||
@@ -664,8 +729,26 @@ function! s:SQLCGetObjectOwner(object)
|
||||
endfunction
|
||||
|
||||
function! s:SQLCGetColumns(table_name, list_type)
|
||||
if a:table_name =~ '\.'
|
||||
" Check if the owner/creator has been specified
|
||||
let owner = matchstr( a:table_name, '^\zs.*\ze\..*\..*' )
|
||||
let table = matchstr( a:table_name, '^\(.*\.\)\?\zs.*\ze\..*' )
|
||||
let column = matchstr( a:table_name, '.*\.\zs.*' )
|
||||
|
||||
if g:omni_sql_include_owner == 1 && owner == '' && table != '' && column != ''
|
||||
let owner = table
|
||||
let table = column
|
||||
let column = ''
|
||||
endif
|
||||
else
|
||||
let owner = ''
|
||||
let table = matchstr(a:table_name, '^["\[\]a-zA-Z0-9_ ]\+\ze\.\?')
|
||||
let column = ''
|
||||
endif
|
||||
|
||||
" Check if the table name was provided as part of the column name
|
||||
let table_name = matchstr(a:table_name, '^["\[\]a-zA-Z0-9_ ]\+\ze\.\?')
|
||||
" let table_name = matchstr(a:table_name, '^["\[\]a-zA-Z0-9_ ]\+\ze\.\?')
|
||||
let table_name = table
|
||||
let table_cols = []
|
||||
let table_alias = ''
|
||||
let move_to_top = 1
|
||||
@@ -786,7 +869,12 @@ function! s:SQLCGetColumns(table_name, list_type)
|
||||
|
||||
if table_name_new != ''
|
||||
let table_alias = table_name
|
||||
let table_name = matchstr( table_name_new, '^\(.*\.\)\?\zs.*\ze' )
|
||||
if g:omni_sql_include_owner == 1
|
||||
let table_name = matchstr( table_name_new, '^\zs\(.\{-}\.\)\?\(.\{-}\.\)\?.*\ze' )
|
||||
else
|
||||
" let table_name = matchstr( table_name_new, '^\(.*\.\)\?\zs.*\ze' )
|
||||
let table_name = matchstr( table_name_new, '^\(.\{-}\.\)\?\zs\(.\{-}\.\)\?.*\ze' )
|
||||
endif
|
||||
|
||||
let list_idx = index(s:tbl_name, table_name, 0, &ignorecase)
|
||||
if list_idx > -1
|
||||
@@ -828,7 +916,8 @@ function! s:SQLCGetColumns(table_name, list_type)
|
||||
if empty(table_cols)
|
||||
" Specify silent mode, no messages to the user (tbl, 1)
|
||||
" Specify do not comma separate (tbl, 1, 1)
|
||||
let table_cols_str = DB_getListColumn(table_name, 1, 1)
|
||||
" let table_cols_str = DB_getListColumn(table_name, 1, 1)
|
||||
let table_cols_str = DB_getListColumn((owner!=''?owner.'.':'').table_name, 1, 1)
|
||||
|
||||
if table_cols_str != ""
|
||||
let s:tbl_name = add( s:tbl_name, table_name )
|
||||
@@ -854,3 +943,7 @@ function! s:SQLCGetColumns(table_name, list_type)
|
||||
|
||||
return table_cols
|
||||
endfunction
|
||||
" Restore:
|
||||
let &cpo= s:keepcpo
|
||||
unlet s:keepcpo
|
||||
" vim: ts=4 fdm=marker
|
||||
|
||||
@@ -1,12 +1,32 @@
|
||||
" Vim completion script
|
||||
" Language: All languages, uses existing syntax highlighting rules
|
||||
" Maintainer: David Fishburn <dfishburn dot vim at gmail dot com>
|
||||
" Version: 8.0
|
||||
" Last Change: 2011 Nov 02
|
||||
" Usage: For detailed help, ":help ft-syntax-omni"
|
||||
" Version: 11.0
|
||||
" Last Change: 2012 Dec 04
|
||||
" Usage: For detailed help, ":help ft-syntax-omni"
|
||||
|
||||
" History
|
||||
"
|
||||
" Version 11.0
|
||||
" Corrected which characters required escaping during
|
||||
" substitution calls.
|
||||
"
|
||||
" Version 10.0
|
||||
" Cycle through all the character ranges specified in the
|
||||
" iskeyword option and build a list of valid word separators.
|
||||
" Prior to this change, only actual characters were used,
|
||||
" where for example ASCII "45" == "-". If "45" were used
|
||||
" in iskeyword the hyphen would not be picked up.
|
||||
" This introduces a new option, since the character ranges
|
||||
" specified could be multibyte:
|
||||
" let g:omni_syntax_use_single_byte = 1
|
||||
" This by default will only allow single byte ASCII
|
||||
" characters to be added and an additional check to ensure
|
||||
" the charater is printable (see documentation for isprint).
|
||||
"
|
||||
" Version 9.0
|
||||
" Add the check for cpo.
|
||||
"
|
||||
" Version 8.0
|
||||
" Updated SyntaxCSyntaxGroupItems()
|
||||
" - Some additional syntax items were also allowed
|
||||
@@ -16,7 +36,7 @@
|
||||
" Version 7.0
|
||||
" Updated syntaxcomplete#OmniSyntaxList()
|
||||
" - Looking up the syntax groups defined from a syntax file
|
||||
" looked for only 1 format of {filetype}GroupName, but some
|
||||
" looked for only 1 format of {filetype}GroupName, but some
|
||||
" syntax writers use this format as well:
|
||||
" {b:current_syntax}GroupName
|
||||
" OmniSyntaxList() will now check for both if the first
|
||||
@@ -24,11 +44,11 @@
|
||||
"
|
||||
" Version 6.0
|
||||
" Added syntaxcomplete#OmniSyntaxList()
|
||||
" - Allows other plugins to use this for their own
|
||||
" - Allows other plugins to use this for their own
|
||||
" purposes.
|
||||
" - It will return a List of all syntax items for the
|
||||
" syntax group name passed in.
|
||||
" - XPTemplate for SQL will use this function via the
|
||||
" syntax group name passed in.
|
||||
" - XPTemplate for SQL will use this function via the
|
||||
" sqlcomplete plugin to populate a Choose box.
|
||||
"
|
||||
" Version 5.0
|
||||
@@ -38,7 +58,7 @@
|
||||
"
|
||||
" Set completion with CTRL-X CTRL-O to autoloaded function.
|
||||
" This check is in place in case this script is
|
||||
" sourced directly instead of using the autoload feature.
|
||||
" sourced directly instead of using the autoload feature.
|
||||
if exists('+omnifunc')
|
||||
" Do not set the option if already set since this
|
||||
" results in an E117 warning.
|
||||
@@ -48,9 +68,13 @@ if exists('+omnifunc')
|
||||
endif
|
||||
|
||||
if exists('g:loaded_syntax_completion')
|
||||
finish
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntax_completion = 80
|
||||
let g:loaded_syntax_completion = 110
|
||||
|
||||
" Turn on support for line continuations when creating the script
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
" Set ignorecase to the ftplugin standard
|
||||
" This is the default setting, but if you define a buffer local
|
||||
@@ -67,6 +91,18 @@ if !exists('g:omni_syntax_use_iskeyword')
|
||||
let g:omni_syntax_use_iskeyword = 1
|
||||
endif
|
||||
|
||||
" When using iskeyword, this setting controls whether the characters
|
||||
" should be limited to single byte characters.
|
||||
if !exists('g:omni_syntax_use_single_byte')
|
||||
let g:omni_syntax_use_single_byte = 1
|
||||
endif
|
||||
|
||||
" When using iskeyword, this setting controls whether the characters
|
||||
" should be limited to single byte characters.
|
||||
if !exists('g:omni_syntax_use_iskeyword_numeric')
|
||||
let g:omni_syntax_use_iskeyword_numeric = 1
|
||||
endif
|
||||
|
||||
" Only display items in the completion window that are at least
|
||||
" this many characters in length.
|
||||
" This is the default setting, but if you define a buffer local
|
||||
@@ -158,7 +194,7 @@ endfunc
|
||||
function! syntaxcomplete#OmniSyntaxList(...)
|
||||
if a:0 > 0
|
||||
let parms = []
|
||||
if 3 == type(a:1)
|
||||
if 3 == type(a:1)
|
||||
let parms = a:1
|
||||
elseif 1 == type(a:1)
|
||||
let parms = split(a:1, ',')
|
||||
@@ -172,7 +208,7 @@ endfunc
|
||||
function! OmniSyntaxList(...)
|
||||
let list_parms = []
|
||||
if a:0 > 0
|
||||
if 3 == type(a:1)
|
||||
if 3 == type(a:1)
|
||||
let list_parms = a:1
|
||||
elseif 1 == type(a:1)
|
||||
let list_parms = split(a:1, ',')
|
||||
@@ -208,18 +244,18 @@ function! OmniSyntaxList(...)
|
||||
|
||||
let saveL = @l
|
||||
let filetype = substitute(&filetype, '\.', '_', 'g')
|
||||
|
||||
|
||||
if empty(list_parms)
|
||||
" Default the include group to include the requested syntax group
|
||||
let syntax_group_include_{filetype} = ''
|
||||
" Check if there are any overrides specified for this filetype
|
||||
if exists('g:omni_syntax_group_include_'.filetype)
|
||||
let syntax_group_include_{filetype} =
|
||||
\ substitute( g:omni_syntax_group_include_{filetype},'\s\+','','g')
|
||||
\ substitute( g:omni_syntax_group_include_{filetype},'\s\+','','g')
|
||||
let list_parms = split(g:omni_syntax_group_include_{filetype}, ',')
|
||||
if syntax_group_include_{filetype} =~ '\w'
|
||||
let syntax_group_include_{filetype} =
|
||||
\ substitute( syntax_group_include_{filetype},
|
||||
let syntax_group_include_{filetype} =
|
||||
\ substitute( syntax_group_include_{filetype},
|
||||
\ '\s*,\s*', '\\|', 'g'
|
||||
\ )
|
||||
endif
|
||||
@@ -229,11 +265,11 @@ function! OmniSyntaxList(...)
|
||||
endif
|
||||
|
||||
" Loop through all the syntax groupnames, and build a
|
||||
" syntax file which contains these names. This can
|
||||
" syntax file which contains these names. This can
|
||||
" work generically for any filetype that does not already
|
||||
" have a plugin defined.
|
||||
" This ASSUMES the syntax groupname BEGINS with the name
|
||||
" of the filetype. From my casual viewing of the vim7\syntax
|
||||
" of the filetype. From my casual viewing of the vim7\syntax
|
||||
" directory this is true for almost all syntax definitions.
|
||||
" As an example, the SQL syntax groups have this pattern:
|
||||
" sqlType
|
||||
@@ -246,7 +282,7 @@ function! OmniSyntaxList(...)
|
||||
let syntax_full = "\n".@l
|
||||
let @l = saveL
|
||||
|
||||
if syntax_full =~ 'E28'
|
||||
if syntax_full =~ 'E28'
|
||||
\ || syntax_full =~ 'E411'
|
||||
\ || syntax_full =~ 'E415'
|
||||
\ || syntax_full =~ 'No Syntax items'
|
||||
@@ -256,7 +292,7 @@ function! OmniSyntaxList(...)
|
||||
let filetype = substitute(&filetype, '\.', '_', 'g')
|
||||
|
||||
let list_exclude_groups = []
|
||||
if a:0 > 0
|
||||
if a:0 > 0
|
||||
" Do nothing since we have specific a specific list of groups
|
||||
else
|
||||
" Default the exclude group to nothing
|
||||
@@ -264,11 +300,11 @@ function! OmniSyntaxList(...)
|
||||
" Check if there are any overrides specified for this filetype
|
||||
if exists('g:omni_syntax_group_exclude_'.filetype)
|
||||
let syntax_group_exclude_{filetype} =
|
||||
\ substitute( g:omni_syntax_group_exclude_{filetype},'\s\+','','g')
|
||||
\ substitute( g:omni_syntax_group_exclude_{filetype},'\s\+','','g')
|
||||
let list_exclude_groups = split(g:omni_syntax_group_exclude_{filetype}, ',')
|
||||
if syntax_group_exclude_{filetype} =~ '\w'
|
||||
let syntax_group_exclude_{filetype} =
|
||||
\ substitute( syntax_group_exclude_{filetype},
|
||||
if syntax_group_exclude_{filetype} =~ '\w'
|
||||
let syntax_group_exclude_{filetype} =
|
||||
\ substitute( syntax_group_exclude_{filetype},
|
||||
\ '\s*,\s*', '\\|', 'g'
|
||||
\ )
|
||||
endif
|
||||
@@ -285,14 +321,14 @@ function! OmniSyntaxList(...)
|
||||
while ftindex > -1
|
||||
let ft_part_name = matchstr( &filetype, '\w\+', ftindex )
|
||||
|
||||
" Syntax rules can contain items for more than just the current
|
||||
" Syntax rules can contain items for more than just the current
|
||||
" filetype. They can contain additional items added by the user
|
||||
" via autocmds or their vimrc.
|
||||
" Some syntax files can be combined (html, php, jsp).
|
||||
" We want only items that begin with the filetype we are interested in.
|
||||
let next_group_regex = '\n' .
|
||||
\ '\zs'.ft_part_name.'\w\+\ze'.
|
||||
\ '\s\+xxx\s\+'
|
||||
\ '\s\+xxx\s\+'
|
||||
let index = 0
|
||||
let index = match(syntax_full, next_group_regex, index)
|
||||
|
||||
@@ -306,11 +342,11 @@ function! OmniSyntaxList(...)
|
||||
" syn keyword {syntax_filename}Keyword values ...
|
||||
" let b:current_syntax = "mysql"
|
||||
" So, we will make the format of finding the syntax group names
|
||||
" a bit more flexible and look for both if the first fails to
|
||||
" a bit more flexible and look for both if the first fails to
|
||||
" find a match.
|
||||
let next_group_regex = '\n' .
|
||||
\ '\zs'.b:current_syntax.'\w\+\ze'.
|
||||
\ '\s\+xxx\s\+'
|
||||
\ '\s\+xxx\s\+'
|
||||
let index = 0
|
||||
let index = match(syntax_full, next_group_regex, index)
|
||||
endif
|
||||
@@ -324,9 +360,9 @@ function! OmniSyntaxList(...)
|
||||
let get_syn_list = 0
|
||||
endif
|
||||
endfor
|
||||
|
||||
|
||||
" This code is no longer needed in version 6.0 since we have
|
||||
" augmented the syntax list command to only retrieve the syntax
|
||||
" augmented the syntax list command to only retrieve the syntax
|
||||
" groups we are interested in.
|
||||
"
|
||||
" if get_syn_list == 1
|
||||
@@ -338,7 +374,7 @@ function! OmniSyntaxList(...)
|
||||
" endif
|
||||
|
||||
if get_syn_list == 1
|
||||
" Pass in the full syntax listing, plus the group name we
|
||||
" Pass in the full syntax listing, plus the group name we
|
||||
" are interested in.
|
||||
let extra_syn_list = s:SyntaxCSyntaxGroupItems(group_name, syntax_full)
|
||||
let syn_list = syn_list . extra_syn_list . "\n"
|
||||
@@ -392,7 +428,7 @@ function! s:SyntaxCSyntaxGroupItems( group_name, syntax_full )
|
||||
" \| - 2nd potential match
|
||||
" \%$ - matches end of the file or string
|
||||
" \) - end a group
|
||||
let syntax_group = matchstr(a:syntax_full,
|
||||
let syntax_group = matchstr(a:syntax_full,
|
||||
\ "\n".a:group_name.'\s\+xxx\s\+\zs.\{-}\ze\(\n\w\|\%$\)'
|
||||
\ )
|
||||
|
||||
@@ -402,42 +438,42 @@ function! s:SyntaxCSyntaxGroupItems( group_name, syntax_full )
|
||||
|
||||
" We only want the words for the lines begining with
|
||||
" containedin, but there could be other items.
|
||||
|
||||
|
||||
" Tried to remove all lines that do not begin with contained
|
||||
" but this does not work in all cases since you can have
|
||||
" contained nextgroup=...
|
||||
" So this will strip off the ending of lines with known
|
||||
" keywords.
|
||||
let syn_list = substitute(
|
||||
let syn_list = substitute(
|
||||
\ syntax_group, '\<\('.
|
||||
\ substitute(
|
||||
\ escape(s:syn_remove_words, '\\/.*$^~[]')
|
||||
\ , ',', '\\|', 'g'
|
||||
\ ).
|
||||
\ '\).\{-}\%($\|'."\n".'\)'
|
||||
\ , "\n", 'g'
|
||||
\ , "\n", 'g'
|
||||
\ )
|
||||
|
||||
" Now strip off the newline + blank space + contained.
|
||||
" Also include lines with nextgroup=@someName skip_key_words syntax_element
|
||||
let syn_list = substitute(
|
||||
let syn_list = substitute(
|
||||
\ syn_list, '\%(^\|\n\)\@<=\s*\<\(contained\|nextgroup=\)'
|
||||
\ , "", 'g'
|
||||
\ , "", 'g'
|
||||
\ )
|
||||
|
||||
" This can leave lines like this
|
||||
" =@vimMenuList skipwhite onoremenu
|
||||
" Strip the special option keywords first
|
||||
" :h :syn-skipwhite*
|
||||
let syn_list = substitute(
|
||||
let syn_list = substitute(
|
||||
\ syn_list, '\<\(skipwhite\|skipnl\|skipempty\)\>'
|
||||
\ , "", 'g'
|
||||
\ , "", 'g'
|
||||
\ )
|
||||
|
||||
" Now remove the remainder of the nextgroup=@someName lines
|
||||
let syn_list = substitute(
|
||||
let syn_list = substitute(
|
||||
\ syn_list, '\%(^\|\n\)\@<=\s*\(@\w\+\)'
|
||||
\ , "", 'g'
|
||||
\ , "", 'g'
|
||||
\ )
|
||||
|
||||
if b:omni_syntax_use_iskeyword == 0
|
||||
@@ -446,19 +482,74 @@ function! s:SyntaxCSyntaxGroupItems( group_name, syntax_full )
|
||||
" This will replace non-word characters with spaces.
|
||||
let syn_list = substitute( syn_list, '[^0-9A-Za-z_ ]', ' ', 'g' )
|
||||
else
|
||||
let accept_chars = ','.&iskeyword.','
|
||||
" Remove all character ranges
|
||||
" let accept_chars = substitute(accept_chars, ',[^,]\+-[^,]\+,', ',', 'g')
|
||||
let accept_chars = substitute(accept_chars, ',\@<=[^,]\+-[^,]\+,', '', 'g')
|
||||
" Remove all numeric specifications
|
||||
" let accept_chars = substitute(accept_chars, ',\d\{-},', ',', 'g')
|
||||
let accept_chars = substitute(accept_chars, ',\@<=\d\{-},', '', 'g')
|
||||
" Remove all commas
|
||||
let accept_chars = substitute(accept_chars, ',', '', 'g')
|
||||
" Escape special regex characters
|
||||
let accept_chars = escape(accept_chars, '\\/.*$^~[]' )
|
||||
" Remove all characters that are not acceptable
|
||||
let syn_list = substitute( syn_list, '[^0-9A-Za-z_ '.accept_chars.']', ' ', 'g' )
|
||||
if g:omni_syntax_use_iskeyword_numeric == 1
|
||||
" iskeyword can contain value like this
|
||||
" 38,42,43,45,47-58,60-62,64-90,97-122,_,+,-,*,/,%,<,=,>,:,$,?,!,@-@,94
|
||||
" Numeric values convert to their ASCII equivalent using the
|
||||
" nr2char() function.
|
||||
" & 38
|
||||
" * 42
|
||||
" + 43
|
||||
" - 45
|
||||
" ^ 94
|
||||
" Iterate through all numeric specifications and convert those
|
||||
" to their ascii equivalent ensuring the character is printable.
|
||||
" If so, add it to the list.
|
||||
let accepted_chars = ''
|
||||
for item in split(&iskeyword, ',')
|
||||
if item =~ '-'
|
||||
" This is a character range (ie 47-58),
|
||||
" cycle through each character within the range
|
||||
let [b:start, b:end] = split(item, '-')
|
||||
for range_item in range( b:start, b:end )
|
||||
if range_item <= 127 || g:omni_syntax_use_single_byte == 0
|
||||
if nr2char(range_item) =~ '\p'
|
||||
let accepted_chars = accepted_chars . nr2char(range_item)
|
||||
endif
|
||||
endif
|
||||
endfor
|
||||
elseif item =~ '^\d\+$'
|
||||
" Only numeric, translate to a character
|
||||
if item < 127 || g:omni_syntax_use_single_byte == 0
|
||||
if nr2char(item) =~ '\p'
|
||||
let accepted_chars = accepted_chars . nr2char(item)
|
||||
endif
|
||||
endif
|
||||
else
|
||||
if char2nr(item) < 127 || g:omni_syntax_use_single_byte == 0
|
||||
if item =~ '\p'
|
||||
let accepted_chars = accepted_chars . item
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endfor
|
||||
" Escape special regex characters
|
||||
" Looks like the wrong chars are escaped. In a collection,
|
||||
" :h /[]
|
||||
" only `]', `\', `-' and `^' are special:
|
||||
" let accepted_chars = escape(accepted_chars, '\\/.*$^~[]' )
|
||||
let accepted_chars = escape(accepted_chars, ']\-^' )
|
||||
" Remove all characters that are not acceptable
|
||||
let syn_list = substitute( syn_list, '[^A-Za-z'.accepted_chars.']', ' ', 'g' )
|
||||
else
|
||||
let accept_chars = ','.&iskeyword.','
|
||||
" Remove all character ranges
|
||||
" let accept_chars = substitute(accept_chars, ',[^,]\+-[^,]\+,', ',', 'g')
|
||||
let accept_chars = substitute(accept_chars, ',\@<=[^,]\+-[^,]\+,', '', 'g')
|
||||
" Remove all numeric specifications
|
||||
" let accept_chars = substitute(accept_chars, ',\d\{-},', ',', 'g')
|
||||
let accept_chars = substitute(accept_chars, ',\@<=\d\{-},', '', 'g')
|
||||
" Remove all commas
|
||||
let accept_chars = substitute(accept_chars, ',', '', 'g')
|
||||
" Escape special regex characters
|
||||
" Looks like the wrong chars are escaped. In a collection,
|
||||
" :h /[]
|
||||
" only `]', `\', `-' and `^' are special:
|
||||
" let accept_chars = escape(accept_chars, '\\/.*$^~[]' )
|
||||
let accept_chars = escape(accept_chars, ']\-^' )
|
||||
" Remove all characters that are not acceptable
|
||||
let syn_list = substitute( syn_list, '[^0-9A-Za-z_'.accept_chars.']', ' ', 'g' )
|
||||
endif
|
||||
endif
|
||||
|
||||
if b:omni_syntax_minimum_length > 0
|
||||
@@ -471,3 +562,27 @@ function! s:SyntaxCSyntaxGroupItems( group_name, syntax_full )
|
||||
|
||||
return syn_list
|
||||
endfunction
|
||||
|
||||
function! OmniSyntaxShowChars(spec)
|
||||
let result = []
|
||||
for item in split(a:spec, ',')
|
||||
if len(item) > 1
|
||||
if item == '@-@'
|
||||
call add(result, char2nr(item))
|
||||
else
|
||||
call extend(result, call('range', split(item, '-')))
|
||||
endif
|
||||
else
|
||||
if item == '@' " assume this is [A-Za-z]
|
||||
for [c1, c2] in [['A', 'Z'], ['a', 'z']]
|
||||
call extend(result, range(char2nr(c1), char2nr(c2)))
|
||||
endfor
|
||||
else
|
||||
call add(result, char2nr(item))
|
||||
endif
|
||||
endif
|
||||
endfor
|
||||
return join(map(result, 'nr2char(v:val)'), ', ')
|
||||
endfunction
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*autocmd.txt* For Vim version 7.3. Last change: 2012 Jul 10
|
||||
*autocmd.txt* For Vim version 7.3. Last change: 2012 Sep 05
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -263,8 +263,10 @@ Name triggered by ~
|
||||
Startup and exit
|
||||
|VimEnter| after doing all the startup stuff
|
||||
|GUIEnter| after starting the GUI successfully
|
||||
|GUIFailed| after starting the GUI failed
|
||||
|TermResponse| after the terminal response to |t_RV| is received
|
||||
|
||||
|QuitPre| when using `:quit`, before deciding whether to quit
|
||||
|VimLeavePre| before exiting Vim, before writing the viminfo file
|
||||
|VimLeave| before exiting Vim, after writing the viminfo file
|
||||
|
||||
@@ -312,6 +314,7 @@ Name triggered by ~
|
||||
|SessionLoadPost| after loading a session file
|
||||
|
||||
|MenuPopup| just before showing the popup menu
|
||||
|CompleteDone| after Insert mode completion is done
|
||||
|
||||
|User| to be used in combination with ":doautocmd"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*change.txt* For Vim version 7.3. Last change: 2012 Aug 08
|
||||
*change.txt* For Vim version 7.3. Last change: 2012 Nov 02
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -598,8 +598,11 @@ For other systems the tmpnam() library function is used.
|
||||
the flags.
|
||||
|
||||
*g&*
|
||||
g& Synonym for `:%s//~/&` (repeat last substitute on all
|
||||
lines with the same flags).
|
||||
g& Synonym for `:%s//~/&` (repeat last substitute with
|
||||
last search pattern on all lines with the same flags).
|
||||
For exaple, when you first do a substitution with
|
||||
`:s/pattern/repl/flags` and then `/search` for
|
||||
something else, `g&` will do `:%s/search/repl/flags`.
|
||||
Mnemonic: global substitute. {not in Vi}
|
||||
|
||||
*:snomagic* *:sno*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*cmdline.txt* For Vim version 7.3. Last change: 2012 Jun 20
|
||||
*cmdline.txt* For Vim version 7.3. Last change: 2012 Oct 11
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -217,7 +217,7 @@ CTRL-\ e {expr} *c_CTRL-\_e*
|
||||
:return cmd
|
||||
:endfunc
|
||||
< This doesn't work recursively, thus not when already editing
|
||||
an expression.
|
||||
an expression. But it is possible to use in a mapping.
|
||||
|
||||
*c_CTRL-Y*
|
||||
CTRL-Y When there is a modeless selection, copy the selection into
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*diff.txt* For Vim version 7.3. Last change: 2012 Aug 08
|
||||
*diff.txt* For Vim version 7.3. Last change: 2012 Sep 05
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -86,16 +86,16 @@ diff mode. You could use a construct like this: >
|
||||
While already in Vim you can start diff mode in three ways.
|
||||
|
||||
*E98*
|
||||
:diffsplit {filename} *:diffs* *:diffsplit*
|
||||
:diffs[plit] {filename} *:diffs* *:diffsplit*
|
||||
Open a new window on the file {filename}. The options are set
|
||||
as for "vimdiff" for the current and the newly opened window.
|
||||
Also see 'diffexpr'.
|
||||
|
||||
*:difft* *:diffthis*
|
||||
:diffthis Make the current window part of the diff windows. This sets
|
||||
:difft[his] Make the current window part of the diff windows. This sets
|
||||
the options like for "vimdiff".
|
||||
|
||||
:diffpatch {patchfile} *E816* *:diffp* *:diffpatch*
|
||||
:diffp[atch] {patchfile} *E816* *:diffp* *:diffpatch*
|
||||
Use the current buffer, patch it with the diff found in
|
||||
{patchfile} and open a buffer on the result. The options are
|
||||
set as for "vimdiff".
|
||||
@@ -123,9 +123,9 @@ Since the option values are remembered with the buffer, you can edit another
|
||||
file for a moment and come back to the same file and be in diff mode again.
|
||||
|
||||
*:diffo* *:diffoff*
|
||||
:diffoff Switch off diff mode for the current window.
|
||||
:diffo[ff] Switch off diff mode for the current window.
|
||||
|
||||
:diffoff! Switch off diff mode for the current window and in all windows
|
||||
:diffo[ff]! Switch off diff mode for the current window and in all windows
|
||||
in the current tab page where 'diff' is set.
|
||||
|
||||
The ":diffoff" command resets the relevant options to their default value.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*eval.txt* For Vim version 7.3. Last change: 2012 Aug 02
|
||||
*eval.txt* For Vim version 7.3. Last change: 2012 Dec 05
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -91,8 +91,8 @@ For boolean operators Numbers are used. Zero is FALSE, non-zero is TRUE.
|
||||
Note that in the command >
|
||||
:if "foo"
|
||||
"foo" is converted to 0, which means FALSE. To test for a non-empty string,
|
||||
use strlen(): >
|
||||
:if strlen("foo")
|
||||
use empty(): >
|
||||
:if !empty("foo")
|
||||
< *E745* *E728* *E703* *E729* *E730* *E731*
|
||||
List, Dictionary and Funcref types are not automatically converted.
|
||||
|
||||
@@ -759,7 +759,7 @@ of a |List| is different from the original |List|. When using "is" without
|
||||
a |List| or a |Dictionary| it is equivalent to using "equal", using "isnot"
|
||||
equivalent to using "not equal". Except that a different type means the
|
||||
values are different: "4 == '4'" is true, "4 is '4'" is false and "0 is []" is
|
||||
false and not a error. "is#"/"isnot#" and "is?"/"isnot?" can be used to match
|
||||
false and not an error. "is#"/"isnot#" and "is?"/"isnot?" can be used to match
|
||||
and ignore case.
|
||||
|
||||
When comparing a String with a Number, the String is converted to a Number,
|
||||
@@ -1903,6 +1903,8 @@ repeat( {expr}, {count}) String repeat {expr} {count} times
|
||||
resolve( {filename}) String get filename a shortcut points to
|
||||
reverse( {list}) List reverse {list} in-place
|
||||
round( {expr}) Float round off {expr}
|
||||
screencol() Number current cursor column
|
||||
screenrow() Number current cursor row
|
||||
search( {pattern} [, {flags} [, {stopline} [, {timeout}]]])
|
||||
Number search for {pattern}
|
||||
searchdecl( {name} [, {global} [, {thisblock}]])
|
||||
@@ -1932,6 +1934,7 @@ setwinvar( {nr}, {varname}, {val}) set {varname} in window {nr} to {val}
|
||||
shellescape( {string} [, {special}])
|
||||
String escape {string} for use as shell
|
||||
command argument
|
||||
shiftwidth() Number effective value of 'shiftwidth'
|
||||
simplify( {filename}) String simplify filename as much as possible
|
||||
sin( {expr}) Float sine of {expr}
|
||||
sinh( {expr}) Float hyperbolic sine of {expr}
|
||||
@@ -3754,10 +3757,10 @@ inputdialog({prompt} [, {text} [, {cancelreturn}]]) *inputdialog()*
|
||||
Like |input()|, but when the GUI is running and text dialogs
|
||||
are supported, a dialog window pops up to input the text.
|
||||
Example: >
|
||||
:let n = inputdialog("value for shiftwidth", &sw)
|
||||
:if n != ""
|
||||
: let &sw = n
|
||||
:endif
|
||||
:let n = inputdialog("value for shiftwidth", shiftwidth())
|
||||
:if n != ""
|
||||
: let &sw = n
|
||||
:endif
|
||||
< When the dialog is cancelled {cancelreturn} is returned. When
|
||||
omitted an empty string is returned.
|
||||
Hitting <Enter> works like pressing the OK button. Hitting
|
||||
@@ -4450,6 +4453,7 @@ printf({fmt}, {expr1} ...) *printf()*
|
||||
|
||||
Often used items are:
|
||||
%s string
|
||||
%6S string right-aligned in 6 display cells
|
||||
%6s string right-aligned in 6 bytes
|
||||
%.9s string truncated to 9 bytes
|
||||
%c single byte
|
||||
@@ -4564,6 +4568,10 @@ printf({fmt}, {expr1} ...) *printf()*
|
||||
s The text of the String argument is used. If a
|
||||
precision is specified, no more bytes than the number
|
||||
specified are used.
|
||||
S The text of the String argument is used. If a
|
||||
precision is specified, no more display cells than the
|
||||
number specified are used. Without the |+multi_byte|
|
||||
feature works just like 's'.
|
||||
|
||||
*printf-f* *E807*
|
||||
f The Float argument is converted into a string of the
|
||||
@@ -4635,8 +4643,8 @@ pyeval({expr}) *pyeval()*
|
||||
Numbers and strings are returned as they are (strings are
|
||||
copied though).
|
||||
Lists are represented as Vim |List| type.
|
||||
Dictionaries are represented as Vim |Dictionary| type with
|
||||
keys converted to strings.
|
||||
Dictionaries are represented as Vim |Dictionary| type,
|
||||
non-string keys result in error.
|
||||
{only available when compiled with the |+python| feature}
|
||||
|
||||
*E726* *E727*
|
||||
@@ -4866,15 +4874,34 @@ round({expr}) *round()*
|
||||
echo round(-4.5)
|
||||
< -5.0
|
||||
{only available when compiled with the |+float| feature}
|
||||
|
||||
|
||||
|
||||
screencol() *screencol()*
|
||||
The result is a Number, which is the current screen column of
|
||||
the cursor. The leftmost column has number 1.
|
||||
This function is mainly used for testing.
|
||||
|
||||
Note: Always returns the current screen column, thus if used
|
||||
in a command (e.g. ":echo screencol()") it will return the
|
||||
column inside the command line, which is 1 when the command is
|
||||
executed. To get the cursor position in the file use one of
|
||||
the following mappings: >
|
||||
nnoremap <expr> GG ":echom ".screencol()."\n"
|
||||
nnoremap <silent> GG :echom screencol()<CR>
|
||||
<
|
||||
screenrow() *screenrow()*
|
||||
The result is a Number, which is the current screen row of the
|
||||
cursor. The top line has number one.
|
||||
This function is mainly used for testing.
|
||||
|
||||
Note: Same restrictions as with |screencol()|.
|
||||
|
||||
search({pattern} [, {flags} [, {stopline} [, {timeout}]]]) *search()*
|
||||
Search for regexp pattern {pattern}. The search starts at the
|
||||
cursor position (you can use |cursor()| to set it).
|
||||
|
||||
When a match has been found its line number is returned.
|
||||
If there is no match a 0 is returned and the cursor doesn't
|
||||
move. No error message is given.
|
||||
When a match has been found its line number is returned.
|
||||
|
||||
{flags} is a String, which can contain these character flags:
|
||||
'b' search backward instead of forward
|
||||
@@ -5253,8 +5280,9 @@ setreg({regname}, {value} [,{options}])
|
||||
|
||||
If {options} contains no register settings, then the default
|
||||
is to use character mode unless {value} ends in a <NL>.
|
||||
Setting the '=' register is not possible.
|
||||
Returns zero for success, non-zero for failure.
|
||||
Setting the '=' register is not possible, but you can use >
|
||||
:let @= = var_expr
|
||||
< Returns zero for success, non-zero for failure.
|
||||
|
||||
Examples: >
|
||||
:call setreg(v:register, @*)
|
||||
@@ -5330,6 +5358,23 @@ shellescape({string} [, {special}]) *shellescape()*
|
||||
:call system("chmod +w -- " . shellescape(expand("%")))
|
||||
|
||||
|
||||
shiftwidth() *shiftwidth()*
|
||||
Returns the effective value of 'shiftwidth'. This is the
|
||||
'shiftwidth' value unless it is zero, in which case it is the
|
||||
'tabstop' value. To be backwards compatible in indent
|
||||
plugins, use this: >
|
||||
if exists('*shiftwidth')
|
||||
func s:sw()
|
||||
return shiftwidth()
|
||||
endfunc
|
||||
else
|
||||
func s:sw()
|
||||
return &sw
|
||||
endfunc
|
||||
endif
|
||||
< And then use s:sw() instead of &sw.
|
||||
|
||||
|
||||
simplify({filename}) *simplify()*
|
||||
Simplify the file name as much as possible without changing
|
||||
the meaning. Shortcuts (on MS-Windows) or symbolic links (on
|
||||
@@ -5459,7 +5504,8 @@ split({expr} [, {pattern} [, {keepempty}]]) *split()*
|
||||
empty each white-separated sequence of characters becomes an
|
||||
item.
|
||||
Otherwise the string is split where {pattern} matches,
|
||||
removing the matched characters.
|
||||
removing the matched characters. 'ignorecase' is not used
|
||||
here, add \c to ignore case. |/\c|
|
||||
When the first or last item is empty it is omitted, unless the
|
||||
{keepempty} argument is given and it's non-zero.
|
||||
Other empty items are kept when {pattern} matches at least one
|
||||
@@ -5669,8 +5715,10 @@ substitute({expr}, {pat}, {sub}, {flags}) *substitute()*
|
||||
This works like the ":substitute" command (without any flags).
|
||||
But the matching with {pat} is always done like the 'magic'
|
||||
option is set and 'cpoptions' is empty (to make scripts
|
||||
portable). 'ignorecase' is still relevant. 'smartcase' is
|
||||
not used. See |string-match| for how {pat} is used.
|
||||
portable). 'ignorecase' is still relevant, use |/\c| or |/\C|
|
||||
if you want to ignore or match case and ignore 'ignorecase'.
|
||||
'smartcase' is not used. See |string-match| for how {pat} is
|
||||
used.
|
||||
|
||||
A "~" in {sub} is not replaced with the previous {sub}.
|
||||
Note that some codes in {sub} have a special meaning
|
||||
@@ -6135,8 +6183,9 @@ winline() The result is a Number, which is the screen line of the cursor
|
||||
winnr([{arg}]) The result is a Number, which is the number of the current
|
||||
window. The top window has number 1.
|
||||
When the optional argument is "$", the number of the
|
||||
last window is returned (the window count).
|
||||
When the optional argument is "#", the number of the last
|
||||
last window is returned (the window count). >
|
||||
let window_count = winnr('$')
|
||||
< When the optional argument is "#", the number of the last
|
||||
accessed window is returned (where |CTRL-W_p| goes to).
|
||||
If there is no previous window or it is in another tab page 0
|
||||
is returned.
|
||||
@@ -6507,6 +6556,8 @@ See |:verbose-cmd| for more information.
|
||||
is excluded, ":{range}call" will call the function for
|
||||
each line in the range, with the cursor on the start
|
||||
of each line. See |function-range-example|.
|
||||
The cursor is still moved to the first line of the
|
||||
range, as is the case with all Ex commands.
|
||||
|
||||
When the [abort] argument is added, the function will
|
||||
abort as soon as an error is detected.
|
||||
|
||||
@@ -93,7 +93,7 @@ Details
|
||||
This is also the keymap when 'keymap=hebrew' is set. The advantage of
|
||||
'keymap' is that it works properly when using UTF8, e.g. it inserts the
|
||||
correct characters; 'hkmap' does not. The 'keymap' keyboard can also
|
||||
insert niqud and te`amim. To see what those mappings are,look at the
|
||||
insert niqud and te`amim. To see what those mappings are, look at the
|
||||
keymap file 'hebrew.vim' etc.
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*helphelp.txt* For Vim version 7.3. Last change: 2012 May 18
|
||||
*helphelp.txt* For Vim version 7.3. Last change: 2012 Nov 28
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -194,11 +194,12 @@ command: >
|
||||
*E154* *E150* *E151* *E152* *E153* *E670*
|
||||
:helpt[ags] [++t] {dir}
|
||||
Generate the help tags file(s) for directory {dir}.
|
||||
All "*.txt" and "*.??x" files in the directory are
|
||||
scanned for a help tag definition in between stars.
|
||||
The "*.??x" files are for translated docs, they
|
||||
generate the "tags-??" file, see |help-translated|.
|
||||
The generated tags files are sorted.
|
||||
All "*.txt" and "*.??x" files in the directory and
|
||||
sub-directories are scanned for a help tag definition
|
||||
in between stars. The "*.??x" files are for
|
||||
translated docs, they generate the "tags-??" file, see
|
||||
|help-translated|. The generated tags files are
|
||||
sorted.
|
||||
When there are duplicates an error message is given.
|
||||
An existing tags file is silently overwritten.
|
||||
The optional "++t" argument forces adding the
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*if_perl.txt* For Vim version 7.3. Last change: 2012 Aug 02
|
||||
*if_perl.txt* For Vim version 7.3. Last change: 2012 Oct 25
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Sven Verdoolaege
|
||||
@@ -175,7 +175,8 @@ VIM::Windows([{wn}...]) With no arguments, returns a list of all the windows
|
||||
VIM::DoCommand({cmd}) Executes Ex command {cmd}.
|
||||
|
||||
*perl-Eval*
|
||||
VIM::Eval({expr}) Evaluates {expr} and returns (success, val).
|
||||
VIM::Eval({expr}) Evaluates {expr} and returns (success, value) in list
|
||||
context or just value in scalar context.
|
||||
success=1 indicates that val contains the value of
|
||||
{expr}; success=0 indicates a failure to evaluate
|
||||
the expression. '@x' returns the contents of register
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*if_pyth.txt* For Vim version 7.3. Last change: 2012 Aug 02
|
||||
*if_pyth.txt* For Vim version 7.3. Last change: 2012 Sep 23
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Paul Moore
|
||||
@@ -159,6 +159,26 @@ vim.bindeval(str) *python-bindeval*
|
||||
vimlist or vimdictionary python type that are connected to original
|
||||
list or dictionary. Thus modifications to these objects imply
|
||||
modifications of the original.
|
||||
|
||||
Additionally, vimlist and vimdictionary type have read-write
|
||||
`.locked` attribute that returns
|
||||
Value Meaning ~
|
||||
zero Variable is not locked
|
||||
vim.VAR_LOCKED Variable is locked, but can be unlocked
|
||||
vim.VAR_FIXED Variable is locked and can't be unlocked
|
||||
integer constants. If variable is not fixed, you can do
|
||||
`var.locked=True` to lock it and `var.locked=False` to unlock.
|
||||
There is no recursive locking like |:lockvar|! does. There is also
|
||||
no way to lock a specific key or check whether it is locked (in any
|
||||
case these locks are ignored by anything except |:let|: |extend()|
|
||||
does not care, neither does python interface).
|
||||
|
||||
Vimdictionary type also supports `.scope` attribute which is one of
|
||||
Value Meaning ~
|
||||
zero Dictionary is not a scope one
|
||||
vim.VAR_DEF_SCOPE Function-local or global scope dictionary
|
||||
vim.VAR_SCOPE Other scope dictionary
|
||||
|
||||
2. if expression evaluates to a function reference, then it returns
|
||||
callable vimfunction object. Use self keyword argument to assign
|
||||
|self| object for dictionary functions.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*indent.txt* For Vim version 7.3. Last change: 2011 Sep 02
|
||||
*indent.txt* For Vim version 7.3. Last change: 2012 Aug 30
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -540,7 +540,7 @@ The examples below assume a 'shiftwidth' of 4.
|
||||
*cino-star*
|
||||
*N Vim searches for unclosed comments at most N lines away. This
|
||||
limits the time needed to search for the start of a comment.
|
||||
If your /* */ comments stop indenting afer N lines this is the
|
||||
If your /* */ comments stop indenting after N lines this is the
|
||||
value you will want to change.
|
||||
(default 70 lines).
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*intro.txt* For Vim version 7.3. Last change: 2011 May 15
|
||||
*intro.txt* For Vim version 7.3. Last change: 2012 Sep 05
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -394,6 +394,8 @@ CTRL-{char} {char} typed as a control character; that is, typing {char}
|
||||
*quotecommandquote*
|
||||
"command" A reference to a command that you can type is enclosed in
|
||||
double quotes.
|
||||
`command` New style command, this distinguishes it from other
|
||||
quoted text and strings.
|
||||
|
||||
*key-notation* *key-codes* *keycodes*
|
||||
These names for keys are used in the documentation. They can also be used
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*mbyte.txt* For Vim version 7.3. Last change: 2012 Jun 06
|
||||
*mbyte.txt* For Vim version 7.3. Last change: 2012 Oct 06
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar et al.
|
||||
@@ -1085,6 +1085,13 @@ Since the mapping is defined with |:lnoremap| the resulting quote will not be
|
||||
used for the start of another character.
|
||||
The "accents" keymap uses this. *keymap-accents*
|
||||
|
||||
The first column can also be in |<>| form:
|
||||
<C-c> Ctrl-C
|
||||
<A-c> Alt-c
|
||||
<A-C> Alt-C
|
||||
Note that the Alt mappings may not work, depending on your keyboard and
|
||||
terminal.
|
||||
|
||||
Although it's possible to have more than one character in the second column,
|
||||
this is unusual. But you can use various ways to specify the character: >
|
||||
A a literal character
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*options.txt* For Vim version 7.3. Last change: 2012 Aug 15
|
||||
*options.txt* For Vim version 7.3. Last change: 2012 Oct 21
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -756,7 +756,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
feature}
|
||||
When on and 'termbidi' is off, the required visual character
|
||||
corrections that need to take place for displaying the Arabic language
|
||||
take affect. Shaping, in essence, gets enabled; the term is a broad
|
||||
take effect. Shaping, in essence, gets enabled; the term is a broad
|
||||
one which encompasses:
|
||||
a) the changing/morphing of characters based on their location
|
||||
within a word (initial, medial, final and stand-alone).
|
||||
@@ -6119,7 +6119,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
local to buffer
|
||||
Number of spaces to use for each step of (auto)indent. Used for
|
||||
|'cindent'|, |>>|, |<<|, etc.
|
||||
When zero the 'ts' value will be used.
|
||||
When zero the 'ts' value will be used. Use the |shiftwidth()|
|
||||
function to get the effective shiftwidth value.
|
||||
|
||||
*'shortmess'* *'shm'*
|
||||
'shortmess' 'shm' string (Vim default "filnxtToO", Vi default: "",
|
||||
@@ -6383,6 +6384,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
of 8, while being able to edit like it is set to 'sts'. However,
|
||||
commands like "x" still work on the actual characters.
|
||||
When 'sts' is zero, this feature is off.
|
||||
When 'sts' is negative, the value of 'shiftwidth' is used.
|
||||
'softtabstop' is set to 0 when the 'paste' option is set.
|
||||
See also |ins-expandtab|. When 'expandtab' is not set, the number of
|
||||
spaces is minimized by using <Tab>s.
|
||||
@@ -7494,7 +7496,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
For more information about this feature see |undo-persistence|.
|
||||
The undo file is not read when 'undoreload' causes the buffer from
|
||||
before a reload to be saved for undo.
|
||||
WARNING: this is a very new feature. Use at your own risk!
|
||||
When 'undofile' is turned off the undo file is NOT deleted.
|
||||
|
||||
*'undolevels'* *'ul'*
|
||||
'undolevels' 'ul' number (default 100, 1000 for Unix, VMS,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*pi_netrw.txt* For Vim version 7.3. Last change: 2012 Apr 05
|
||||
*pi_netrw.txt* For Vim version 7.3. Last change: 2012 Oct 25
|
||||
|
||||
-----------------------------------------------------
|
||||
NETRW REFERENCE MANUAL by Charles E. Campbell, Jr.
|
||||
@@ -143,7 +143,7 @@ and has lines resembling >
|
||||
Windows' ftp doesn't support .netrc; however, one may have in one's .vimrc: >
|
||||
|
||||
let g:netrw_ftp_cmd= 'c:\Windows\System32\ftp -s:C:\Users\Myself\MACHINE'
|
||||
<
|
||||
<
|
||||
Netrw will substitute the host's machine name for MACHINE from the url it is
|
||||
attempting to open, and so one may specify >
|
||||
userid
|
||||
@@ -209,7 +209,7 @@ EXTERNAL APPLICATIONS AND PROTOCOLS *netrw-externapp* {{{2
|
||||
default, the option arguments for the http-handling commands are: >
|
||||
|
||||
elinks : "-source >"
|
||||
links : "-source >"
|
||||
links : "-dump >"
|
||||
curl : "-o"
|
||||
wget : "-q -O"
|
||||
fetch : "-o"
|
||||
@@ -1072,6 +1072,7 @@ QUICK REFERENCE: MAPS *netrw-browse-maps* {{{2
|
||||
v Enter the file/directory under the cursor in a new |netrw-v|
|
||||
browser window. A vertical split is used.
|
||||
x View file with an associated program |netrw-x|
|
||||
X Execute filename under cursor via |system()| |netrw-X|
|
||||
|
||||
% Open a new file in netrw's current directory |netrw-%|
|
||||
|
||||
@@ -1589,6 +1590,15 @@ Related topics: |netrw-s| |netrw-S|
|
||||
Associated setting variables: |g:netrw_sort_sequence| |g:netrw_sort_options|
|
||||
|
||||
|
||||
EXECUTING FILE UNDER CURSOR VIA SYSTEM() *netrw-X*
|
||||
|
||||
Pressing X while the cursor is atop an executable file will yield a prompt
|
||||
using the filename asking for any arguments. Upon pressing a [return], netrw
|
||||
will then call |system()| with that command and arguments. The result will
|
||||
be displayed by |:echomsg|, and so |:messages| will repeat display of the
|
||||
result. Ansi escape sequences will be stripped out.
|
||||
|
||||
|
||||
FORCING TREATMENT AS A FILE OR DIRECTORY *netrw-gd* *netrw-gf* {{{2
|
||||
|
||||
Remote symbolic links (ie. those listed via ssh or ftp) are problematic
|
||||
@@ -1596,10 +1606,10 @@ in that it is difficult to tell whether they link to a file or to a
|
||||
directory.
|
||||
|
||||
To force treatment as a file: use >
|
||||
gd
|
||||
gf
|
||||
<
|
||||
To force treatment as a directory: use >
|
||||
gf
|
||||
gd
|
||||
<
|
||||
|
||||
GOING UP *netrw--* {{{2
|
||||
@@ -1957,7 +1967,7 @@ The "mT" mapping will apply the command in |g:netrw_ctags| (by default, it is
|
||||
netrw will use ssh (see |g:netrw_ssh_cmd|), and so ssh must be available for
|
||||
this to work on remote systems. For your local system, see |ctags| on how to
|
||||
get a version. I myself use hdrtags, currently available at
|
||||
http://mysite.verizon.net/astronaut/src/index.html , and have >
|
||||
http://www.drchip.org/astronaut/src/index.html , and have >
|
||||
|
||||
let g:netrw_ctags= "hdrtag"
|
||||
<
|
||||
@@ -2093,6 +2103,9 @@ your browsing preferences. (see also: |netrw-settings|)
|
||||
history.
|
||||
(related: |netrw-qb| |netrw-u| |netrw-U|)
|
||||
|
||||
*g:netrw_dynamic_maxfilenamelen* =32: enables dynamic determination of
|
||||
|g:netrw_maxfilenamelen|, which affects
|
||||
local file long listing.
|
||||
*g:netrw_errorlvl* =0: error levels greater than or equal to
|
||||
this are permitted to be displayed
|
||||
0: notes
|
||||
@@ -2843,13 +2856,13 @@ which is loaded automatically at startup (assuming :set nocp).
|
||||
|
||||
1. Get the <Decho.vim> script, available as:
|
||||
|
||||
http://mysite.verizon.net/astronaut/vim/index.html#DECHO
|
||||
http://www.drchip.org/astronaut/vim/index.html#DECHO
|
||||
or
|
||||
http://vim.sourceforge.net/scripts/script.php?script_id=120
|
||||
|
||||
It now comes as a "vimball"; if you're using vim 7.0 or earlier,
|
||||
you'll need to update vimball, too. See
|
||||
http://mysite.verizon.net/astronaut/vim/index.html#VIMBALL
|
||||
http://www.drchip.org/astronaut/vim/index.html#VIMBALL
|
||||
|
||||
2. Edit the <netrw.vim> file by typing: >
|
||||
|
||||
@@ -2882,57 +2895,77 @@ which is loaded automatically at startup (assuming :set nocp).
|
||||
==============================================================================
|
||||
12. History *netrw-history* {{{1
|
||||
|
||||
v145: Apr 05, 2012 * moved some command from a g:netrw_local_...
|
||||
format to g:netwr_local... format
|
||||
* included some NOTE level messages about
|
||||
commands that aren't executable
|
||||
* |g:netrw_errorlvl| (default: NOTE=0)
|
||||
option introduced
|
||||
v144: Mar 12, 2012 * when |CTRL-W_s| or |CTRL-W_v| are used,
|
||||
or their wincmd equivalents, on a netrw
|
||||
buffer, the netrw's w: variables were
|
||||
not copied over. Fixed.
|
||||
Mar 13, 2012 * nbcd_curpos_{bufnr('%')} was commented
|
||||
out, and was mistakenly used during
|
||||
RestorePosn. Unfortunately, I'm not
|
||||
sure why it was commented out, so this
|
||||
"fix" may re-introduce an earlier problem.
|
||||
Mar 21, 2012 * included s:rexposn internally to make
|
||||
:Rex return the cursor to the same pos'n
|
||||
upon restoration of netrw buffer
|
||||
Mar 27, 2012 * (sjbesse) s:NetrwGetFile() needs to remove
|
||||
"/" from the netrw buffer's usual |'isk'|
|
||||
in order to allow "filetype detect" to work
|
||||
properly for scripts.
|
||||
v143: Jun 01, 2011 * |g:netrw_winsize| will accept a negative
|
||||
number; the absolute value of it will then
|
||||
be used to specify lines/columns instead of
|
||||
a percentage.
|
||||
Jul 05, 2011 * the "d" map now supports mkdir via ftp
|
||||
See |netrw-d| and |g:netrw_remote_mkdir|
|
||||
Jul 11, 2011 * Changed Explore!, Sexplore!, and Vexplore
|
||||
to use a percentage of |winwidth()| instead
|
||||
of a percentage of |winheight()|.
|
||||
Jul 11, 2011 * included support for https://... I'm just
|
||||
beginning to test this, however.
|
||||
Aug 01, 2011 * changed RestoreOptions to also restore
|
||||
cursor position in netrw buffers.
|
||||
Aug 12, 2011 * added a note about "%" to the balloon
|
||||
Aug 30, 2011 * if |g:netrw_nobeval| exists, then balloon
|
||||
evaluation is suppressed.
|
||||
Aug 31, 2011 * (Benjamin R Haskell) provided a patch that
|
||||
implements non-standard port handling for
|
||||
files opened via the remote browser.
|
||||
Aug 31, 2011 * Fixed a **//pattern Explorer bug
|
||||
Sep 15, 2011 * (reported by Francesco Campana) netrw
|
||||
now permits the "@" to be part of the
|
||||
user id (if there's an @ that appears
|
||||
to the right).
|
||||
Nov 21, 2011 * New option: |g:netrw_ftp_options|
|
||||
Dec 07, 2011 * (James Sinclair) provided a fix handling
|
||||
attempts to use a uid and password when
|
||||
they weren't defined. This affected
|
||||
NetWrite (NetRead already had that fix).
|
||||
v146: Oct 20, 2012 * (David Kotchan) reported that under Windows,
|
||||
directories named with unusual characters
|
||||
such as "#" or "$" were not being listed
|
||||
properly.
|
||||
* (Kenny Lee) reported that the buffer list
|
||||
was being populated by netrw buffers.
|
||||
Netrw will now |:bwipe| netrw buffers
|
||||
upon editing a file if g:netrw_fastbrowse
|
||||
is zero and its not in tree listing style.
|
||||
v145: Apr 05, 2012 * moved some command from a g:netrw_local_...
|
||||
format to g:netwr_local... format
|
||||
* included some NOTE level messages about
|
||||
commands that aren't executable
|
||||
* |g:netrw_errorlvl| (default: NOTE=0)
|
||||
option introduced
|
||||
May 18, 2012 * (Ilya Dogolazky) a scenario where a
|
||||
|g:netrw_fastbrowse| of zero did not
|
||||
have a local directory refreshed fixed.
|
||||
Jul 10, 2012 * (Donatas) |netrw-gb| wasn't working due
|
||||
to an incorrectly used variable.
|
||||
Aug 09, 2012 * (Bart Baker) netrw was doubling
|
||||
of entries after a split.
|
||||
* (code by Takahiro Yoshihara) implemented
|
||||
|g:netrw_dynamic_maxfilenamelen|
|
||||
Aug 31, 2012 * (Andrew Wong) netrw refresh overwriting
|
||||
the yank buffer.
|
||||
v144: Mar 12, 2012 * when |CTRL-W_s| or |CTRL-W_v| are used,
|
||||
or their wincmd equivalents, on a netrw
|
||||
buffer, the netrw's w: variables were
|
||||
not copied over. Fixed.
|
||||
Mar 13, 2012 * nbcd_curpos_{bufnr('%')} was commented
|
||||
out, and was mistakenly used during
|
||||
RestorePosn. Unfortunately, I'm not
|
||||
sure why it was commented out, so this
|
||||
"fix" may re-introduce an earlier problem.
|
||||
Mar 21, 2012 * included s:rexposn internally to make
|
||||
:Rex return the cursor to the same pos'n
|
||||
upon restoration of netrw buffer
|
||||
Mar 27, 2012 * (sjbesse) s:NetrwGetFile() needs to remove
|
||||
"/" from the netrw buffer's usual |'isk'|
|
||||
in order to allow "filetype detect" to work
|
||||
properly for scripts.
|
||||
v143: Jun 01, 2011 * |g:netrw_winsize| will accept a negative
|
||||
number; the absolute value of it will then
|
||||
be used to specify lines/columns instead of
|
||||
a percentage.
|
||||
Jul 05, 2011 * the "d" map now supports mkdir via ftp
|
||||
See |netrw-d| and |g:netrw_remote_mkdir|
|
||||
Jul 11, 2011 * Changed Explore!, Sexplore!, and Vexplore
|
||||
to use a percentage of |winwidth()| instead
|
||||
of a percentage of |winheight()|.
|
||||
Jul 11, 2011 * included support for https://... I'm just
|
||||
beginning to test this, however.
|
||||
Aug 01, 2011 * changed RestoreOptions to also restore
|
||||
cursor position in netrw buffers.
|
||||
Aug 12, 2011 * added a note about "%" to the balloon
|
||||
Aug 30, 2011 * if |g:netrw_nobeval| exists, then balloon
|
||||
evaluation is suppressed.
|
||||
Aug 31, 2011 * (Benjamin R Haskell) provided a patch that
|
||||
implements non-standard port handling for
|
||||
files opened via the remote browser.
|
||||
Aug 31, 2011 * Fixed a **//pattern Explorer bug
|
||||
Sep 15, 2011 * (reported by Francesco Campana) netrw
|
||||
now permits the "@" to be part of the
|
||||
user id (if there's an @ that appears
|
||||
to the right).
|
||||
Nov 21, 2011 * New option: |g:netrw_ftp_options|
|
||||
Dec 07, 2011 * (James Sinclair) provided a fix handling
|
||||
attempts to use a uid and password when
|
||||
they weren't defined. This affected
|
||||
NetWrite (NetRead already had that fix).
|
||||
|
||||
|
||||
==============================================================================
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*syntax.txt* For Vim version 7.3. Last change: 2012 Jul 16
|
||||
*syntax.txt* For Vim version 7.3. Last change: 2012 Nov 28
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -1090,6 +1090,10 @@ Simpler is setting the filetype to "docbkxml" or "docbksgml": >
|
||||
or: >
|
||||
:set filetype=docbkxml
|
||||
|
||||
You can specify the DocBook version: >
|
||||
:let docbk_ver = 3
|
||||
When not set 4 is used.
|
||||
|
||||
|
||||
DOSBATCH *dosbatch.vim* *ft-dosbatch-syntax*
|
||||
|
||||
@@ -2489,6 +2493,12 @@ This will add highlighting for the commands that BASH (version 2.05a and
|
||||
later, and part earlier) adds.
|
||||
|
||||
|
||||
RESTRUCTURED TEXT *rst.vim* *ft-rst-syntax*
|
||||
|
||||
You may set what syntax definitions should be used for code blocks via
|
||||
let rst_syntax_code_list = ['vim', 'lisp', ...]
|
||||
|
||||
|
||||
REXX *rexx.vim* *ft-rexx-syntax*
|
||||
|
||||
If you notice highlighting errors while scrolling backwards, which are fixed
|
||||
|
||||
@@ -5728,6 +5728,7 @@ ft-quake-syntax syntax.txt /*ft-quake-syntax*
|
||||
ft-r-indent indent.txt /*ft-r-indent*
|
||||
ft-readline-syntax syntax.txt /*ft-readline-syntax*
|
||||
ft-rexx-syntax syntax.txt /*ft-rexx-syntax*
|
||||
ft-rst-syntax syntax.txt /*ft-rst-syntax*
|
||||
ft-ruby-omni insert.txt /*ft-ruby-omni*
|
||||
ft-ruby-syntax syntax.txt /*ft-ruby-syntax*
|
||||
ft-scheme-syntax syntax.txt /*ft-scheme-syntax*
|
||||
@@ -5872,6 +5873,7 @@ g:netrw_cygwin pi_netrw.txt /*g:netrw_cygwin*
|
||||
g:netrw_dav_cmd pi_netrw.txt /*g:netrw_dav_cmd*
|
||||
g:netrw_decompress pi_netrw.txt /*g:netrw_decompress*
|
||||
g:netrw_dirhistmax pi_netrw.txt /*g:netrw_dirhistmax*
|
||||
g:netrw_dynamic_maxfilenamelen pi_netrw.txt /*g:netrw_dynamic_maxfilenamelen*
|
||||
g:netrw_errorlvl pi_netrw.txt /*g:netrw_errorlvl*
|
||||
g:netrw_fastbrowse pi_netrw.txt /*g:netrw_fastbrowse*
|
||||
g:netrw_fetch_cmd pi_netrw.txt /*g:netrw_fetch_cmd*
|
||||
@@ -6840,6 +6842,7 @@ netrw-R pi_netrw.txt /*netrw-R*
|
||||
netrw-S pi_netrw.txt /*netrw-S*
|
||||
netrw-T pi_netrw.txt /*netrw-T*
|
||||
netrw-U pi_netrw.txt /*netrw-U*
|
||||
netrw-X pi_netrw.txt /*netrw-X*
|
||||
netrw-a pi_netrw.txt /*netrw-a*
|
||||
netrw-activate pi_netrw.txt /*netrw-activate*
|
||||
netrw-bookmark pi_netrw.txt /*netrw-bookmark*
|
||||
@@ -7426,6 +7429,7 @@ rileft.txt rileft.txt /*rileft.txt*
|
||||
riscos os_risc.txt /*riscos*
|
||||
rot13 change.txt /*rot13*
|
||||
round() eval.txt /*round()*
|
||||
rst.vim syntax.txt /*rst.vim*
|
||||
rsync pi_netrw.txt /*rsync*
|
||||
ruby if_ruby.txt /*ruby*
|
||||
ruby-buffer if_ruby.txt /*ruby-buffer*
|
||||
@@ -7477,6 +7481,8 @@ save-file editing.txt /*save-file*
|
||||
save-settings starting.txt /*save-settings*
|
||||
scheme.vim syntax.txt /*scheme.vim*
|
||||
scp pi_netrw.txt /*scp*
|
||||
screencol() eval.txt /*screencol()*
|
||||
screenrow() eval.txt /*screenrow()*
|
||||
script usr_41.txt /*script*
|
||||
script-here if_perl.txt /*script-here*
|
||||
script-local map.txt /*script-local*
|
||||
@@ -7550,6 +7556,7 @@ shell_error-variable eval.txt /*shell_error-variable*
|
||||
shellescape() eval.txt /*shellescape()*
|
||||
shift intro.txt /*shift*
|
||||
shift-left-right change.txt /*shift-left-right*
|
||||
shiftwidth() eval.txt /*shiftwidth()*
|
||||
short-name-changed version4.txt /*short-name-changed*
|
||||
showing-menus gui.txt /*showing-menus*
|
||||
sign-commands sign.txt /*sign-commands*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*todo.txt* For Vim version 7.3. Last change: 2012 Aug 15
|
||||
*todo.txt* For Vim version 7.3. Last change: 2012 Dec 05
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -34,50 +34,133 @@ not be repeated below, unless there is extra information.
|
||||
*known-bugs*
|
||||
-------------------- Known bugs and current work -----------------------
|
||||
|
||||
On external command get the message:
|
||||
SIGCHLD handler called (some thread has SIGCHLD unblocked)
|
||||
From MzScheme
|
||||
|
||||
Go through more coverity reports.
|
||||
|
||||
Discussion about canonicalization of Hebrew. (Ron Aaron, 2011 April 10)
|
||||
|
||||
Checking runtime scripts: Thilo Six, 2012 Jun 6.
|
||||
|
||||
GTK: problem with 'L' in 'guioptions' changing the window width.
|
||||
(Aaron Cornelius, 2012 Feb 6)
|
||||
|
||||
Checking runtime scripts: Thilo Six, 2012 Jun 6.
|
||||
|
||||
Javascript file where indent gets stuck on: GalaxyMaster, 2012 May 3.
|
||||
|
||||
The CompleteDone autocommand needs some info passed to it:
|
||||
- The word that was selected (empty if abandoned complete)
|
||||
- Type of completion: tag, omnifunc, user func.
|
||||
|
||||
Patch for matchit.vim. (Mike Morearty, 2012 Nov 28)
|
||||
|
||||
Patch to fix that the QuitPre autocommand clears the quitmore flag. (Techlive
|
||||
Zheng, 2012 Nov 28)
|
||||
|
||||
":gundo" command: global undo. Undoes changes spread over multiple files in
|
||||
the order they were made. Also ":gredo". Both with a count. Useful when
|
||||
tests fail after making changes and you forgot in which files.
|
||||
|
||||
Patch to make updating tabline faster. (Arseny Kapoulkine, 2012 Oct 3)
|
||||
Also remove the "rc" variable.
|
||||
|
||||
Patch to make "- register not always used. (Christian Brabandt, 2012 Nov 28)
|
||||
|
||||
Crash with vimdiff. (Don Cruickshank, 2012 Sep 23)
|
||||
|
||||
Patch to support subdirectories for help files. (Charles Campbell, 2012 Nov
|
||||
21)
|
||||
|
||||
Patch for mzscheme. (Sergey Khorev, 2012 Nov 19)
|
||||
What about ignoring SEGV?
|
||||
|
||||
Win32: use 'guifontwide' for IME composition. (Taro Muraoka, 2012 Sep 30)
|
||||
Update Oct 2.
|
||||
|
||||
Patch to fix :s command with confirm and typing "a". (Christian Brabandt, 2012
|
||||
Oct 28)
|
||||
|
||||
/[^\n] does match at a line break. Expected to do the same as /.
|
||||
Patch by Christian Brabandt, 2012 Dec 1.
|
||||
Test files in archive in another message.
|
||||
|
||||
Patch to make multibyte input work on Win32 console when codepage differs from
|
||||
'encoding'. (Ken Takata, 2012 Sep 29)
|
||||
|
||||
It's possible to defined an input() function that overrides the built-in one.
|
||||
(ZyX, 2012 Sep 28)
|
||||
|
||||
Win32: When a directory name contains an exclamation mark, completion doesn't
|
||||
complete the contents of the directory. No escaping for the "!"? (Jan
|
||||
Stocker, 2012 Jan 5)
|
||||
|
||||
Problem parsing expression with function(). (Andy Wokula, 2012 Nov 22)
|
||||
Patch by Christian Brabandt, Nov 22. Tests in another patch, Nov 23.
|
||||
|
||||
Problem caused by patch 7.3.638: window->open does not update window
|
||||
correctly. Issue 91.
|
||||
|
||||
Do allow real tags above the !_TAG entries. Undo older patch. Issue 90.
|
||||
|
||||
Patch to support 'u' in interactive substitute. (Christian Brabandt, 2012 Sep
|
||||
28) With tests: Oct 9.
|
||||
|
||||
Patch for IME handling, adds 'imactivatefunc' and 'imstatusfunc' option.
|
||||
(Yukihiro Nakadaira, 2012 Aug 16)
|
||||
Patch to improve IME handling. (Yasuhiro Matsumoto, 2012 Jul 18)
|
||||
|
||||
Issue 54: document behavior of -complete, also expands arg.
|
||||
|
||||
New syntax files for apt. (quidame, 2012 Sep 21)
|
||||
|
||||
'ff' is wrong for one-line file without EOL. (Issue 77)
|
||||
|
||||
Patch for if_lua. (Luis Carvalho, 2012 Aug 26, update Aug 29, another Aug 30,
|
||||
then Sep 1, reminder Oct 14)
|
||||
|
||||
Issue 72: 'autochdir' causes problems for :vimgrep.
|
||||
|
||||
Undo problem: line not removed as expected when using setline() from Insert
|
||||
mode. (Israel Chauca, 2010 May 13, more in second msg)
|
||||
Break undo when CTRL-R = changes the text? Or save more lines?
|
||||
Patch by Christian Brabandt, 2012 Nov 16.
|
||||
|
||||
In the ATTENTION message about an existing swap file, mention the name of the
|
||||
process that is running. It might actually be some other program, e.g. after
|
||||
a reboot.
|
||||
|
||||
MS-Windows: Crash opening very long file name starting with "\\".
|
||||
(Christian Brock, 2012 Jun 29)
|
||||
|
||||
It's probably a good idea to make a negative value for 'sts' use the value of
|
||||
'sw'. Patch by So8res, Oct 3 2012
|
||||
|
||||
Syntax update problem in one buffer opened in two windows, bottom window is
|
||||
not correctly updated. (Paul Harris, 2012 Feb 27)
|
||||
|
||||
Patch to add assignments in cscope. (Uli Meis, Estabrooks, 2012 Sep 1)
|
||||
Alternate patch by Gary Johnson, Sep 4.
|
||||
|
||||
Patch to add getsid(). (Tyru, 2011 Oct 2) Do we want this? Update Oct 4.
|
||||
Or use expand('<sid>')?
|
||||
|
||||
Patch to improve IME handling. (Yasuhiro Matsumoto, 2012 Jul 18)
|
||||
|
||||
Patch for :tabcloseleft, after closing a tab go to left tab. (William Bowers,
|
||||
2012 Aug 4)
|
||||
|
||||
Patch with suggestions for starting.txt. (Tony Mechelynck, 2012 Oct 24)
|
||||
But use Gnome instead of GTK?
|
||||
|
||||
Should be possible to enable/disable matchparen per window or buffer.
|
||||
Add a check for b:no_match_paren in Highlight_matching_Pair() (Marcin
|
||||
Szamotulski, 2012 Nov 8)
|
||||
|
||||
Crash in autocmd that unloads buffers in a BufUnload event. (Andrew Pimlott,
|
||||
2012 Aug 11) Disallow :new when BufUnload is being handled?
|
||||
|
||||
MS-Windows ACL support doesn't work well. Patch from Ken Takata, 2012 Aug 29.
|
||||
Update Aug 31.
|
||||
|
||||
MS-Windows resizing problems:
|
||||
- Windows window on screen positioning: Patch by Yukihiro Nakadaira, 2012 Jun
|
||||
20. Uses getWindowRect() instead of GetWindowPlacement()
|
||||
@@ -90,15 +173,30 @@ MS-Windows resizing problems:
|
||||
Help for b:undo_indent'. (Thilo Six, 2012 May 28)
|
||||
Also question if examples are correct.
|
||||
|
||||
It should be possible to make globpath() return a list instead of a string,
|
||||
like with glob(). (Greg Novack, 2012 Nov 2)
|
||||
|
||||
The input map for CTRL-O in mswin.vim causes problems after CTRL-X CTRL-O.
|
||||
Suggestion for another map. (Philip Mat, 2012 Jun 18)
|
||||
But use "gi" instead of "a". Or use CTRL-\ CTRL-O.
|
||||
|
||||
Patch to support user name completion on MS-Windows. (Yasuhiro Matsumoto, 2012
|
||||
Aug 16)
|
||||
|
||||
Have an option for spell checking to not mark any Chinese, Japanese or other
|
||||
double-width characters as error. Or perhaps all characters above 256.
|
||||
(Bill Sun) Helps a lot for mixed Asian and latin text.
|
||||
|
||||
When there are no command line arguments ":next" and ":argu" give E163, which
|
||||
is confusing. Should say "the argument list is empty".
|
||||
|
||||
URXVT:
|
||||
- will get stuck if byte sequence does not containe expected semicolon.
|
||||
- will get stuck if byte sequence does not contain the expected semicolon.
|
||||
- Use urxvt mouse support also in xterm. Explanations:
|
||||
http://www.midnight-commander.org/ticket/2662
|
||||
|
||||
MS-Windows: test 17 fails. Analysis by Michael Soyka, 2012 Nov 5.
|
||||
|
||||
Patch to add tests for if_xcmdsrv.c., Jul 8, need some more work. (Brian Burns)
|
||||
New tests Jul 13. Update Jul 17. Discussion Jul 18.
|
||||
|
||||
@@ -108,11 +206,16 @@ Do give the prompt? Quit with an error?
|
||||
|
||||
Patch for 'backupcopy' default behavior for symlinks on Windows. (David Pope,
|
||||
2012 Mar 21, update Mar 31)
|
||||
With fix for memory leak: Ken Takata, 2012 Aug 24
|
||||
Another update Sep 24.
|
||||
|
||||
Patch to list user digraphs. (Christian Brabandt, 2012 Apr 14)
|
||||
|
||||
Patch for input method status. (Hirohito Higashi, 2012 Apr 18)
|
||||
|
||||
Patch to print the result of a :python command. (Maxim Philippov
|
||||
<philippovmi@gmail.com>, 2012 Aug 16) Update Aug 17.
|
||||
|
||||
Problem with winfixheight and resizing. (Yukihiro Nakadaira, 2011 Sep 17)
|
||||
Patch Sep 18.
|
||||
|
||||
@@ -162,9 +265,6 @@ Patch to add ":py3do". (Lilydjwg, 2012 Apr 7)
|
||||
|
||||
Plugin for Modeleasy. (Massimiliano Tripoli, 2011 Nov 29)
|
||||
|
||||
When using remote-silent the -R flag is not passed on. (Axel Bender, 2012 May
|
||||
31)
|
||||
|
||||
Updated syntax file for ssh_config, maintainer doesn't respond.
|
||||
(Leonard Ehrenfried, 2011 Sep 26)
|
||||
|
||||
@@ -188,12 +288,6 @@ On MS-Windows a temp dir with a & init causes system() to fail. (Ben Fritz,
|
||||
'list' is set. (Dennis Preiser)
|
||||
Patch 7.3.116 was the wrong solution.
|
||||
Christian Brabandt has another incomplete patch. (2011 Jul 13)
|
||||
Also: Alignment in help with tabs gets messed up, esp. at ":help index".
|
||||
Probably need to make a tab work like there was no concealing. Possibly with
|
||||
an option. Like line wrapping works as if there is no concealing.
|
||||
Patch by Dominique Pelle, Also fixes "fC" problem.
|
||||
"fC" doesn't position the cursor correctly when there are concealed
|
||||
characters. Patch by Christian Brabandt, 2011 Oct 11)
|
||||
|
||||
With concealed text mouse click doesn't put the cursor in the right position.
|
||||
(Herb Sitz) Fix by Christian Brabandt, 2011 Jun 16. Doesn't work properly,
|
||||
@@ -231,6 +325,9 @@ Oct 26)
|
||||
|
||||
Bug in repeating Visual "u". (Lawrence Kesteloot, 2010 Dec 20)
|
||||
|
||||
Using "p" in Visual mode while specifying the small delete register "-
|
||||
overwrites the register before it is put. (Marcin Szamotulski, 2012 Nov 23)
|
||||
|
||||
With "unamedplus" in 'clipboard' pasting in Visual mode causes error for empty
|
||||
register. (Michael Seiwald, 2011 Jun 28) I can't reproduce it.
|
||||
|
||||
@@ -254,9 +351,6 @@ Christoph Ebersbach, 2011 Jul 3)
|
||||
|
||||
Windows keys not set properly on Windows 7? (cncyber, 2010 Aug 26)
|
||||
|
||||
This line hangs Vim, because of syntax HL:
|
||||
call append(line, "INFO ....12....18....24....30....36....42....48....54....60....66....72....78%$")
|
||||
|
||||
When using a Vim server, a # in the path causes an error message.
|
||||
(Jeff Lanzarotta, 2011 Feb 17)
|
||||
|
||||
@@ -309,9 +403,6 @@ mapping, how to restore the script ID?
|
||||
Bug in try/catch: return with invalid compare throws error that isn't caught.
|
||||
(ZyX, 2011 Jan 26)
|
||||
|
||||
Highlighting stops working after changing it many times. Script to reproduce
|
||||
it: Pablo Contreras, 2010 Oct 12 Windows XP and 7. Font is never freed?
|
||||
|
||||
When setting a local option value from the global value, add a script ID that
|
||||
indicates this, so that ":verbose set" can give a hint. Check with options in
|
||||
the help file.
|
||||
@@ -538,6 +629,11 @@ Add local time at start of --startuptime output.
|
||||
Requires configure check for localtime().
|
||||
Use format year-month-day hr:min:sec.
|
||||
|
||||
Patch to add "combine" to :syntax, combines highlight attributes. (Nate
|
||||
Soares, 2012 Dec 3)
|
||||
|
||||
Patch to make ":hi link" also take arguments. (Nate Soares, 2012 Dec 4)
|
||||
|
||||
Shell not recognized properly if it ends in "csh -f". (James Vega, 2009 Nov 3)
|
||||
Find tail? Might have a / in argument. Find space? Might have space in
|
||||
path.
|
||||
@@ -576,10 +672,6 @@ Problem with stop directory in findfile(). (Adam Simpkins, 2009 Aug 26)
|
||||
Using ']' as the end of a range in a pattern requires double escaping:
|
||||
/[@-\\]] (Andy Wokula, 2011 Jun 28)
|
||||
|
||||
Undo problem: line not removed as expected when using setline() from Insert
|
||||
mode. (Israel Chauca, 2010 May 13, more in second msg)
|
||||
Break undo when CTRL-R = changes the text? Or save more lines?
|
||||
|
||||
Slow combination of folding and PHP syntax highlighting. Script to reproduce
|
||||
it. Caused by "syntax sync fromstart" in combination with patch 7.2.274.
|
||||
(Christian Brabandt, 2010 May 27)
|
||||
@@ -682,10 +774,6 @@ Now that colnr_T is int instead of unsigned, more type casts can be removed.
|
||||
'delcombine' does not work for the command line. (Tony Mechelynck, 2009 Jul
|
||||
20)
|
||||
|
||||
Unwanted file name escaping: ":echo input('file:' , '', 'file')"
|
||||
And use file name completion on a file with spaces. (Frederic Hardy, 2009 Mar
|
||||
23)
|
||||
|
||||
Don't load macmap.vim on startup, turn it into a plugin. (Ron Aaron,
|
||||
2009 Apr 7) Reminder Apr 14.
|
||||
|
||||
@@ -725,10 +813,6 @@ Support a 'systemencoding' option (for Unix). It specifies the encoding of
|
||||
file names. (Kikuchan, 2010 Oct 5). Useful on a latin1 or double-byte Asian
|
||||
system when 'encoding' is "utf-8".
|
||||
|
||||
Win32: A --remote command that has a directory name starting with a ( doesn't
|
||||
work, the backslash is removed, assuming that it escapes the (. (Valery
|
||||
Kondakoff, 2009 May 13)
|
||||
|
||||
Win32 GUI: Changing manifest helps for dpi changes (Joe Castro, 2009 Mar 27)
|
||||
|
||||
Win32 GUI: last message from startup doesn't show up when there is an echoerr
|
||||
@@ -746,7 +830,7 @@ very high. (Yegappan Lakshmanan, 2010 Jul 22, Michael Peeters, 2010 Jul 22)
|
||||
Directory wrong in session file, caused by ":lcd" in BufEnter autocommand.
|
||||
(Felix Kater, 2009 Mar 3)
|
||||
|
||||
Session file generates error upon loading, cause bu --remote-silent-tab.
|
||||
Session file generates error upon loading, cause by --remote-silent-tab.
|
||||
(7tommm (ytommm) 2010 Nov 24)
|
||||
|
||||
Using ~ works OK on 'a' with composing char, but not on 0x0418 with composing
|
||||
@@ -867,8 +951,6 @@ error message? Or is this easy to implement? (Nathan Stratton Treadway, 2008
|
||||
Aug 20) This is in ucs2bytes(), search for 0xBF. Using the ++bad argument is
|
||||
at the other match for 0xBF.
|
||||
|
||||
Fix for matchparen HL doesn't work. beep.
|
||||
|
||||
When adding "-complete=file" to a user command this also changes how the
|
||||
argument is processed for <f-args>. (Ivan Tishchenko, 2008 Aug 19)
|
||||
|
||||
@@ -914,6 +996,15 @@ escaping characters where the backslash is not removed later. Asked Chris for
|
||||
an alternate solution, also for src/ex_getln.c.
|
||||
This also fails when the file or directory name contains "%". (Thoml, 2008
|
||||
July 7)
|
||||
Using --remote-silent while the current directory has a # in the name does not
|
||||
work, the # needs to be escaped. (Tramblay Bruno, 2012 Sep 15)
|
||||
|
||||
When using remote-silent the -R flag is not passed on. (Axel Bender, 2012 May
|
||||
31)
|
||||
|
||||
Win32: A --remote command that has a directory name starting with a ( doesn't
|
||||
work, the backslash is removed, assuming that it escapes the (. (Valery
|
||||
Kondakoff, 2009 May 13)
|
||||
|
||||
Problem with 'langmap' being used on the rhs of a mapping. (Nikolai Weibull,
|
||||
2008 May 14)
|
||||
@@ -1196,10 +1287,6 @@ pointer in long and seek offset in 64 bit var.
|
||||
|
||||
Win32: patch for fullscreen mode. (Liushaolin, 2008 April 17)
|
||||
|
||||
Win32: When there is 4 Gbyte of memory mch_avail_mem() doesn't work properly.
|
||||
Unfinished patch by Jelle Geerts, 2008 Aug 24.
|
||||
Let mch_avail_mem() return Kbyte instead?
|
||||
|
||||
Win32: When 'shell' is bash shellescape() doesn't always do the right thing.
|
||||
Depends on 'shellslash', 'shellquote' and 'shellxquote', but shellescape()
|
||||
only takes 'shellslash' into account.
|
||||
@@ -1509,6 +1596,9 @@ Win32, NTFS: When editing a specific infostream directly and 'backupcopy' is
|
||||
name is something like "c:\path\foo.txt:bar", includes a colon. (Alex
|
||||
Jakushev, 2008 Feb 1)
|
||||
|
||||
printf() uses the field width in bytes. Can it be made character width,
|
||||
perhaps with a modifier? What does Posix say?
|
||||
|
||||
Small problem displaying diff filler line when opening windows with a script.
|
||||
(David Luyer, 2007 Mar 1 ~/Mail/oldmail/mool/in.15872 )
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*uganda.txt* For Vim version 7.3. Last change: 2012 May 28
|
||||
*uganda.txt* For Vim version 7.3. Last change: 2012 Dec 02
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -238,6 +238,7 @@ Canada: Contact Kibaale Children's Fund (KCF) in Surrey, Canada. They
|
||||
Holland: Transfer to the account of "Stichting ICCF Holland" in Lisse.
|
||||
This will allow for tax deduction if you live in Holland.
|
||||
Postbank, nr. 4548774
|
||||
IBAN: NL95 INGB 0004 5487 74
|
||||
|
||||
Germany: It is possible to make donations that allow for a tax return.
|
||||
Check the ICCF web site for the latest information:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*usr_05.txt* For Vim version 7.3. Last change: 2009 Jun 04
|
||||
*usr_05.txt* For Vim version 7.3. Last change: 2012 Nov 20
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
@@ -49,8 +49,7 @@ For MS-DOS and MS-Windows you can use one of these:
|
||||
|
||||
The vimrc file can contain all the commands that you type after a colon. The
|
||||
most simple ones are for setting options. For example, if you want Vim to
|
||||
always start with the 'incsearch' option on, add this line you your vimrc
|
||||
file: >
|
||||
always start with the 'incsearch' option on, add this line your vimrc file: >
|
||||
|
||||
set incsearch
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*usr_21.txt* For Vim version 7.3. Last change: 2008 Nov 09
|
||||
*usr_21.txt* For Vim version 7.3. Last change: 2012 Nov 02
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
@@ -282,7 +282,7 @@ example, use: >
|
||||
SESSION HERE, SESSION THERE
|
||||
|
||||
The obvious way to use sessions is when working on different projects.
|
||||
Suppose you store you session files in the directory "~/.vim". You are
|
||||
Suppose you store your session files in the directory "~/.vim". You are
|
||||
currently working on the "secret" project and have to switch to the "boring"
|
||||
project: >
|
||||
|
||||
@@ -295,7 +295,7 @@ is saved, using ":mksession!". This overwrites the previous session. The
|
||||
next time you load the secret session you can continue where you were at this
|
||||
point. And finally you load the new "boring" session.
|
||||
|
||||
If you open help windows, split and close various window, and generally mess
|
||||
If you open help windows, split and close various windows, and generally mess
|
||||
up the window layout, you can go back to the last saved session: >
|
||||
|
||||
:source ~/.vim/boring.vim
|
||||
@@ -423,10 +423,10 @@ and nine numbered 1 to 9.
|
||||
A VIEW WITH A NAME
|
||||
|
||||
The second basic way to use views is by storing the view in a file with a name
|
||||
you chose. This view can be loaded while editing another file. Vim will then
|
||||
switch to editing the file specified in the view. Thus you can use this to
|
||||
quickly switch to editing another file, with all its options set as you saved
|
||||
them.
|
||||
you choose. This view can be loaded while editing another file. Vim will
|
||||
then switch to editing the file specified in the view. Thus you can use this
|
||||
to quickly switch to editing another file, with all its options set as you
|
||||
saved them.
|
||||
For example, to save the view of the current file: >
|
||||
|
||||
:mkview ~/.vim/main.vim
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*usr_22.txt* For Vim version 7.3. Last change: 2010 Feb 21
|
||||
*usr_22.txt* For Vim version 7.3. Last change: 2012 Nov 15
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
@@ -326,9 +326,9 @@ shorter to type: >
|
||||
|
||||
The output could look like this:
|
||||
|
||||
1 #h "help.txt" line 62 ~
|
||||
2 %a+ "usr_21.txt" line 1 ~
|
||||
3 "usr_toc.txt" line 1 ~
|
||||
1 #h "help.txt" line 62 ~
|
||||
2 %a + "usr_21.txt" line 1 ~
|
||||
3 "usr_toc.txt" line 1 ~
|
||||
|
||||
The first column contains the buffer number. You can use this to edit the
|
||||
buffer without having to type the name, see below.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*usr_41.txt* For Vim version 7.3. Last change: 2012 Mar 16
|
||||
*usr_41.txt* For Vim version 7.3. Last change: 2012 Oct 13
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
@@ -1581,7 +1581,7 @@ Here the comment part will be ignored. However, Vim will try to unmap
|
||||
|
||||
RESTORING THE VIEW
|
||||
|
||||
Sometimes you want to make a change and go back to where cursor was.
|
||||
Sometimes you want to make a change and go back to where the cursor was.
|
||||
Restoring the relative position would also be nice, so that the same line
|
||||
appears at the top of the window.
|
||||
This example yanks the current line, puts it above the first line in the
|
||||
@@ -1681,7 +1681,7 @@ in your plugin file!
|
||||
HEADER
|
||||
|
||||
You will probably add new corrections to the plugin and soon have several
|
||||
versions laying around. And when distributing this file, people will want to
|
||||
versions lying around. And when distributing this file, people will want to
|
||||
know who wrote this wonderful plugin and where they can send remarks.
|
||||
Therefore, put a header at the top of your plugin: >
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*various.txt* For Vim version 7.3. Last change: 2012 Aug 03
|
||||
*various.txt* For Vim version 7.3. Last change: 2012 Dec 05
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -353,75 +353,75 @@ N *+mouseshape* |'mouseshape'|
|
||||
B *+mouse_dec* Unix only: Dec terminal mouse handling |dec-mouse|
|
||||
N *+mouse_gpm* Unix only: Linux console mouse handling |gpm-mouse|
|
||||
B *+mouse_netterm* Unix only: netterm mouse handling |netterm-mouse|
|
||||
N *+mouse_pterm* QNX only: pterm mouse handling |qnx-terminal|
|
||||
N *+mouse_pterm* QNX only: pterm mouse handling |qnx-terminal|
|
||||
N *+mouse_sysmouse* Unix only: *BSD console mouse handling |sysmouse|
|
||||
B *+mouse_sgr* Unix only: sgr mouse handling |sgr-mouse|
|
||||
N *+mouse_urxvt* Unix only: urxvt mouse handling |urxvt-mouse|
|
||||
N *+mouse_xterm* Unix only: xterm mouse handling |xterm-mouse|
|
||||
B *+multi_byte* 16 and 32 bit characters |multibyte|
|
||||
B *+mouse_urxvt* Unix only: urxvt mouse handling |urxvt-mouse|
|
||||
N *+mouse_xterm* Unix only: xterm mouse handling |xterm-mouse|
|
||||
B *+multi_byte* 16 and 32 bit characters |multibyte|
|
||||
*+multi_byte_ime* Win32 input method for multibyte chars |multibyte-ime|
|
||||
N *+multi_lang* non-English language support |multi-lang|
|
||||
N *+multi_lang* non-English language support |multi-lang|
|
||||
m *+mzscheme* Mzscheme interface |mzscheme|
|
||||
m *+mzscheme/dyn* Mzscheme interface |mzscheme-dynamic| |/dyn|
|
||||
m *+netbeans_intg* |netbeans|
|
||||
m *+ole* Win32 GUI only: |ole-interface|
|
||||
N *+path_extra* Up/downwards search in 'path' and 'tags'
|
||||
m *+ole* Win32 GUI only: |ole-interface|
|
||||
N *+path_extra* Up/downwards search in 'path' and 'tags'
|
||||
m *+perl* Perl interface |perl|
|
||||
m *+perl/dyn* Perl interface |perl-dynamic| |/dyn|
|
||||
N *+persistent_undo* Persistent undo |undo-persistence|
|
||||
*+postscript* |:hardcopy| writes a PostScript file
|
||||
*+postscript* |:hardcopy| writes a PostScript file
|
||||
N *+printer* |:hardcopy| command
|
||||
H *+profile* |:profile| command
|
||||
m *+python* Python 2 interface |python|
|
||||
m *+python/dyn* Python 2 interface |python-dynamic| |/dyn|
|
||||
m *+python/dyn* Python 2 interface |python-dynamic| |/dyn|
|
||||
m *+python3* Python 3 interface |python|
|
||||
m *+python3/dyn* Python 3 interface |python-dynamic| |/dyn|
|
||||
m *+python3/dyn* Python 3 interface |python-dynamic| |/dyn|
|
||||
N *+quickfix* |:make| and |quickfix| commands
|
||||
N *+reltime* |reltime()| function, 'hlsearch'/'incsearch' timeout,
|
||||
'redrawtime' option
|
||||
B *+rightleft* Right to left typing |'rightleft'|
|
||||
m *+ruby* Ruby interface |ruby|
|
||||
m *+ruby/dyn* Ruby interface |ruby-dynamic| |/dyn|
|
||||
N *+scrollbind* |'scrollbind'|
|
||||
N *+scrollbind* |'scrollbind'|
|
||||
B *+signs* |:sign|
|
||||
N *+smartindent* |'smartindent'|
|
||||
N *+smartindent* |'smartindent'|
|
||||
m *+sniff* SniFF interface |sniff|
|
||||
N *+startuptime* |--startuptime| argument
|
||||
N *+statusline* Options 'statusline', 'rulerformat' and special
|
||||
N *+startuptime* |--startuptime| argument
|
||||
N *+statusline* Options 'statusline', 'rulerformat' and special
|
||||
formats of 'titlestring' and 'iconstring'
|
||||
m *+sun_workshop* |workshop|
|
||||
N *+syntax* Syntax highlighting |syntax|
|
||||
*+system()* Unix only: opposite of |+fork|
|
||||
N *+tag_binary* binary searching in tags file |tag-binary-search|
|
||||
N *+tag_binary* binary searching in tags file |tag-binary-search|
|
||||
N *+tag_old_static* old method for static tags |tag-old-static|
|
||||
m *+tag_any_white* any white space allowed in tags file |tag-any-white|
|
||||
m *+tcl* Tcl interface |tcl|
|
||||
m *+tcl* Tcl interface |tcl|
|
||||
m *+tcl/dyn* Tcl interface |tcl-dynamic| |/dyn|
|
||||
*+terminfo* uses |terminfo| instead of termcap
|
||||
N *+termresponse* support for |t_RV| and |v:termresponse|
|
||||
N *+textobjects* |text-objects| selection
|
||||
N *+textobjects* |text-objects| selection
|
||||
*+tgetent* non-Unix only: able to use external termcap
|
||||
N *+title* Setting the window 'title' and 'icon'
|
||||
N *+toolbar* |gui-toolbar|
|
||||
N *+user_commands* User-defined commands. |user-commands|
|
||||
N *+viminfo* |'viminfo'|
|
||||
N *+vertsplit* Vertically split windows |:vsplit|
|
||||
N *+virtualedit* |'virtualedit'|
|
||||
N *+virtualedit* |'virtualedit'|
|
||||
S *+visual* Visual mode |Visual-mode|
|
||||
N *+visualextra* extra Visual mode commands |blockwise-operators|
|
||||
N *+visualextra* extra Visual mode commands |blockwise-operators|
|
||||
N *+vreplace* |gR| and |gr|
|
||||
N *+wildignore* |'wildignore'|
|
||||
N *+wildignore* |'wildignore'|
|
||||
N *+wildmenu* |'wildmenu'|
|
||||
S *+windows* more than one window
|
||||
m *+writebackup* |'writebackup'| is default on
|
||||
m *+xim* X input method |xim|
|
||||
m *+writebackup* |'writebackup'| is default on
|
||||
m *+xim* X input method |xim|
|
||||
*+xfontset* X fontset support |xfontset|
|
||||
m *+xpm_w32* Win32 GUI only: pixmap support |w32-xpm-support|
|
||||
*+xsmp* XSMP (X session management) support
|
||||
*+xsmp_interact* interactive XSMP (X session management) support
|
||||
N *+xterm_clipboard* Unix only: xterm clipboard handling
|
||||
m *+xterm_save* save and restore xterm screen |xterm-screens|
|
||||
N *+X11* Unix only: can restore window title |X11|
|
||||
m *+xterm_save* save and restore xterm screen |xterm-screens|
|
||||
N *+X11* Unix only: can restore window title |X11|
|
||||
|
||||
*/dyn* *E370* *E448*
|
||||
To some of the features "/dyn" is added when the
|
||||
|
||||
@@ -66,7 +66,7 @@ position.
|
||||
lines as used for the last Visual operation, but at
|
||||
the current cursor position, multiplied by [count].
|
||||
When the previous Visual operation was on a block both
|
||||
the width and height of the block are multipiled by
|
||||
the width and height of the block are multiplied by
|
||||
[count].
|
||||
When there was no previous Visual operation [count]
|
||||
characters are selected. This is like moving the
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*windows.txt* For Vim version 7.3. Last change: 2012 Apr 13
|
||||
*windows.txt* For Vim version 7.3. Last change: 2012 Nov 15
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -939,9 +939,9 @@ list of buffers. |unlisted-buffer|
|
||||
:buffers[!] *:buffers* *:ls*
|
||||
:ls[!] Show all buffers. Example:
|
||||
|
||||
1 #h "/test/text" line 1 ~
|
||||
2u "asdf" line 0 ~
|
||||
3 %a+ "version.c" line 1 ~
|
||||
1 #h "/test/text" line 1 ~
|
||||
2u "asdf" line 0 ~
|
||||
3 %a + "version.c" line 1 ~
|
||||
|
||||
When the [!] is included the list will show unlisted buffers
|
||||
(the term "unlisted" is a bit confusing then...).
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim support file to detect file types
|
||||
"
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2012 Aug 02
|
||||
" Last Change: 2012 Nov 28
|
||||
|
||||
" Listen very carefully, I will say this only once
|
||||
if exists("did_load_filetypes")
|
||||
@@ -128,6 +128,11 @@ au BufNewFile,BufRead .asoundrc,*/usr/share/alsa/alsa.conf,*/etc/asound.conf set
|
||||
" Arc Macro Language
|
||||
au BufNewFile,BufRead *.aml setf aml
|
||||
|
||||
" APT config file
|
||||
au BufNewFile,BufRead apt.conf setf aptconf
|
||||
au BufNewFile,BufRead */.aptitude/config setf aptconf
|
||||
au BufNewFile,BufRead */etc/apt/apt.conf.d/{[-_[:alnum:]]\+,[-_.[:alnum:]]\+.conf} setf aptconf
|
||||
|
||||
" Arch Inventory file
|
||||
au BufNewFile,BufRead .arch-inventory,=tagging-method setf arch
|
||||
|
||||
@@ -633,6 +638,9 @@ au BufNewFile,BufRead *.dsl setf dsl
|
||||
" DTD (Document Type Definition for XML)
|
||||
au BufNewFile,BufRead *.dtd setf dtd
|
||||
|
||||
" DTS/DSTI (device tree files)
|
||||
au BufNewFile,BufRead *.dts,*.dtsi setf dts
|
||||
|
||||
" EDIF (*.edf,*.edif,*.edn,*.edo)
|
||||
au BufNewFile,BufRead *.ed\(f\|if\|n\|o\) setf edif
|
||||
|
||||
@@ -1558,7 +1566,7 @@ au BufNewFile,BufRead *.reg
|
||||
au BufNewFile,BufRead *.rib setf rib
|
||||
|
||||
" Rexx
|
||||
au BufNewFile,BufRead *.rexx,*.rex,*.jrexx,*.rxj,*.orx setf rexx
|
||||
au BufNewFile,BufRead *.rex,*.orx,*.rxo,*.rxj,*.jrexx,*.rexxj,*.rexx,*.testGroup,*.testUnit setf rexx
|
||||
|
||||
" R (Splus)
|
||||
if has("fname_case")
|
||||
@@ -1737,7 +1745,8 @@ au BufNewFile,BufRead *.sgm,*.sgml
|
||||
\ if getline(1).getline(2).getline(3).getline(4).getline(5) =~? 'linuxdoc' |
|
||||
\ setf sgmllnx |
|
||||
\ elseif getline(1) =~ '<!DOCTYPE.*DocBook' || getline(2) =~ '<!DOCTYPE.*DocBook' |
|
||||
\ let b:docbk_type="sgml" |
|
||||
\ let b:docbk_type = "sgml" |
|
||||
\ let b:docbk_ver = 4 |
|
||||
\ setf docbk |
|
||||
\ else |
|
||||
\ setf sgml |
|
||||
@@ -1772,6 +1781,10 @@ func! SetFileTypeSH(name)
|
||||
" Some .sh scripts contain #!/bin/tcsh.
|
||||
call SetFileTypeShell("tcsh")
|
||||
return
|
||||
elseif a:name =~ '\<zsh\>'
|
||||
" Some .sh scripts contain #!/bin/zsh.
|
||||
call SetFileTypeShell("zsh")
|
||||
return
|
||||
elseif a:name =~ '\<ksh\>'
|
||||
let b:is_kornshell = 1
|
||||
if exists("b:is_bash")
|
||||
@@ -1872,6 +1885,8 @@ au BufNewFile,BufRead *.st setf st
|
||||
au BufNewFile,BufRead *.cls
|
||||
\ if getline(1) =~ '^%' |
|
||||
\ setf tex |
|
||||
\ elseif getline(1)[0] == '#' && getline(1) =~ 'rexx' |
|
||||
\ setf rexx |
|
||||
\ else |
|
||||
\ setf st |
|
||||
\ endif
|
||||
@@ -2293,8 +2308,16 @@ func! s:FTxml()
|
||||
let n = 1
|
||||
while n < 100 && n < line("$")
|
||||
let line = getline(n)
|
||||
if line =~ '<!DOCTYPE.*DocBook'
|
||||
" DocBook 4 or DocBook 5.
|
||||
let is_docbook4 = line =~ '<!DOCTYPE.*DocBook'
|
||||
let is_docbook5 = line =~ ' xmlns="http://docbook.org/ns/docbook"'
|
||||
if is_docbook4 || is_docbook5
|
||||
let b:docbk_type = "xml"
|
||||
if is_docbook5
|
||||
let b:docbk_ver = 5
|
||||
else
|
||||
let b:docbk_ver = 4
|
||||
endif
|
||||
setf docbk
|
||||
return
|
||||
endif
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: generic Changelog file
|
||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||
" Latest Revision: 2011-05-02
|
||||
" Latest Revision: 2012-08-23
|
||||
" Variables:
|
||||
" g:changelog_timeformat (deprecated: use g:changelog_dateformat instead) -
|
||||
" description: the timeformat used in ChangeLog entries.
|
||||
@@ -106,10 +106,10 @@ if &filetype == 'changelog'
|
||||
|
||||
function! s:passwd_field(line, field)
|
||||
let fields = split(a:line, ':', 1)
|
||||
if len(fields) < field
|
||||
if len(fields) < a:field
|
||||
return ""
|
||||
endif
|
||||
return fields[field - 1]
|
||||
return fields[a:field - 1]
|
||||
endfunction
|
||||
|
||||
function! s:capitalize(word)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: Mail
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2009 Jun 03
|
||||
" Last Change: 2012 Nov 20
|
||||
|
||||
" Only do this when not done yet for this buffer
|
||||
if exists("b:did_ftplugin")
|
||||
@@ -9,7 +9,7 @@ if exists("b:did_ftplugin")
|
||||
endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
let b:undo_ftplugin = "setl modeline< tw< fo<"
|
||||
let b:undo_ftplugin = "setl modeline< tw< fo< comments<"
|
||||
|
||||
" Don't use modelines in e-mail messages, avoid trojan horses and nasty
|
||||
" "jokes" (e.g., setting 'textwidth' to 5).
|
||||
@@ -23,6 +23,9 @@ endif
|
||||
" Set 'formatoptions' to break text lines and keep the comment leader ">".
|
||||
setlocal fo+=tcql
|
||||
|
||||
" Add n:> to 'comments, in case it was removed elsewhere
|
||||
setlocal comments+=n:>
|
||||
|
||||
" Add mappings, unless the user doesn't want this.
|
||||
if !exists("no_plugin_maps") && !exists("no_mail_maps")
|
||||
" Quote text by inserting "> "
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
" SQL filetype plugin file
|
||||
" Language: SQL (Common for Oracle, Microsoft SQL Server, Sybase)
|
||||
" Version: 8.0
|
||||
" Version: 10.0
|
||||
" Maintainer: David Fishburn <dfishburn dot vim at gmail dot com>
|
||||
" Last Change: 2012 May 18
|
||||
" Last Change: 2012 Dec 04
|
||||
" Download: http://vim.sourceforge.net/script.php?script_id=454
|
||||
|
||||
" For more details please use:
|
||||
@@ -30,34 +30,48 @@
|
||||
" To change the default dialect, add the following to your vimrc:
|
||||
" let g:sql_type_default = 'sqlanywhere'
|
||||
"
|
||||
" This file also creates a command, SQLGetType, which allows you to
|
||||
" This file also creates a command, SQLGetType, which allows you to
|
||||
" determine what the current dialect is in use.
|
||||
" :SQLGetType
|
||||
"
|
||||
" History
|
||||
"
|
||||
" Version 10.0 (Dec 2012)
|
||||
"
|
||||
" NF: Changed all maps to use noremap instead of must map
|
||||
" NF: Changed all visual maps to use xnoremap instead of vnoremap as they
|
||||
" should only be used in visual mode and not select mode.
|
||||
" BF: Most of the maps were using doubled up backslashes before they were
|
||||
" changed to using the search() function, which meant they no longer
|
||||
" worked.
|
||||
"
|
||||
" Version 9.0
|
||||
"
|
||||
" NF: Completes 'b:undo_ftplugin'
|
||||
" BF: Correctly set cpoptions when creating script
|
||||
"
|
||||
" Version 8.0
|
||||
"
|
||||
"
|
||||
" NF: Improved the matchit plugin regex (Talek)
|
||||
"
|
||||
" Version 7.0
|
||||
"
|
||||
"
|
||||
" NF: Calls the sqlcomplete#ResetCacheSyntax() function when calling
|
||||
" SQLSetType.
|
||||
"
|
||||
" Version 6.0
|
||||
"
|
||||
"
|
||||
" NF: Adds the command SQLGetType
|
||||
"
|
||||
" Version 5.0
|
||||
"
|
||||
" NF: Adds the ability to choose the keys to control SQL completion, just add
|
||||
"
|
||||
" NF: Adds the ability to choose the keys to control SQL completion, just add
|
||||
" the following to your .vimrc:
|
||||
" let g:ftplugin_sql_omni_key = '<C-C>'
|
||||
" let g:ftplugin_sql_omni_key_right = '<Right>'
|
||||
" let g:ftplugin_sql_omni_key_left = '<Left>'
|
||||
"
|
||||
" BF: format-options - Auto-wrap comments using textwidth was turned off
|
||||
" BF: format-options - Auto-wrap comments using textwidth was turned off
|
||||
" by mistake.
|
||||
|
||||
|
||||
@@ -81,7 +95,7 @@ setlocal formatoptions+=c
|
||||
" This works with both Vim 6 and 7.
|
||||
|
||||
if !exists("*SQL_SetType")
|
||||
" NOTE: You cannot use function! since this file can be
|
||||
" NOTE: You cannot use function! since this file can be
|
||||
" sourced from within this function. That will result in
|
||||
" an error reported by Vim.
|
||||
function SQL_GetList(ArgLead, CmdLine, CursorPos)
|
||||
@@ -105,9 +119,9 @@ if !exists("*SQL_SetType")
|
||||
"
|
||||
" Recursively, since there are many filenames that contain
|
||||
" the word SQL in the indent, syntax and ftplugin directory
|
||||
let sqls = substitute( sqls,
|
||||
\ '[\n]\%(.\{-}\)\(\w\+\.\w\+\)\n\@=',
|
||||
\ '\1\n',
|
||||
let sqls = substitute( sqls,
|
||||
\ '[\n]\%(.\{-}\)\(\w\+\.\w\+\)\n\@=',
|
||||
\ '\1\n',
|
||||
\ 'g'
|
||||
\ )
|
||||
|
||||
@@ -142,10 +156,10 @@ if !exists("*SQL_SetType")
|
||||
function SQL_SetType(name)
|
||||
|
||||
" User has decided to override default SQL scripts and
|
||||
" specify a vendor specific version
|
||||
" specify a vendor specific version
|
||||
" (ie Oracle, Informix, SQL Anywhere, ...)
|
||||
" So check for an remove any settings that prevent the
|
||||
" scripts from being executed, and then source the
|
||||
" scripts from being executed, and then source the
|
||||
" appropriate Vim scripts.
|
||||
if exists("b:did_ftplugin")
|
||||
unlet b:did_ftplugin
|
||||
@@ -163,10 +177,10 @@ if !exists("*SQL_SetType")
|
||||
endif
|
||||
|
||||
" Ensure the name is in the correct format
|
||||
let new_sql_type = substitute(a:name,
|
||||
let new_sql_type = substitute(a:name,
|
||||
\ '\s*\([^\.]\+\)\(\.\w\+\)\?', '\L\1', '')
|
||||
|
||||
" Do not specify a buffer local variable if it is
|
||||
" Do not specify a buffer local variable if it is
|
||||
" the default value
|
||||
if new_sql_type == 'sql'
|
||||
let new_sql_type = 'sqloracle'
|
||||
@@ -203,10 +217,10 @@ endif
|
||||
|
||||
if !exists("*SQL_GetType")
|
||||
function SQL_GetType()
|
||||
if exists('b:sql_type_override')
|
||||
if exists('b:sql_type_override')
|
||||
echomsg "Current SQL dialect in use:".b:sql_type_override
|
||||
else
|
||||
echomsg "Current SQL dialect in use:".g:sql_type_default
|
||||
echomsg "Current SQL dialect in use:".g:sql_type_default
|
||||
endif
|
||||
endfunction
|
||||
command! -nargs=0 SQLGetType :call SQL_GetType()
|
||||
@@ -233,7 +247,8 @@ if exists("b:did_ftplugin")
|
||||
finish
|
||||
endif
|
||||
|
||||
let b:undo_ftplugin = "setl comments<"
|
||||
let b:undo_ftplugin = "setl comments< formatoptions< define< omnifunc<" .
|
||||
\ " | unlet! b:browsefilter b:match_words"
|
||||
|
||||
" Don't load another plugin for this buffer
|
||||
let b:did_ftplugin = 1
|
||||
@@ -280,7 +295,7 @@ if !exists("b:match_words")
|
||||
" doend
|
||||
"
|
||||
" case
|
||||
" when
|
||||
" when
|
||||
" when
|
||||
" default
|
||||
" end case
|
||||
@@ -296,8 +311,10 @@ if !exists("b:match_words")
|
||||
" create[ or replace] procedure|function|event
|
||||
" \ '^\s*\<\%(do\|for\|while\|loop\)\>.*:'.
|
||||
|
||||
let b:match_words =
|
||||
\ '\<begin\>:\<end\>\W*$,'.
|
||||
" For ColdFusion support
|
||||
setlocal matchpairs+=<:>
|
||||
let b:match_words = &matchpairs .
|
||||
\ ',\<begin\>:\<end\>\W*$,'.
|
||||
\
|
||||
\ s:notend . '\<if\>:'.
|
||||
\ '\<elsif\>\|\<elseif\>\|\<else\>:'.
|
||||
@@ -337,14 +354,14 @@ let &l:define = '\c\<\(VARIABLE\|DECLARE\|IN\|OUT\|INOUT\)\>'
|
||||
|
||||
" Mappings to move to the next BEGIN ... END block
|
||||
" \W - no characters or digits
|
||||
nmap <buffer> <silent> ]] :call search('\\c^\\s*begin\\>', 'W' )<CR>
|
||||
nmap <buffer> <silent> [[ :call search('\\c^\\s*begin\\>', 'bW' )<CR>
|
||||
nmap <buffer> <silent> ][ :call search('\\c^\\s*end\\W*$', 'W' )<CR>
|
||||
nmap <buffer> <silent> [] :call search('\\c^\\s*end\\W*$', 'bW' )<CR>
|
||||
vmap <buffer> <silent> ]] :<C-U>exec "normal! gv"<Bar>call search('\\c^\\s*begin\\>', 'W' )<CR>
|
||||
vmap <buffer> <silent> [[ :<C-U>exec "normal! gv"<Bar>call search('\\c^\\s*begin\\>', 'bW' )<CR>
|
||||
vmap <buffer> <silent> ][ :<C-U>exec "normal! gv"<Bar>call search('\\c^\\s*end\\W*$', 'W' )<CR>
|
||||
vmap <buffer> <silent> [] :<C-U>exec "normal! gv"<Bar>call search('\\c^\\s*end\\W*$', 'bW' )<CR>
|
||||
nnoremap <buffer> <silent> ]] :call search('\c^\s*begin\>', 'W' )<CR>
|
||||
nnoremap <buffer> <silent> [[ :call search('\c^\s*begin\>', 'bW' )<CR>
|
||||
nnoremap <buffer> <silent> ][ :call search('\c^\s*end\W*$', 'W' )<CR>
|
||||
nnoremap <buffer> <silent> [] :call search('\c^\s*end\W*$', 'bW' )<CR>
|
||||
xnoremap <buffer> <silent> ]] :<C-U>exec "normal! gv"<Bar>call search('\c^\s*begin\>', 'W' )<CR>
|
||||
xnoremap <buffer> <silent> [[ :<C-U>exec "normal! gv"<Bar>call search('\c^\s*begin\>', 'bW' )<CR>
|
||||
xnoremap <buffer> <silent> ][ :<C-U>exec "normal! gv"<Bar>call search('\c^\s*end\W*$', 'W' )<CR>
|
||||
xnoremap <buffer> <silent> [] :<C-U>exec "normal! gv"<Bar>call search('\c^\s*end\W*$', 'bW' )<CR>
|
||||
|
||||
|
||||
" By default only look for CREATE statements, but allow
|
||||
@@ -361,7 +378,7 @@ endif
|
||||
" backwards, you must use \{,1}
|
||||
if !exists('g:ftplugin_sql_objects')
|
||||
let g:ftplugin_sql_objects = 'function,procedure,event,' .
|
||||
\ '\\(existing\\\\|global\\s\\+temporary\\s\\+\\)\\\{,1}' .
|
||||
\ '\(existing\\|global\s\+temporary\s\+\)\{,1}' .
|
||||
\ 'table,trigger' .
|
||||
\ ',schema,service,publication,database,datatype,domain' .
|
||||
\ ',index,subscription,synchronization,view,variable'
|
||||
@@ -382,47 +399,47 @@ endif
|
||||
|
||||
" Replace all ,'s with bars, except ones with numbers after them.
|
||||
" This will most likely be a \{,1} string.
|
||||
let s:ftplugin_sql_objects =
|
||||
\ '\\c^\\s*' .
|
||||
\ '\\(\\(' .
|
||||
\ substitute(g:ftplugin_sql_statements, ',\d\@!', '\\\\\\|', 'g') .
|
||||
\ '\\)\\s\\+\\(or\\s\\+replace\\\s\+\\)\\{,1}\\)\\{,1}' .
|
||||
\ '\\<\\(' .
|
||||
\ substitute(g:ftplugin_sql_objects, ',\d\@!', '\\\\\\|', 'g') .
|
||||
\ '\\)\\>'
|
||||
let s:ftplugin_sql_objects =
|
||||
\ '\c^\s*' .
|
||||
\ '\(\(' .
|
||||
\ substitute(g:ftplugin_sql_statements, ',\d\@!', '\\\\|', 'g') .
|
||||
\ '\)\s\+\(or\s\+replace\s\+\)\{,1}\)\{,1}' .
|
||||
\ '\<\(' .
|
||||
\ substitute(g:ftplugin_sql_objects, ',\d\@!', '\\\\|', 'g') .
|
||||
\ '\)\>'
|
||||
|
||||
" Mappings to move to the next CREATE ... block
|
||||
exec "nmap <buffer> <silent> ]} :call search('".s:ftplugin_sql_objects."', 'W')<CR>"
|
||||
exec "nmap <buffer> <silent> [{ :call search('".s:ftplugin_sql_objects."', 'bW')<CR>"
|
||||
exec "nnoremap <buffer> <silent> ]} :call search('".s:ftplugin_sql_objects."', 'W')<CR>"
|
||||
exec "nnoremap <buffer> <silent> [{ :call search('".s:ftplugin_sql_objects."', 'bW')<CR>"
|
||||
" Could not figure out how to use a :call search() string in visual mode
|
||||
" without it ending visual mode
|
||||
" Unfortunately, this will add a entry to the search history
|
||||
exec 'vmap <buffer> <silent> ]} /'.s:ftplugin_sql_objects.'<CR>'
|
||||
exec 'vmap <buffer> <silent> [{ ?'.s:ftplugin_sql_objects.'<CR>'
|
||||
exec 'xnoremap <buffer> <silent> ]} /'.s:ftplugin_sql_objects.'<CR>'
|
||||
exec 'xnoremap <buffer> <silent> [{ ?'.s:ftplugin_sql_objects.'<CR>'
|
||||
|
||||
" Mappings to move to the next COMMENT
|
||||
"
|
||||
" Had to double the \ for the \| separator since this has a special
|
||||
" meaning on maps
|
||||
let b:comment_leader = '\\(--\\\|\\/\\/\\\|\\*\\\|\\/\\*\\\|\\*\\/\\)'
|
||||
let b:comment_leader = '\(--\\|\/\/\\|\*\\|\/\*\\|\*\/\)'
|
||||
" Find the start of the next comment
|
||||
let b:comment_start = '^\\(\\s*'.b:comment_leader.'.*\\n\\)\\@<!'.
|
||||
\ '\\(\\s*'.b:comment_leader.'\\)'
|
||||
let b:comment_start = '^\(\s*'.b:comment_leader.'.*\n\)\@<!'.
|
||||
\ '\(\s*'.b:comment_leader.'\)'
|
||||
" Find the end of the previous comment
|
||||
let b:comment_end = '\\(^\\s*'.b:comment_leader.'.*\\n\\)'.
|
||||
\ '\\(^\\s*'.b:comment_leader.'\\)\\@!'
|
||||
let b:comment_end = '\(^\s*'.b:comment_leader.'.*\n\)'.
|
||||
\ '\(^\s*'.b:comment_leader.'\)\@!'
|
||||
" Skip over the comment
|
||||
let b:comment_jump_over = "call search('".
|
||||
\ '^\\(\\s*'.b:comment_leader.'.*\\n\\)\\@<!'.
|
||||
\ '^\(\s*'.b:comment_leader.'.*\n\)\@<!'.
|
||||
\ "', 'W')"
|
||||
let b:comment_skip_back = "call search('".
|
||||
\ '^\\(\\s*'.b:comment_leader.'.*\\n\\)\\@<!'.
|
||||
\ '^\(\s*'.b:comment_leader.'.*\n\)\@<!'.
|
||||
\ "', 'bW')"
|
||||
" Move to the start and end of comments
|
||||
exec 'nnoremap <silent><buffer> ]" :call search('."'".b:comment_start."'".', "W" )<CR>'
|
||||
exec 'nnoremap <silent><buffer> [" :call search('."'".b:comment_end."'".', "W" )<CR>'
|
||||
exec 'vnoremap <silent><buffer> ]" :<C-U>exec "normal! gv"<Bar>call search('."'".b:comment_start."'".', "W" )<CR>'
|
||||
exec 'vnoremap <silent><buffer> [" :<C-U>exec "normal! gv"<Bar>call search('."'".b:comment_end."'".', "W" )<CR>'
|
||||
exec 'xnoremap <silent><buffer> ]" :<C-U>exec "normal! gv"<Bar>call search('."'".b:comment_start."'".', "W" )<CR>'
|
||||
exec 'xnoremap <silent><buffer> [" :<C-U>exec "normal! gv"<Bar>call search('."'".b:comment_end."'".', "W" )<CR>'
|
||||
|
||||
" Comments can be of the form:
|
||||
" /*
|
||||
@@ -431,7 +448,7 @@ exec 'vnoremap <silent><buffer> [" :<C-U>exec "normal! gv"<Bar>call search('."'"
|
||||
" or
|
||||
" --
|
||||
" or
|
||||
" //
|
||||
" //
|
||||
setlocal comments=s1:/*,mb:*,ex:*/,:--,://
|
||||
|
||||
" Set completion with CTRL-X CTRL-O to autoloaded function.
|
||||
@@ -443,7 +460,7 @@ if exists('&omnifunc')
|
||||
|
||||
" This is used by the sqlcomplete.vim plugin
|
||||
" Source it for it's global functions
|
||||
runtime autoload/syntaxcomplete.vim
|
||||
runtime autoload/syntaxcomplete.vim
|
||||
|
||||
setlocal omnifunc=sqlcomplete#Complete
|
||||
" Prevent the intellisense plugin from loading
|
||||
@@ -451,32 +468,32 @@ if exists('&omnifunc')
|
||||
if !exists('g:omni_sql_no_default_maps')
|
||||
" Static maps which use populate the completion list
|
||||
" using Vim's syntax highlighting rules
|
||||
exec 'imap <buffer> '.g:ftplugin_sql_omni_key.'a <C-\><C-O>:call sqlcomplete#Map("syntax")<CR><C-X><C-O>'
|
||||
exec 'imap <buffer> '.g:ftplugin_sql_omni_key.'k <C-\><C-O>:call sqlcomplete#Map("sqlKeyword")<CR><C-X><C-O>'
|
||||
exec 'imap <buffer> '.g:ftplugin_sql_omni_key.'f <C-\><C-O>:call sqlcomplete#Map("sqlFunction")<CR><C-X><C-O>'
|
||||
exec 'imap <buffer> '.g:ftplugin_sql_omni_key.'o <C-\><C-O>:call sqlcomplete#Map("sqlOption")<CR><C-X><C-O>'
|
||||
exec 'imap <buffer> '.g:ftplugin_sql_omni_key.'T <C-\><C-O>:call sqlcomplete#Map("sqlType")<CR><C-X><C-O>'
|
||||
exec 'imap <buffer> '.g:ftplugin_sql_omni_key.'s <C-\><C-O>:call sqlcomplete#Map("sqlStatement")<CR><C-X><C-O>'
|
||||
exec 'inoremap <buffer> '.g:ftplugin_sql_omni_key.'a <C-\><C-O>:call sqlcomplete#Map("syntax")<CR><C-X><C-O>'
|
||||
exec 'inoremap <buffer> '.g:ftplugin_sql_omni_key.'k <C-\><C-O>:call sqlcomplete#Map("sqlKeyword")<CR><C-X><C-O>'
|
||||
exec 'inoremap <buffer> '.g:ftplugin_sql_omni_key.'f <C-\><C-O>:call sqlcomplete#Map("sqlFunction")<CR><C-X><C-O>'
|
||||
exec 'inoremap <buffer> '.g:ftplugin_sql_omni_key.'o <C-\><C-O>:call sqlcomplete#Map("sqlOption")<CR><C-X><C-O>'
|
||||
exec 'inoremap <buffer> '.g:ftplugin_sql_omni_key.'T <C-\><C-O>:call sqlcomplete#Map("sqlType")<CR><C-X><C-O>'
|
||||
exec 'inoremap <buffer> '.g:ftplugin_sql_omni_key.'s <C-\><C-O>:call sqlcomplete#Map("sqlStatement")<CR><C-X><C-O>'
|
||||
" Dynamic maps which use populate the completion list
|
||||
" using the dbext.vim plugin
|
||||
exec 'imap <buffer> '.g:ftplugin_sql_omni_key.'t <C-\><C-O>:call sqlcomplete#Map("table")<CR><C-X><C-O>'
|
||||
exec 'imap <buffer> '.g:ftplugin_sql_omni_key.'p <C-\><C-O>:call sqlcomplete#Map("procedure")<CR><C-X><C-O>'
|
||||
exec 'imap <buffer> '.g:ftplugin_sql_omni_key.'v <C-\><C-O>:call sqlcomplete#Map("view")<CR><C-X><C-O>'
|
||||
exec 'imap <buffer> '.g:ftplugin_sql_omni_key.'c <C-\><C-O>:call sqlcomplete#Map("column")<CR><C-X><C-O>'
|
||||
exec 'imap <buffer> '.g:ftplugin_sql_omni_key.'l <C-\><C-O>:call sqlcomplete#Map("column_csv")<CR><C-X><C-O>'
|
||||
exec 'inoremap <buffer> '.g:ftplugin_sql_omni_key.'t <C-\><C-O>:call sqlcomplete#Map("table")<CR><C-X><C-O>'
|
||||
exec 'inoremap <buffer> '.g:ftplugin_sql_omni_key.'p <C-\><C-O>:call sqlcomplete#Map("procedure")<CR><C-X><C-O>'
|
||||
exec 'inoremap <buffer> '.g:ftplugin_sql_omni_key.'v <C-\><C-O>:call sqlcomplete#Map("view")<CR><C-X><C-O>'
|
||||
exec 'inoremap <buffer> '.g:ftplugin_sql_omni_key.'c <C-\><C-O>:call sqlcomplete#Map("column")<CR><C-X><C-O>'
|
||||
exec 'inoremap <buffer> '.g:ftplugin_sql_omni_key.'l <C-\><C-O>:call sqlcomplete#Map("column_csv")<CR><C-X><C-O>'
|
||||
" The next 3 maps are only to be used while the completion window is
|
||||
" active due to the <CR> at the beginning of the map
|
||||
exec 'imap <buffer> '.g:ftplugin_sql_omni_key.'L <C-Y><C-\><C-O>:call sqlcomplete#Map("column_csv")<CR><C-X><C-O>'
|
||||
exec 'inoremap <buffer> '.g:ftplugin_sql_omni_key.'L <C-Y><C-\><C-O>:call sqlcomplete#Map("column_csv")<CR><C-X><C-O>'
|
||||
" <C-Right> is not recognized on most Unix systems, so only create
|
||||
" these additional maps on the Windows platform.
|
||||
" If you would like to use these maps, choose a different key and make
|
||||
" the same map in your vimrc.
|
||||
" if has('win32')
|
||||
exec 'imap <buffer> '.g:ftplugin_sql_omni_key_right.' <C-R>=sqlcomplete#DrillIntoTable()<CR>'
|
||||
exec 'imap <buffer> '.g:ftplugin_sql_omni_key_left.' <C-R>=sqlcomplete#DrillOutOfColumns()<CR>'
|
||||
exec 'inoremap <buffer> '.g:ftplugin_sql_omni_key_right.' <C-R>=sqlcomplete#DrillIntoTable()<CR>'
|
||||
exec 'inoremap <buffer> '.g:ftplugin_sql_omni_key_left.' <C-R>=sqlcomplete#DrillOutOfColumns()<CR>'
|
||||
" endif
|
||||
" Remove any cached items useful for schema changes
|
||||
exec 'imap <buffer> '.g:ftplugin_sql_omni_key.'R <C-\><C-O>:call sqlcomplete#Map("resetCache")<CR><C-X><C-O>'
|
||||
exec 'inoremap <buffer> '.g:ftplugin_sql_omni_key.'R <C-\><C-O>:call sqlcomplete#Map("resetCache")<CR><C-X><C-O>'
|
||||
endif
|
||||
|
||||
if b:sql_compl_savefunc != ""
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: Zimbu
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2012 May 18
|
||||
" Last Change: 2012 Sep 08
|
||||
|
||||
" Only do this when not done yet for this buffer
|
||||
if exists("b:did_ftplugin")
|
||||
@@ -34,7 +34,7 @@ setlocal errorformat^=%f\ line\ %l\ col\ %c:\ %m,ERROR:\ %m
|
||||
|
||||
" When the matchit plugin is loaded, this makes the % command skip parens and
|
||||
" braces in comments.
|
||||
let b:match_words = '\(^\s*\)\@<=\(MODULE\|CLASS\|INTERFACE\|BITS\|ENUM\|SHARED\|FUNC\|REPLACE\|DEFINE\|PROC\|EQUAL\|MAIN\|IF\|GENERATE_IF\|WHILE\|REPEAT\|WITH\|DO\|FOR\|SWITCH\|TRY\)\>\|{\s*$:\(^\s*\)\@<=\(ELSE\|ELSEIF\|GENERATE_ELSE\|GENERATE_ELSEIF\|CATCH\|FINALLY\)\>:\(^\s*\)\@<=}\|\<UNTIL\>'
|
||||
let b:match_words = '\(^\s*\)\@<=\(MODULE\|CLASS\|INTERFACE\|BITS\|ENUM\|SHARED\|FUNC\|REPLACE\|DEFINE\|PROC\|EQUAL\|MAIN\|IF\|GENERATE_IF\|WHILE\|REPEAT\|WITH\|DO\|FOR\|SWITCH\|TRY\)\>\|{\s*$:\(^\s*\)\@<=\(ELSE\|ELSEIF\|GENERATE_ELSE\|GENERATE_ELSEIF\|CATCH\|FINALLY\)\>:\(^\s*\)\@<=\(}\|\<UNTIL\>\)'
|
||||
|
||||
let b:match_skip = 's:comment\|string\|zimbuchar'
|
||||
|
||||
@@ -43,12 +43,36 @@ setlocal et sts=2 sw=2
|
||||
|
||||
" Does replace when a dot, space or closing brace is typed.
|
||||
func! GCUpperDot(what)
|
||||
let col = col(".") - strlen(a:what)
|
||||
if v:char != ' ' && v:char != "\r" && v:char != "\x1b" && v:char != '.' && v:char != ')' && v:char != '}'
|
||||
if v:char != ' ' && v:char != "\r" && v:char != "\x1b" && v:char != '.' && v:char != ')' && v:char != '}' && v:char != ','
|
||||
" no space or dot after the typed text
|
||||
let g:got_char = v:char
|
||||
return a:what
|
||||
endif
|
||||
return GCUpperCommon(a:what)
|
||||
endfunc
|
||||
|
||||
" Does not replace when a dot is typed.
|
||||
func! GCUpper(what)
|
||||
if v:char != ' ' && v:char != "\r" && v:char != "\x1b" && v:char != ')' && v:char != ','
|
||||
" no space or other "terminating" character after the typed text
|
||||
let g:got_char = v:char
|
||||
return a:what
|
||||
endif
|
||||
return GCUpperCommon(a:what)
|
||||
endfunc
|
||||
|
||||
" Only replaces when a space is typed.
|
||||
func! GCUpperSpace(what)
|
||||
if v:char != ' '
|
||||
" no space after the typed text
|
||||
let g:got_char = v:char
|
||||
return a:what
|
||||
endif
|
||||
return GCUpperCommon(a:what)
|
||||
endfunc
|
||||
|
||||
func! GCUpperCommon(what)
|
||||
let col = col(".") - strlen(a:what)
|
||||
if col > 1 && getline('.')[col - 2] != ' '
|
||||
" no space before the typed text
|
||||
let g:got_char = 999
|
||||
@@ -64,34 +88,15 @@ func! GCUpperDot(what)
|
||||
return toupper(a:what)
|
||||
endfunc
|
||||
|
||||
" Does not replace when a dot is typed.
|
||||
func! GCUpper(what)
|
||||
if v:char != ' ' && v:char != "\r" && v:char != "\x1b" && v:char != ')'
|
||||
" no space after the typed text
|
||||
let g:got_char = v:char
|
||||
return a:what
|
||||
endif
|
||||
return GCUpperDot(a:what)
|
||||
endfunc
|
||||
|
||||
" Only replaces when a space is typed.
|
||||
func! GCUpperSpace(what)
|
||||
if v:char != ' '
|
||||
" no space after the typed text
|
||||
let g:got_char = v:char
|
||||
return a:what
|
||||
endif
|
||||
return GCUpperDot(a:what)
|
||||
endfunc
|
||||
|
||||
iabbr <buffer> <expr> alias GCUpperSpace("alias")
|
||||
iabbr <buffer> <expr> arg GCUpperDot("arg")
|
||||
iabbr <buffer> <expr> bad GCUpper("bad")
|
||||
iabbr <buffer> <expr> break GCUpper("break")
|
||||
iabbr <buffer> <expr> case GCUpperSpace("case")
|
||||
iabbr <buffer> <expr> catch GCUpperSpace("catch")
|
||||
iabbr <buffer> <expr> check GCUpperDot("check")
|
||||
iabbr <buffer> <expr> class GCUpperSpace("class")
|
||||
iabbr <buffer> <expr> interface GCUpperSpace("interface")
|
||||
iabbr <buffer> <expr> implements GCUpperSpace("implements")
|
||||
iabbr <buffer> <expr> shared GCUpperSpace("shared")
|
||||
iabbr <buffer> <expr> continue GCUpper("continue")
|
||||
iabbr <buffer> <expr> default GCUpper("default")
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
" Vim indent file
|
||||
" Language: SQL
|
||||
" Maintainer: David Fishburn <fishburn at ianywhere dot com>
|
||||
" Last Change: Mon Apr 02 2007 9:13:47 AM
|
||||
" Version: 1.5
|
||||
" Maintainer: David Fishburn <dfishburn dot vim at gmail dot com>
|
||||
" Last Change: 2012 Dec 05
|
||||
" Version: 3.0
|
||||
" Download: http://vim.sourceforge.net/script.php?script_id=495
|
||||
|
||||
" Notes:
|
||||
@@ -18,6 +18,17 @@
|
||||
" Known Issues:
|
||||
" The Oracle MERGE statement does not have an end tag associated with
|
||||
" it, this can leave the indent hanging to the right one too many.
|
||||
"
|
||||
" History:
|
||||
" 3.0 (Dec 2012)
|
||||
" Added cpo check
|
||||
"
|
||||
" 2.0
|
||||
" Added the FOR keyword to SQLBlockStart to handle (Alec Tica):
|
||||
" for i in 1..100 loop
|
||||
" |<-- I expect to have indentation here
|
||||
" end loop;
|
||||
"
|
||||
|
||||
" Only load this indent file when no other was loaded.
|
||||
if exists("b:did_indent")
|
||||
@@ -25,6 +36,8 @@ if exists("b:did_indent")
|
||||
endif
|
||||
let b:did_indent = 1
|
||||
let b:current_indent = "sqlanywhere"
|
||||
let s:keepcpo= &cpo
|
||||
set cpo&vim
|
||||
|
||||
setlocal indentkeys-=0{
|
||||
setlocal indentkeys-=0}
|
||||
@@ -44,20 +57,13 @@ setlocal indentkeys+==~end,=~else,=~elseif,=~elsif,0=~when,0=)
|
||||
" in the indentkeys is typed
|
||||
setlocal indentexpr=GetSQLIndent()
|
||||
|
||||
" Only define the functions once.
|
||||
if exists("*GetSQLIndent")
|
||||
finish
|
||||
endif
|
||||
let s:keepcpo= &cpo
|
||||
set cpo&vim
|
||||
|
||||
" List of all the statements that start a new block.
|
||||
" These are typically words that start a line.
|
||||
" IS is excluded, since it is difficult to determine when the
|
||||
" ending block is (especially for procedures/functions).
|
||||
let s:SQLBlockStart = '^\s*\%('.
|
||||
\ 'if\|else\|elseif\|elsif\|'.
|
||||
\ 'while\|loop\|do\|'.
|
||||
\ 'if\|else\|elseif\|elsif\|'.
|
||||
\ 'while\|loop\|do\|for\|'.
|
||||
\ 'begin\|'.
|
||||
\ 'case\|when\|merge\|exception'.
|
||||
\ '\)\>'
|
||||
@@ -66,7 +72,7 @@ let s:SQLBlockEnd = '^\s*\(end\)\>'
|
||||
" The indent level is also based on unmatched paranethesis
|
||||
" If a line has an extra "(" increase the indent
|
||||
" If a line has an extra ")" decrease the indent
|
||||
function s:CountUnbalancedParan( line, paran_to_check )
|
||||
function! s:CountUnbalancedParan( line, paran_to_check )
|
||||
let l = a:line
|
||||
let lp = substitute(l, '[^(]', '', 'g')
|
||||
let l = a:line
|
||||
@@ -88,7 +94,7 @@ function s:CountUnbalancedParan( line, paran_to_check )
|
||||
endfunction
|
||||
|
||||
" Unindent commands based on previous indent level
|
||||
function s:CheckToIgnoreRightParan( prev_lnum, num_levels )
|
||||
function! s:CheckToIgnoreRightParan( prev_lnum, num_levels )
|
||||
let lnum = a:prev_lnum
|
||||
let line = getline(lnum)
|
||||
let ends = 0
|
||||
@@ -151,7 +157,7 @@ endfunction
|
||||
" something;
|
||||
" WHEN ...
|
||||
" Should return indent level of exception.
|
||||
function s:GetStmtStarterIndent( keyword, curr_lnum )
|
||||
function! s:GetStmtStarterIndent( keyword, curr_lnum )
|
||||
let lnum = a:curr_lnum
|
||||
|
||||
" Default - reduce indent by 1
|
||||
@@ -193,7 +199,7 @@ endfunction
|
||||
|
||||
|
||||
" Check if the line is a comment
|
||||
function s:IsLineComment(lnum)
|
||||
function! s:IsLineComment(lnum)
|
||||
let rc = synIDattr(
|
||||
\ synID(a:lnum,
|
||||
\ match(getline(a:lnum), '\S')+1, 0)
|
||||
@@ -205,7 +211,7 @@ endfunction
|
||||
|
||||
|
||||
" Check if the column is a comment
|
||||
function s:IsColComment(lnum, cnum)
|
||||
function! s:IsColComment(lnum, cnum)
|
||||
let rc = synIDattr(synID(a:lnum, a:cnum, 0), "name")
|
||||
\ =~? "comment"
|
||||
|
||||
@@ -215,7 +221,7 @@ endfunction
|
||||
|
||||
" Instead of returning a column position, return
|
||||
" an appropriate value as a factor of shiftwidth.
|
||||
function s:ModuloIndent(ind)
|
||||
function! s:ModuloIndent(ind)
|
||||
let ind = a:ind
|
||||
|
||||
if ind > 0
|
||||
@@ -231,7 +237,7 @@ endfunction
|
||||
|
||||
|
||||
" Find correct indent of a new line based upon the previous line
|
||||
function GetSQLIndent()
|
||||
function! GetSQLIndent()
|
||||
let lnum = v:lnum
|
||||
let ind = indent(lnum)
|
||||
|
||||
@@ -242,35 +248,27 @@ function GetSQLIndent()
|
||||
" return ind
|
||||
" endif
|
||||
|
||||
" while 1
|
||||
" Get previous non-blank line
|
||||
let prevlnum = prevnonblank(lnum - 1)
|
||||
if prevlnum <= 0
|
||||
return ind
|
||||
endif
|
||||
" Get previous non-blank line
|
||||
let prevlnum = prevnonblank(lnum - 1)
|
||||
if prevlnum <= 0
|
||||
return ind
|
||||
endif
|
||||
|
||||
if s:IsLineComment(prevlnum) == 1
|
||||
if getline(v:lnum) =~ '^\s*\*'
|
||||
let ind = s:ModuloIndent(indent(prevlnum))
|
||||
return ind + 1
|
||||
endif
|
||||
" If the previous line is a comment, then return -1
|
||||
" to tell Vim to use the formatoptions setting to determine
|
||||
" the indent to use
|
||||
" But only if the next line is blank. This would be true if
|
||||
" the user is typing, but it would not be true if the user
|
||||
" is reindenting the file
|
||||
if getline(v:lnum) =~ '^\s*$'
|
||||
return -1
|
||||
endif
|
||||
if s:IsLineComment(prevlnum) == 1
|
||||
if getline(v:lnum) =~ '^\s*\*'
|
||||
let ind = s:ModuloIndent(indent(prevlnum))
|
||||
return ind + 1
|
||||
endif
|
||||
|
||||
" let prevline = getline(prevlnum)
|
||||
" if prevline !~ '^\s*$'
|
||||
" " echom 'previous non blank - break: ' . prevline
|
||||
" break
|
||||
" endif
|
||||
" endwhile
|
||||
" If the previous line is a comment, then return -1
|
||||
" to tell Vim to use the formatoptions setting to determine
|
||||
" the indent to use
|
||||
" But only if the next line is blank. This would be true if
|
||||
" the user is typing, but it would not be true if the user
|
||||
" is reindenting the file
|
||||
if getline(v:lnum) =~ '^\s*$'
|
||||
return -1
|
||||
endif
|
||||
endif
|
||||
|
||||
" echom 'PREVIOUS INDENT: ' . indent(prevlnum) . ' LINE: ' . getline(prevlnum)
|
||||
|
||||
@@ -384,7 +382,7 @@ function GetSQLIndent()
|
||||
return s:ModuloIndent(ind)
|
||||
endfunction
|
||||
|
||||
let &cpo = s:keepcpo
|
||||
" Restore:
|
||||
let &cpo= s:keepcpo
|
||||
unlet s:keepcpo
|
||||
|
||||
" vim:sw=4:
|
||||
" vim: ts=4 fdm=marker sw=4
|
||||
|
||||
132
runtime/indent/yaml.vim
Normal file
132
runtime/indent/yaml.vim
Normal file
@@ -0,0 +1,132 @@
|
||||
" Vim indent file
|
||||
" Language: YAML
|
||||
" Maintainer: Nikolai Pavlov <zyx.vim@gmail.com>
|
||||
|
||||
" Only load this indent file when no other was loaded.
|
||||
if exists('b:did_indent')
|
||||
finish
|
||||
endif
|
||||
|
||||
let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
let b:did_indent = 1
|
||||
|
||||
setlocal indentexpr=GetYAMLIndent(v:lnum)
|
||||
setlocal indentkeys=!^F,o,O,0#,0},0],<:>,-
|
||||
setlocal nosmartindent
|
||||
|
||||
let b:undo_indent = 'setlocal indentexpr< indentkeys< smartindent<'
|
||||
|
||||
" Only define the function once.
|
||||
if exists('*GetYAMLIndent')
|
||||
finish
|
||||
endif
|
||||
|
||||
if exists('*shiftwidth')
|
||||
let s:shiftwidth = function('shiftwidth')
|
||||
else
|
||||
function s:shiftwidth()
|
||||
return &shiftwidth
|
||||
endfunction
|
||||
endif
|
||||
|
||||
function s:FindPrevLessIndentedLine(lnum, ...)
|
||||
let prevlnum = prevnonblank(a:lnum-1)
|
||||
let curindent = a:0 ? a:1 : indent(a:lnum)
|
||||
while prevlnum
|
||||
\&& indent(prevlnum) >= curindent
|
||||
\&& getline(prevlnum) !~# '^\s*#'
|
||||
let prevlnum = prevnonblank(prevlnum-1)
|
||||
endwhile
|
||||
return prevlnum
|
||||
endfunction
|
||||
|
||||
function s:FindPrevLEIndentedLineMatchingRegex(lnum, regex)
|
||||
let plilnum = s:FindPrevLessIndentedLine(a:lnum, indent(a:lnum)+1)
|
||||
while plilnum && getline(plilnum) !~# a:regex
|
||||
let plilnum = s:FindPrevLessIndentedLine(plilnum)
|
||||
endwhile
|
||||
return plilnum
|
||||
endfunction
|
||||
|
||||
let s:mapkeyregex='\v^\s*%(\''%([^'']|'''')*\'''.
|
||||
\ '|\"%([^"\\]|\\.)*\"'.
|
||||
\ '|%(%(\:\ )@!.)*)\:%(\ |$)'
|
||||
let s:liststartregex='\v^\s*%(\-%(\ |$))'
|
||||
|
||||
function GetYAMLIndent(lnum)
|
||||
if a:lnum == 1 || !prevnonblank(a:lnum-1)
|
||||
return 0
|
||||
endif
|
||||
|
||||
let prevlnum = prevnonblank(a:lnum-1)
|
||||
let previndent = indent(prevlnum)
|
||||
|
||||
let line = getline(a:lnum)
|
||||
if line =~# '^\s*#' && getline(a:lnum-1) =~# '^\s*#'
|
||||
" Comment blocks should have identical indent
|
||||
return previndent
|
||||
elseif line =~# '^\s*[\]}]'
|
||||
" Lines containing only closing braces should have previous indent
|
||||
return indent(s:FindPrevLessIndentedLine(a:lnum))
|
||||
endif
|
||||
|
||||
" Ignore comment lines when calculating indent
|
||||
while getline(prevlnum) =~# '^\s*#'
|
||||
let prevlnum = prevnonblank(prevlnum-1)
|
||||
if !prevlnum
|
||||
return previndent
|
||||
endif
|
||||
endwhile
|
||||
|
||||
let prevline = getline(prevlnum)
|
||||
let previndent = indent(prevlnum)
|
||||
|
||||
" Any examples below assume that shiftwidth=2
|
||||
if prevline =~# '\v[{[:]$|[:-]\ [|>][+\-]?%(\s+\#.*|\s*)$'
|
||||
" Mapping key:
|
||||
" nested mapping: ...
|
||||
"
|
||||
" - {
|
||||
" key: [
|
||||
" list value
|
||||
" ]
|
||||
" }
|
||||
"
|
||||
" - |-
|
||||
" Block scalar without indentation indicator
|
||||
return previndent+s:shiftwidth()
|
||||
elseif prevline =~# '\v[:-]\ [|>]%(\d+[+\-]?|[+\-]?\d+)%(\#.*|\s*)$'
|
||||
" - |+2
|
||||
" block scalar with indentation indicator
|
||||
"#^^ indent+2, not indent+shiftwidth
|
||||
return previndent + str2nr(matchstr(prevline,
|
||||
\'\v([:-]\ [|>])@<=[+\-]?\d+%([+\-]?%(\s+\#.*|\s*)$)@='))
|
||||
elseif prevline =~# '\v\"%([^"\\]|\\.)*\\$'
|
||||
" "Multiline string \
|
||||
" with escaped end"
|
||||
let qidx = match(prevline, '\v\"%([^"\\]|\\.)*\\')
|
||||
return virtcol([prevlnum, qidx+1])
|
||||
elseif line =~# s:liststartregex
|
||||
" List line should have indent equal to previous list line unless it was
|
||||
" caught by one of the previous rules
|
||||
return indent(s:FindPrevLEIndentedLineMatchingRegex(a:lnum,
|
||||
\ s:liststartregex))
|
||||
elseif line =~# s:mapkeyregex
|
||||
" Same for line containing mapping key
|
||||
return indent(s:FindPrevLEIndentedLineMatchingRegex(a:lnum,
|
||||
\ s:mapkeyregex))
|
||||
elseif prevline =~# '^\s*- '
|
||||
" - List with
|
||||
" multiline scalar
|
||||
return previndent+2
|
||||
elseif prevline =~# s:mapkeyregex
|
||||
" Mapping with: value
|
||||
" that is multiline scalar
|
||||
return previndent+s:shiftwidth()
|
||||
endif
|
||||
return previndent
|
||||
endfunction
|
||||
|
||||
let &cpo = s:save_cpo
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim indent file
|
||||
" Language: Zimbu
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2011 Jun 19
|
||||
" Last Change: 2012 Sep 08
|
||||
|
||||
" Only load this indent file when no other was loaded.
|
||||
if exists("b:did_indent")
|
||||
@@ -101,7 +101,7 @@ func GetZimbuIndent(lnum)
|
||||
endwhile
|
||||
endif
|
||||
|
||||
if prevline =~ '^\s*\(IF\|\|ELSEIF\|ELSE\|GENERATE_IF\|\|GENERATE_ELSEIF\|GENERATE_ELSE\|WHILE\|REPEAT\|TRY\|CATCH\|FINALLY\|FOR\|DO\|SWITCH\|CASE\|DEFAULT\|FUNC\|VIRTUAL\|ABSTRACT\|DEFINE\|REPLACE\|FINAL\|PROC\|MAIN\|NEW\|ENUM\|CLASS\|BITS\|MODULE\|SHARED\)\>'
|
||||
if prevline =~ '^\s*\(IF\|\|ELSEIF\|ELSE\|GENERATE_IF\|\|GENERATE_ELSEIF\|GENERATE_ELSE\|WHILE\|REPEAT\|TRY\|CATCH\|FINALLY\|FOR\|DO\|SWITCH\|CASE\|DEFAULT\|FUNC\|VIRTUAL\|ABSTRACT\|DEFINE\|REPLACE\|FINAL\|PROC\|MAIN\|NEW\|ENUM\|CLASS\|INTERFACE\|BITS\|MODULE\|SHARED\)\>'
|
||||
let plindent += &sw
|
||||
endif
|
||||
if thisline =~ '^\s*\(}\|ELSEIF\>\|ELSE\>\|CATCH\|FINALLY\|GENERATE_ELSEIF\>\|GENERATE_ELSE\>\|UNTIL\>\)'
|
||||
|
||||
@@ -1,32 +1,38 @@
|
||||
" Menu Translations: Czech for ISO-8859-2
|
||||
" Maintainer: Jiri Brezina <brzj@seznam.cz>
|
||||
" vim:set foldmethod=marker:
|
||||
" $Revision: 1.3 $
|
||||
" $Date: 2005/12/19 22:08:24 $
|
||||
" Menu Translations: Czech (ISO-8859-2)
|
||||
" Maintainer: Jiri Sedlak <jiri_sedlak@users.sourceforge.net>
|
||||
" Previous maintainer: Jiri Brezina
|
||||
" Based on: menu.vim (2012-10-21)
|
||||
|
||||
" Quit when menu translations have already been done.
|
||||
if exists("did_menu_trans")
|
||||
finish
|
||||
finish
|
||||
endif
|
||||
|
||||
let did_menu_trans = 1
|
||||
let s:keepcpo= &cpo
|
||||
set cpo&vim
|
||||
|
||||
scriptencoding ISO-8859-2
|
||||
scriptencoding iso-8859-2
|
||||
|
||||
" {{{ File menu
|
||||
menutrans &File &Soubor
|
||||
menutrans &Open\.\.\.<Tab>:e &Otev<EFBFBD><EFBFBD>t\.\.\.<Tab>:e
|
||||
menutrans Sp&lit-Open\.\.\.<Tab>:sp Otev<EFBFBD><EFBFBD>t\ v\ no&v<EFBFBD>m\ okn<EFBFBD>\.\.\.<Tab>:sp
|
||||
menutrans Open\ Tab\.\.\.<Tab>:tabnew Otev<EFBFBD><EFBFBD>t\ tab\.\.\.<Tab>:tabnew
|
||||
menutrans &New<Tab>:enew &Nov<EFBFBD><Tab>:enew
|
||||
menutrans &Close<Tab>:close &Zav<EFBFBD><EFBFBD>t<Tab>:close
|
||||
menutrans &Save<Tab>:w &Ulo<EFBFBD>it<Tab>:w
|
||||
menutrans Save\ &As\.\.\.<Tab>:sav Ulo<EFBFBD>it\ &jako\.\.\.<Tab>:sav
|
||||
menutrans Split\ &Diff\ with\.\.\. Rozd<EFBFBD>lit\ okno\ -\ &Diff\.\.\.
|
||||
menutrans Split\ Patched\ &By\.\.\. Rozd<EFBFBD>lit\ okno\ -\ &Patch\.\.\.
|
||||
menutrans &Print &Tisk
|
||||
menutrans Sa&ve-Exit<Tab>:wqa U&lo<EFBFBD>it\ -\ Konec<Tab>:wqa
|
||||
menutrans E&xit<Tab>:qa &Konec<Tab>:qa
|
||||
if has("printer") || has("unix")
|
||||
menutrans &Print &Tisk
|
||||
endif
|
||||
menutrans Sa&ve-Exit<Tab>:wqa U&lo<EFBFBD>it\ a\ ukon<EFBFBD>it<Tab>:wqa
|
||||
menutrans E&xit<Tab>:qa &Ukon<EFBFBD>it<Tab>:qa
|
||||
|
||||
if has("diff")
|
||||
menutrans Split\ &Diff\ with\.\.\. Rozd<EFBFBD>lit\ okno\ -\ &Diff\.\.\.
|
||||
menutrans Split\ Patched\ &By\.\.\. Rozd<EFBFBD>lit\ okno\ -\ &Patch\.\.\.
|
||||
endif
|
||||
" }}}
|
||||
|
||||
" {{{ Edit menu
|
||||
@@ -39,24 +45,32 @@ menutrans &Copy<Tab>"+y &Kop
|
||||
menutrans &Paste<Tab>"+gP V&lo<6C>it<Tab>"+gP
|
||||
menutrans Put\ &Before<Tab>[p Vlo<EFBFBD>it\ &p<EFBFBD>ed<Tab>[p
|
||||
menutrans Put\ &After<Tab>]p Vlo<EFBFBD>i&t\ za<Tab>]p
|
||||
menutrans &Delete<Tab>x &Smazat<Tab>x
|
||||
if has("win32") || has("win16")
|
||||
menutrans &Delete<Tab>x &Smazat<Tab>x
|
||||
endif
|
||||
menutrans &Select\ All<Tab>ggVG Vy&brat\ v<EFBFBD>e<Tab>ggVG
|
||||
menutrans &Find\.\.\. &Hledat\.\.\.
|
||||
menutrans Find\ and\ Rep&lace\.\.\. &Nahradit\.\.\.
|
||||
menutrans Options\.\.\. Volb&y\.\.\.
|
||||
if has("win32") || has("win16") || has("gui_gtk") || has("gui_kde") || has("gui_motif")
|
||||
menutrans &Find\.\.\. &Hledat\.\.\.
|
||||
menutrans Find\ and\ Rep&lace\.\.\. &Nahradit\.\.\.
|
||||
else
|
||||
menutrans Find<Tab>/ &Hledat<Tab>/
|
||||
menutrans Find\ and\ Rep&lace<Tab>:%s &Nahradit<Tab>:%s
|
||||
menutrans Find\ and\ Rep&lace<Tab>:s &Nahradit<Tab>:s
|
||||
endif
|
||||
menutrans Settings\ &Window Nastav&en<EFBFBD>\ okna
|
||||
" {{{2 Edit -1
|
||||
" {{{2 Edit -1
|
||||
menutrans Startup\ &Settings Po<EFBFBD><EFBFBD>te<EFBFBD>n<EFBFBD>\ &nastaven<EFBFBD>
|
||||
menutrans &Global\ Settings &Glob<EFBFBD>ln<EFBFBD>\ nastaven<EFBFBD>
|
||||
menutrans Toggle\ Pattern\ &Highlight<Tab>:set\ hls! &P<EFBFBD>epnout\ zv<EFBFBD>razn<EFBFBD>n<EFBFBD>\ vzoru<Tab>:set\ hls!
|
||||
menutrans Toggle\ &Ignore-case<Tab>:set\ ic! P<EFBFBD>epnout\ ignorov<EFBFBD>n<EFBFBD>\ &VERZ<EFBFBD>LEK<Tab>:set\ ic!
|
||||
menutrans Toggle\ &Showmatch<Tab>:set\ sm! P<EFBFBD>epnout\ &Showmatch\ \{\(\[\])\}<Tab>:set\ sm!
|
||||
menutrans &Context\ lines Zobrazit\ konte&xt\ kurzoru
|
||||
menutrans &Virtual\ Edit Virtu<EFBFBD>ln<EFBFBD>\ p&ozice\ kurzoru
|
||||
menutrans Never Nikdy
|
||||
menutrans Block\ Selection V<EFBFBD>b<EFBFBD>r\ Bloku
|
||||
menutrans Insert\ mode Insert\ m<EFBFBD>d
|
||||
menutrans Block\ and\ Insert Blok\ a\ Insert
|
||||
menutrans Always V<EFBFBD>dycky
|
||||
menutrans Never Nikdy
|
||||
menutrans Block\ Selection V<EFBFBD>b<EFBFBD>r\ Bloku
|
||||
menutrans Insert\ mode Insert\ m<EFBFBD>d
|
||||
menutrans Block\ and\ Insert Blok\ a\ Insert
|
||||
menutrans Always V<EFBFBD>dycky
|
||||
menutrans Toggle\ Insert\ &Mode<Tab>:set\ im! P<EFBFBD>epnout\ Insert\ m<EFBFBD>&d<Tab>:set\ im!
|
||||
menutrans Toggle\ Vi\ C&ompatible<Tab>:set\ cp! P<EFBFBD>epnout\ kompatibiln<EFBFBD>\ re<EFBFBD>im\ s\ 'vi'<Tab>:set\ cp!
|
||||
menutrans Search\ &Path\.\.\. Nastavit\ &cestu\ k\ prohled<EFBFBD>v<EFBFBD>n<EFBFBD>\.\.\.
|
||||
@@ -65,9 +79,10 @@ menutrans Toggle\ &Toolbar P
|
||||
menutrans Toggle\ &Bottom\ Scrollbar P<EFBFBD>&epnout\ doln<EFBFBD>\ rolovac<EFBFBD>\ li<EFBFBD>tu
|
||||
menutrans Toggle\ &Left\ Scrollbar P<EFBFBD>epnout\ &levou\ rolovac<EFBFBD>\ li<EFBFBD>tu
|
||||
menutrans Toggle\ &Right\ Scrollbar P<EFBFBD>epnout\ p&ravou\ rolovac<EFBFBD>\ li<EFBFBD>tu
|
||||
" {{{2 Edit -2
|
||||
" {{{2 Edit -2
|
||||
menutrans F&ile\ Settings Nastaven<EFBFBD>\ so&uboru
|
||||
menutrans Toggle\ Line\ &Numbering<Tab>:set\ nu! P<EFBFBD>epnout\ <20><>slov<EFBFBD>n<EFBFBD>\ <20><>&dk<EFBFBD><Tab>:set\ nu!
|
||||
menutrans Toggle\ relati&ve\ Line\ Numbering<Tab>:set\ rnu! P<EFBFBD>epnout\ relativn<EFBFBD>\ <20><>slov<EFBFBD>n<EFBFBD>\ <20><>&dk<EFBFBD><Tab>:set\ rnu!
|
||||
menutrans Toggle\ &List\ Mode<Tab>:set\ list! P<EFBFBD>epnout\ &List\ m<EFBFBD>d<Tab>:set\ list!
|
||||
menutrans Toggle\ Line\ &Wrap<Tab>:set\ wrap! P<EFBFBD>epnout\ zala&mov<EFBFBD>n<EFBFBD>\ <20><>dk<EFBFBD><Tab>:set\ wrap!
|
||||
menutrans Toggle\ W&rap\ at\ word<Tab>:set\ lbr! P<EFBFBD>epnout\ zl&om\ ve\ slov<EFBFBD><Tab>:set\ lbr!
|
||||
@@ -78,10 +93,12 @@ menutrans &Shiftwidth Nastav&it\
|
||||
menutrans Soft\ &Tabstop Nastavit\ Soft\ &Tabstop
|
||||
menutrans Te&xt\ Width\.\.\. <09><><EFBFBD>ka\ te&xtu\.\.\.
|
||||
menutrans &File\ Format\.\.\. &Form<EFBFBD>t\ souboru\.\.\.
|
||||
" {{{2 Edit -3
|
||||
" {{{2 Edit -3
|
||||
menutrans C&olor\ Scheme Barevn<EFBFBD>\ s&ch<EFBFBD>ma
|
||||
menutrans &Keymap Kl<EFBFBD>vesov<EFBFBD>\ m&apa
|
||||
menutrans Select\ Fo&nt\.\.\. Vybrat\ p<EFBFBD>s&mo\.\.\.
|
||||
if has("win32") || has("win16") || has("gui_motif") || has("gui_gtk") || has("gui_kde") || has("gui_photon") || has("gui_mac")
|
||||
menutrans Select\ Fo&nt\.\.\. Vybrat\ p<EFBFBD>s&mo\.\.\.
|
||||
endif
|
||||
" }}}1
|
||||
|
||||
" {{{ Programming menu
|
||||
@@ -90,46 +107,52 @@ menutrans &Jump\ to\ this\ tag<Tab>g^] &Sko
|
||||
menutrans Jump\ &back<Tab>^T Sko<EFBFBD>it\ &zp<EFBFBD>t<Tab>^T
|
||||
menutrans Build\ &Tags\ File &Vytvo<EFBFBD>it\ soubor\ tag<EFBFBD>
|
||||
|
||||
menutrans &Spelling &Kontrola\ pravopisu
|
||||
menutrans &Spell\ Check\ On Kontrola\ pravopisu\ &zapnuta
|
||||
menutrans Spell\ Check\ &Off Kontrola\ pravopisu\ &vypnuta
|
||||
menutrans To\ Next\ error<Tab>]s &Dal<EFBFBD><EFBFBD>\ chyba<Tab>]s
|
||||
menutrans To\ Previous\ error<Tab>[s &P<EFBFBD>edchoz<EFBFBD>\ chyba<Tab>[s
|
||||
menutrans Suggest\ Corrections<Tab>z? &N<EFBFBD>vrh\ oprav<Tab>z?
|
||||
menutrans Repeat\ correction<Tab>:spellrepall Zopakovat\ &opravu<Tab>:spellrepall
|
||||
menutrans Set\ language\ to\ "en" Nastav\ jazyk\ na\ "en"
|
||||
menutrans Set\ language\ to\ "en_au" Nastav\ jazyk\ na\ "en_au"
|
||||
menutrans Set\ language\ to\ "en_ca" Nastav\ jazyk\ na\ "en_ca"
|
||||
menutrans Set\ language\ to\ "en_gb" Nastav\ jazyk\ na\ "en_gb"
|
||||
menutrans Set\ language\ to\ "en_nz" Nastav\ jazyk\ na\ "en_nz"
|
||||
menutrans Set\ language\ to\ "en_us" Nastav\ jazyk\ na\ "en_us"
|
||||
menutrans Set\ language\ to\ "cz" Nastav\ jazyk\ na\ "cz"
|
||||
menutrans Set\ language\ to\ "cs_cz" Nastav\ jazyk\ na\ "cs_cz"
|
||||
menutrans &Find\ More\ Languages Nal<EFBFBD>zt\ dal<EFBFBD><EFBFBD>\ &jazyky
|
||||
if has("spell")
|
||||
menutrans &Spelling &Kontrola\ pravopisu
|
||||
menutrans &Spell\ Check\ On &Zapnout\ kontrolu\ pravopisu
|
||||
menutrans Spell\ Check\ &Off &Vypnout \kontrolu\ pravopisu
|
||||
menutrans To\ &Next\ error<Tab>]s &Dal<EFBFBD><EFBFBD>\ chyba<Tab>]s
|
||||
menutrans To\ &Previous\ error<Tab>[s &P<EFBFBD>edchoz<EFBFBD>\ chyba<Tab>[s
|
||||
menutrans Suggest\ &Corrections<Tab>z= &Navrhnout\ opravy<Tab>z=
|
||||
menutrans &Repeat\ correction<Tab>:spellrepall Zopakovat\ &opravu<Tab>:spellrepall
|
||||
menutrans Set\ language\ to\ "en" Nastavit\ jazyk\ na\ "en"
|
||||
menutrans Set\ language\ to\ "en_au" Nastavit\ jazyk\ na\ "en_au"
|
||||
menutrans Set\ language\ to\ "en_ca" Nastavit\ jazyk\ na\ "en_ca"
|
||||
menutrans Set\ language\ to\ "en_gb" Nastavit\ jazyk\ na\ "en_gb"
|
||||
menutrans Set\ language\ to\ "en_nz" Nastavit\ jazyk\ na\ "en_nz"
|
||||
menutrans Set\ language\ to\ "en_us" Nastavit\ jazyk\ na\ "en_us"
|
||||
menutrans &Find\ More\ Languages Nal<EFBFBD>zt\ dal<EFBFBD><EFBFBD>\ &jazyky
|
||||
let g:menutrans_set_lang_to = "Nastavit jazyk na"
|
||||
endif
|
||||
|
||||
menutrans &Folding &Foldy
|
||||
menutrans &Enable/Disable\ folds<Tab>zi &Ano/Ne<Tab>zi
|
||||
menutrans &View\ Cursor\ Line<Tab>zv &Zobrazit\ <20><>dek\ kurzoru<Tab>zv
|
||||
menutrans Vie&w\ Cursor\ Line\ only<Tab>zMzx Zo&brazit\ pouze\ <20><>dek\ kurzoru\ <Tab>zMzx
|
||||
menutrans C&lose\ more\ folds<Tab>zm &Vyjmout\ jednu\ <20>rove<EFBFBD>\ fold<EFBFBD><Tab>zm
|
||||
menutrans &Close\ all\ folds<Tab>zM Zav<EFBFBD><EFBFBD>&t\ v<EFBFBD>echny\ foldy<Tab>zM
|
||||
menutrans O&pen\ more\ folds<Tab>zr P<EFBFBD>idat\ jedn&u\ <20>rove<EFBFBD>\ fold<EFBFBD><Tab>zr
|
||||
menutrans &Open\ all\ folds<Tab>zR &Otev<EFBFBD><EFBFBD>t\ v<EFBFBD>echny\ foldy<Tab>zR
|
||||
menutrans Fold\ Met&hod Metoda\ &skl<EFBFBD>d<EFBFBD>n<EFBFBD>
|
||||
"menutrans M&anual &Ru<52>n<EFBFBD>
|
||||
"menutrans I&ndent &Odsazen<65>
|
||||
"menutrans E&xpression &V<>raz
|
||||
"menutrans S&yntax &Syntax
|
||||
"menutrans &Diff &Diff
|
||||
"menutrans Ma&rker Ma&rker
|
||||
menutrans Create\ &Fold<Tab>zf Vytvo<EFBFBD>it\ &fold<Tab>zf
|
||||
menutrans &Delete\ Fold<Tab>zd Vymazat\ fol&d<Tab>zd
|
||||
menutrans Delete\ &All\ Folds<Tab>zD V&ymazat\ v<EFBFBD>echny\ foldy<Tab>zD
|
||||
menutrans Fold\ col&umn\ width Sloupec\ zob&razen<EFBFBD>\ fold<EFBFBD>
|
||||
if has("Folding")
|
||||
menutrans &Folding &Skl<EFBFBD>d<EFBFBD>n<EFBFBD>
|
||||
menutrans &Enable/Disable\ folds<Tab>zi &Ano/Ne<Tab>zi
|
||||
menutrans &View\ Cursor\ Line<Tab>zv Zobrazit\ <20><>dek\ &kurzoru<Tab>zv
|
||||
menutrans Vie&w\ Cursor\ Line\ only<Tab>zMzx Zobrazit\ &pouze\ <20><>dek\ kurzoru\ <Tab>zMzx
|
||||
menutrans C&lose\ more\ folds<Tab>zm Slo<EFBFBD>it\ &jednu\ <20>rove<EFBFBD>\ sklad<EFBFBD><Tab>zm
|
||||
menutrans &Close\ all\ folds<Tab>zM Slo<EFBFBD>it\ v<EFBFBD>echny\ sklady<Tab>zM
|
||||
menutrans O&pen\ more\ folds<Tab>zr P<EFBFBD>idat\ jednu\ <20>rove<EFBFBD>\ sklad<EFBFBD><Tab>zr
|
||||
menutrans &Open\ all\ folds<Tab>zR &Otev<EFBFBD><EFBFBD>t\ v<EFBFBD>echny\ sklady<Tab>zR
|
||||
menutrans Fold\ Met&hod &Metoda\ skl<EFBFBD>d<EFBFBD>n<EFBFBD>
|
||||
menutrans M&anual &Ru<EFBFBD>n<EFBFBD>
|
||||
menutrans I&ndent &Odsazen<EFBFBD>
|
||||
menutrans E&xpression &V<EFBFBD>raz
|
||||
menutrans S&yntax &Syntaxe
|
||||
menutrans &Diff &Rozd<EFBFBD>ly
|
||||
menutrans Ma&rker &Zna<EFBFBD>ky
|
||||
menutrans Create\ &Fold<Tab>zf Vytvo<EFBFBD>it\ &sklad<Tab>zf
|
||||
menutrans &Delete\ Fold<Tab>zd Vymazat\ skla&d<Tab>zd
|
||||
menutrans Delete\ &All\ Folds<Tab>zD Vymazat\ v<EFBFBD>echny\ sklady<Tab>zD
|
||||
menutrans Fold\ col&umn\ width Sloupec\ zob&razen<EFBFBD>\ sklad<EFBFBD>
|
||||
endif
|
||||
|
||||
if has("diff")
|
||||
menutrans &Update &Obnovit
|
||||
menutrans &Get\ Block &Sejmout\ Blok
|
||||
menutrans &Put\ Block &Vlo<EFBFBD>it\ Blok
|
||||
endif
|
||||
|
||||
menutrans &Update &Obnovit
|
||||
menutrans &Get\ Block &Sejmout\ Blok
|
||||
menutrans &Put\ Block &Vlo<EFBFBD>it\ Blok
|
||||
menutrans &Make<Tab>:make &Make<Tab>:make
|
||||
menutrans &List\ Errors<Tab>:cl V<EFBFBD>pis\ &chyb<Tab>:cl
|
||||
menutrans L&ist\ Messages<Tab>:cl! V<EFBFBD>p&is\ zpr<EFBFBD>v<Tab>:cl!
|
||||
@@ -142,7 +165,7 @@ menutrans SeT\ Compiler Nas&taven
|
||||
menutrans &Update<Tab>:cwin O&bnovit<Tab>:cwin
|
||||
menutrans &Open<Tab>:copen &Otev<EFBFBD><EFBFBD>t<Tab>:copen
|
||||
menutrans &Close<Tab>:cclose &Zav<EFBFBD><EFBFBD>t<Tab>:cclose
|
||||
menutrans &Set\ Compiler N&astavit\ kompil<EFBFBD>tor
|
||||
menutrans Se&T\ Compiler N&astavit\ kompil<EFBFBD>tor
|
||||
|
||||
menutrans &Convert\ to\ HEX<Tab>:%!xxd P<EFBFBD>ev<EFBFBD>st\ do\ <20>estn<EFBFBD>ctkov<EFBFBD>ho\ form<EFBFBD>t&u<Tab>:%!xxd
|
||||
menutrans Conve&rt\ back<Tab>:%!xxd\ -r P<EFBFBD>&ev<EFBFBD>st\ zp<EFBFBD>t<Tab>:%!xxd\ -r
|
||||
@@ -170,7 +193,6 @@ menutrans &Delete Z&ru
|
||||
menutrans &Alternate &Zm<EFBFBD>nit
|
||||
menutrans &Next &Dal<EFBFBD><EFBFBD>
|
||||
menutrans &Previous &P<EFBFBD>edchoz<EFBFBD>
|
||||
menutrans [No\ File] [<5B><>dn<EFBFBD>\ soubor]
|
||||
" }}}
|
||||
|
||||
" {{{ Menu Window
|
||||
@@ -221,6 +243,8 @@ menutrans &Paste &Vlo
|
||||
menutrans &Delete &Smazat
|
||||
menutrans Select\ Blockwise Vybrat\ blokov<EFBFBD>
|
||||
menutrans Select\ &Word Vybrat\ &slovo
|
||||
menutrans Select\ Pa&ragraph Vybrat\ &odstavec
|
||||
menutrans Select\ &Sentence Vybrat\ v<EFBFBD>&tu
|
||||
menutrans Select\ &Line Vybrat\ &<26><>dek
|
||||
menutrans Select\ &Block Vybrat\ &blok
|
||||
menutrans Select\ &All Vybrat\ &v<EFBFBD>e
|
||||
@@ -228,42 +252,57 @@ menutrans Select\ &All Vybrat\ &v
|
||||
|
||||
" {{{ The GUI toolbar
|
||||
if has("toolbar")
|
||||
if exists("*Do_toolbar_tmenu")
|
||||
delfun Do_toolbar_tmenu
|
||||
endif
|
||||
fun Do_toolbar_tmenu()
|
||||
tmenu ToolBar.Open Otev<EFBFBD><EFBFBD>t soubor
|
||||
tmenu ToolBar.Save Ulo<EFBFBD>it soubor
|
||||
tmenu ToolBar.SaveAll Ulo<EFBFBD>it v<EFBFBD>echny soubory
|
||||
tmenu ToolBar.Print Tisk
|
||||
tmenu ToolBar.Undo Zp<EFBFBD>t
|
||||
tmenu ToolBar.Redo Zru<EFBFBD>it vr<EFBFBD>cen<EFBFBD>
|
||||
tmenu ToolBar.Cut Vy<EFBFBD><EFBFBD>znout
|
||||
tmenu ToolBar.Copy Kop<EFBFBD>rovat
|
||||
tmenu ToolBar.Paste Vlo<EFBFBD>it
|
||||
tmenu ToolBar.Find Hledat...
|
||||
tmenu ToolBar.FindNext Hledat dal<EFBFBD><EFBFBD>
|
||||
tmenu ToolBar.FindPrev Hledat p<EFBFBD>edchoz<EFBFBD>
|
||||
tmenu ToolBar.Replace Nahradit...
|
||||
if 0 " disabled; These are in the Windows menu
|
||||
tmenu ToolBar.New Nov<EFBFBD> okno
|
||||
tmenu ToolBar.WinSplit Rozd<EFBFBD>lit okno
|
||||
tmenu ToolBar.WinMax Maximalizovat okno
|
||||
tmenu ToolBar.WinMin Minimalizovat okno
|
||||
tmenu ToolBar.WinClose Zav<EFBFBD><EFBFBD>t okno
|
||||
endif
|
||||
tmenu ToolBar.LoadSesn Na<EFBFBD><EFBFBD>st sezen<EFBFBD>
|
||||
tmenu ToolBar.SaveSesn Ulo<EFBFBD>it sezen<EFBFBD>
|
||||
tmenu ToolBar.RunScript Spustit skript
|
||||
tmenu ToolBar.Make Spustit make
|
||||
tmenu ToolBar.Shell Spustit shell
|
||||
tmenu ToolBar.RunCtags Spustit ctags
|
||||
tmenu ToolBar.TagJump Sko<EFBFBD>it na tag pod kurzorem
|
||||
tmenu ToolBar.Help N<EFBFBD>pov<EFBFBD>da
|
||||
tmenu ToolBar.FindHelp Hledat n<EFBFBD>pov<EFBFBD>du k...
|
||||
endfun
|
||||
if exists("*Do_toolbar_tmenu")
|
||||
delfun Do_toolbar_tmenu
|
||||
endif
|
||||
fun Do_toolbar_tmenu()
|
||||
tmenu ToolBar.Open Otev<EFBFBD><EFBFBD>t soubor
|
||||
tmenu ToolBar.Save Ulo<EFBFBD>it soubor
|
||||
tmenu ToolBar.SaveAll Ulo<EFBFBD>it v<EFBFBD>echny soubory
|
||||
if has("printer") || has("unix")
|
||||
tmenu ToolBar.Print Tisk
|
||||
endif
|
||||
tmenu ToolBar.Undo Zp<EFBFBD>t
|
||||
tmenu ToolBar.Redo Zru<EFBFBD>it vr<EFBFBD>cen<EFBFBD>
|
||||
tmenu ToolBar.Cut Vy<EFBFBD><EFBFBD>znout
|
||||
tmenu ToolBar.Copy Kop<EFBFBD>rovat
|
||||
tmenu ToolBar.Paste Vlo<EFBFBD>it
|
||||
tmenu ToolBar.Find Hledat...
|
||||
tmenu ToolBar.FindNext Hledat dal<EFBFBD><EFBFBD>
|
||||
tmenu ToolBar.FindPrev Hledat p<EFBFBD>edchoz<EFBFBD>
|
||||
tmenu ToolBar.Replace Nahradit...
|
||||
if 0 " disabled; These are in the Windows menu
|
||||
tmenu ToolBar.New Nov<EFBFBD> okno
|
||||
tmenu ToolBar.WinSplit Rozd<EFBFBD>lit okno
|
||||
tmenu ToolBar.WinMax Maximalizovat okno
|
||||
tmenu ToolBar.WinMin Minimalizovat okno
|
||||
tmenu ToolBar.WinClose Zav<EFBFBD><EFBFBD>t okno
|
||||
endif
|
||||
tmenu ToolBar.LoadSesn Na<EFBFBD><EFBFBD>st sezen<EFBFBD>
|
||||
tmenu ToolBar.SaveSesn Ulo<EFBFBD>it sezen<EFBFBD>
|
||||
tmenu ToolBar.RunScript Spustit skript
|
||||
tmenu ToolBar.Make Spustit make
|
||||
tmenu ToolBar.Shell Spustit shell
|
||||
tmenu ToolBar.RunCtags Spustit ctags
|
||||
tmenu ToolBar.TagJump Sko<EFBFBD>it na tag pod kurzorem
|
||||
tmenu ToolBar.Help N<EFBFBD>pov<EFBFBD>da
|
||||
tmenu ToolBar.FindHelp Hledat n<EFBFBD>pov<EFBFBD>du k...
|
||||
endfun
|
||||
endif
|
||||
" }}}
|
||||
|
||||
" {{{ DIALOG TEXTS
|
||||
let g:menutrans_no_file = "[<5B><>dn<64> soubor]"
|
||||
let g:menutrans_help_dialog = "Zadejte hledan<61> p<><70>kaz nebo slovo:\n\n\tP<74>idejte i_ pro p<><70>kazy vkl<6B>dac<61>ho re<72>imu (nap<61>. i_CTRL-X)\n\tP<74>idejte c_ pro p<><70>kazy p<><70>kazov<6F> <20><>dky (nap<61>. c_<Del>)\n\tP<74>idejte ' pro jm<6A>no volby (nap<61>. 'shiftwidth')"
|
||||
let g:menutrans_path_dialog = "Zadejte cesty pro vyhled<65>v<EFBFBD>n<EFBFBD> soubor<6F>. Jednotliv<69> cesty odd<64>lte <20><>rkou"
|
||||
let g:menutrans_tags_dialog = "Zadejte jm<6A>na soubor<6F> s tagy. Jm<4A>na odd<64>lte <20><>rkami."
|
||||
let g:menutrans_textwidth_dialog = "Zadejte d<>lku <20><>dku (0 pro zak<61>z<EFBFBD>n<EFBFBD> form<72>tov<6F>n<EFBFBD>):"
|
||||
let g:menutrans_fileformat_dialog = "Vyberte typ konce <20><>dk<64>"
|
||||
" }}}"
|
||||
|
||||
let &cpo = s:keepcpo
|
||||
unlet s:keepcpo
|
||||
|
||||
|
||||
|
||||
" vim:set foldmethod=marker expandtab tabstop=3 shiftwidth=3:
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
" Menu Translations: Czech
|
||||
|
||||
source <sfile>:p:h/menu_czech_czech_republic.1252.vim
|
||||
source <sfile>:p:h/menu_czech_czech_republic.ascii.vim
|
||||
|
||||
308
runtime/lang/menu_cs_cz.utf-8.vim
Normal file
308
runtime/lang/menu_cs_cz.utf-8.vim
Normal file
@@ -0,0 +1,308 @@
|
||||
" Menu Translations: Czech (UTF-8)
|
||||
" Maintainer: Jiri Sedlak <jiri_sedlak@users.sourceforge.net>
|
||||
" Previous maintainer: Jiri Brezina
|
||||
" Based on: menu.vim (2012-10-21)
|
||||
|
||||
" Quit when menu translations have already been done.
|
||||
if exists("did_menu_trans")
|
||||
finish
|
||||
endif
|
||||
|
||||
let did_menu_trans = 1
|
||||
let s:keepcpo= &cpo
|
||||
set cpo&vim
|
||||
|
||||
scriptencoding utf-8
|
||||
|
||||
" {{{ File menu
|
||||
menutrans &File &Soubor
|
||||
menutrans &Open\.\.\.<Tab>:e &Otevřít\.\.\.<Tab>:e
|
||||
menutrans Sp&lit-Open\.\.\.<Tab>:sp Otevřít\ v\ no&vém\ okně\.\.\.<Tab>:sp
|
||||
menutrans Open\ Tab\.\.\.<Tab>:tabnew Otevřít\ tab\.\.\.<Tab>:tabnew
|
||||
menutrans &New<Tab>:enew &Nový<Tab>:enew
|
||||
menutrans &Close<Tab>:close &Zavřít<Tab>:close
|
||||
menutrans &Save<Tab>:w &Uložit<Tab>:w
|
||||
menutrans Save\ &As\.\.\.<Tab>:sav Uložit\ &jako\.\.\.<Tab>:sav
|
||||
if has("printer") || has("unix")
|
||||
menutrans &Print &Tisk
|
||||
endif
|
||||
menutrans Sa&ve-Exit<Tab>:wqa U&ložit\ a\ ukončit<Tab>:wqa
|
||||
menutrans E&xit<Tab>:qa &Ukončit<Tab>:qa
|
||||
|
||||
if has("diff")
|
||||
menutrans Split\ &Diff\ with\.\.\. Rozdělit\ okno\ -\ &Diff\.\.\.
|
||||
menutrans Split\ Patched\ &By\.\.\. Rozdělit\ okno\ -\ &Patch\.\.\.
|
||||
endif
|
||||
" }}}
|
||||
|
||||
" {{{ Edit menu
|
||||
menutrans &Edit Úpr&avy
|
||||
menutrans &Undo<Tab>u &Zpět<Tab>u
|
||||
menutrans &Redo<Tab>^R Z&rušit\ vrácení<Tab>^R
|
||||
menutrans Rep&eat<Tab>\. &Opakovat<Tab>\.
|
||||
menutrans Cu&t<Tab>"+x &Vyříznout<Tab>"+x
|
||||
menutrans &Copy<Tab>"+y &Kopírovat<Tab>"+y
|
||||
menutrans &Paste<Tab>"+gP V&ložit<Tab>"+gP
|
||||
menutrans Put\ &Before<Tab>[p Vložit\ &před<Tab>[p
|
||||
menutrans Put\ &After<Tab>]p Vloži&t\ za<Tab>]p
|
||||
if has("win32") || has("win16")
|
||||
menutrans &Delete<Tab>x &Smazat<Tab>x
|
||||
endif
|
||||
menutrans &Select\ All<Tab>ggVG Vy&brat\ vše<Tab>ggVG
|
||||
if has("win32") || has("win16") || has("gui_gtk") || has("gui_kde") || has("gui_motif")
|
||||
menutrans &Find\.\.\. &Hledat\.\.\.
|
||||
menutrans Find\ and\ Rep&lace\.\.\. &Nahradit\.\.\.
|
||||
else
|
||||
menutrans Find<Tab>/ &Hledat<Tab>/
|
||||
menutrans Find\ and\ Rep&lace<Tab>:%s &Nahradit<Tab>:%s
|
||||
menutrans Find\ and\ Rep&lace<Tab>:s &Nahradit<Tab>:s
|
||||
endif
|
||||
menutrans Settings\ &Window Nastav&ení\ okna
|
||||
" {{{2 Edit -1
|
||||
menutrans Startup\ &Settings Počáteční\ &nastavení
|
||||
menutrans &Global\ Settings &Globální\ nastavení
|
||||
menutrans Toggle\ Pattern\ &Highlight<Tab>:set\ hls! &Přepnout\ zvýraznění\ vzoru<Tab>:set\ hls!
|
||||
menutrans Toggle\ &Ignore-case<Tab>:set\ ic! Přepnout\ ignorování\ &VERZÁLEK<Tab>:set\ ic!
|
||||
menutrans Toggle\ &Showmatch<Tab>:set\ sm! Přepnout\ &Showmatch\ \{\(\[\])\}<Tab>:set\ sm!
|
||||
menutrans &Context\ lines Zobrazit\ konte&xt\ kurzoru
|
||||
menutrans &Virtual\ Edit Virtuální\ p&ozice\ kurzoru
|
||||
menutrans Never Nikdy
|
||||
menutrans Block\ Selection Výběr\ Bloku
|
||||
menutrans Insert\ mode Insert\ mód
|
||||
menutrans Block\ and\ Insert Blok\ a\ Insert
|
||||
menutrans Always Vždycky
|
||||
menutrans Toggle\ Insert\ &Mode<Tab>:set\ im! Přepnout\ Insert\ mó&d<Tab>:set\ im!
|
||||
menutrans Toggle\ Vi\ C&ompatible<Tab>:set\ cp! Přepnout\ kompatibilní\ režim\ s\ 'vi'<Tab>:set\ cp!
|
||||
menutrans Search\ &Path\.\.\. Nastavit\ &cestu\ k\ prohledávání\.\.\.
|
||||
menutrans Ta&g\ Files\.\.\. Ta&g\ soubory\.\.\.
|
||||
menutrans Toggle\ &Toolbar Přepnout\ &Toolbar
|
||||
menutrans Toggle\ &Bottom\ Scrollbar Př&epnout\ dolní\ rolovací\ lištu
|
||||
menutrans Toggle\ &Left\ Scrollbar Přepnout\ &levou\ rolovací\ lištu
|
||||
menutrans Toggle\ &Right\ Scrollbar Přepnout\ p&ravou\ rolovací\ lištu
|
||||
" {{{2 Edit -2
|
||||
menutrans F&ile\ Settings Nastavení\ so&uboru
|
||||
menutrans Toggle\ Line\ &Numbering<Tab>:set\ nu! Přepnout\ číslování\ řá&dků<Tab>:set\ nu!
|
||||
menutrans Toggle\ relati&ve\ Line\ Numbering<Tab>:set\ rnu! Přepnout\ relativní\ číslování\ řá&dků<Tab>:set\ rnu!
|
||||
menutrans Toggle\ &List\ Mode<Tab>:set\ list! Přepnout\ &List\ mód<Tab>:set\ list!
|
||||
menutrans Toggle\ Line\ &Wrap<Tab>:set\ wrap! Přepnout\ zala&mování\ řádků<Tab>:set\ wrap!
|
||||
menutrans Toggle\ W&rap\ at\ word<Tab>:set\ lbr! Přepnout\ zl&om\ ve\ slově<Tab>:set\ lbr!
|
||||
menutrans Toggle\ &expand-tab<Tab>:set\ et! Přepnout\ &expand-tab<Tab>:set\ et!
|
||||
menutrans Toggle\ &auto-indent<Tab>:set\ ai! Přepnout\ &auto-indent<Tab>:set\ ai!
|
||||
menutrans Toggle\ &C-indenting<Tab>:set\ cin! Přepnout\ &C-indenting<Tab>:set\ cin!
|
||||
menutrans &Shiftwidth Nastav&it\ šířku\ od&sazení
|
||||
menutrans Soft\ &Tabstop Nastavit\ Soft\ &Tabstop
|
||||
menutrans Te&xt\ Width\.\.\. Šířka\ te&xtu\.\.\.
|
||||
menutrans &File\ Format\.\.\. &Formát\ souboru\.\.\.
|
||||
" {{{2 Edit -3
|
||||
menutrans C&olor\ Scheme Barevné\ s&chéma
|
||||
menutrans &Keymap Klávesová\ m&apa
|
||||
if has("win32") || has("win16") || has("gui_motif") || has("gui_gtk") || has("gui_kde") || has("gui_photon") || has("gui_mac")
|
||||
menutrans Select\ Fo&nt\.\.\. Vybrat\ pís&mo\.\.\.
|
||||
endif
|
||||
" }}}1
|
||||
|
||||
" {{{ Programming menu
|
||||
menutrans &Tools Nást&roje
|
||||
menutrans &Jump\ to\ this\ tag<Tab>g^] &Skočit\ na\ tag<Tab>g^]
|
||||
menutrans Jump\ &back<Tab>^T Skočit\ &zpět<Tab>^T
|
||||
menutrans Build\ &Tags\ File &Vytvořit\ soubor\ tagů
|
||||
|
||||
if has("spell")
|
||||
menutrans &Spelling &Kontrola\ pravopisu
|
||||
menutrans &Spell\ Check\ On &Zapnout\ kontrolu\ pravopisu
|
||||
menutrans Spell\ Check\ &Off &Vypnout \kontrolu\ pravopisu
|
||||
menutrans To\ &Next\ error<Tab>]s &Další\ chyba<Tab>]s
|
||||
menutrans To\ &Previous\ error<Tab>[s &Předchozí\ chyba<Tab>[s
|
||||
menutrans Suggest\ &Corrections<Tab>z= &Navrhnout\ opravy<Tab>z=
|
||||
menutrans &Repeat\ correction<Tab>:spellrepall Zopakovat\ &opravu<Tab>:spellrepall
|
||||
menutrans Set\ language\ to\ "en" Nastavit\ jazyk\ na\ "en"
|
||||
menutrans Set\ language\ to\ "en_au" Nastavit\ jazyk\ na\ "en_au"
|
||||
menutrans Set\ language\ to\ "en_ca" Nastavit\ jazyk\ na\ "en_ca"
|
||||
menutrans Set\ language\ to\ "en_gb" Nastavit\ jazyk\ na\ "en_gb"
|
||||
menutrans Set\ language\ to\ "en_nz" Nastavit\ jazyk\ na\ "en_nz"
|
||||
menutrans Set\ language\ to\ "en_us" Nastavit\ jazyk\ na\ "en_us"
|
||||
menutrans &Find\ More\ Languages Nalézt\ další\ &jazyky
|
||||
let g:menutrans_set_lang_to = "Nastavit jazyk na"
|
||||
endif
|
||||
|
||||
if has("Folding")
|
||||
menutrans &Folding &Skládání
|
||||
menutrans &Enable/Disable\ folds<Tab>zi &Ano/Ne<Tab>zi
|
||||
menutrans &View\ Cursor\ Line<Tab>zv Zobrazit\ řádek\ &kurzoru<Tab>zv
|
||||
menutrans Vie&w\ Cursor\ Line\ only<Tab>zMzx Zobrazit\ &pouze\ řádek\ kurzoru\ <Tab>zMzx
|
||||
menutrans C&lose\ more\ folds<Tab>zm Složit\ &jednu\ úroveň\ skladů<Tab>zm
|
||||
menutrans &Close\ all\ folds<Tab>zM Složit\ všechny\ sklady<Tab>zM
|
||||
menutrans O&pen\ more\ folds<Tab>zr Přidat\ jednu\ úroveň\ skladů<Tab>zr
|
||||
menutrans &Open\ all\ folds<Tab>zR &Otevřít\ všechny\ sklady<Tab>zR
|
||||
menutrans Fold\ Met&hod &Metoda\ skládání
|
||||
menutrans M&anual &Ručně
|
||||
menutrans I&ndent &Odsazení
|
||||
menutrans E&xpression &Výraz
|
||||
menutrans S&yntax &Syntaxe
|
||||
menutrans &Diff &Rozdíly
|
||||
menutrans Ma&rker &Značky
|
||||
menutrans Create\ &Fold<Tab>zf Vytvořit\ &sklad<Tab>zf
|
||||
menutrans &Delete\ Fold<Tab>zd Vymazat\ skla&d<Tab>zd
|
||||
menutrans Delete\ &All\ Folds<Tab>zD Vymazat\ všechny\ sklady<Tab>zD
|
||||
menutrans Fold\ col&umn\ width Sloupec\ zob&razení\ skladů
|
||||
endif
|
||||
|
||||
if has("diff")
|
||||
menutrans &Update &Obnovit
|
||||
menutrans &Get\ Block &Sejmout\ Blok
|
||||
menutrans &Put\ Block &Vložit\ Blok
|
||||
endif
|
||||
|
||||
menutrans &Make<Tab>:make &Make<Tab>:make
|
||||
menutrans &List\ Errors<Tab>:cl Výpis\ &chyb<Tab>:cl
|
||||
menutrans L&ist\ Messages<Tab>:cl! Výp&is\ zpráv<Tab>:cl!
|
||||
menutrans &Next\ Error<Tab>:cn Další\ ch&yba<Tab>:cn
|
||||
menutrans &Previous\ Error<Tab>:cp &Předchozí\ chyba<Tab>:cp
|
||||
menutrans &Older\ List<Tab>:cold Sta&rší\ seznam<Tab>:cold
|
||||
menutrans N&ewer\ List<Tab>:cnew N&ovější\ seznam<Tab>:cnew
|
||||
menutrans Error\ &Window Chybové\ o&kno
|
||||
menutrans SeT\ Compiler Nas&tavení\ kompilátoru
|
||||
menutrans &Update<Tab>:cwin O&bnovit<Tab>:cwin
|
||||
menutrans &Open<Tab>:copen &Otevřít<Tab>:copen
|
||||
menutrans &Close<Tab>:cclose &Zavřít<Tab>:cclose
|
||||
menutrans Se&T\ Compiler N&astavit\ kompilátor
|
||||
|
||||
menutrans &Convert\ to\ HEX<Tab>:%!xxd Převést\ do\ šestnáctkového\ formát&u<Tab>:%!xxd
|
||||
menutrans Conve&rt\ back<Tab>:%!xxd\ -r Př&evést\ zpět<Tab>:%!xxd\ -r
|
||||
" }}}
|
||||
|
||||
" {{{ Syntax menu
|
||||
menutrans &Syntax Synta&xe
|
||||
menutrans Set\ '&syntax'\ only Nastavit\ pouze\ 'synta&x'
|
||||
menutrans Set\ '&filetype'\ too Nastavit\ také\ '&filetype'
|
||||
menutrans &Off &Vypnout
|
||||
menutrans &Manual &Ručně
|
||||
menutrans A&utomatic A&utomaticky
|
||||
menutrans on/off\ for\ &This\ file &Přepnout\ (pro\ tento\ soubor)
|
||||
menutrans o&ff\ (this\ file) vyp&nout\ (pro\ tento\ soubor)
|
||||
menutrans Co&lor\ test Test\ &barev
|
||||
menutrans &Highlight\ test &Test\ zvýrazňování
|
||||
menutrans &Convert\ to\ HTML Převést\ &do\ HTML
|
||||
menutrans &Show\ filetypes\ in\ menu &Zobrazit\ výběr\ možností
|
||||
" }}}
|
||||
|
||||
" {{{ Menu Buffers
|
||||
menutrans &Buffers &Buffery
|
||||
menutrans &Refresh\ menu &Obnovit\ menu
|
||||
menutrans &Delete Z&rušit
|
||||
menutrans &Alternate &Změnit
|
||||
menutrans &Next &Další
|
||||
menutrans &Previous &Předchozí
|
||||
" }}}
|
||||
|
||||
" {{{ Menu Window
|
||||
menutrans &Window &Okna
|
||||
menutrans &New<Tab>^Wn &Nové<Tab>^Wn
|
||||
menutrans S&plit<Tab>^Ws &Rozdělit<Tab>^Ws
|
||||
menutrans Sp&lit\ To\ #<Tab>^W^^ Ro&zdělit\ na\ #<Tab>^W^^
|
||||
menutrans Split\ &Vertically<Tab>^Wv Rozdělit\ &vertikálně<Tab>^Wv
|
||||
menutrans Split\ File\ E&xplorer Rozdělit\ -\ File\ E&xplorer
|
||||
menutrans Move\ &To &Přesun
|
||||
menutrans &Top<Tab>^WK &Nahoru<Tab>^WK
|
||||
menutrans &Bottom<Tab>^WJ &Dolu<Tab>^WJ
|
||||
menutrans &Left\ side<Tab>^WH &Vlevo<Tab>^WH
|
||||
menutrans &Right\ side<Tab>^WL Vp&ravo<Tab>^WL
|
||||
|
||||
menutrans &Close<Tab>^Wc Zavří&t<Tab>^Wc
|
||||
menutrans Close\ &Other(s)<Tab>^Wo Zavřít\ &ostatní<Tab>^Wo
|
||||
menutrans Ne&xt<Tab>^Ww &Další<Tab>^Ww
|
||||
menutrans P&revious<Tab>^WW &Předchozí<Tab>^WW
|
||||
menutrans &Equal\ Size<Tab>^W= &Stejná\ výška<Tab>^W=
|
||||
menutrans &Max\ Height<Tab>^W_ Maximální\ výš&ka<Tab>^W_
|
||||
menutrans M&in\ Height<Tab>^W1_ M&inimální\ výška<Tab>^W1_
|
||||
menutrans Max\ &Width<Tab>^W\| &Maximální\ šířka<Tab>^W\|
|
||||
menutrans Min\ Widt&h<Tab>^W1\| Minimální\ šířk&a<Tab>^W1\|
|
||||
menutrans Rotate\ &Up<Tab>^WR Rotovat\ na&horu<Tab>^WR
|
||||
menutrans Rotate\ &Down<Tab>^Wr Rotovat\ &dolů<Tab>^Wr
|
||||
|
||||
" {{{ Help menu
|
||||
menutrans &Help &Nápověda
|
||||
menutrans &Overview<Tab><F1> &Přehled<Tab><F1>
|
||||
menutrans &User\ Manual &Uživatelský\ Manuál
|
||||
menutrans &How-to\ links Ho&wto
|
||||
menutrans &GUI &Grafické\ rozhraní
|
||||
menutrans &Credits &Autoři
|
||||
menutrans Co&pying &Licenční\ politika
|
||||
menutrans &Sponsor/Register Sponzorování/&Registrace
|
||||
menutrans &Find\.\.\. &Hledat\.\.\.
|
||||
menutrans O&rphans O&siřelé\ děti
|
||||
menutrans &Version &Verze
|
||||
menutrans &About &O\ aplikaci
|
||||
" }}}
|
||||
|
||||
" {{{ The popup menu
|
||||
menutrans &Undo &Zpět
|
||||
menutrans Cu&t &Vyříznout
|
||||
menutrans &Copy &Kopírovat
|
||||
menutrans &Paste &Vložit
|
||||
menutrans &Delete &Smazat
|
||||
menutrans Select\ Blockwise Vybrat\ blokově
|
||||
menutrans Select\ &Word Vybrat\ &slovo
|
||||
menutrans Select\ Pa&ragraph Vybrat\ &odstavec
|
||||
menutrans Select\ &Sentence Vybrat\ vě&tu
|
||||
menutrans Select\ &Line Vybrat\ &řádek
|
||||
menutrans Select\ &Block Vybrat\ &blok
|
||||
menutrans Select\ &All Vybrat\ &vše
|
||||
" }}}
|
||||
|
||||
" {{{ The GUI toolbar
|
||||
if has("toolbar")
|
||||
if exists("*Do_toolbar_tmenu")
|
||||
delfun Do_toolbar_tmenu
|
||||
endif
|
||||
fun Do_toolbar_tmenu()
|
||||
tmenu ToolBar.Open Otevřít soubor
|
||||
tmenu ToolBar.Save Uložit soubor
|
||||
tmenu ToolBar.SaveAll Uložit všechny soubory
|
||||
if has("printer") || has("unix")
|
||||
tmenu ToolBar.Print Tisk
|
||||
endif
|
||||
tmenu ToolBar.Undo Zpět
|
||||
tmenu ToolBar.Redo Zrušit vrácení
|
||||
tmenu ToolBar.Cut Vyříznout
|
||||
tmenu ToolBar.Copy Kopírovat
|
||||
tmenu ToolBar.Paste Vložit
|
||||
tmenu ToolBar.Find Hledat...
|
||||
tmenu ToolBar.FindNext Hledat další
|
||||
tmenu ToolBar.FindPrev Hledat předchozí
|
||||
tmenu ToolBar.Replace Nahradit...
|
||||
if 0 " disabled; These are in the Windows menu
|
||||
tmenu ToolBar.New Nové okno
|
||||
tmenu ToolBar.WinSplit Rozdělit okno
|
||||
tmenu ToolBar.WinMax Maximalizovat okno
|
||||
tmenu ToolBar.WinMin Minimalizovat okno
|
||||
tmenu ToolBar.WinClose Zavřít okno
|
||||
endif
|
||||
tmenu ToolBar.LoadSesn Načíst sezení
|
||||
tmenu ToolBar.SaveSesn Uložit sezení
|
||||
tmenu ToolBar.RunScript Spustit skript
|
||||
tmenu ToolBar.Make Spustit make
|
||||
tmenu ToolBar.Shell Spustit shell
|
||||
tmenu ToolBar.RunCtags Spustit ctags
|
||||
tmenu ToolBar.TagJump Skočit na tag pod kurzorem
|
||||
tmenu ToolBar.Help Nápověda
|
||||
tmenu ToolBar.FindHelp Hledat nápovědu k...
|
||||
endfun
|
||||
endif
|
||||
" }}}
|
||||
|
||||
" {{{ DIALOG TEXTS
|
||||
let g:menutrans_no_file = "[Žádný soubor]"
|
||||
let g:menutrans_help_dialog = "Zadejte hledaný příkaz nebo slovo:\n\n\tPřidejte i_ pro příkazy vkládacího režimu (např. i_CTRL-X)\n\tPřidejte c_ pro příkazy příkazové řádky (např. c_<Del>)\n\tPřidejte ' pro jméno volby (např. 'shiftwidth')"
|
||||
let g:menutrans_path_dialog = "Zadejte cesty pro vyhledávání souborů. Jednotlivé cesty oddělte čárkou"
|
||||
let g:menutrans_tags_dialog = "Zadejte jména souborů s tagy. Jména oddělte čárkami."
|
||||
let g:menutrans_textwidth_dialog = "Zadejte délku řádku (0 pro zakázání formátování):"
|
||||
let g:menutrans_fileformat_dialog = "Vyberte typ konce řádků"
|
||||
" }}}"
|
||||
|
||||
let &cpo = s:keepcpo
|
||||
unlet s:keepcpo
|
||||
|
||||
|
||||
|
||||
" vim:set foldmethod=marker expandtab tabstop=3 shiftwidth=3:
|
||||
@@ -1,13 +1,13 @@
|
||||
" Menu Translations: Czech for MS-Windows
|
||||
" Maintainer: Jiri Brezina <brzj@seznam.cz>
|
||||
" vim:set foldmethod=marker:
|
||||
" $Revision: 1.3 $
|
||||
" $Date: 2005/12/19 22:13:30 $
|
||||
" Menu Translations: Czech (CP1250)
|
||||
" Maintainer: Jiri Sedlak <jiri_sedlak@users.sourceforge.net>
|
||||
" Previous maintainer: Jiri Brezina
|
||||
" Based on: menu.vim (2012-10-21)
|
||||
|
||||
" Quit when menu translations have already been done.
|
||||
if exists("did_menu_trans")
|
||||
finish
|
||||
finish
|
||||
endif
|
||||
|
||||
let did_menu_trans = 1
|
||||
let s:keepcpo= &cpo
|
||||
set cpo&vim
|
||||
@@ -18,15 +18,21 @@ scriptencoding cp1250
|
||||
menutrans &File &Soubor
|
||||
menutrans &Open\.\.\.<Tab>:e &Otev<EFBFBD><EFBFBD>t\.\.\.<Tab>:e
|
||||
menutrans Sp&lit-Open\.\.\.<Tab>:sp Otev<EFBFBD><EFBFBD>t\ v\ no&v<EFBFBD>m\ okn<EFBFBD>\.\.\.<Tab>:sp
|
||||
menutrans Open\ Tab\.\.\.<Tab>:tabnew Otev<EFBFBD><EFBFBD>t\ tab\.\.\.<Tab>:tabnew
|
||||
menutrans &New<Tab>:enew &Nov<EFBFBD><Tab>:enew
|
||||
menutrans &Close<Tab>:close &Zav<EFBFBD><EFBFBD>t<Tab>:close
|
||||
menutrans &Save<Tab>:w &Ulo<EFBFBD>it<Tab>:w
|
||||
menutrans Save\ &As\.\.\.<Tab>:sav Ulo<EFBFBD>it\ &jako\.\.\.<Tab>:sav
|
||||
menutrans Split\ &Diff\ with\.\.\. Rozd<EFBFBD>lit\ okno\ -\ &Diff\.\.\.
|
||||
menutrans Split\ Patched\ &By\.\.\. Rozd<EFBFBD>lit\ okno\ -\ &Patch\.\.\.
|
||||
menutrans &Print &Tisk
|
||||
menutrans Sa&ve-Exit<Tab>:wqa U&lo<EFBFBD>it\ -\ Konec<Tab>:wqa
|
||||
menutrans E&xit<Tab>:qa &Konec<Tab>:qa
|
||||
if has("printer") || has("unix")
|
||||
menutrans &Print &Tisk
|
||||
endif
|
||||
menutrans Sa&ve-Exit<Tab>:wqa U&lo<EFBFBD>it\ a\ ukon<EFBFBD>it<Tab>:wqa
|
||||
menutrans E&xit<Tab>:qa &Ukon<EFBFBD>it<Tab>:qa
|
||||
|
||||
if has("diff")
|
||||
menutrans Split\ &Diff\ with\.\.\. Rozd<EFBFBD>lit\ okno\ -\ &Diff\.\.\.
|
||||
menutrans Split\ Patched\ &By\.\.\. Rozd<EFBFBD>lit\ okno\ -\ &Patch\.\.\.
|
||||
endif
|
||||
" }}}
|
||||
|
||||
" {{{ Edit menu
|
||||
@@ -39,24 +45,32 @@ menutrans &Copy<Tab>"+y &Kop
|
||||
menutrans &Paste<Tab>"+gP V&lo<6C>it<Tab>"+gP
|
||||
menutrans Put\ &Before<Tab>[p Vlo<EFBFBD>it\ &p<EFBFBD>ed<Tab>[p
|
||||
menutrans Put\ &After<Tab>]p Vlo<EFBFBD>i&t\ za<Tab>]p
|
||||
menutrans &Delete<Tab>x &Smazat<Tab>x
|
||||
if has("win32") || has("win16")
|
||||
menutrans &Delete<Tab>x &Smazat<Tab>x
|
||||
endif
|
||||
menutrans &Select\ All<Tab>ggVG Vy&brat\ v<EFBFBD>e<Tab>ggVG
|
||||
menutrans &Find\.\.\. &Hledat\.\.\.
|
||||
menutrans Find\ and\ Rep&lace\.\.\. &Nahradit\.\.\.
|
||||
menutrans Options\.\.\. Volb&y\.\.\.
|
||||
if has("win32") || has("win16") || has("gui_gtk") || has("gui_kde") || has("gui_motif")
|
||||
menutrans &Find\.\.\. &Hledat\.\.\.
|
||||
menutrans Find\ and\ Rep&lace\.\.\. &Nahradit\.\.\.
|
||||
else
|
||||
menutrans Find<Tab>/ &Hledat<Tab>/
|
||||
menutrans Find\ and\ Rep&lace<Tab>:%s &Nahradit<Tab>:%s
|
||||
menutrans Find\ and\ Rep&lace<Tab>:s &Nahradit<Tab>:s
|
||||
endif
|
||||
menutrans Settings\ &Window Nastav&en<EFBFBD>\ okna
|
||||
" {{{2 Edit -1
|
||||
" {{{2 Edit -1
|
||||
menutrans Startup\ &Settings Po<EFBFBD><EFBFBD>te<EFBFBD>n<EFBFBD>\ &nastaven<EFBFBD>
|
||||
menutrans &Global\ Settings &Glob<EFBFBD>ln<EFBFBD>\ nastaven<EFBFBD>
|
||||
menutrans Toggle\ Pattern\ &Highlight<Tab>:set\ hls! &P<EFBFBD>epnout\ zv<EFBFBD>razn<EFBFBD>n<EFBFBD>\ vzoru<Tab>:set\ hls!
|
||||
menutrans Toggle\ &Ignore-case<Tab>:set\ ic! P<EFBFBD>epnout\ ignorov<EFBFBD>n<EFBFBD>\ &VERZ<EFBFBD>LEK<Tab>:set\ ic!
|
||||
menutrans Toggle\ &Showmatch<Tab>:set\ sm! P<EFBFBD>epnout\ &Showmatch\ \{\(\[\])\}<Tab>:set\ sm!
|
||||
menutrans &Context\ lines Zobrazit\ konte&xt\ kurzoru
|
||||
menutrans &Virtual\ Edit Virtu<EFBFBD>ln<EFBFBD>\ p&ozice\ kurzoru
|
||||
menutrans Never Nikdy
|
||||
menutrans Block\ Selection V<EFBFBD>b<EFBFBD>r\ Bloku
|
||||
menutrans Insert\ mode Insert\ m<EFBFBD>d
|
||||
menutrans Block\ and\ Insert Blok\ a\ Insert
|
||||
menutrans Always V<EFBFBD>dycky
|
||||
menutrans Never Nikdy
|
||||
menutrans Block\ Selection V<EFBFBD>b<EFBFBD>r\ Bloku
|
||||
menutrans Insert\ mode Insert\ m<EFBFBD>d
|
||||
menutrans Block\ and\ Insert Blok\ a\ Insert
|
||||
menutrans Always V<EFBFBD>dycky
|
||||
menutrans Toggle\ Insert\ &Mode<Tab>:set\ im! P<EFBFBD>epnout\ Insert\ m<EFBFBD>&d<Tab>:set\ im!
|
||||
menutrans Toggle\ Vi\ C&ompatible<Tab>:set\ cp! P<EFBFBD>epnout\ kompatibiln<EFBFBD>\ re<EFBFBD>im\ s\ 'vi'<Tab>:set\ cp!
|
||||
menutrans Search\ &Path\.\.\. Nastavit\ &cestu\ k\ prohled<EFBFBD>v<EFBFBD>n<EFBFBD>\.\.\.
|
||||
@@ -65,9 +79,10 @@ menutrans Toggle\ &Toolbar P
|
||||
menutrans Toggle\ &Bottom\ Scrollbar P<EFBFBD>&epnout\ doln<EFBFBD>\ rolovac<EFBFBD>\ li<EFBFBD>tu
|
||||
menutrans Toggle\ &Left\ Scrollbar P<EFBFBD>epnout\ &levou\ rolovac<EFBFBD>\ li<EFBFBD>tu
|
||||
menutrans Toggle\ &Right\ Scrollbar P<EFBFBD>epnout\ p&ravou\ rolovac<EFBFBD>\ li<EFBFBD>tu
|
||||
" {{{2 Edit -2
|
||||
" {{{2 Edit -2
|
||||
menutrans F&ile\ Settings Nastaven<EFBFBD>\ so&uboru
|
||||
menutrans Toggle\ Line\ &Numbering<Tab>:set\ nu! P<EFBFBD>epnout\ <20><>slov<EFBFBD>n<EFBFBD>\ <20><>&dk<EFBFBD><Tab>:set\ nu!
|
||||
menutrans Toggle\ relati&ve\ Line\ Numbering<Tab>:set\ rnu! P<EFBFBD>epnout\ relativn<EFBFBD>\ <20><>slov<EFBFBD>n<EFBFBD>\ <20><>&dk<EFBFBD><Tab>:set\ rnu!
|
||||
menutrans Toggle\ &List\ Mode<Tab>:set\ list! P<EFBFBD>epnout\ &List\ m<EFBFBD>d<Tab>:set\ list!
|
||||
menutrans Toggle\ Line\ &Wrap<Tab>:set\ wrap! P<EFBFBD>epnout\ zala&mov<EFBFBD>n<EFBFBD>\ <20><>dk<EFBFBD><Tab>:set\ wrap!
|
||||
menutrans Toggle\ W&rap\ at\ word<Tab>:set\ lbr! P<EFBFBD>epnout\ zl&om\ ve\ slov<EFBFBD><Tab>:set\ lbr!
|
||||
@@ -78,10 +93,12 @@ menutrans &Shiftwidth Nastav&it\
|
||||
menutrans Soft\ &Tabstop Nastavit\ Soft\ &Tabstop
|
||||
menutrans Te&xt\ Width\.\.\. <09><><EFBFBD>ka\ te&xtu\.\.\.
|
||||
menutrans &File\ Format\.\.\. &Form<EFBFBD>t\ souboru\.\.\.
|
||||
" {{{2 Edit -3
|
||||
" {{{2 Edit -3
|
||||
menutrans C&olor\ Scheme Barevn<EFBFBD>\ s&ch<EFBFBD>ma
|
||||
menutrans &Keymap Kl<EFBFBD>vesov<EFBFBD>\ m&apa
|
||||
menutrans Select\ Fo&nt\.\.\. Vybrat\ p<EFBFBD>s&mo\.\.\.
|
||||
if has("win32") || has("win16") || has("gui_motif") || has("gui_gtk") || has("gui_kde") || has("gui_photon") || has("gui_mac")
|
||||
menutrans Select\ Fo&nt\.\.\. Vybrat\ p<EFBFBD>s&mo\.\.\.
|
||||
endif
|
||||
" }}}1
|
||||
|
||||
" {{{ Programming menu
|
||||
@@ -90,46 +107,52 @@ menutrans &Jump\ to\ this\ tag<Tab>g^] &Sko
|
||||
menutrans Jump\ &back<Tab>^T Sko<EFBFBD>it\ &zp<EFBFBD>t<Tab>^T
|
||||
menutrans Build\ &Tags\ File &Vytvo<EFBFBD>it\ soubor\ tag<EFBFBD>
|
||||
|
||||
menutrans &Spelling &Kontrola\ pravopisu
|
||||
menutrans &Spell\ Check\ On Kontrola\ pravopisu\ &zapnuta
|
||||
menutrans Spell\ Check\ &Off Kontrola\ pravopisu\ &vypnuta
|
||||
menutrans To\ Next\ error<Tab>]s &Dal<EFBFBD><EFBFBD>\ chyba<Tab>]s
|
||||
menutrans To\ Previous\ error<Tab>[s &P<EFBFBD>edchoz<EFBFBD>\ chyba<Tab>[s
|
||||
menutrans Suggest\ Corrections<Tab>z? &N<EFBFBD>vrh\ oprav<Tab>z?
|
||||
menutrans Repeat\ correction<Tab>:spellrepall Zopakovat\ &opravu<Tab>:spellrepall
|
||||
menutrans Set\ language\ to\ "en" Nastav\ jazyk\ na\ "en"
|
||||
menutrans Set\ language\ to\ "en_au" Nastav\ jazyk\ na\ "en_au"
|
||||
menutrans Set\ language\ to\ "en_ca" Nastav\ jazyk\ na\ "en_ca"
|
||||
menutrans Set\ language\ to\ "en_gb" Nastav\ jazyk\ na\ "en_gb"
|
||||
menutrans Set\ language\ to\ "en_nz" Nastav\ jazyk\ na\ "en_nz"
|
||||
menutrans Set\ language\ to\ "en_us" Nastav\ jazyk\ na\ "en_us"
|
||||
menutrans Set\ language\ to\ "cz" Nastav\ jazyk\ na\ "cz"
|
||||
menutrans Set\ language\ to\ "cs_cz" Nastav\ jazyk\ na\ "cs_cz"
|
||||
menutrans &Find\ More\ Languages Nal<EFBFBD>zt\ dal<EFBFBD><EFBFBD>\ &jazyky
|
||||
if has("spell")
|
||||
menutrans &Spelling &Kontrola\ pravopisu
|
||||
menutrans &Spell\ Check\ On &Zapnout\ kontrolu\ pravopisu
|
||||
menutrans Spell\ Check\ &Off &Vypnout \kontrolu\ pravopisu
|
||||
menutrans To\ &Next\ error<Tab>]s &Dal<EFBFBD><EFBFBD>\ chyba<Tab>]s
|
||||
menutrans To\ &Previous\ error<Tab>[s &P<EFBFBD>edchoz<EFBFBD>\ chyba<Tab>[s
|
||||
menutrans Suggest\ &Corrections<Tab>z= &Navrhnout\ opravy<Tab>z=
|
||||
menutrans &Repeat\ correction<Tab>:spellrepall Zopakovat\ &opravu<Tab>:spellrepall
|
||||
menutrans Set\ language\ to\ "en" Nastavit\ jazyk\ na\ "en"
|
||||
menutrans Set\ language\ to\ "en_au" Nastavit\ jazyk\ na\ "en_au"
|
||||
menutrans Set\ language\ to\ "en_ca" Nastavit\ jazyk\ na\ "en_ca"
|
||||
menutrans Set\ language\ to\ "en_gb" Nastavit\ jazyk\ na\ "en_gb"
|
||||
menutrans Set\ language\ to\ "en_nz" Nastavit\ jazyk\ na\ "en_nz"
|
||||
menutrans Set\ language\ to\ "en_us" Nastavit\ jazyk\ na\ "en_us"
|
||||
menutrans &Find\ More\ Languages Nal<EFBFBD>zt\ dal<EFBFBD><EFBFBD>\ &jazyky
|
||||
let g:menutrans_set_lang_to = "Nastavit jazyk na"
|
||||
endif
|
||||
|
||||
menutrans &Folding &Foldy
|
||||
menutrans &Enable/Disable\ folds<Tab>zi &Ano/Ne<Tab>zi
|
||||
menutrans &View\ Cursor\ Line<Tab>zv &Zobrazit\ <20><>dek\ kurzoru<Tab>zv
|
||||
menutrans Vie&w\ Cursor\ Line\ only<Tab>zMzx Zo&brazit\ pouze\ <20><>dek\ kurzoru\ <Tab>zMzx
|
||||
menutrans C&lose\ more\ folds<Tab>zm &Vyjmout\ jednu\ <20>rove<EFBFBD>\ fold<EFBFBD><Tab>zm
|
||||
menutrans &Close\ all\ folds<Tab>zM Zav<EFBFBD><EFBFBD>&t\ v<EFBFBD>echny\ foldy<Tab>zM
|
||||
menutrans O&pen\ more\ folds<Tab>zr P<EFBFBD>idat\ jedn&u\ <20>rove<EFBFBD>\ fold<EFBFBD><Tab>zr
|
||||
menutrans &Open\ all\ folds<Tab>zR &Otev<EFBFBD><EFBFBD>t\ v<EFBFBD>echny\ foldy<Tab>zR
|
||||
menutrans Fold\ Met&hod Metoda\ &skl<EFBFBD>d<EFBFBD>n<EFBFBD>
|
||||
"menutrans M&anual &Ru<52>n<EFBFBD>
|
||||
"menutrans I&ndent &Odsazen<65>
|
||||
"menutrans E&xpression &V<>raz
|
||||
"menutrans S&yntax &Syntax
|
||||
"menutrans &Diff &Diff
|
||||
"menutrans Ma&rker Ma&rker
|
||||
menutrans Create\ &Fold<Tab>zf Vytvo<EFBFBD>it\ &fold<Tab>zf
|
||||
menutrans &Delete\ Fold<Tab>zd Vymazat\ fol&d<Tab>zd
|
||||
menutrans Delete\ &All\ Folds<Tab>zD V&ymazat\ v<EFBFBD>echny\ foldy<Tab>zD
|
||||
menutrans Fold\ col&umn\ width Sloupec\ zob&razen<EFBFBD>\ fold<EFBFBD>
|
||||
if has("Folding")
|
||||
menutrans &Folding &Skl<EFBFBD>d<EFBFBD>n<EFBFBD>
|
||||
menutrans &Enable/Disable\ folds<Tab>zi &Ano/Ne<Tab>zi
|
||||
menutrans &View\ Cursor\ Line<Tab>zv Zobrazit\ <20><>dek\ &kurzoru<Tab>zv
|
||||
menutrans Vie&w\ Cursor\ Line\ only<Tab>zMzx Zobrazit\ &pouze\ <20><>dek\ kurzoru\ <Tab>zMzx
|
||||
menutrans C&lose\ more\ folds<Tab>zm Slo<EFBFBD>it\ &jednu\ <20>rove<EFBFBD>\ sklad<EFBFBD><Tab>zm
|
||||
menutrans &Close\ all\ folds<Tab>zM Slo<EFBFBD>it\ v<EFBFBD>echny\ sklady<Tab>zM
|
||||
menutrans O&pen\ more\ folds<Tab>zr P<EFBFBD>idat\ jednu\ <20>rove<EFBFBD>\ sklad<EFBFBD><Tab>zr
|
||||
menutrans &Open\ all\ folds<Tab>zR &Otev<EFBFBD><EFBFBD>t\ v<EFBFBD>echny\ sklady<Tab>zR
|
||||
menutrans Fold\ Met&hod &Metoda\ skl<EFBFBD>d<EFBFBD>n<EFBFBD>
|
||||
menutrans M&anual &Ru<EFBFBD>n<EFBFBD>
|
||||
menutrans I&ndent &Odsazen<EFBFBD>
|
||||
menutrans E&xpression &V<EFBFBD>raz
|
||||
menutrans S&yntax &Syntaxe
|
||||
menutrans &Diff &Rozd<EFBFBD>ly
|
||||
menutrans Ma&rker &Zna<EFBFBD>ky
|
||||
menutrans Create\ &Fold<Tab>zf Vytvo<EFBFBD>it\ &sklad<Tab>zf
|
||||
menutrans &Delete\ Fold<Tab>zd Vymazat\ skla&d<Tab>zd
|
||||
menutrans Delete\ &All\ Folds<Tab>zD Vymazat\ v<EFBFBD>echny\ sklady<Tab>zD
|
||||
menutrans Fold\ col&umn\ width Sloupec\ zob&razen<EFBFBD>\ sklad<EFBFBD>
|
||||
endif
|
||||
|
||||
if has("diff")
|
||||
menutrans &Update &Obnovit
|
||||
menutrans &Get\ Block &Sejmout\ Blok
|
||||
menutrans &Put\ Block &Vlo<EFBFBD>it\ Blok
|
||||
endif
|
||||
|
||||
menutrans &Update &Obnovit
|
||||
menutrans &Get\ Block &Sejmout\ Blok
|
||||
menutrans &Put\ Block &Vlo<EFBFBD>it\ Blok
|
||||
menutrans &Make<Tab>:make &Make<Tab>:make
|
||||
menutrans &List\ Errors<Tab>:cl V<EFBFBD>pis\ &chyb<Tab>:cl
|
||||
menutrans L&ist\ Messages<Tab>:cl! V<EFBFBD>p&is\ zpr<EFBFBD>v<Tab>:cl!
|
||||
@@ -142,7 +165,7 @@ menutrans SeT\ Compiler Nas&taven
|
||||
menutrans &Update<Tab>:cwin O&bnovit<Tab>:cwin
|
||||
menutrans &Open<Tab>:copen &Otev<EFBFBD><EFBFBD>t<Tab>:copen
|
||||
menutrans &Close<Tab>:cclose &Zav<EFBFBD><EFBFBD>t<Tab>:cclose
|
||||
menutrans &Set\ Compiler N&astavit\ kompil<EFBFBD>tor
|
||||
menutrans Se&T\ Compiler N&astavit\ kompil<EFBFBD>tor
|
||||
|
||||
menutrans &Convert\ to\ HEX<Tab>:%!xxd P<EFBFBD>ev<EFBFBD>st\ do\ <20>estn<EFBFBD>ctkov<EFBFBD>ho\ form<EFBFBD>t&u<Tab>:%!xxd
|
||||
menutrans Conve&rt\ back<Tab>:%!xxd\ -r P<EFBFBD>&ev<EFBFBD>st\ zp<EFBFBD>t<Tab>:%!xxd\ -r
|
||||
@@ -170,7 +193,6 @@ menutrans &Delete Z&ru
|
||||
menutrans &Alternate &Zm<EFBFBD>nit
|
||||
menutrans &Next &Dal<EFBFBD><EFBFBD>
|
||||
menutrans &Previous &P<EFBFBD>edchoz<EFBFBD>
|
||||
menutrans [No\ File] [<5B><>dn<EFBFBD>\ soubor]
|
||||
" }}}
|
||||
|
||||
" {{{ Menu Window
|
||||
@@ -221,6 +243,8 @@ menutrans &Paste &Vlo
|
||||
menutrans &Delete &Smazat
|
||||
menutrans Select\ Blockwise Vybrat\ blokov<EFBFBD>
|
||||
menutrans Select\ &Word Vybrat\ &slovo
|
||||
menutrans Select\ Pa&ragraph Vybrat\ &odstavec
|
||||
menutrans Select\ &Sentence Vybrat\ v<EFBFBD>&tu
|
||||
menutrans Select\ &Line Vybrat\ &<26><>dek
|
||||
menutrans Select\ &Block Vybrat\ &blok
|
||||
menutrans Select\ &All Vybrat\ &v<EFBFBD>e
|
||||
@@ -228,42 +252,57 @@ menutrans Select\ &All Vybrat\ &v
|
||||
|
||||
" {{{ The GUI toolbar
|
||||
if has("toolbar")
|
||||
if exists("*Do_toolbar_tmenu")
|
||||
delfun Do_toolbar_tmenu
|
||||
endif
|
||||
fun Do_toolbar_tmenu()
|
||||
tmenu ToolBar.Open Otev<EFBFBD><EFBFBD>t soubor
|
||||
tmenu ToolBar.Save Ulo<EFBFBD>it soubor
|
||||
tmenu ToolBar.SaveAll Ulo<EFBFBD>it v<EFBFBD>echny soubory
|
||||
tmenu ToolBar.Print Tisk
|
||||
tmenu ToolBar.Undo Zp<EFBFBD>t
|
||||
tmenu ToolBar.Redo Zru<EFBFBD>it vr<EFBFBD>cen<EFBFBD>
|
||||
tmenu ToolBar.Cut Vy<EFBFBD><EFBFBD>znout
|
||||
tmenu ToolBar.Copy Kop<EFBFBD>rovat
|
||||
tmenu ToolBar.Paste Vlo<EFBFBD>it
|
||||
tmenu ToolBar.Find Hledat...
|
||||
tmenu ToolBar.FindNext Hledat dal<EFBFBD><EFBFBD>
|
||||
tmenu ToolBar.FindPrev Hledat p<EFBFBD>edchoz<EFBFBD>
|
||||
tmenu ToolBar.Replace Nahradit...
|
||||
if 0 " disabled; These are in the Windows menu
|
||||
tmenu ToolBar.New Nov<EFBFBD> okno
|
||||
tmenu ToolBar.WinSplit Rozd<EFBFBD>lit okno
|
||||
tmenu ToolBar.WinMax Maximalizovat okno
|
||||
tmenu ToolBar.WinMin Minimalizovat okno
|
||||
tmenu ToolBar.WinClose Zav<EFBFBD><EFBFBD>t okno
|
||||
endif
|
||||
tmenu ToolBar.LoadSesn Na<EFBFBD><EFBFBD>st sezen<EFBFBD>
|
||||
tmenu ToolBar.SaveSesn Ulo<EFBFBD>it sezen<EFBFBD>
|
||||
tmenu ToolBar.RunScript Spustit skript
|
||||
tmenu ToolBar.Make Spustit make
|
||||
tmenu ToolBar.Shell Spustit shell
|
||||
tmenu ToolBar.RunCtags Spustit ctags
|
||||
tmenu ToolBar.TagJump Sko<EFBFBD>it na tag pod kurzorem
|
||||
tmenu ToolBar.Help N<EFBFBD>pov<EFBFBD>da
|
||||
tmenu ToolBar.FindHelp Hledat n<EFBFBD>pov<EFBFBD>du k...
|
||||
endfun
|
||||
if exists("*Do_toolbar_tmenu")
|
||||
delfun Do_toolbar_tmenu
|
||||
endif
|
||||
fun Do_toolbar_tmenu()
|
||||
tmenu ToolBar.Open Otev<EFBFBD><EFBFBD>t soubor
|
||||
tmenu ToolBar.Save Ulo<EFBFBD>it soubor
|
||||
tmenu ToolBar.SaveAll Ulo<EFBFBD>it v<EFBFBD>echny soubory
|
||||
if has("printer") || has("unix")
|
||||
tmenu ToolBar.Print Tisk
|
||||
endif
|
||||
tmenu ToolBar.Undo Zp<EFBFBD>t
|
||||
tmenu ToolBar.Redo Zru<EFBFBD>it vr<EFBFBD>cen<EFBFBD>
|
||||
tmenu ToolBar.Cut Vy<EFBFBD><EFBFBD>znout
|
||||
tmenu ToolBar.Copy Kop<EFBFBD>rovat
|
||||
tmenu ToolBar.Paste Vlo<EFBFBD>it
|
||||
tmenu ToolBar.Find Hledat...
|
||||
tmenu ToolBar.FindNext Hledat dal<EFBFBD><EFBFBD>
|
||||
tmenu ToolBar.FindPrev Hledat p<EFBFBD>edchoz<EFBFBD>
|
||||
tmenu ToolBar.Replace Nahradit...
|
||||
if 0 " disabled; These are in the Windows menu
|
||||
tmenu ToolBar.New Nov<EFBFBD> okno
|
||||
tmenu ToolBar.WinSplit Rozd<EFBFBD>lit okno
|
||||
tmenu ToolBar.WinMax Maximalizovat okno
|
||||
tmenu ToolBar.WinMin Minimalizovat okno
|
||||
tmenu ToolBar.WinClose Zav<EFBFBD><EFBFBD>t okno
|
||||
endif
|
||||
tmenu ToolBar.LoadSesn Na<EFBFBD><EFBFBD>st sezen<EFBFBD>
|
||||
tmenu ToolBar.SaveSesn Ulo<EFBFBD>it sezen<EFBFBD>
|
||||
tmenu ToolBar.RunScript Spustit skript
|
||||
tmenu ToolBar.Make Spustit make
|
||||
tmenu ToolBar.Shell Spustit shell
|
||||
tmenu ToolBar.RunCtags Spustit ctags
|
||||
tmenu ToolBar.TagJump Sko<EFBFBD>it na tag pod kurzorem
|
||||
tmenu ToolBar.Help N<EFBFBD>pov<EFBFBD>da
|
||||
tmenu ToolBar.FindHelp Hledat n<EFBFBD>pov<EFBFBD>du k...
|
||||
endfun
|
||||
endif
|
||||
" }}}
|
||||
|
||||
" {{{ DIALOG TEXTS
|
||||
let g:menutrans_no_file = "[<5B><>dn<64> soubor]"
|
||||
let g:menutrans_help_dialog = "Zadejte hledan<61> p<><70>kaz nebo slovo:\n\n\tP<74>idejte i_ pro p<><70>kazy vkl<6B>dac<61>ho re<72>imu (nap<61>. i_CTRL-X)\n\tP<74>idejte c_ pro p<><70>kazy p<><70>kazov<6F> <20><>dky (nap<61>. c_<Del>)\n\tP<74>idejte ' pro jm<6A>no volby (nap<61>. 'shiftwidth')"
|
||||
let g:menutrans_path_dialog = "Zadejte cesty pro vyhled<65>v<EFBFBD>n<EFBFBD> soubor<6F>. Jednotliv<69> cesty odd<64>lte <20><>rkou"
|
||||
let g:menutrans_tags_dialog = "Zadejte jm<6A>na soubor<6F> s tagy. Jm<4A>na odd<64>lte <20><>rkami."
|
||||
let g:menutrans_textwidth_dialog = "Zadejte d<>lku <20><>dku (0 pro zak<61>z<EFBFBD>n<EFBFBD> form<72>tov<6F>n<EFBFBD>):"
|
||||
let g:menutrans_fileformat_dialog = "Vyberte typ konce <20><>dk<64>"
|
||||
" }}}"
|
||||
|
||||
let &cpo = s:keepcpo
|
||||
unlet s:keepcpo
|
||||
|
||||
|
||||
|
||||
" vim:set foldmethod=marker expandtab tabstop=3 shiftwidth=3:
|
||||
|
||||
@@ -1,30 +1,38 @@
|
||||
" Menu Translations: Czech for systems without localization
|
||||
" Maintainer: Jiri Brezina <brzj@seznam.cz>
|
||||
" vim:set foldmethod=marker:
|
||||
" $Revision: 1.3 $
|
||||
" $Date: 2005/12/19 22:06:56 $
|
||||
" Menu Translations: Czech (latin1 - w/o diacritics)
|
||||
" Maintainer: Jiri Sedlak <jiri_sedlak@users.sourceforge.net>
|
||||
" Previous maintainer: Jiri Brezina
|
||||
" Based on: menu.vim (2012-10-21)
|
||||
|
||||
" Quit when menu translations have already been done.
|
||||
if exists("did_menu_trans")
|
||||
finish
|
||||
finish
|
||||
endif
|
||||
|
||||
let did_menu_trans = 1
|
||||
let s:keepcpo= &cpo
|
||||
set cpo&vim
|
||||
|
||||
scriptencoding latin1
|
||||
|
||||
" {{{ File menu
|
||||
menutrans &File &Soubor
|
||||
menutrans &Open\.\.\.<Tab>:e &Otevrit\.\.\.<Tab>:e
|
||||
menutrans Sp&lit-Open\.\.\.<Tab>:sp Otevrit\ v\ no&vem\ okne\.\.\.<Tab>:sp
|
||||
menutrans Open\ Tab\.\.\.<Tab>:tabnew Otevrit\ tab\.\.\.<Tab>:tabnew
|
||||
menutrans &New<Tab>:enew &Novy<Tab>:enew
|
||||
menutrans &Close<Tab>:close &Zavrit<Tab>:close
|
||||
menutrans &Save<Tab>:w &Ulozit<Tab>:w
|
||||
menutrans Save\ &As\.\.\.<Tab>:sav Ulozit\ &jako\.\.\.<Tab>:sav
|
||||
menutrans Split\ &Diff\ with\.\.\. Rozdelit\ okno\ -\ &Diff\.\.\.
|
||||
menutrans Split\ Patched\ &By\.\.\. Rozdelit\ okno\ -\ &Patch\.\.\.
|
||||
menutrans &Print &Tisk
|
||||
menutrans Sa&ve-Exit<Tab>:wqa U&lozit\ -\ Konec<Tab>:wqa
|
||||
menutrans E&xit<Tab>:qa &Konec<Tab>:qa
|
||||
if has("printer") || has("unix")
|
||||
menutrans &Print &Tisk
|
||||
endif
|
||||
menutrans Sa&ve-Exit<Tab>:wqa U&lozit\ a\ ukoncit<Tab>:wqa
|
||||
menutrans E&xit<Tab>:qa &Ukoncit<Tab>:qa
|
||||
|
||||
if has("diff")
|
||||
menutrans Split\ &Diff\ with\.\.\. Rozdelit\ okno\ -\ &Diff\.\.\.
|
||||
menutrans Split\ Patched\ &By\.\.\. Rozdelit\ okno\ -\ &Patch\.\.\.
|
||||
endif
|
||||
" }}}
|
||||
|
||||
" {{{ Edit menu
|
||||
@@ -37,24 +45,32 @@ menutrans &Copy<Tab>"+y &Kopirovat<Tab>"+y
|
||||
menutrans &Paste<Tab>"+gP V&lozit<Tab>"+gP
|
||||
menutrans Put\ &Before<Tab>[p Vlozit\ &pred<Tab>[p
|
||||
menutrans Put\ &After<Tab>]p Vlozi&t\ za<Tab>]p
|
||||
menutrans &Delete<Tab>x &Smazat<Tab>x
|
||||
if has("win32") || has("win16")
|
||||
menutrans &Delete<Tab>x &Smazat<Tab>x
|
||||
endif
|
||||
menutrans &Select\ All<Tab>ggVG Vy&brat\ vse<Tab>ggVG
|
||||
menutrans &Find\.\.\. &Hledat\.\.\.
|
||||
menutrans Find\ and\ Rep&lace\.\.\. &Nahradit\.\.\.
|
||||
menutrans Options\.\.\. Volb&y\.\.\.
|
||||
if has("win32") || has("win16") || has("gui_gtk") || has("gui_kde") || has("gui_motif")
|
||||
menutrans &Find\.\.\. &Hledat\.\.\.
|
||||
menutrans Find\ and\ Rep&lace\.\.\. &Nahradit\.\.\.
|
||||
else
|
||||
menutrans Find<Tab>/ &Hledat<Tab>/
|
||||
menutrans Find\ and\ Rep&lace<Tab>:%s &Nahradit<Tab>:%s
|
||||
menutrans Find\ and\ Rep&lace<Tab>:s &Nahradit<Tab>:s
|
||||
endif
|
||||
menutrans Settings\ &Window Nastav&eni\ okna
|
||||
" {{{2 Edit -1
|
||||
" {{{2 Edit -1
|
||||
menutrans Startup\ &Settings Pocatecni\ &nastaveni
|
||||
menutrans &Global\ Settings &Globalni\ nastaveni
|
||||
menutrans Toggle\ Pattern\ &Highlight<Tab>:set\ hls! &Prepnout\ zvyrazneni\ vzoru<Tab>:set\ hls!
|
||||
menutrans Toggle\ &Ignore-case<Tab>:set\ ic! Prepnout\ ignorovani\ &VERZALEK<Tab>:set\ ic!
|
||||
menutrans Toggle\ &Showmatch<Tab>:set\ sm! Prepnout\ &Showmatch\ \{\(\[\])\}<Tab>:set\ sm!
|
||||
menutrans &Context\ lines Zobrazit\ konte&xt\ kurzoru
|
||||
menutrans &Virtual\ Edit Virtualni\ p&ozice\ kurzoru
|
||||
menutrans Never Nikdy
|
||||
menutrans Block\ Selection Vyber\ Bloku
|
||||
menutrans Insert\ mode Insert\ mod
|
||||
menutrans Block\ and\ Insert Blok\ a\ Insert
|
||||
menutrans Always Vzdycky
|
||||
menutrans Never Nikdy
|
||||
menutrans Block\ Selection Vyber\ Bloku
|
||||
menutrans Insert\ mode Insert\ mod
|
||||
menutrans Block\ and\ Insert Blok\ a\ Insert
|
||||
menutrans Always Vzdycky
|
||||
menutrans Toggle\ Insert\ &Mode<Tab>:set\ im! Prepnout\ Insert\ mo&d<Tab>:set\ im!
|
||||
menutrans Toggle\ Vi\ C&ompatible<Tab>:set\ cp! Prepnout\ kompatibilni\ rezim\ s\ 'vi'<Tab>:set\ cp!
|
||||
menutrans Search\ &Path\.\.\. Nastavit\ &cestu\ k\ prohledavani\.\.\.
|
||||
@@ -63,9 +79,10 @@ menutrans Toggle\ &Toolbar Prepnout\ &Toolbar
|
||||
menutrans Toggle\ &Bottom\ Scrollbar Pr&epnout\ dolni\ rolovaci\ listu
|
||||
menutrans Toggle\ &Left\ Scrollbar Prepnout\ &levou\ rolovaci\ listu
|
||||
menutrans Toggle\ &Right\ Scrollbar Prepnout\ p&ravou\ rolovaci\ listu
|
||||
" {{{2 Edit -2
|
||||
" {{{2 Edit -2
|
||||
menutrans F&ile\ Settings Nastaveni\ so&uboru
|
||||
menutrans Toggle\ Line\ &Numbering<Tab>:set\ nu! Prepnout\ cislovani\ ra&dku<Tab>:set\ nu!
|
||||
menutrans Toggle\ relati&ve\ Line\ Numbering<Tab>:set\ rnu! Prepnout\ relativni\ cislovani\ ra&dku<Tab>:set\ rnu!
|
||||
menutrans Toggle\ &List\ Mode<Tab>:set\ list! Prepnout\ &List\ mod<Tab>:set\ list!
|
||||
menutrans Toggle\ Line\ &Wrap<Tab>:set\ wrap! Prepnout\ zala&movani\ radku<Tab>:set\ wrap!
|
||||
menutrans Toggle\ W&rap\ at\ word<Tab>:set\ lbr! Prepnout\ zl&om\ ve\ slove<Tab>:set\ lbr!
|
||||
@@ -76,10 +93,12 @@ menutrans &Shiftwidth Nastav&it\ sirku\ od&sazeni
|
||||
menutrans Soft\ &Tabstop Nastavit\ Soft\ &Tabstop
|
||||
menutrans Te&xt\ Width\.\.\. Sirka\ te&xtu\.\.\.
|
||||
menutrans &File\ Format\.\.\. &Format\ souboru\.\.\.
|
||||
" {{{2 Edit -3
|
||||
" {{{2 Edit -3
|
||||
menutrans C&olor\ Scheme Barevne\ s&chema
|
||||
menutrans &Keymap Klavesova\ m&apa
|
||||
menutrans Select\ Fo&nt\.\.\. Vybrat\ pis&mo\.\.\.
|
||||
if has("win32") || has("win16") || has("gui_motif") || has("gui_gtk") || has("gui_kde") || has("gui_photon") || has("gui_mac")
|
||||
menutrans Select\ Fo&nt\.\.\. Vybrat\ pis&mo\.\.\.
|
||||
endif
|
||||
" }}}1
|
||||
|
||||
" {{{ Programming menu
|
||||
@@ -88,46 +107,52 @@ menutrans &Jump\ to\ this\ tag<Tab>g^] &Skocit\ na\ tag<Tab>g^]
|
||||
menutrans Jump\ &back<Tab>^T Skocit\ &zpet<Tab>^T
|
||||
menutrans Build\ &Tags\ File &Vytvorit\ soubor\ tagu
|
||||
|
||||
menutrans &Spelling &Kontrola\ pravopisu
|
||||
menutrans &Spell\ Check\ On Kontrola\ pravopisu\ &zapnuta
|
||||
menutrans Spell\ Check\ &Off Kontrola\ pravopisu\ &vypnuta
|
||||
menutrans To\ Next\ error<Tab>]s &Dalsi\ chyba<Tab>]s
|
||||
menutrans To\ Previous\ error<Tab>[s &Predchozi\ chyba<Tab>[s
|
||||
menutrans Suggest\ Corrections<Tab>z? &Navrh\ oprav<Tab>z?
|
||||
menutrans Repeat\ correction<Tab>:spellrepall Zopakovat\ &opravu<Tab>:spellrepall
|
||||
menutrans Set\ language\ to\ "en" Nastav\ jazyk\ na\ "en"
|
||||
menutrans Set\ language\ to\ "en_au" Nastav\ jazyk\ na\ "en_au"
|
||||
menutrans Set\ language\ to\ "en_ca" Nastav\ jazyk\ na\ "en_ca"
|
||||
menutrans Set\ language\ to\ "en_gb" Nastav\ jazyk\ na\ "en_gb"
|
||||
menutrans Set\ language\ to\ "en_nz" Nastav\ jazyk\ na\ "en_nz"
|
||||
menutrans Set\ language\ to\ "en_us" Nastav\ jazyk\ na\ "en_us"
|
||||
menutrans Set\ language\ to\ "cz" Nastav\ jazyk\ na\ "cz"
|
||||
menutrans Set\ language\ to\ "cs_cz" Nastav\ jazyk\ na\ "cs_cz"
|
||||
menutrans &Find\ More\ Languages Nalezt\ dalsi\ &jazyky
|
||||
if has("spell")
|
||||
menutrans &Spelling &Kontrola\ pravopisu
|
||||
menutrans &Spell\ Check\ On &Zapnout\ kontrolu\ pravopisu
|
||||
menutrans Spell\ Check\ &Off &Vypnout \kontrolu\ pravopisu
|
||||
menutrans To\ &Next\ error<Tab>]s &Dalsi\ chyba<Tab>]s
|
||||
menutrans To\ &Previous\ error<Tab>[s &Predchozi\ chyba<Tab>[s
|
||||
menutrans Suggest\ &Corrections<Tab>z= &Navrhnout\ opravy<Tab>z=
|
||||
menutrans &Repeat\ correction<Tab>:spellrepall Zopakovat\ &opravu<Tab>:spellrepall
|
||||
menutrans Set\ language\ to\ "en" Nastavit\ jazyk\ na\ "en"
|
||||
menutrans Set\ language\ to\ "en_au" Nastavit\ jazyk\ na\ "en_au"
|
||||
menutrans Set\ language\ to\ "en_ca" Nastavit\ jazyk\ na\ "en_ca"
|
||||
menutrans Set\ language\ to\ "en_gb" Nastavit\ jazyk\ na\ "en_gb"
|
||||
menutrans Set\ language\ to\ "en_nz" Nastavit\ jazyk\ na\ "en_nz"
|
||||
menutrans Set\ language\ to\ "en_us" Nastavit\ jazyk\ na\ "en_us"
|
||||
menutrans &Find\ More\ Languages Nalezt\ dalsi\ &jazyky
|
||||
let g:menutrans_set_lang_to = "Nastavit jazyk na"
|
||||
endif
|
||||
|
||||
menutrans &Folding &Foldy
|
||||
menutrans &Enable/Disable\ folds<Tab>zi &Ano/Ne<Tab>zi
|
||||
menutrans &View\ Cursor\ Line<Tab>zv &Zobrazit\ radek\ kurzoru<Tab>zv
|
||||
menutrans Vie&w\ Cursor\ Line\ only<Tab>zMzx Zo&brazit\ pouze\ radek\ kurzoru\ <Tab>zMzx
|
||||
menutrans C&lose\ more\ folds<Tab>zm &Vyjmout\ jednu\ uroven\ foldu<Tab>zm
|
||||
menutrans &Close\ all\ folds<Tab>zM Zavri&t\ vsechny\ foldy<Tab>zM
|
||||
menutrans O&pen\ more\ folds<Tab>zr Pridat\ jedn&u\ uroven\ foldu<Tab>zr
|
||||
menutrans &Open\ all\ folds<Tab>zR &Otevrit\ vsechny\ foldy<Tab>zR
|
||||
menutrans Fold\ Met&hod Metoda\ &skladani
|
||||
"menutrans M&anual &Rucne
|
||||
"menutrans I&ndent &Odsazeni
|
||||
"menutrans E&xpression &Vyraz
|
||||
"menutrans S&yntax &Syntax
|
||||
"menutrans &Diff &Diff
|
||||
"menutrans Ma&rker Ma&rker
|
||||
menutrans Create\ &Fold<Tab>zf Vytvorit\ &fold<Tab>zf
|
||||
menutrans &Delete\ Fold<Tab>zd Vymazat\ fol&d<Tab>zd
|
||||
menutrans Delete\ &All\ Folds<Tab>zD V&ymazat\ vsechny\ foldy<Tab>zD
|
||||
menutrans Fold\ col&umn\ width Sloupec\ zob&razeni\ foldu
|
||||
if has("Folding")
|
||||
menutrans &Folding &Skladani
|
||||
menutrans &Enable/Disable\ folds<Tab>zi &Ano/Ne<Tab>zi
|
||||
menutrans &View\ Cursor\ Line<Tab>zv Zobrazit\ radek\ &kurzoru<Tab>zv
|
||||
menutrans Vie&w\ Cursor\ Line\ only<Tab>zMzx Zobrazit\ &pouze\ radek\ kurzoru\ <Tab>zMzx
|
||||
menutrans C&lose\ more\ folds<Tab>zm Slozit\ &jednu\ uroven\ skladu<Tab>zm
|
||||
menutrans &Close\ all\ folds<Tab>zM Slozit\ vsechny\ sklady<Tab>zM
|
||||
menutrans O&pen\ more\ folds<Tab>zr Pridat\ jednu\ uroven\ skladu<Tab>zr
|
||||
menutrans &Open\ all\ folds<Tab>zR &Otevrit\ vsechny\ sklady<Tab>zR
|
||||
menutrans Fold\ Met&hod &Metoda\ skladani
|
||||
menutrans M&anual &Rucne
|
||||
menutrans I&ndent &Odsazeni
|
||||
menutrans E&xpression &Vyraz
|
||||
menutrans S&yntax &Syntaxe
|
||||
menutrans &Diff &Rozdily
|
||||
menutrans Ma&rker &Znacky
|
||||
menutrans Create\ &Fold<Tab>zf Vytvorit\ &sklad<Tab>zf
|
||||
menutrans &Delete\ Fold<Tab>zd Vymazat\ skla&d<Tab>zd
|
||||
menutrans Delete\ &All\ Folds<Tab>zD Vymazat\ vsechny\ sklady<Tab>zD
|
||||
menutrans Fold\ col&umn\ width Sloupec\ zob&razeni\ skladu
|
||||
endif
|
||||
|
||||
if has("diff")
|
||||
menutrans &Update &Obnovit
|
||||
menutrans &Get\ Block &Sejmout\ Blok
|
||||
menutrans &Put\ Block &Vlozit\ Blok
|
||||
endif
|
||||
|
||||
menutrans &Update &Obnovit
|
||||
menutrans &Get\ Block &Sejmout\ Blok
|
||||
menutrans &Put\ Block &Vlozit\ Blok
|
||||
menutrans &Make<Tab>:make &Make<Tab>:make
|
||||
menutrans &List\ Errors<Tab>:cl Vypis\ &chyb<Tab>:cl
|
||||
menutrans L&ist\ Messages<Tab>:cl! Vyp&is\ zprav<Tab>:cl!
|
||||
@@ -140,7 +165,7 @@ menutrans SeT\ Compiler Nas&taveni\ kompilatoru
|
||||
menutrans &Update<Tab>:cwin O&bnovit<Tab>:cwin
|
||||
menutrans &Open<Tab>:copen &Otevrit<Tab>:copen
|
||||
menutrans &Close<Tab>:cclose &Zavrit<Tab>:cclose
|
||||
menutrans &Set\ Compiler N&astavit\ kompilator
|
||||
menutrans Se&T\ Compiler N&astavit\ kompilator
|
||||
|
||||
menutrans &Convert\ to\ HEX<Tab>:%!xxd Prevest\ do\ sestnactkoveho\ format&u<Tab>:%!xxd
|
||||
menutrans Conve&rt\ back<Tab>:%!xxd\ -r Pr&evest\ zpet<Tab>:%!xxd\ -r
|
||||
@@ -168,7 +193,6 @@ menutrans &Delete Z&rusit
|
||||
menutrans &Alternate &Zmenit
|
||||
menutrans &Next &Dalsi
|
||||
menutrans &Previous &Predchozi
|
||||
menutrans [No\ File] [Zadny\ soubor]
|
||||
" }}}
|
||||
|
||||
" {{{ Menu Window
|
||||
@@ -219,6 +243,8 @@ menutrans &Paste &Vlozit
|
||||
menutrans &Delete &Smazat
|
||||
menutrans Select\ Blockwise Vybrat\ blokove
|
||||
menutrans Select\ &Word Vybrat\ &slovo
|
||||
menutrans Select\ Pa&ragraph Vybrat\ &odstavec
|
||||
menutrans Select\ &Sentence Vybrat\ ve&tu
|
||||
menutrans Select\ &Line Vybrat\ &radek
|
||||
menutrans Select\ &Block Vybrat\ &blok
|
||||
menutrans Select\ &All Vybrat\ &vse
|
||||
@@ -226,42 +252,57 @@ menutrans Select\ &All Vybrat\ &vse
|
||||
|
||||
" {{{ The GUI toolbar
|
||||
if has("toolbar")
|
||||
if exists("*Do_toolbar_tmenu")
|
||||
delfun Do_toolbar_tmenu
|
||||
endif
|
||||
fun Do_toolbar_tmenu()
|
||||
tmenu ToolBar.Open Otevrit soubor
|
||||
tmenu ToolBar.Save Ulozit soubor
|
||||
tmenu ToolBar.SaveAll Ulozit vsechny soubory
|
||||
tmenu ToolBar.Print Tisk
|
||||
tmenu ToolBar.Undo Zpet
|
||||
tmenu ToolBar.Redo Zrusit vraceni
|
||||
tmenu ToolBar.Cut Vyriznout
|
||||
tmenu ToolBar.Copy Kopirovat
|
||||
tmenu ToolBar.Paste Vlozit
|
||||
tmenu ToolBar.Find Hledat...
|
||||
tmenu ToolBar.FindNext Hledat dalsi
|
||||
tmenu ToolBar.FindPrev Hledat predchozi
|
||||
tmenu ToolBar.Replace Nahradit...
|
||||
if 0 " disabled; These are in the Windows menu
|
||||
tmenu ToolBar.New Nove okno
|
||||
tmenu ToolBar.WinSplit Rozdelit okno
|
||||
tmenu ToolBar.WinMax Maximalizovat okno
|
||||
tmenu ToolBar.WinMin Minimalizovat okno
|
||||
tmenu ToolBar.WinClose Zavrit okno
|
||||
endif
|
||||
tmenu ToolBar.LoadSesn Nacist sezeni
|
||||
tmenu ToolBar.SaveSesn Ulozit sezeni
|
||||
tmenu ToolBar.RunScript Spustit skript
|
||||
tmenu ToolBar.Make Spustit make
|
||||
tmenu ToolBar.Shell Spustit shell
|
||||
tmenu ToolBar.RunCtags Spustit ctags
|
||||
tmenu ToolBar.TagJump Skocit na tag pod kurzorem
|
||||
tmenu ToolBar.Help Napoveda
|
||||
tmenu ToolBar.FindHelp Hledat napovedu k...
|
||||
endfun
|
||||
if exists("*Do_toolbar_tmenu")
|
||||
delfun Do_toolbar_tmenu
|
||||
endif
|
||||
fun Do_toolbar_tmenu()
|
||||
tmenu ToolBar.Open Otevrit soubor
|
||||
tmenu ToolBar.Save Ulozit soubor
|
||||
tmenu ToolBar.SaveAll Ulozit vsechny soubory
|
||||
if has("printer") || has("unix")
|
||||
tmenu ToolBar.Print Tisk
|
||||
endif
|
||||
tmenu ToolBar.Undo Zpet
|
||||
tmenu ToolBar.Redo Zrusit vraceni
|
||||
tmenu ToolBar.Cut Vyriznout
|
||||
tmenu ToolBar.Copy Kopirovat
|
||||
tmenu ToolBar.Paste Vlozit
|
||||
tmenu ToolBar.Find Hledat...
|
||||
tmenu ToolBar.FindNext Hledat dalsi
|
||||
tmenu ToolBar.FindPrev Hledat predchozi
|
||||
tmenu ToolBar.Replace Nahradit...
|
||||
if 0 " disabled; These are in the Windows menu
|
||||
tmenu ToolBar.New Nove okno
|
||||
tmenu ToolBar.WinSplit Rozdelit okno
|
||||
tmenu ToolBar.WinMax Maximalizovat okno
|
||||
tmenu ToolBar.WinMin Minimalizovat okno
|
||||
tmenu ToolBar.WinClose Zavrit okno
|
||||
endif
|
||||
tmenu ToolBar.LoadSesn Nacist sezeni
|
||||
tmenu ToolBar.SaveSesn Ulozit sezeni
|
||||
tmenu ToolBar.RunScript Spustit skript
|
||||
tmenu ToolBar.Make Spustit make
|
||||
tmenu ToolBar.Shell Spustit shell
|
||||
tmenu ToolBar.RunCtags Spustit ctags
|
||||
tmenu ToolBar.TagJump Skocit na tag pod kurzorem
|
||||
tmenu ToolBar.Help Napoveda
|
||||
tmenu ToolBar.FindHelp Hledat napovedu k...
|
||||
endfun
|
||||
endif
|
||||
" }}}
|
||||
|
||||
" {{{ DIALOG TEXTS
|
||||
let g:menutrans_no_file = "[Zadny soubor]"
|
||||
let g:menutrans_help_dialog = "Zadejte hledany prikaz nebo slovo:\n\n\tPridejte i_ pro prikazy vkladaciho rezimu (napr. i_CTRL-X)\n\tPridejte c_ pro prikazy prikazove radky (napr. c_<Del>)\n\tPridejte ' pro jmeno volby (napr. 'shiftwidth')"
|
||||
let g:menutrans_path_dialog = "Zadejte cesty pro vyhledavani souboru. Jednotlive cesty oddelte carkou"
|
||||
let g:menutrans_tags_dialog = "Zadejte jmena souboru s tagy. Jmena oddelte carkami."
|
||||
let g:menutrans_textwidth_dialog = "Zadejte delku radku (0 pro zakazani formatovani):"
|
||||
let g:menutrans_fileformat_dialog = "Vyberte typ konce radku"
|
||||
" }}}"
|
||||
|
||||
let &cpo = s:keepcpo
|
||||
unlet s:keepcpo
|
||||
|
||||
|
||||
|
||||
" vim:set foldmethod=marker expandtab tabstop=3 shiftwidth=3:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
" Function to left and rigt align text.
|
||||
" Function to left and right align text.
|
||||
"
|
||||
" Written by: Preben "Peppe" Guldberg <c928400@student.dtu.dk>
|
||||
" Created: 980806 14:13 (or around that time anyway)
|
||||
@@ -256,18 +256,17 @@ function! Justify(...) range
|
||||
let str = substitute(str, '\s\+$', '', '')
|
||||
let str = substitute(str, '^\s\+', '', '')
|
||||
let str = substitute(str, '\s\+', ' ', 'g')
|
||||
" Use substitute() hack to get strlen in characters instead of bytes
|
||||
let str_n = strlen(substitute(str, '.', 'x', 'g'))
|
||||
let str_n = strdisplaywidth(str)
|
||||
|
||||
" Possible addition of space after punctuation
|
||||
if exists("join_str")
|
||||
let str = substitute(str, join_str, '\1 ', 'g')
|
||||
endif
|
||||
let join_n = strlen(substitute(str, '.', 'x', 'g')) - str_n
|
||||
let join_n = strdisplaywidth(str) - str_n
|
||||
|
||||
" Can extraspaces be added?
|
||||
" Note that str_n may be less than strlen(str) [joinspaces above]
|
||||
if strlen(substitute(str, '.', 'x', 'g')) < tw - indent_n && str_n > 0
|
||||
if strdisplaywidth(str) <= tw - indent_n && str_n > 0
|
||||
" How many spaces should be added
|
||||
let s_add = tw - str_n - indent_n - join_n
|
||||
let s_nr = strlen(substitute(str, '\S', '', 'g') ) - join_n
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
" You can also use this as a start for your own set of menus.
|
||||
"
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2011 Mar 22
|
||||
" Last Change: 2012 Oct 21
|
||||
|
||||
" Note that ":an" (short for ":anoremenu") is often used to make a menu work
|
||||
" in all modes and avoid side effects from mappings defined by the user.
|
||||
@@ -434,6 +434,10 @@ if has("spell")
|
||||
let enc = &enc
|
||||
endif
|
||||
|
||||
if !exists("g:menutrans_set_lang_to")
|
||||
let g:menutrans_set_lang_to = 'Set language to'
|
||||
endif
|
||||
|
||||
let found = 0
|
||||
let s = globpath(&rtp, "spell/*." . enc . ".spl")
|
||||
if s != ""
|
||||
@@ -441,8 +445,9 @@ if has("spell")
|
||||
for f in split(s, "\n")
|
||||
let nm = substitute(f, '.*spell[/\\]\(..\)\.[^/\\]*\.spl', '\1', "")
|
||||
if nm != "en" && nm !~ '/'
|
||||
let _nm = nm
|
||||
let found += 1
|
||||
let menuname = '&Tools.&Spelling.Set\ language\ to\ "' . nm . '"'
|
||||
let menuname = '&Tools.&Spelling.' . escape(g:menutrans_set_lang_to, "\\. \t|") . '\ "' . nm . '"'
|
||||
exe 'an 40.335.' . n . ' ' . menuname . ' :set spl=' . nm . ' spell<CR>'
|
||||
let s:undo_spellang += ['aun ' . menuname]
|
||||
endif
|
||||
@@ -452,7 +457,7 @@ if has("spell")
|
||||
if found == 0
|
||||
echomsg "Could not find other spell files"
|
||||
elseif found == 1
|
||||
echomsg "Found spell file " . nm
|
||||
echomsg "Found spell file " . _nm
|
||||
else
|
||||
echomsg "Found " . found . " more spell files"
|
||||
endif
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
if &cp || exists("g:loaded_netrwPlugin")
|
||||
finish
|
||||
endif
|
||||
let g:loaded_netrwPlugin = "v145"
|
||||
let g:loaded_netrwPlugin = "v146"
|
||||
if v:version < 702
|
||||
echohl WarningMsg | echo "***netrw*** you need vim version 7.2 for this version of netrw" | echohl None
|
||||
finish
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim support file to detect file types in scripts
|
||||
"
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last change: 2010 Sep 22
|
||||
" Last change: 2012 Aug 30
|
||||
|
||||
" This file is called by an autocommand for every file that has just been
|
||||
" loaded into a buffer. It checks if the type of file can be recognized by
|
||||
@@ -198,7 +198,8 @@ else
|
||||
" - "=== ", line of "=", "---", "+++ " (SVK diff)
|
||||
" - "=== ", "--- ", "+++ " (bzr diff, common case)
|
||||
" - "=== (removed|added|renamed|modified)" (bzr diff, alternative)
|
||||
elseif s:line1 =~ '^\(diff\>\|Only in \|\d\+\(,\d\+\)\=[cda]\d\+\>\|# It was generated by makepatch \|Index:\s\+\f\+\r\=$\|===== \f\+ \d\+\.\d\+ vs edited\|==== //\f\+#\d\+\)'
|
||||
" - "# HG changeset patch" in first line (Mercurial export format)
|
||||
elseif s:line1 =~ '^\(diff\>\|Only in \|\d\+\(,\d\+\)\=[cda]\d\+\>\|# It was generated by makepatch \|Index:\s\+\f\+\r\=$\|===== \f\+ \d\+\.\d\+ vs edited\|==== //\f\+#\d\+\|# HG changeset patch\)'
|
||||
\ || (s:line1 =~ '^--- ' && s:line2 =~ '^+++ ')
|
||||
\ || (s:line1 =~ '^\* looking for ' && s:line2 =~ '^\* comparing to ')
|
||||
\ || (s:line1 =~ '^\*\*\* ' && s:line2 =~ '^--- ')
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
" Vim ABAP syntax file
|
||||
" Language: SAP - ABAP/R4
|
||||
" Revision: 1.0
|
||||
" Maintainer: Marius Piedallu van Wyk <marius@e.co.za>
|
||||
" Last Change: 2006 Apr 13
|
||||
" Revision: 2.1
|
||||
" Maintainer: Marius Piedallu van Wyk <lailoken@gmail.com>
|
||||
" Last Change: 2012 Oct 23
|
||||
" Comment: Thanks to EPI-USE Labs for all your assistance. :)
|
||||
|
||||
" For version < 6.0: Clear all syntax items
|
||||
" For version >= 6.0: Quit when a syntax file was already loaded
|
||||
@@ -15,101 +16,153 @@ endif
|
||||
" Always ignore case
|
||||
syn case ignore
|
||||
|
||||
" Symbol Operators
|
||||
syn match abapSymbolOperator "[+\-/=<>$]"
|
||||
syn match abapSymbolOperator "\*"
|
||||
syn match abapSymbolOperator "[<>]="
|
||||
syn match abapSymbolOperator "<>"
|
||||
syn match abapSymbolOperator "\*\*"
|
||||
syn match abapSymbolOperator "[()]"
|
||||
syn match abapSymbolOperator "[:,\.]"
|
||||
" Symbol Operators (space delimited)
|
||||
syn match abapSymbolOperator "\W+\W"
|
||||
syn match abapSymbolOperator "\W-\W"
|
||||
syn match abapSymbolOperator "\W/\W"
|
||||
syn match abapSymbolOperator "\W%\W"
|
||||
syn match abapSymbolOperator "\W=\W"
|
||||
syn match abapSymbolOperator "\W<\W"
|
||||
syn match abapSymbolOperator "\W>\W"
|
||||
syn match abapSymbolOperator "\W\*\W"
|
||||
syn match abapSymbolOperator "\W[<>]=\W"
|
||||
syn match abapSymbolOperator "\W<>\W"
|
||||
syn match abapSymbolOperator "\W\*\*\W"
|
||||
syn match abapSymbolOperator "\[\]"
|
||||
syn match abapSymbolOperator "->\*\?"
|
||||
syn match abapSymbolOperator "=>"
|
||||
syn match abapSymbolOperator "[()~:,\.&$]"
|
||||
|
||||
" Literals
|
||||
syn region abapString matchgroup=abapString start="'" end="'" contains=abapStringEscape
|
||||
syn match abapStringEscape contained "''"
|
||||
syn region abapCharString matchgroup=abapCharString start="'" end="'" contains=abapCharStringEscape
|
||||
syn match abapCharStringEscape contained "''"
|
||||
|
||||
syn match abapNumber "-\=\<\d\+\>"
|
||||
syn region abapString matchgroup=abapString start="`" end="`" contains=abapStringEscape
|
||||
syn match abapStringEscape contained "``"
|
||||
|
||||
syn match abapNumber "\-\=\<\d\+\>"
|
||||
syn region abapHex matchgroup=abapHex start="X'" end="'"
|
||||
|
||||
if version >= 600
|
||||
setlocal iskeyword=-,48-57,_,A-Z,a-z
|
||||
setlocal iskeyword=48-57,_,A-Z,a-z,/
|
||||
else
|
||||
set iskeyword=-,48-57,_,A-Z,a-z
|
||||
set iskeyword=48-57,_,A-Z,a-z,/
|
||||
endif
|
||||
|
||||
syn match abapNamespace "\</\w\+/"
|
||||
|
||||
" multi-word statements
|
||||
syn match abapComplexStatement "\<\(WITH\W\+\(HEADER\W\+LINE\|FRAME\|KEY\)\|WITH\)\>"
|
||||
syn match abapComplexStatement "\<NO\W\+STANDARD\W\+PAGE\W\+HEADING\>"
|
||||
syn match abapComplexStatement "\<\(EXIT\W\+FROM\W\+STEP\W\+LOOP\|EXIT\)\>"
|
||||
syn match abapComplexStatement "\<\(BEGIN\W\+OF\W\+\(BLOCK\|LINE\)\|BEGIN\W\+OF\)\>"
|
||||
syn match abapComplexStatement "\<\(END\W\+OF\W\+\(BLOCK\|LINE\)\|END\W\+OF\)\>"
|
||||
syn match abapComplexStatement "\<NO\W\+INTERVALS\>"
|
||||
syn match abapComplexStatement "\<RESPECTING\W\+BLANKS\>"
|
||||
syn match abapComplexStatement "\<SEPARATED\W\+BY\>"
|
||||
syn match abapComplexStatement "\<USING\(\W\+EDIT\W\+MASK\)\?\>"
|
||||
syn match abapComplexStatement "\<WHERE\(\W\+LINE\)\?\>"
|
||||
syn match abapComplexStatement "\<RADIOBUTTON\W\+GROUP\>"
|
||||
syn match abapComplexStatement "\<REF\W\+TO\>"
|
||||
syn match abapComplexStatement "\<\(PUBLIC\|PRIVATE\|PROTECTED\)\(\W\+SECTION\)\?\>"
|
||||
syn match abapComplexStatement "\<DELETING\W\+\(TRAILING\|LEADING\)\>"
|
||||
syn match abapComplexStatement "\<\(ALL\W\+OCCURRENCES\)\|\(\(FIRST\|LAST\)\W\+OCCURRENCE\)\>"
|
||||
syn match abapComplexStatement "\<INHERITING\W\+FROM\>"
|
||||
syn match abapComplexStatement "\<\(UP\W\+\)\?TO\>"
|
||||
|
||||
" hyphenated-word statements
|
||||
syn match abapComplexStatement "\<LINE-COUNT\>"
|
||||
syn match abapComplexStatement "\<ADD-CORRESPONDING\>"
|
||||
syn match abapComplexStatement "\<AUTHORITY-CHECK\>"
|
||||
syn match abapComplexStatement "\<BREAK-POINT\>"
|
||||
syn match abapComplexStatement "\<CLASS-DATA\>"
|
||||
syn match abapComplexStatement "\<CLASS-METHODS\>"
|
||||
syn match abapComplexStatement "\<CLASS-METHOD\>"
|
||||
syn match abapComplexStatement "\<DIVIDE-CORRESPONDING\>"
|
||||
syn match abapComplexStatement "\<EDITOR-CALL\>"
|
||||
syn match abapComplexStatement "\<END-OF-DEFINITION\>"
|
||||
syn match abapComplexStatement "\<END-OF-PAGE\>"
|
||||
syn match abapComplexStatement "\<END-OF-SELECTION\>"
|
||||
syn match abapComplexStatement "\<FIELD-GROUPS\>"
|
||||
syn match abapComplexStatement "\<FIELD-SYMBOLS\>"
|
||||
syn match abapComplexStatement "\<FUNCTION-POOL\>"
|
||||
syn match abapComplexStatement "\<IS\W\+\(NOT\W\+\)\?\(ASSIGNED\|BOUND\|INITIAL\|SUPPLIED\)\>"
|
||||
syn match abapComplexStatement "\<MOVE-CORRESPONDING\>"
|
||||
syn match abapComplexStatement "\<MULTIPLY-CORRESPONDING\>"
|
||||
syn match abapComplexStatement "\<NEW-LINE\>"
|
||||
syn match abapComplexStatement "\<NEW-PAGE\>"
|
||||
syn match abapComplexStatement "\<NEW-SECTION\>"
|
||||
syn match abapComplexStatement "\<PRINT-CONTROL\>"
|
||||
syn match abapComplexStatement "\<RP-PROVIDE-FROM-LAST\>"
|
||||
syn match abapComplexStatement "\<SELECT-OPTIONS\>"
|
||||
syn match abapComplexStatement "\<SELECTION-SCREEN\>"
|
||||
syn match abapComplexStatement "\<START-OF-SELECTION\>"
|
||||
syn match abapComplexStatement "\<SUBTRACT-CORRESPONDING\>"
|
||||
syn match abapComplexStatement "\<SYNTAX-CHECK\>"
|
||||
syn match abapComplexStatement "\<SYNTAX-TRACE\>"
|
||||
syn match abapComplexStatement "\<TOP-OF-PAGE\>"
|
||||
syn match abapComplexStatement "\<TYPE-POOL\>"
|
||||
syn match abapComplexStatement "\<TYPE-POOLS\>"
|
||||
syn match abapComplexStatement "\<LINE-SIZE\>"
|
||||
syn match abapComplexStatement "\<LINE-COUNT\>"
|
||||
syn match abapComplexStatement "\<MESSAGE-ID\>"
|
||||
syn match abapComplexStatement "\<DISPLAY-MODE\>"
|
||||
syn match abapComplexStatement "\<READ\(-ONLY\)\?\>"
|
||||
|
||||
" ABAP statements
|
||||
syn keyword abapStatement ADD ADD-CORRESPONDING ASSIGN AT AUTHORITY-CHECK
|
||||
syn keyword abapStatement BACK BREAK-POINT
|
||||
syn keyword abapStatement CALL CASE CHECK CLEAR CLOSE CNT COLLECT COMMIT COMMUNICATION COMPUTE CONCATENATE CONDENSE CONSTANTS CONTINUE CONTROLS CONVERT CREATE CURRENCY
|
||||
syn keyword abapStatement DATA DEFINE DELETE DESCRIBE DETAIL DIVIDE DIVIDE-CORRESPONDING DO
|
||||
syn keyword abapStatement EDITOR-CALL ELSE ELSEIF END-OF-DEFINITION END-OF-PAGE END-OF-SELECTION ENDAT ENDCASE ENDDO ENDEXEC ENDFORM ENDFUNCTION ENDIF ENDIFEND ENDLOOP ENDMODULE ENDON ENDPROVIDE ENDSELECT ENDWHILE EXEC EXPORT EXPORTING EXTRACT
|
||||
syn keyword abapStatement FETCH FIELD-GROUPS FIELD-SYMBOLS FIELDS FORM FORMAT FREE FUNCTION FUNCTION-POOL
|
||||
syn keyword abapStatement ADD ALIAS ALIASES ASSERT ASSIGN ASSIGNING AT
|
||||
syn keyword abapStatement BACK
|
||||
syn keyword abapStatement CALL CASE CATCH CHECK CLASS CLEAR CLOSE CNT COLLECT COMMIT COMMUNICATION COMPUTE CONCATENATE CONDENSE CONSTANTS CONTINUE CONTROLS CONVERT CREATE CURRENCY
|
||||
syn keyword abapStatement DATA DEFINE DEFINITION DEFERRED DELETE DESCRIBE DETAIL DIVIDE DO
|
||||
syn keyword abapStatement ELSE ELSEIF ENDAT ENDCASE ENDCLASS ENDDO ENDEXEC ENDFORM ENDFUNCTION ENDIF ENDIFEND ENDINTERFACE ENDLOOP ENDMETHOD ENDMODULE ENDON ENDPROVIDE ENDSELECT ENDTRY ENDWHILE EVENT EVENTS EXEC EXIT EXPORT EXPORTING EXTRACT
|
||||
syn keyword abapStatement FETCH FIELDS FORM FORMAT FREE FROM FUNCTION
|
||||
syn keyword abapStatement GENERATE GET
|
||||
syn keyword abapStatement HIDE
|
||||
syn keyword abapStatement IF IMPORT IMPORTING INDEX INFOTYPES INITIALIZATION INPUT INSERT
|
||||
syn keyword abapStatement LEAVE LIKE LOAD LOCAL LOOP
|
||||
syn keyword abapStatement MESSAGE MODIFY MODULE MOVE MOVE-CORRESPONDING MULTIPLY MULTIPLY-CORRESPONDING
|
||||
syn keyword abapStatement NEW-LINE NEW-PAGE NEW-SECTION
|
||||
syn keyword abapStatement ON OVERLAY
|
||||
syn keyword abapStatement PACK PARAMETERS PERFORM POSITION PRINT-CONTROL PROGRAM PROVIDE PUT
|
||||
syn keyword abapStatement RAISE RANGES READ RECEIVE REFRESH REJECT REPLACE REPORT RESERVE RESTORE ROLLBACK RP-PROVIDE-FROM-LAST
|
||||
syn keyword abapStatement SCAN SCROLL SEARCH SELECT SELECT-OPTIONS SELECTION-SCREEN SET SHIFT SKIP SORT SPLIT START-OF-SELECTION STATICS STOP SUBMIT SUBTRACT SUBTRACT-CORRESPONDING SUM SUMMARY SUPPRESS SYNTAX-CHECK SYNTAX-TRACE
|
||||
syn keyword abapStatement TABLES TOP-OF-PAGE TRANSFER TRANSLATE TYPE TYPE-POOL TYPE-POOLS TYPES
|
||||
syn keyword abapStatement UNPACK UPDATE
|
||||
syn keyword abapStatement IF IMPORT IMPORTING INDEX INFOTYPES INITIALIZATION INTERFACE INTERFACES INPUT INSERT IMPLEMENTATION
|
||||
syn keyword abapStatement LEAVE LIKE LINE LOAD LOCAL LOOP
|
||||
syn keyword abapStatement MESSAGE METHOD METHODS MODIFY MODULE MOVE MULTIPLY
|
||||
syn keyword abapStatement ON OVERLAY OPTIONAL OTHERS
|
||||
syn keyword abapStatement PACK PARAMETERS PERFORM POSITION PROGRAM PROVIDE PUT
|
||||
syn keyword abapStatement RAISE RANGES RECEIVE RECEIVING REDEFINITION REFERENCE REFRESH REJECT REPLACE REPORT RESERVE RESTORE RETURNING ROLLBACK
|
||||
syn keyword abapStatement SCAN SCROLL SEARCH SELECT SET SHIFT SKIP SORT SORTED SPLIT STANDARD STATICS STEP STOP SUBMIT SUBTRACT SUM SUMMARY SUPPRESS
|
||||
syn keyword abapStatement TABLES TIMES TRANSFER TRANSLATE TRY TYPE TYPES
|
||||
syn keyword abapStatement UNASSIGN ULINE UNPACK UPDATE
|
||||
syn keyword abapStatement WHEN WHILE WINDOW WRITE
|
||||
|
||||
" More statemets
|
||||
syn keyword abapStatement LINES
|
||||
syn keyword abapStatement INTO GROUP BY HAVING ORDER BY SINGLE
|
||||
syn keyword abapStatement APPENDING CORRESPONDING FIELDS OF TABLE
|
||||
syn keyword abapStatement LEFT RIGHT OUTER INNER JOIN AS CLIENT SPECIFIED BYPASSING BUFFER ROWS CONNECTING
|
||||
syn keyword abapStatement OCCURS STRUCTURE OBJECT PROPERTY
|
||||
syn keyword abapStatement CASTING APPEND RAISING VALUE COLOR
|
||||
syn keyword abapStatement LINE-SIZE LINE-COUNT MESSAGE-ID
|
||||
syn keyword abapStatement CHANGING EXCEPTIONS DEFAULT CHECKBOX COMMENT
|
||||
syn keyword abapStatement ID NUMBER FOR DISPLAY-MODE TITLE OUTPUT
|
||||
|
||||
" More multi-word statements
|
||||
syn match abapStatement "\(\W\|^\)\(WITH\W\+\(HEADER\W\+LINE\|FRAME\|KEY\)\|WITH\)\(\W\|$\)"ms=s+1,me=e-1
|
||||
syn match abapStatement "\(\W\|^\)NO\W\+STANDARD\W\+PAGE\W\+HEADING\(\W\|$\)"ms=s+1,me=e-1
|
||||
syn match abapStatement "\(\W\|^\)\(EXIT\W\+FROM\W\+STEP\W\+LOOP\|EXIT\)\(\W\|$\)"ms=s+1,me=e-1
|
||||
syn match abapStatement "\(\W\|^\)\(BEGIN\W\+OF\W\+\(BLOCK\|LINE\)\|BEGIN\W\+OF\)\(\W\|$\)"ms=s+1,me=e-1
|
||||
syn match abapStatement "\(\W\|^\)\(END\W\+OF\W\+\(BLOCK\|LINE\)\|END\W\+OF\)\(\W\|$\)"ms=s+1,me=e-1
|
||||
syn match abapStatement "\(\W\|^\)IS\W\+INITIAL\(\W\|$\)"ms=s+1,me=e-1
|
||||
syn match abapStatement "\(\W\|^\)NO\W\+INTERVALS\(\W\|$\)"ms=s+1,me=e-1
|
||||
syn match abapStatement "\(\W\|^\)SEPARATED\W\+BY\(\W\|$\)"ms=s+1,me=e-1
|
||||
syn match abapStatement "\(\W\|^\)\(USING\W\+\(EDIT\W\+MASK\)\|USING\)\(\W\|$\)"ms=s+1,me=e-1
|
||||
syn match abapStatement "\(\W\|^\)\(WHERE\W\+\(LINE\)\)\(\W\|$\)"ms=s+1,me=e-1
|
||||
syn match abapStatement "\(\W\|^\)RADIOBUTTON\W\+GROUP\(\W\|$\)"ms=s+1,me=e-1
|
||||
syn match abapStatement "\(\W\|^\)REF\W\+TO\(\W\|$\)"ms=s+1,me=e-1
|
||||
syn keyword abapStatement CHANGING EXCEPTION EXCEPTIONS DEFAULT CHECKBOX COMMENT
|
||||
syn keyword abapStatement ID NUMBER FOR TITLE OUTPUT
|
||||
|
||||
" Special ABAP specific tables:
|
||||
syn match abapSpecial "\(\W\|^\)\(sy\|\(p\|pa\)\d\d\d\d\|t\d\d\d.\|innnn\)\(\W\|$\)"ms=s+1,me=e-1
|
||||
syn match abapSpecialTables "\(sy\|\(p\|pa\)\d\d\d\d\|t\d\d\d.\|innnn\)-"me=e-1 contained
|
||||
syn match abapSpecial "\(\W\|^\)\w\+-\(\w\+-\w\+\|\w\+\)"ms=s+1 contains=abapSpecialTables
|
||||
syn match abapSpecialTables "\<\(sy\|\(p\|pa\)\d\d\d\d\|t\d\d\d.\|innnn\)-"me=e-1 contained
|
||||
syn match abapStructure "\<\w\+-[^\>]"me=e-2 contains=abapSpecialTables,abapStatement,abapComplexStatement
|
||||
syn match abapField "-\w\+"ms=s+1
|
||||
|
||||
" Pointer
|
||||
syn match abapSpecial "<\w\+>"
|
||||
|
||||
" Abap constants:
|
||||
" Abap common constants:
|
||||
syn keyword abapSpecial TRUE FALSE NULL SPACE
|
||||
|
||||
" Includes
|
||||
syn region abapInclude start="include" end="." contains=abapComment
|
||||
|
||||
" Types
|
||||
syn keyword abapTypes c n i p f d t x
|
||||
syn keyword abapTypes c n i p f d t x string xstring decfloat16 decfloat34
|
||||
|
||||
" Atritmitic operators
|
||||
syn keyword abapOperator abs sign ceil floor trunc frac acos asin atan cos sin tan
|
||||
syn keyword abapOperator cosh sinh tanh exp log log10 sqrt
|
||||
|
||||
" String operators
|
||||
syn keyword abapOperator strlen xstrlen charlen numofchar dbmaxlen
|
||||
syn keyword abapStatement strlen xstrlen charlen numofchar dbmaxlen
|
||||
|
||||
" Table operators
|
||||
syn keyword abapOperator lines
|
||||
|
||||
" Table operators (SELECT operators)
|
||||
syn keyword abapOperator INTO FROM WHERE GROUP BY HAVING ORDER BY SINGLE
|
||||
syn keyword abapOperator APPENDING CORRESPONDING FIELDS OF TABLE
|
||||
syn keyword abapOperator LEFT RIGHT OUTER INNER JOIN AS CLIENT SPECIFIED BYPASSING BUFFER UP TO ROWS CONNECTING
|
||||
syn keyword abapOperator EQ NE LT LE GT GE NOT AND OR XOR IN LIKE BETWEEN
|
||||
|
||||
" An error? Not strictly... but cannot think of reason this is intended.
|
||||
@@ -119,6 +172,7 @@ syn match abapError "\.\."
|
||||
syn region abapComment start="^\*" end="$" contains=abapTodo
|
||||
syn match abapComment "\".*" contains=abapTodo
|
||||
syn keyword abapTodo contained TODO NOTE
|
||||
syn match abapTodo "\#EC\W\+\w\+"
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
@@ -134,13 +188,20 @@ if version >= 508 || !exists("did_abap_syntax_inits")
|
||||
HiLink abapError Error
|
||||
HiLink abapComment Comment
|
||||
HiLink abapInclude Include
|
||||
HiLink abapStatement Statement
|
||||
HiLink abapComplexStatement Statement
|
||||
HiLink abapSpecial Special
|
||||
HiLink abapSpecialTables PreProc
|
||||
HiLink abapNamespace Special
|
||||
HiLink abapSpecialTables Special
|
||||
HiLink abapSymbolOperator abapOperator
|
||||
HiLink abapOperator Operator
|
||||
HiLink abapStatement Statement
|
||||
HiLink abapCharString String
|
||||
HiLink abapString String
|
||||
HiLink abapFloat Float
|
||||
HiLink abapTypes Type
|
||||
HiLink abapSymbol Structure
|
||||
HiLink abapStructure Structure
|
||||
HiLink abapField Variable
|
||||
HiLink abapNumber Number
|
||||
HiLink abapHex Number
|
||||
|
||||
|
||||
493
runtime/syntax/aptconf.vim
Normal file
493
runtime/syntax/aptconf.vim
Normal file
@@ -0,0 +1,493 @@
|
||||
" Vim syntax file
|
||||
" Language: APT config file
|
||||
" Maintainer: Yann Amar <quidame@poivron.org>
|
||||
" Last Change: 2012 Oct 06
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x and 7.x: Quit when a syntax file was already loaded
|
||||
if !exists("main_syntax")
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
let main_syntax = 'aptconf'
|
||||
endif
|
||||
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
|
||||
" Errors:
|
||||
" Catch all that is not overridden by next rules/items:
|
||||
syn match aptconfError display '[^[:blank:]]'
|
||||
syn match aptconfError display '^[^[:blank:]][^:{]*'
|
||||
|
||||
" Options:
|
||||
" Define a general regular expression for the options that are not defined
|
||||
" later as keywords. Following apt.conf(5), we know that options are case
|
||||
" insensitive, and can contain alphanumeric characters and '/-:._+'; we
|
||||
" assume that there can not be consecutive colons (::) which is used as
|
||||
" syntax operator; we also assume that an option name can not start or end
|
||||
" by a colon.
|
||||
syn case ignore
|
||||
syn match aptconfRegexpOpt '[-[:alnum:]/.+_]\+\(:[-[:alnum:]/.+_]\+\)*' contained display
|
||||
|
||||
" Keywords:
|
||||
setlocal iskeyword+=/,-,.,_,+
|
||||
"setlocal iskeyword+=: is problematic, because of the '::' separator
|
||||
|
||||
" Incomplete keywords will be treated differently than completely bad strings:
|
||||
syn keyword aptconfGroupIncomplete
|
||||
\ a[cquire] a[ptitude] d[ebtags] d[ebug] d[ir] d[pkg] d[select]
|
||||
\ o[rderlist] p[ackagemanager] p[kgcachegen] q[uiet] r[pm]
|
||||
\ u[nattended-upgrade]
|
||||
|
||||
" Only the following keywords can be used at toplevel (to begin an option):
|
||||
syn keyword aptconfGroup
|
||||
\ acquire apt aptitude debtags debug dir dpkg dselect
|
||||
\ orderlist packagemanager pkgcachegen quiet rpm
|
||||
\ unattended-upgrade
|
||||
|
||||
" Possible options for each group:
|
||||
" Acquire: {{{
|
||||
syn keyword aptconfAcquire contained
|
||||
\ cdrom Check-Valid-Until CompressionTypes ForceHash ftp gpgv
|
||||
\ GzipIndexes http https Languages Max-ValidTime Min-ValidTime PDiffs
|
||||
\ Queue-Mode Retries Source-Symlinks
|
||||
|
||||
syn keyword aptconfAcquireCDROM contained
|
||||
\ AutoDetect CdromOnly Mount UMount
|
||||
|
||||
syn keyword aptconfAcquireCompressionTypes contained
|
||||
\ bz2 lzma gz Order
|
||||
|
||||
syn keyword aptconfAcquireFTP contained
|
||||
\ Passive Proxy ProxyLogin Timeout
|
||||
|
||||
syn keyword aptconfAcquireHTTP contained
|
||||
\ AllowRedirect Dl-Limit Max-Age No-Cache No-Store Pipeline-Depth
|
||||
\ Proxy Timeout User-Agent
|
||||
|
||||
syn keyword aptconfAcquireHTTPS contained
|
||||
\ CaInfo CaPath CrlFile IssuerCert SslCert SslForceVersion SslKey
|
||||
\ Verify-Host Verify-Peer
|
||||
|
||||
syn keyword aptconfAcquireMaxValidTime contained
|
||||
\ Debian Debian-Security
|
||||
|
||||
syn keyword aptconfAcquirePDiffs contained
|
||||
\ FileLimit SizeLimit
|
||||
|
||||
syn cluster aptconfAcquire_ contains=aptconfAcquire,
|
||||
\ aptconfAcquireCDROM,aptconfAcquireCompressionTypes,aptconfAcquireFTP,
|
||||
\ aptconfAcquireHTTP,aptconfAcquireHTTPS,aptconfAcquireMaxValidTime,
|
||||
\ aptconfAcquirePDiffs
|
||||
" }}}
|
||||
" Apt: {{{
|
||||
syn keyword aptconfApt contained
|
||||
\ Architecture Architectures Archive Authentication AutoRemove
|
||||
\ Build-Essential Cache Cache-Grow Cache-Limit Cache-Start CDROM
|
||||
\ Changelogs Clean-Installed Compressor Default-Release
|
||||
\ Force-LoopBreak Get Ignore-Hold Immediate-Configure
|
||||
\ Install-Recommends Install-Suggests Keep-Fds List-Cleanup
|
||||
\ NeverAutoRemove Never-MarkAuto-Sections Periodic Status-Fd Update
|
||||
|
||||
syn keyword aptconfAptAuthentication contained
|
||||
\ TrustCDROM
|
||||
|
||||
syn keyword aptconfAptAutoRemove contained
|
||||
\ RecommendsImportant SuggestsImportant
|
||||
|
||||
syn keyword aptconfAptCache contained
|
||||
\ AllNames AllVersions Generate GivenOnly Important Installed NamesOnly
|
||||
\ RecurseDepends ShowFull
|
||||
|
||||
syn keyword aptconfAptCDROM contained
|
||||
\ Fast NoAct NoMount Rename
|
||||
|
||||
syn keyword aptconfAptChangelogs contained
|
||||
\ Server
|
||||
|
||||
syn keyword aptconfAptCompressor contained
|
||||
\ bzip2 gzip lzma xz
|
||||
|
||||
syn keyword aptconfAptCompressorAll contained
|
||||
\ Binary CompressArg Cost Extension Name UncompressArg
|
||||
|
||||
syn keyword aptconfAptGet contained
|
||||
\ AllowUnauthenticated Arch-Only Assume-No Assume-Yes AutomaticRemove
|
||||
\ Build-Dep-Automatic Compile Diff-Only Download Download-Only Dsc-Only
|
||||
\ Fix-Broken Fix-Missing Force-Yes HideAutoRemove Host-Architecture
|
||||
\ List-Cleanup Only-Source Print-URIs Purge ReInstall Remove
|
||||
\ Show-Upgraded Show-User-Simulation-Note Show-Versions Simulate
|
||||
\ Tar-Only Trivial-Only Upgrade
|
||||
|
||||
syn keyword aptconfAptPeriodic contained
|
||||
\ AutocleanInterval BackupArchiveInterval BackupLevel
|
||||
\ Download-Upgradeable-Packages MaxAge MaxSize MinAge
|
||||
\ Unattended-Upgrade Update-Package-Lists Verbose
|
||||
|
||||
syn keyword aptconfAptUpdate contained
|
||||
\ Pre-Invoke Post-Invoke Post-Invoke-Success
|
||||
|
||||
syn cluster aptconfApt_ contains=aptconfApt,
|
||||
\ aptconfAptAuthentication,aptconfAptAutoRemove,aptconfAptCache,
|
||||
\ aptconfAptCDROM,aptconfAptChangelogs,aptconfAptCompressor,
|
||||
\ aptconfAptCompressorAll,aptconfAptGet,aptconfAptPeriodic,
|
||||
\ aptconfAptUpdate
|
||||
" }}}
|
||||
" Aptitude: {{{
|
||||
syn keyword aptconfAptitude contained
|
||||
\ Allow-Null-Upgrade Always-Use-Safe-Resolver Autoclean-After-Update
|
||||
\ Auto-Install Auto-Fix-Broken Cmdline Debtags-Binary
|
||||
\ Debtags-Update-Options Delete-Unused Delete-Unused-Pattern
|
||||
\ Display-Planned-Action Forget-New-On-Install Forget-New-On-Update
|
||||
\ Get-Root-Command Ignore-Old-Tmp Ignore-Recommends-Important
|
||||
\ Keep-Recommends Keep-Suggests Keep-Unused-Pattern LockFile Log
|
||||
\ Logging Parse-Description-Bullets Pkg-Display-Limit ProblemResolver
|
||||
\ Purge-Unused Recommends-Important Safe-Resolver Screenshot Sections
|
||||
\ Simulate Spin-Interval Suggests-Important Suppress-Read-Only-Warning
|
||||
\ Theme Track-Dselect-State UI Warn-Not-Root
|
||||
|
||||
syn keyword aptconfAptitudeCmdline contained
|
||||
\ Always-Prompt Assume-Yes Disable-Columns Download-Only Fix-Broken
|
||||
\ Ignore-Trust-Violations Package-Display-Format Package-Display-Width
|
||||
\ Progress Request-Strictness Resolver-Debug Resolver-Dump
|
||||
\ Resolver-Show-Steps Safe-Upgrade Show-Deps Show-Size-Changes
|
||||
\ Show-Versions Show-Why Simulate Verbose Version-Display-Format
|
||||
\ Versions-Group-By Versions-Show-Package-Names Visual-Preview
|
||||
\ Why-Display-Mode
|
||||
|
||||
syn keyword aptconfAptitudeCmdlineProgress contained
|
||||
\ Percent-On-Right Retain-Completed
|
||||
|
||||
syn keyword aptconfAptitudeCmdlineSafeUpgrade contained
|
||||
\ No-New-Installs
|
||||
|
||||
syn keyword aptconfAptitudeLogging contained
|
||||
\ File Levels
|
||||
|
||||
syn keyword aptconfAptitudeProblemResolver contained
|
||||
\ Allow-Break-Holds BreakHoldScore Break-Hold-Level BrokenScore
|
||||
\ DefaultResolutionScore Discard-Null-Solution
|
||||
\ EssentialRemoveScore ExtraScore FullReplacementScore FutureHorizon
|
||||
\ Hints ImportantScore Infinity InstallScore Keep-All-Level KeepScore
|
||||
\ NonDefaultScore Non-Default-Level OptionalScore PreserveAutoScore
|
||||
\ PreserveManualScore RemoveScore Remove-Essential-Level Remove-Level
|
||||
\ RequiredScore ResolutionScore Safe-Level SolutionCost StandardScore
|
||||
\ StepLimit StepScore Trace-Directory Trace-File
|
||||
\ UndoFullReplacementScore UnfixedSoftScore UpgradeScore
|
||||
|
||||
syn keyword aptconfAptitudeSafeResolver contained
|
||||
\ No-New-Installs No-New-Upgrades Show-Resolver-Actions
|
||||
|
||||
syn keyword aptconfAptitudeScreenshot contained
|
||||
\ Cache-Max IncrementalLoadLimit
|
||||
|
||||
syn keyword aptconfAptitudeSections contained
|
||||
\ Descriptions Top-Sections
|
||||
|
||||
syn keyword aptconfAptitudeUI contained
|
||||
\ Advance-On-Action Auto-Show-Reasons Default-Grouping
|
||||
\ Default-Package-View Default-Preview-Grouping Default-Sorting
|
||||
\ Description-Visible-By-Default Exit-On-Last-Close Fill-Text
|
||||
\ Flat-View-As-First-View HelpBar Incremental-Search InfoAreaTabs
|
||||
\ KeyBindings MenuBar-Autohide Minibuf-Download-Bar Minibuf-Prompts
|
||||
\ New-package-Commands Package-Display-Format Package-Header-Format
|
||||
\ Package-Status-Format Pause-After-Download Preview-Limit
|
||||
\ Prompt-On-Exit Styles ViewTabs
|
||||
|
||||
syn keyword aptconfAptitudeUIStyles contained
|
||||
\ Bullet ChangeLogNewerVersion Default DepBroken DisabledMenuEntry
|
||||
\ DownloadHit DownloadProgress EditLine Error Header HighlightedMenuBar
|
||||
\ HighlightedMenuEntry MediaChange MenuBar MenuBorder MenuEntry
|
||||
\ MineBomb MineBorder MineFlag MineNumber1 MineNumber2 MineNumber3
|
||||
\ MineNumber4 MineNumber5 MineNumber6 MineNumber7 MineNumber8
|
||||
\ MultiplexTab MultiplexTabHighlighted PkgBroken PkgBrokenHighlighted
|
||||
\ PkgIsInstalled PkgIsInstalledHighlighted PkgNotInstalled
|
||||
\ PkgNotInstalledHighlighted PkgToDowngrade PkgToDowngradeHighlighted
|
||||
\ PkgToHold PkgToHoldHighlighted PkgToInstall PkgToInstallHighlighted
|
||||
\ PkgToRemove PkgToRemoveHighlighted PkgToUpgrade
|
||||
\ PkgToUpgradeHighlighted Progress SolutionActionApproved
|
||||
\ SolutionActionRejected Status TreeBackground TrustWarning
|
||||
|
||||
syn keyword aptconfAptitudeUIStylesElements contained
|
||||
\ bg clear fg flip set
|
||||
|
||||
syn cluster aptconfAptitude_ contains=aptconfAptitude,
|
||||
\ aptconfAptitudeCmdline,aptconfAptitudeCmdlineProgress,
|
||||
\ aptconfAptitudeCmdlineSafeUpgrade,aptconfAptitudeLogging,
|
||||
\ aptconfAptitudeProblemResolver,aptconfAptitudeSafeResolver,
|
||||
\ aptconfAptitudeScreenshot,aptconfAptitudeSections,aptconfAptitudeUI,
|
||||
\ aptconfAptitudeUIStyles,aptconfAptitudeUIStylesElements
|
||||
" }}}
|
||||
" DebTags: {{{
|
||||
syn keyword aptconfDebTags contained
|
||||
\ Vocabulary
|
||||
|
||||
syn cluster aptconfDebTags_ contains=aptconfDebTags
|
||||
" }}}
|
||||
" Debug: {{{
|
||||
syn keyword aptconfDebug contained
|
||||
\ Acquire aptcdrom BuildDeps Hashes IdentCdrom Nolocking
|
||||
\ pkgAcquire pkgAutoRemove pkgCacheGen pkgDepCache pkgDPkgPM
|
||||
\ pkgDPkgProgressReporting pkgInitialize pkgOrderList
|
||||
\ pkgPackageManager pkgPolicy pkgProblemResolver sourceList
|
||||
|
||||
syn keyword aptconfDebugAcquire contained
|
||||
\ cdrom Ftp gpgv Http Https netrc
|
||||
|
||||
syn keyword aptconfDebugPkgAcquire contained
|
||||
\ Auth Diffs RRed Worker
|
||||
|
||||
syn keyword aptconfDebugPkgDepCache contained
|
||||
\ AutoInstall Marker
|
||||
|
||||
syn keyword aptconfDebugPkgProblemResolver contained
|
||||
\ ShowScores
|
||||
|
||||
syn cluster aptconfDebug_ contains=aptconfDebug,
|
||||
\ aptconfDebugAcquire,aptconfDebugPkgAcquire,aptconfDebugPkgDepCache,
|
||||
\ aptconfDebugPkgProblemResolver
|
||||
" }}}
|
||||
" Dir: {{{
|
||||
syn keyword aptconfDir contained
|
||||
\ Aptitude Bin Cache Etc Ignore-Files-Silently Log Media Parts RootDir
|
||||
\ State
|
||||
|
||||
syn keyword aptconfDirAptitude contained
|
||||
\ state
|
||||
|
||||
syn keyword aptconfDirBin contained
|
||||
\ apt-get apt-cache dpkg dpkg-buildpackage dpkg-source gpg gzip Methods
|
||||
\ solvers
|
||||
|
||||
syn keyword aptconfDirCache contained
|
||||
\ Archives Backup pkgcache srcpkgcache
|
||||
|
||||
syn keyword aptconfDirEtc contained
|
||||
\ Main Netrc Parts Preferences PreferencesParts SourceList SourceParts
|
||||
\ VendorList VendorParts Trusted TrustedParts
|
||||
|
||||
syn keyword aptconfDirLog contained
|
||||
\ History Terminal
|
||||
|
||||
syn keyword aptconfDirMedia contained
|
||||
\ MountPath
|
||||
|
||||
syn keyword aptconfDirState contained
|
||||
\ cdroms extended_states Lists mirrors status
|
||||
|
||||
syn cluster aptconfDir_ contains=aptconfDir,
|
||||
\ aptconfDirAptitude,aptconfDirBin,aptconfDirCache,aptconfDirEtc,
|
||||
\ aptconfDirLog,aptconfDirMedia,aptconfDirState
|
||||
" }}}
|
||||
" DPkg: {{{
|
||||
syn keyword aptconfDPkg contained
|
||||
\ Build-Options Chroot-Directory ConfigurePending FlushSTDIN MaxArgs
|
||||
\ MaxBytes NoTriggers options Pre-Install-Pkgs Pre-Invoke Post-Invoke
|
||||
\ Run-Directory StopOnError Tools TriggersPending
|
||||
|
||||
syn keyword aptconfDPkgTools contained
|
||||
\ Options Version
|
||||
|
||||
syn cluster aptconfDPkg_ contains=aptconfDPkg,
|
||||
\ aptconfDPkgOrderList,aptconfDPkgOrderListScore,aptconfDPkgTools
|
||||
" }}}
|
||||
" DSelect: {{{
|
||||
syn keyword aptconfDSelect contained
|
||||
\ CheckDir Clean Options PromptAfterUpdate UpdateOptions
|
||||
|
||||
syn cluster aptconfDSelect_ contains=aptconfDSelect
|
||||
" }}}
|
||||
" OrderList: {{{
|
||||
syn keyword aptconfOrderList contained
|
||||
\ Score
|
||||
|
||||
syn keyword aptconfOrderListScore contained
|
||||
\ Delete Essential Immediate PreDepends
|
||||
|
||||
syn cluster aptconfOrderList_ contains=aptconfOrderList,
|
||||
\ aptconfOrderListScore
|
||||
" }}}
|
||||
" PackageManager: {{{
|
||||
syn keyword aptconfPackageManager contained
|
||||
\ Configure
|
||||
|
||||
syn cluster aptconfPackageManager_ contains=aptconfPackageManager
|
||||
" }}}
|
||||
" PkgCacheGen: {{{
|
||||
syn keyword aptconfPkgCacheGen contained
|
||||
\ Essential
|
||||
|
||||
syn cluster aptconfPkgCacheGen_ contains=aptconfPkgCacheGen
|
||||
" }}}
|
||||
" Quiet: {{{
|
||||
syn keyword aptconfQuiet contained
|
||||
\ NoUpdate
|
||||
|
||||
syn cluster aptconfQuiet_ contains=aptconfQuiet
|
||||
" }}}
|
||||
" Rpm: {{{
|
||||
syn keyword aptconfRpm contained
|
||||
\ Post-Invoke Pre-Invoke
|
||||
|
||||
syn cluster aptconfRpm_ contains=aptconfRpm
|
||||
" }}}
|
||||
" Unattened Upgrade: {{{
|
||||
syn keyword aptconfUnattendedUpgrade contained
|
||||
\ AutoFixInterruptedDpkg Automatic-Reboot InstallOnShutdown Mail
|
||||
\ MailOnlyOnError MinimalSteps Origins-Pattern Package-Blacklist
|
||||
\ Remove-Unused-Dependencies
|
||||
|
||||
syn cluster aptconfUnattendedUpgrade_ contains=aptconfUnattendedUpgrade
|
||||
" }}}
|
||||
|
||||
syn case match
|
||||
|
||||
" Now put all the keywords (and 'valid' options) in a single cluster:
|
||||
syn cluster aptconfOptions contains=aptconfRegexpOpt,
|
||||
\ @aptconfAcquire_,@aptconfApt_,@aptconfAptitude_,@aptconfDebTags_,
|
||||
\ @aptconfDebug_,@aptconfDir_,@aptconfDPkg_,@aptconfDSelect_,
|
||||
\ @aptconfOrderList_,@aptconfPackageManager_,@aptconfPkgCacheGen_,
|
||||
\ @aptconfQuiet_,@aptconfRpm_,@aptconfUnattendedUpgrade_
|
||||
|
||||
" Syntax:
|
||||
syn match aptconfSemiColon ';'
|
||||
syn match aptconfDoubleColon '::'
|
||||
syn match aptconfCurlyBraces '[{}]'
|
||||
syn region aptconfValue start='"' end='"' oneline display
|
||||
syn region aptconfInclude matchgroup=aptconfOperator start='{' end='}' contains=ALLBUT,aptconfGroup,aptconfGroupIncomplete,@aptconfCommentSpecial
|
||||
syn region aptconfInclude matchgroup=aptconfOperator start='::' end='{'me=s-1 contains=@aptconfOptions,aptconfError display
|
||||
syn region aptconfInclude matchgroup=aptconfOperator start='::' end='::\|\s'me=s-1 oneline contains=@aptconfOptions,aptconfError display
|
||||
|
||||
" Basic Syntax Errors: XXX avoid to generate false positives !!!
|
||||
"
|
||||
" * Invalid comment format (seems to not cause errors, but...):
|
||||
syn match aptconfAsError display '^#.*'
|
||||
"
|
||||
" * When a semicolon is missing after a double-quoted string:
|
||||
" There are some cases (for example in the Dir group of options, but not only)
|
||||
" where this syntax is valid. So we don't treat it as a strict error.
|
||||
syn match aptconfAsError display '"[^"]*"[^;]'me=e-1
|
||||
syn match aptconfAsError display '"[^"]*"$'
|
||||
"
|
||||
" * When double quotes are missing around a value (before a semicolon):
|
||||
" This omission has no effect if the value is a single string (without blank
|
||||
" characters). But apt.conf(5) says that quotes are required, and this item
|
||||
" avoids to match unquoted keywords.
|
||||
syn match aptconfAsError display '\s[^"[:blank:]]*[^}"];'me=e-1
|
||||
"
|
||||
" * When only one double quote is missing around a value (before a semicolon):
|
||||
" No comment for that: it must be highly visible.
|
||||
syn match aptconfError display '\(\s\|;\)"[^"[:blank:]]\+;'me=e-1
|
||||
syn match aptconfError display '\(\s\|;\)[^"[:blank:]]\+";'me=e-1
|
||||
"
|
||||
" * When space is missing between option and (quoted) value:
|
||||
" TODO (partially implemented)
|
||||
syn match aptconfError display '::[^[:blank:]]*"'
|
||||
|
||||
" Special Actions:
|
||||
syn match aptconfAction '^#\(clear\|include\)\>'
|
||||
syn region aptconfAction matchgroup=aptconfAction start='^#clear\>' end=';'me=s-1 oneline contains=aptconfGroup,aptconfDoubleColon,@aptconfOptions
|
||||
syn region aptconfAction matchgroup=aptconfAction start='^#include\>' end=';'me=s-1 oneline contains=aptconfRegexpOpt
|
||||
|
||||
" Comments:
|
||||
syn keyword aptconfTodo TODO FIXME NOTE XXX contained
|
||||
syn cluster aptconfCommentSpecial contains=@Spell,aptconfTodo
|
||||
syn match aptconfComment '//.*' contains=@aptconfCommentSpecial
|
||||
syn region aptconfComment start='/\*' end='\*/' contains=@aptconfCommentSpecial
|
||||
|
||||
" Highlight Definitions:
|
||||
hi def link aptconfTodo Todo
|
||||
hi def link aptconfError Error
|
||||
hi def link aptconfComment Comment
|
||||
hi def link aptconfOperator Operator
|
||||
|
||||
hi def link aptconfAction PreProc
|
||||
hi def link aptconfOption Type
|
||||
hi def link aptconfValue String
|
||||
hi def link aptconfRegexpOpt Normal
|
||||
hi def link aptconfAsError Special
|
||||
|
||||
hi def link aptconfSemiColon aptconfOperator
|
||||
hi def link aptconfDoubleColon aptconfOperator
|
||||
hi def link aptconfCurlyBraces aptconfOperator
|
||||
|
||||
hi def link aptconfGroupIncomplete Special
|
||||
hi def link aptconfGroup aptconfOption
|
||||
|
||||
hi def link aptconfAcquire aptconfOption
|
||||
hi def link aptconfAcquireCDROM aptconfOption
|
||||
hi def link aptconfAcquireCompressionTypes aptconfOption
|
||||
hi def link aptconfAcquireFTP aptconfOption
|
||||
hi def link aptconfAcquireHTTP aptconfOption
|
||||
hi def link aptconfAcquireHTTPS aptconfOption
|
||||
hi def link aptconfAcquireMaxValidTime aptconfOption
|
||||
hi def link aptconfAcquirePDiffs aptconfOption
|
||||
|
||||
hi def link aptconfApt aptconfOption
|
||||
hi def link aptconfAptAuthentication aptconfOption
|
||||
hi def link aptconfAptAutoRemove aptconfOption
|
||||
hi def link aptconfAptCache aptconfOption
|
||||
hi def link aptconfAptCDROM aptconfOption
|
||||
hi def link aptconfAptChangelogs aptconfOption
|
||||
hi def link aptconfAptCompressor aptconfOption
|
||||
hi def link aptconfAptCompressorAll aptconfOption
|
||||
hi def link aptconfAptGet aptconfOption
|
||||
hi def link aptconfAptPeriodic aptconfOption
|
||||
hi def link aptconfAptUpdate aptconfOption
|
||||
|
||||
hi def link aptconfAptitude aptconfOption
|
||||
hi def link aptconfAptitudeCmdline aptconfOption
|
||||
hi def link aptconfAptitudeCmdlineProgress aptconfOption
|
||||
hi def link aptconfAptitudeCmdlineSafeUpgrade aptconfOption
|
||||
hi def link aptconfAptitudeLogging aptconfOption
|
||||
hi def link aptconfAptitudeProblemResolver aptconfOption
|
||||
hi def link aptconfAptitudeSafeResolver aptconfOption
|
||||
hi def link aptconfAptitudeScreenshot aptconfOption
|
||||
hi def link aptconfAptitudeSections aptconfOption
|
||||
hi def link aptconfAptitudeUI aptconfOption
|
||||
hi def link aptconfAptitudeUIStyles aptconfOption
|
||||
hi def link aptconfAptitudeUIStylesElements aptconfOption
|
||||
|
||||
hi def link aptconfDebTags aptconfOption
|
||||
|
||||
hi def link aptconfDebug aptconfOption
|
||||
hi def link aptconfDebugAcquire aptconfOption
|
||||
hi def link aptconfDebugPkgAcquire aptconfOption
|
||||
hi def link aptconfDebugPkgDepCache aptconfOption
|
||||
hi def link aptconfDebugPkgProblemResolver aptconfOption
|
||||
|
||||
hi def link aptconfDir aptconfOption
|
||||
hi def link aptconfDirAptitude aptconfOption
|
||||
hi def link aptconfDirBin aptconfOption
|
||||
hi def link aptconfDirCache aptconfOption
|
||||
hi def link aptconfDirEtc aptconfOption
|
||||
hi def link aptconfDirLog aptconfOption
|
||||
hi def link aptconfDirMedia aptconfOption
|
||||
hi def link aptconfDirState aptconfOption
|
||||
|
||||
hi def link aptconfDPkg aptconfOption
|
||||
hi def link aptconfDPkgTools aptconfOption
|
||||
|
||||
hi def link aptconfDSelect aptconfOption
|
||||
|
||||
hi def link aptconfOrderList aptconfOption
|
||||
hi def link aptconfOrderListScore aptconfOption
|
||||
|
||||
hi def link aptconfPackageManager aptconfOption
|
||||
|
||||
hi def link aptconfPkgCacheGen aptconfOption
|
||||
|
||||
hi def link aptconfQuiet aptconfOption
|
||||
|
||||
hi def link aptconfRpm aptconfOption
|
||||
|
||||
hi def link aptconfUnattendedUpgrade aptconfOption
|
||||
|
||||
let b:current_syntax = "aptconf"
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
@@ -2,7 +2,7 @@
|
||||
" Language: ASN.1
|
||||
" Maintainer: Claudio Fleiner <claudio@fleiner.com>
|
||||
" URL: http://www.fleiner.com/vim/syntax/asn.vim
|
||||
" Last Change: 2001 Apr 26
|
||||
" Last Change: 2012 Oct 05
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
@@ -12,6 +12,9 @@ elseif exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
" keyword definitions
|
||||
syn keyword asnExternal DEFINITIONS BEGIN END IMPORTS EXPORTS FROM
|
||||
syn match asnExternal "\<IMPLICIT\s\+TAGS\>"
|
||||
@@ -76,6 +79,8 @@ if version >= 508 || !exists("did_asn_syn_inits")
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
let b:current_syntax = "asn"
|
||||
|
||||
" vim: ts=8
|
||||
|
||||
@@ -1,25 +1,25 @@
|
||||
" Vim syntax file
|
||||
" Language: CL
|
||||
" (pronounced alphabetically, and NOT known as Clever)
|
||||
" (CL was created by Multibase, http://www.mbase.com.au)
|
||||
" Language: CL
|
||||
" (pronounced alphabetically, and NOT known as Clever)
|
||||
" (CL was created by Multibase, http://www.mbase.com.au)
|
||||
" Filename extensions: *.ent
|
||||
" *.eni
|
||||
" *.eni
|
||||
" Maintainer: Philip Uren <philuSPAX@ieee.org> Remove SPAX spam block
|
||||
" Version: 4
|
||||
" Last Change: May 11 2012
|
||||
" Version: 5
|
||||
" Last Change: Aug 16 2012
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
finish
|
||||
finish
|
||||
endif
|
||||
|
||||
if version >= 600
|
||||
setlocal iskeyword=@,48-57,_,-,
|
||||
setlocal iskeyword=@,48-57,_,-,
|
||||
else
|
||||
set iskeyword=@,48-57,_,-,
|
||||
set iskeyword=@,48-57,_,-,
|
||||
endif
|
||||
|
||||
syn case ignore
|
||||
@@ -27,87 +27,87 @@ syn case ignore
|
||||
syn sync lines=300
|
||||
|
||||
"If/else/elsif/endif and while/wend mismatch errors
|
||||
syn match clifError "\<wend\>"
|
||||
syn match clifError "\<elsif\>"
|
||||
syn match clifError "\<else\>"
|
||||
syn match clifError "\<endif\>"
|
||||
syn match clifError "\<wend\>"
|
||||
syn match clifError "\<elsif\>"
|
||||
syn match clifError "\<else\>"
|
||||
syn match clifError "\<endif\>"
|
||||
|
||||
syn match clSpaceError "\s\+$"
|
||||
syn match clSpaceError "\s\+$"
|
||||
|
||||
" If and while regions
|
||||
syn region clLoop transparent matchgroup=clWhile start="\<while\>" matchgroup=clWhile end="\<wend\>" contains=ALLBUT,clBreak,clProcedure
|
||||
syn region clIf transparent matchgroup=clConditional start="\<if\>" matchgroup=clConditional end="\<endif\>" contains=ALLBUT,clBreak,clProcedure
|
||||
syn region clLoop transparent matchgroup=clWhile start="\<while\>" matchgroup=clWhile end="\<wend\>" contains=ALLBUT,clBreak,clProcedure
|
||||
syn region clIf transparent matchgroup=clConditional start="\<if\>" matchgroup=clConditional end="\<endif\>" contains=ALLBUT,clBreak,clProcedure
|
||||
|
||||
" Make those TODO notes and debugging stand out!
|
||||
syn keyword clTodo contained TODO BUG DEBUG FIX
|
||||
syn match clNeedsWork contained "NEED[S]*\s\s*WORK"
|
||||
syn keyword clDebug contained debug
|
||||
syn keyword clTodo contained TODO BUG DEBUG FIX
|
||||
syn match clNeedsWork contained "NEED[S]*\s\s*WORK"
|
||||
syn keyword clDebug contained debug
|
||||
|
||||
syn match clComment "#.*$" contains=clTodo,clNeedsWork
|
||||
syn region clProcedure oneline start="^\s*[{}]" end="$"
|
||||
syn match clInclude "^\s*include\s.*"
|
||||
syn match clComment "#.*$" contains=clTodo,clNeedsWork,@Spell
|
||||
syn region clProcedure oneline start="^\s*[{}]" end="$"
|
||||
syn match clInclude "^\s*include\s.*"
|
||||
|
||||
" We don't put "debug" in the clSetOptions;
|
||||
" we contain it in clSet so we can make it stand out.
|
||||
syn keyword clSetOptions transparent aauto abort align convert E fill fnum goback hangup justify null_exit output rauto rawprint rawdisplay repeat skip tab trim
|
||||
syn match clSet "^\s*set\s.*" contains=clSetOptions,clDebug
|
||||
syn keyword clSetOptions transparent aauto abort align convert E fill fnum goback hangup justify null_exit output rauto rawprint rawdisplay repeat skip tab trim
|
||||
syn match clSet "^\s*set\s.*" contains=clSetOptions,clDebug
|
||||
|
||||
syn match clPreProc "^\s*#P.*"
|
||||
syn match clPreProc "^\s*#P.*"
|
||||
|
||||
syn keyword clConditional else elsif
|
||||
syn keyword clWhile continue endloop
|
||||
syn keyword clConditional else elsif
|
||||
syn keyword clWhile continue endloop
|
||||
" 'break' needs to be a region so we can sync on it above.
|
||||
syn region clBreak oneline start="^\s*break" end="$"
|
||||
syn region clBreak oneline start="^\s*break" end="$"
|
||||
|
||||
syn match clOperator "[!;|)(:.><+*=-]"
|
||||
syn match clOperator "[!;|)(:.><+*=-]"
|
||||
|
||||
syn match clNumber "\<\d\+\(u\=l\=\|lu\|f\)\>"
|
||||
syn match clNumber "\<\d\+\(u\=l\=\|lu\|f\)\>"
|
||||
|
||||
syn region clString matchgroup=clQuote start=+"+ end=+"+ skip=+\\"+
|
||||
syn region clString matchgroup=clQuote start=+'+ end=+'+ skip=+\\'+
|
||||
syn region clString matchgroup=clQuote start=+"+ end=+"+ skip=+\\"+ contains=@Spell
|
||||
syn region clString matchgroup=clQuote start=+'+ end=+'+ skip=+\\'+ contains=@Spell
|
||||
|
||||
syn keyword clReserved ERROR EXIT INTERRUPT LOCKED LREPLY MODE MCOL MLINE MREPLY NULL REPLY V1 V2 V3 V4 V5 V6 V7 V8 V9 ZERO BYPASS GOING_BACK AAUTO ABORT ABORT ALIGN BIGE CONVERT FNUM GOBACK HANGUP JUSTIFY NEXIT OUTPUT RAUTO RAWDISPLAY RAWPRINT REPEAT SKIP TAB TRIM LCOUNT PCOUNT PLINES SLINES SCOLS MATCH LMATCH
|
||||
syn keyword clReserved ERROR EXIT INTERRUPT LOCKED LREPLY MODE MCOL MLINE MREPLY NULL REPLY V1 V2 V3 V4 V5 V6 V7 V8 V9 ZERO BYPASS GOING_BACK AAUTO ABORT ABORT ALIGN BIGE CONVERT FNUM GOBACK HANGUP JUSTIFY NEXIT OUTPUT RAUTO RAWDISPLAY RAWPRINT REPEAT SKIP TAB TRIM LCOUNT PCOUNT PLINES SLINES SCOLS MATCH LMATCH
|
||||
|
||||
syn keyword clFunction asc asize chr name random slen srandom day getarg getcgi getenv lcase scat sconv sdel skey smult srep substr sword trim ucase match
|
||||
syn keyword clFunction asc asize chr name random slen srandom day getarg getcgi getenv lcase scat sconv sdel skey smult srep substr sword trim ucase match
|
||||
|
||||
syn keyword clStatement clear clear_eol clear_eos close copy create unique with where empty define define ldefine delay_form delete escape exit_block exit_do exit_process field fork format get getfile getnext getprev goto head join maintain message no_join on_eop on_key on_exit on_delete openin openout openapp pause popenin popenout popenio print put range read redisplay refresh restart_block screen select sleep text unlock write and not or do
|
||||
syn keyword clStatement clear clear_eol clear_eos close copy create unique with where empty define define ldefine delay_form delete escape exit_block exit_do exit_process field fork format get getfile getnext getprev goto head join maintain message no_join on_eop on_key on_exit on_delete openin openout openapp pause popenin popenout popenio print put range read redisplay refresh restart_block screen select sleep text unlock write and not or do
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_cl_syntax_inits")
|
||||
if version < 508
|
||||
let did_cl_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
if version >= 508 || !exists("did_cl_syntax_inits")
|
||||
if version < 508
|
||||
let did_cl_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
|
||||
HiLink clifError Error
|
||||
HiLink clSpaceError Error
|
||||
HiLink clWhile Repeat
|
||||
HiLink clConditional Conditional
|
||||
HiLink clDebug Debug
|
||||
HiLink clNeedsWork Todo
|
||||
HiLink clTodo Todo
|
||||
HiLink clComment Comment
|
||||
HiLink clProcedure Procedure
|
||||
HiLink clBreak Procedure
|
||||
HiLink clInclude Include
|
||||
HiLink clSetOption Statement
|
||||
HiLink clSet Identifier
|
||||
HiLink clPreProc PreProc
|
||||
HiLink clOperator Operator
|
||||
HiLink clNumber Number
|
||||
HiLink clString String
|
||||
HiLink clQuote Delimiter
|
||||
HiLink clReserved Identifier
|
||||
HiLink clFunction Function
|
||||
HiLink clStatement Statement
|
||||
HiLink clifError Error
|
||||
HiLink clSpaceError Error
|
||||
HiLink clWhile Repeat
|
||||
HiLink clConditional Conditional
|
||||
HiLink clDebug Debug
|
||||
HiLink clNeedsWork Todo
|
||||
HiLink clTodo Todo
|
||||
HiLink clComment Comment
|
||||
HiLink clProcedure Procedure
|
||||
HiLink clBreak Procedure
|
||||
HiLink clInclude Include
|
||||
HiLink clSetOption Statement
|
||||
HiLink clSet Identifier
|
||||
HiLink clPreProc PreProc
|
||||
HiLink clOperator Operator
|
||||
HiLink clNumber Number
|
||||
HiLink clString String
|
||||
HiLink clQuote Delimiter
|
||||
HiLink clReserved Identifier
|
||||
HiLink clFunction Function
|
||||
HiLink clStatement Statement
|
||||
|
||||
delcommand HiLink
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "cl"
|
||||
|
||||
" vim: ts=8 sw=4
|
||||
" vim: ts=8 sw=8
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
" Vim syntax file
|
||||
" Language: Cascading Style Sheets
|
||||
" Maintainer: Claudio Fleiner <claudio@fleiner.com>
|
||||
" URL: http://www.fleiner.com/vim/syntax/css.vim
|
||||
" Last Change: 2011 Dec 14
|
||||
" CSS2 by Nikolai Weibull
|
||||
" Full CSS2, HTML4 support by Yeti
|
||||
" Language: Cascading Style Sheets
|
||||
" Previous Contributor List:
|
||||
" Claudio Fleiner <claudio@fleiner.com> (Maintainer)
|
||||
" Yeti (Add full CSS2, HTML4 support)
|
||||
" Nikolai Weibull (Add CSS2 support)
|
||||
" Maintainer: Jules Wang <w.jq0722@gmail.com>
|
||||
" URL: https://github.com/JulesWang/css.vim
|
||||
" Last Change: 2012 Dec 15
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
@@ -17,8 +19,12 @@ endif
|
||||
let main_syntax = 'css'
|
||||
endif
|
||||
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
syn case ignore
|
||||
|
||||
" All HTML4 tags
|
||||
syn keyword cssTagName abbr acronym address applet area a b base
|
||||
syn keyword cssTagName basefont bdo big blockquote body br button
|
||||
syn keyword cssTagName caption center cite code col colgroup dd del
|
||||
@@ -27,32 +33,51 @@ syn keyword cssTagName frameset h1 h2 h3 h4 h5 h6 head hr html img i
|
||||
syn keyword cssTagName iframe img input ins isindex kbd label legend li
|
||||
syn keyword cssTagName link map menu meta noframes noscript ol optgroup
|
||||
syn keyword cssTagName option p param pre q s samp script select small
|
||||
syn keyword cssTagName span strike strong style sub sup tbody td
|
||||
syn keyword cssTagName span strike strong style sub sup table tbody td
|
||||
syn keyword cssTagName textarea tfoot th thead title tr tt ul u var
|
||||
syn match cssTagName "\<table\>"
|
||||
syn keyword cssTagName object
|
||||
|
||||
" HTML5 new tags 5*6=30
|
||||
syn keyword cssTagName article aside audio bdi canvas command
|
||||
syn keyword cssTagName datalist details embed figcaption figure footer
|
||||
syn keyword cssTagName header hgroup keygen mark meter nav
|
||||
syn keyword cssTagName output progress rt rp ruby section
|
||||
syn keyword cssTagName source summary time track video wbr
|
||||
|
||||
" Tags not supported in HTML5
|
||||
syn keyword cssDeprecated acronym applet basefont big center dir
|
||||
syn keyword cssDeprecated font frame frameset noframes strike tt
|
||||
|
||||
"syn match cssTagName "\<table\>"
|
||||
syn match cssTagName "\*"
|
||||
|
||||
syn match cssTagName "@page\>" nextgroup=cssDefinition
|
||||
|
||||
syn match cssSelectorOp "[+>.]"
|
||||
syn match cssSelectorOp2 "[~|]\?=" contained
|
||||
" selectors
|
||||
syn match cssSelectorOp "[,>+]"
|
||||
syn match cssSelectorOp2 "[~|^$*]\?=" contained
|
||||
" FIXME: add HTML5 attribute
|
||||
syn region cssAttributeSelector matchgroup=cssSelectorOp start="\[" end="]" transparent contains=cssUnicodeEscape,cssSelectorOp2,cssStringQ,cssStringQQ
|
||||
|
||||
" .class and #id
|
||||
syn match cssClassName "\.[A-Za-z][A-Za-z0-9_-]\+"
|
||||
|
||||
try
|
||||
syn match cssIdentifier "#[A-Za-z<>-<2D>_@][A-Za-z<>-<2D>0-9_@-]*"
|
||||
catch /^.*/
|
||||
syn match cssIdentifier "#[A-Za-z_@][A-Za-z0-9_@-]*"
|
||||
endtry
|
||||
|
||||
syn match cssTagName "@page\>" nextgroup=cssDefinition
|
||||
" FIXME: use cssVendor here
|
||||
syn match cssTagName "@\(-\(webkit\|moz\|o\|ms\)-\)\=keyframes\>" nextgroup=cssDefinition
|
||||
|
||||
syn match cssMedia "@media\>" nextgroup=cssMediaType skipwhite skipnl
|
||||
syn keyword cssMediaType contained screen print aural braile embosed handheld projection ty tv all nextgroup=cssMediaComma,cssMediaBlock skipwhite skipnl
|
||||
syn match cssMediaComma "," nextgroup=cssMediaType skipwhite skipnl
|
||||
"syn match cssMediaComma "," nextgroup=cssMediaType skipwhite skipnl
|
||||
syn region cssMediaBlock transparent matchgroup=cssBraces start='{' end='}' contains=cssTagName,cssError,cssComment,cssDefinition,cssURL,cssUnicodeEscape,cssIdentifier
|
||||
|
||||
syn match cssValueInteger contained "[-+]\=\d\+"
|
||||
syn match cssValueNumber contained "[-+]\=\d\+\(\.\d*\)\="
|
||||
syn match cssValueLength contained "[-+]\=\d\+\(\.\d*\)\=\(%\|mm\|cm\|in\|pt\|pc\|em\|ex\|px\)"
|
||||
syn match cssValueLength contained "[-+]\=\d\+\(\.\d*\)\=\(%\|mm\|cm\|in\|pt\|pc\|em\|ex\|px\|rem\)"
|
||||
syn match cssValueAngle contained "[-+]\=\d\+\(\.\d*\)\=\(deg\|grad\|rad\)"
|
||||
syn match cssValueTime contained "+\=\d\+\(\.\d*\)\=\(ms\|s\)"
|
||||
syn match cssValueFrequency contained "+\=\d\+\(\.\d*\)\=\(Hz\|kHz\)"
|
||||
@@ -66,27 +91,115 @@ syn region cssFontDescriptorFunction contained matchgroup=cssFunctionName start=
|
||||
syn match cssUnicodeRange contained "U+[0-9A-Fa-f?]\+"
|
||||
syn match cssUnicodeRange contained "U+\x\+-\x\+"
|
||||
|
||||
" The 16 basic color names
|
||||
syn keyword cssColor contained aqua black blue fuchsia gray green lime maroon navy olive purple red silver teal yellow
|
||||
|
||||
" 130 more color names
|
||||
syn keyword cssColor contained aliceblue antiquewhite aquamarine azure
|
||||
syn keyword cssColor contained beige bisque blanchedalmond blueviolet brown burlywood
|
||||
syn keyword cssColor contained cadetblue chartreuse chocolate coral cornflowerblue cornsilk crimson cyan
|
||||
syn match cssColor contained /dark\(blue\|cyan\|goldenrod\|gray\|green\|grey\|khaki\)/
|
||||
syn match cssColor contained /dark\(magenta\|olivegreen\|orange\|orchid\|red\|salmon\|seagreen\)/
|
||||
syn match cssColor contained /darkslate\(blue\|gray\|grey\)/
|
||||
syn match cssColor contained /dark\(turquoise\|violet\)/
|
||||
syn keyword cssColor contained deeppink deepskyblue dimgray dimgrey dodgerblue firebrick
|
||||
syn keyword cssColor contained floralwhite forestgreen gainsboro ghostwhite gold
|
||||
syn keyword cssColor contained goldenrod greenyellow grey honeydew hotpink
|
||||
syn keyword cssColor contained indianred indigo ivory khaki lavender lavenderblush lawngreen
|
||||
syn keyword cssColor contained lemonchiffon limegreen linen magenta
|
||||
syn match cssColor contained /light\(blue\|coral\|cyan\|goldenrodyellow\|gray\|green\)/
|
||||
syn match cssColor contained /light\(grey\|pink\|salmon\|seagreen\|skyblue\|yellow\)/
|
||||
syn match cssColor contained /light\(slategray\|slategrey\|steelblue\)/
|
||||
syn match cssColor contained /medium\(aquamarine\|blue\|orchid\|purple\|seagreen\)/
|
||||
syn match cssColor contained /medium\(slateblue\|springgreen\|turquoise\|violetred\)/
|
||||
syn keyword cssColor contained midnightblue mintcream mistyrose moccasin navajowhite
|
||||
syn keyword cssColor contained oldlace olivedrab orange orangered orchid
|
||||
syn match cssColor contained /pale\(goldenrod\|green\|turquoise\|violetred\)/
|
||||
syn keyword cssColor contained papayawhip peachpuff peru pink plum powderblue
|
||||
syn keyword cssColor contained rosybrown royalblue saddlebrown salmon sandybrown
|
||||
syn keyword cssColor contained seagreen seashell sienna skyblue slateblue
|
||||
syn keyword cssColor contained slategray slategrey snow springgreen steelblue tan
|
||||
syn keyword cssColor contained thistle tomato turquoise violet wheat
|
||||
syn keyword cssColor contained whitesmoke yellowgreen
|
||||
|
||||
" FIXME: These are actually case-insentivie too, but (a) specs recommend using
|
||||
" mixed-case (b) it's hard to highlight the word `Background' correctly in
|
||||
" all situations
|
||||
syn case match
|
||||
syn keyword cssColor contained ActiveBorder ActiveCaption AppWorkspace ButtonFace ButtonHighlight ButtonShadow ButtonText CaptionText GrayText Highlight HighlightText InactiveBorder InactiveCaption InactiveCaptionText InfoBackground InfoText Menu MenuText Scrollbar ThreeDDarkShadow ThreeDFace ThreeDHighlight ThreeDLightShadow ThreeDShadow Window WindowFrame WindowText Background
|
||||
syn case ignore
|
||||
|
||||
syn match cssImportant contained "!\s*important\>"
|
||||
|
||||
syn match cssColor contained "\<transparent\>"
|
||||
syn match cssColor contained "\<white\>"
|
||||
syn match cssColor contained "#[0-9A-Fa-f]\{3\}\>"
|
||||
syn match cssColor contained "#[0-9A-Fa-f]\{6\}\>"
|
||||
"syn match cssColor contained "\<rgb\s*(\s*\d\+\(\.\d*\)\=%\=\s*,\s*\d\+\(\.\d*\)\=%\=\s*,\s*\d\+\(\.\d*\)\=%\=\s*)"
|
||||
|
||||
syn region cssURL contained matchgroup=cssFunctionName start="\<url\s*(" end=")" oneline keepend
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(rgb\|clip\|attr\|counter\|rect\)\s*(" end=")" oneline keepend
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(rgb\|clip\|attr\|counter\|rect\|cubic-bezier\)\s*(" end=")" oneline keepend
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(rgba\|hsl\|hsla\)\s*(" end=")" oneline keepend
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(linear\|radial\)-gradient\s*(" end=")" oneline keepend
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(matrix\(3d\)\=\|scale\(3d\|X\|Y|\Z\)\=\|translate\(3d\|X\|Y|\Z\)\=\|skew\(X\|Y\)\=\|rotate\(3d\|X\|Y|\Z\)\=\|perspective\)\s*(" end=")" oneline keepend
|
||||
|
||||
syn match cssImportant contained "!\s*important\>"
|
||||
|
||||
syn keyword cssCommonAttr contained auto none inherit
|
||||
" Prop and Attr
|
||||
" Reference: http://www.w3schools.com/cssref/default.asp
|
||||
syn keyword cssCommonAttr contained auto none inherit all
|
||||
syn keyword cssCommonAttr contained top bottom
|
||||
syn keyword cssCommonAttr contained medium normal
|
||||
|
||||
|
||||
syn match cssAnimationProp contained "\<animation\(-\(name\|duration\|timing-function\|delay\|iteration-cout\|play-state\)\)\=\>"
|
||||
|
||||
|
||||
syn keyword cssAnimationAttr contained infinite alternate paused running
|
||||
" bugfix: escape linear-gradient
|
||||
syn match cssAnimationAttr contained "\<linear\(-gradient\)\@!\>"
|
||||
syn match cssAnimationAttr contained "\<ease\(-\(in-out\|out\|in\)\)\=\>"
|
||||
|
||||
syn match cssBackgroundProp contained "\<background\(-\(color\|image\|attachment\|position\|clip\|origin\|size\)\)\=\>"
|
||||
syn keyword cssBackgroundAttr contained center fixed over contain
|
||||
syn match cssBackgroundAttr contained "\<no-repeat\>"
|
||||
syn match cssBackgroundAttr contained "\<repeat\(-[xy]\)\=\>"
|
||||
syn match cssBackgroundAttr contained "\<\(border\|content\|padding\)-box\>"
|
||||
|
||||
|
||||
syn match cssBorderOutlineProp contained "\<border\(-\(top\|right\|bottom\|left\)\)\=\(-\(width\|color\|style\)\)\=\>"
|
||||
syn match cssBorderOutlineProp contained "\<outline\(-\(width\|style\|color\)\)\=\>"
|
||||
syn match cssBorderOutlineProp contained "\<border-\(top\|bottom\)-\(left\|right\)\(-radius\)\=\>"
|
||||
syn match cssBorderOutlineProp contained "\<border-image\(-\(outset\|repeat\|slice\|source\|width\)\)\=\>"
|
||||
syn match cssBorderOutlineProp contained "\<border-radius\>"
|
||||
syn keyword cssBorderOutlineAttr contained thin thick medium
|
||||
syn keyword cssBorderOutlineAttr contained dotted dashed solid double groove ridge inset outset
|
||||
syn keyword cssBorderOutlineAttr contained hidden visible scroll collapse
|
||||
syn keyword cssBorderOutlineAttr contained stretch round
|
||||
|
||||
|
||||
syn match cssBoxProp contained "\<overflow\(-\(x\|y\|style\)\)\=\>"
|
||||
syn match cssBoxProp contained "\<rotation\(-point\)=\>"
|
||||
syn keyword cssBoxAttr contained visible hidden scroll auto
|
||||
syn match cssBoxAttr contained "\<no-\(display\|content\)\>"
|
||||
|
||||
syn keyword cssColorProp contained opacity
|
||||
syn match cssColorProp contained "\<color-profile\>"
|
||||
syn match cssColorProp contained "\<rendering-intent\>"
|
||||
|
||||
|
||||
syn match cssDimensionProp contained "\<\(min\|max\)-\(width\|height\)\>"
|
||||
syn keyword cssDimensionProp contained height
|
||||
syn keyword cssDimensionProp contained width
|
||||
|
||||
" shadow and sizing are in other property groups
|
||||
syn match cssFlexibleBoxProp contained "\<box-\(align\|direction\|flex\|ordinal-group\|orient\|pack\|shadow\|sizing\)\>"
|
||||
syn keyword cssFlexibleBoxAttr contained start end center baseline stretch
|
||||
syn keyword cssFlexibleBoxAttr contained normal reverse
|
||||
syn keyword cssFlexibleBoxAttr contained single mulitple
|
||||
syn keyword cssFlexibleBoxAttr contained horizontal
|
||||
" bugfix: escape vertial-align
|
||||
syn match cssFlexibleBoxAttr contained "\<vertical\(-align\)\@!\>"
|
||||
syn match cssFlexibleBoxAttr contained "\<\(inline\|block\)-axis\>"
|
||||
|
||||
|
||||
syn match cssFontProp contained "\<font\(-\(family\|style\|variant\|weight\|size\(-adjust\)\=\|stretch\)\)\=\>"
|
||||
syn match cssFontAttr contained "\<\(sans-\)\=\<serif\>"
|
||||
syn match cssFontAttr contained "\<small\(-\(caps\|caption\)\)\=\>"
|
||||
@@ -95,67 +208,92 @@ syn match cssFontAttr contained "\<message-box\>"
|
||||
syn match cssFontAttr contained "\<status-bar\>"
|
||||
syn match cssFontAttr contained "\<\(\(ultra\|extra\|semi\|status-bar\)-\)\=\(condensed\|expanded\)\>"
|
||||
syn keyword cssFontAttr contained cursive fantasy monospace italic oblique
|
||||
syn keyword cssFontAttr contained bold bolder lighter larger smaller
|
||||
syn keyword cssFontAttr contained icon menu
|
||||
syn match cssFontAttr contained "\<caption\>"
|
||||
syn keyword cssFontAttr contained large smaller larger
|
||||
syn keyword cssFontAttr contained narrower wider
|
||||
syn keyword cssFontAttr contained bold bolder light lighter larger smaller
|
||||
syn keyword cssFontAttr contained icon menu caption
|
||||
syn keyword cssFontAttr contained large smaller larger narrower wider
|
||||
syn keyword cssFontAttr contained Courier Arial Georgia Times
|
||||
|
||||
syn keyword cssColorProp contained color
|
||||
syn match cssColorProp contained "\<background\(-\(color\|image\|attachment\|position\)\)\=\>"
|
||||
syn keyword cssColorAttr contained center scroll fixed
|
||||
syn match cssColorAttr contained "\<repeat\(-[xy]\)\=\>"
|
||||
syn match cssColorAttr contained "\<no-repeat\>"
|
||||
|
||||
syn keyword cssGeneratedContentProp contained content quotes crop
|
||||
syn match cssGeneratedContentProp contained "\<counter-\(reset\|increment\)\>"
|
||||
syn match cssGeneratedContentProp contained "\<move-to\>"
|
||||
syn match cssGeneratedContentProp contained "\<page-policy\>"
|
||||
syn match cssGeneratedContentAttr contained "\<\(no-\)\=\(open\|close\)-quote\>"
|
||||
|
||||
|
||||
syn match cssGridProp contained "\<grid-\(columns\|rows\)\>"
|
||||
|
||||
syn match cssHyerlinkProp contained "\<target\(-\(name\|new\|position\)\)\=\>"
|
||||
|
||||
syn match cssListProp contained "\<list-style\(-\(type\|position\|image\)\)\=\>"
|
||||
syn match cssListAttr contained "\<\(lower\|upper\)-\(roman\|alpha\|greek\|latin\)\>"
|
||||
syn match cssListAttr contained "\<\(hiragana\|katakana\)\(-iroha\)\=\>"
|
||||
syn match cssListAttr contained "\<\(decimal\(-leading-zero\)\=\|cjk-ideographic\)\>"
|
||||
syn keyword cssListAttr contained disc circle square hebrew armenian georgian
|
||||
syn keyword cssListAttr contained inside outside
|
||||
|
||||
|
||||
syn match cssMarginProp contained "\<margin\(-\(top\|right\|bottom\|left\)\)\=\>"
|
||||
|
||||
syn match cssMultiColumnProp contained "\<column\(-\(\break-\(after\|before\)\|count\|gap\|rule\(-\(color\|style\|width\)\)\=\)\|span\|width\)\=\>"
|
||||
|
||||
|
||||
syn match cssPaddingProp contained "\<padding\(-\(top\|right\|bottom\|left\)\)\=\>"
|
||||
|
||||
syn keyword cssPositioningProp contained bottom clear clip display float left
|
||||
syn keyword cssPositioningProp contained position right top visibility
|
||||
syn match cssPositioningProp contained "\<z-index\>"
|
||||
syn keyword cssPositioningAttr contained block inline compact
|
||||
syn match cssPositioningAttr contained "\<table\(-\(row-gorup\|\(header\|footer\)-group\|row\|column\(-group\)\=\|cell\|caption\)\)\=\>"
|
||||
syn keyword cssPositioningAttr contained left right both
|
||||
syn match cssPositioningAttr contained "\<list-item\>"
|
||||
syn match cssPositioningAttr contained "\<inline-\(block\|table\)\>"
|
||||
syn keyword cssPositioningAttr contained static relative absolute fixed
|
||||
|
||||
syn match cssPrintProp contained "\<page\(-break-\(before\|after\|inside\)\)\=\>"
|
||||
syn keyword cssPrintProp contained orphans widows
|
||||
syn keyword cssPrintAttr contained landscape portrait crop cross always avoid
|
||||
|
||||
syn match cssTableProp contained "\<\(caption-side\|table-layout\|border-collapse\|border-spacing\|empty-cells\)\>"
|
||||
syn keyword cssTableAttr contained fixed collapse separate show hide once always
|
||||
|
||||
|
||||
syn keyword cssTextProp contained color direction
|
||||
syn match cssTextProp "\<\(\(word\|letter\)-spacing\|text\(-\(decoration\|transform\|align\|index\|shadow\)\)\=\|vertical-align\|unicode-bidi\|line-height\)\>"
|
||||
syn match cssTextProp contained "\<text-\(justify\|\outline\|overflow\|warp\|align-last\)\>"
|
||||
syn match cssTextProp contained "\<word-\(break\|\wrap\)\>"
|
||||
syn match cssTextProp contained "\<white-space\>"
|
||||
syn match cssTextProp contained "\<hanging-punctuation\>"
|
||||
syn match cssTextProp contained "\<punctuation-trim\>"
|
||||
syn match cssTextAttr contained "\<line-through\>"
|
||||
syn match cssTextAttr contained "\<text-indent\>"
|
||||
syn match cssTextAttr contained "\<\(text-\)\=\(top\|bottom\)\>"
|
||||
syn keyword cssTextAttr contained ltr rtl embed nowrap
|
||||
syn keyword cssTextAttr contained underline overline blink sub super middle
|
||||
syn keyword cssTextAttr contained capitalize uppercase lowercase center justify baseline sub super
|
||||
syn keyword cssTextAttr contained capitalize uppercase lowercase
|
||||
syn keyword cssTextAttr contained center justify baseline sub super
|
||||
syn match cssTextAttr contained "\<pre\(-\(line\|wrap\)\)\=\>"
|
||||
syn match cssTextAttr contained "\<\(allow\|force\)-end\>"
|
||||
syn keyword cssTextAttr contained start end adjacent
|
||||
syn match cssTextAttr contained "\<inter-\(word\|ideographic\|cluster\)\>"
|
||||
syn keyword cssTextAttr contained distribute kashida first last
|
||||
syn keyword cssTextAttr contained clip ellipsis unrestricted suppress
|
||||
syn match cssTextAttr contained "\<break-all\>"
|
||||
syn match cssTextAttr contained "\<break-word\>"
|
||||
syn keyword cssTextAttr contained hyphenate
|
||||
|
||||
syn match cssBoxProp contained "\<\(margin\|padding\|border\)\(-\(top\|right\|bottom\|left\)\)\=\>"
|
||||
syn match cssBoxProp contained "\<border-\(\(\(top\|right\|bottom\|left\)-\)\=\(width\|color\|style\)\)\=\>"
|
||||
syn match cssBoxProp contained "\<\(width\|z-index\)\>"
|
||||
syn match cssBoxProp contained "\<\(min\|max\)-\(width\|height\)\>"
|
||||
syn keyword cssBoxProp contained width height float clear overflow clip visibility
|
||||
syn keyword cssBoxAttr contained thin thick both
|
||||
syn keyword cssBoxAttr contained dotted dashed solid double groove ridge inset outset
|
||||
syn keyword cssBoxAttr contained hidden visible scroll collapse
|
||||
|
||||
syn keyword cssGeneratedContentProp contained content quotes
|
||||
syn match cssGeneratedContentProp contained "\<counter-\(reset\|increment\)\>"
|
||||
syn match cssGeneratedContentProp contained "\<list-style\(-\(type\|position\|image\)\)\=\>"
|
||||
syn match cssGeneratedContentAttr contained "\<\(no-\)\=\(open\|close\)-quote\>"
|
||||
syn match cssAuralAttr contained "\<lower\>"
|
||||
syn match cssGeneratedContentAttr contained "\<\(lower\|upper\)-\(roman\|alpha\|greek\|latin\)\>"
|
||||
syn match cssGeneratedContentAttr contained "\<\(hiragana\|katakana\)\(-iroha\)\=\>"
|
||||
syn match cssGeneratedContentAttr contained "\<\(decimal\(-leading-zero\)\=\|cjk-ideographic\)\>"
|
||||
syn keyword cssGeneratedContentAttr contained disc circle square hebrew armenian georgian
|
||||
syn keyword cssGeneratedContentAttr contained inside outside
|
||||
syn match cssTransformProp contained "\<transform\(-\(origin\|style\)\)\=\>"
|
||||
syn match cssTransformProp contained "\<perspective\(-origin\)\=\>"
|
||||
syn match cssTransformProp contained "\<backface-visibility\>"
|
||||
|
||||
syn match cssPagingProp contained "\<page\(-break-\(before\|after\|inside\)\)\=\>"
|
||||
syn keyword cssPagingProp contained size marks inside orphans widows
|
||||
syn keyword cssPagingAttr contained landscape portrait crop cross always avoid
|
||||
|
||||
syn keyword cssUIProp contained cursor
|
||||
syn match cssUIProp contained "\<outline\(-\(width\|style\|color\)\)\=\>"
|
||||
syn match cssUIAttr contained "\<[ns]\=[ew]\=-resize\>"
|
||||
syn keyword cssUIAttr contained default crosshair pointer move wait help
|
||||
syn keyword cssUIAttr contained thin thick
|
||||
syn keyword cssUIAttr contained dotted dashed solid double groove ridge inset outset
|
||||
syn keyword cssUIAttr contained invert
|
||||
|
||||
syn match cssRenderAttr contained "\<marker\>"
|
||||
syn match cssRenderProp contained "\<\(display\|marker-offset\|unicode-bidi\|white-space\|list-item\|run-in\|inline-table\)\>"
|
||||
syn keyword cssRenderProp contained position top bottom direction
|
||||
syn match cssRenderProp contained "\<\(left\|right\)\>"
|
||||
syn keyword cssRenderAttr contained block inline compact
|
||||
syn match cssRenderAttr contained "\<table\(-\(row-gorup\|\(header\|footer\)-group\|row\|column\(-group\)\=\|cell\|caption\)\)\=\>"
|
||||
syn keyword cssRenderAttr contained static relative absolute fixed
|
||||
syn keyword cssRenderAttr contained ltr rtl embed bidi-override pre nowrap
|
||||
syn match cssRenderAttr contained "\<bidi-override\>"
|
||||
syn match cssTransitionProp contained "\<transition\(-\(delay\|duration\|property\|timing-function\)\)\=\>"
|
||||
|
||||
syn match cssUIProp contained "\<nav-\(down\|index\|left\|right\|up\)\=\>"
|
||||
syn match cssUIProp contained "\<outline-offset\>"
|
||||
syn match cssUIProp contained "\<box-sizing\>"
|
||||
syn keyword cssUIProp contained appearance icon resize
|
||||
syn keyword cssUIAttr contained window button menu field
|
||||
|
||||
syn match cssAuralProp contained "\<\(pause\|cue\)\(-\(before\|after\)\)\=\>"
|
||||
syn match cssAuralProp contained "\<\(play-during\|speech-rate\|voice-family\|pitch\(-range\)\=\|speak\(-\(punctuation\|numerals\)\)\=\)\>"
|
||||
@@ -171,30 +309,54 @@ syn keyword cssAuralAttr contained below level above higher
|
||||
syn match cssAuralAttr contained "\<\(x-\)\=\(slow\|fast\)\>"
|
||||
syn keyword cssAuralAttr contained faster slower
|
||||
syn keyword cssAuralAttr contained male female child code digits continuous
|
||||
syn match cssAuralAttr contained "\<lower\>"
|
||||
|
||||
" cursor
|
||||
syn keyword cssUIProp contained cursor
|
||||
syn match cssUIAttr contained "\<[ns]\=[ew]\=-resize\>"
|
||||
syn keyword cssUIAttr contained crosshair default help move pointer
|
||||
syn keyword cssUIAttr contained progress wait
|
||||
|
||||
" FIXME: I could not find them in reference
|
||||
syn keyword cssUIAttr contained invert maker size zoom
|
||||
syn match cssRenderAttr contained "\<run-in\>"
|
||||
syn match cssRenderAttr contained "\<text-rendering\>"
|
||||
syn match cssRenderAttr contained "\<font-smoothing\>"
|
||||
syn match cssRenderProp contained "\<marker-offset\>"
|
||||
syn match cssRenderAttr contained "\<bidi-override\>"
|
||||
|
||||
syn match cssTableProp contained "\<\(caption-side\|table-layout\|border-collapse\|border-spacing\|empty-cells\|speak-header\)\>"
|
||||
syn keyword cssTableAttr contained fixed collapse separate show hide once always
|
||||
|
||||
" FIXME: This allows cssMediaBlock before the semicolon, which is wrong.
|
||||
syn region cssInclude start="@import" end=";" contains=cssComment,cssURL,cssUnicodeEscape,cssMediaType
|
||||
syn match cssBraces contained "[{}]"
|
||||
syn match cssError contained "{@<>"
|
||||
syn region cssDefinition transparent matchgroup=cssBraces start='{' end='}' contains=css.*Attr,css.*Prop,cssComment,cssValue.*,cssColor,cssURL,cssImportant,cssError,cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape
|
||||
syn region cssDefinition transparent matchgroup=cssBraces start='{' end='}' contains=css.*Attr,css.*Prop,cssComment,cssValue.*,cssColor,cssURL,cssImportant,cssError,cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape,cssVendor,cssDefinition
|
||||
syn match cssBraceError "}"
|
||||
|
||||
" Pseudo class
|
||||
syn match cssPseudoClass ":[A-Za-z0-9_-]*" contains=cssPseudoClassId,cssUnicodeEscape
|
||||
syn keyword cssPseudoClassId contained link visited active hover focus before after left right
|
||||
syn keyword cssPseudoClassId link visited active hover focus before after left right lang
|
||||
syn match cssPseudoClassId contained "\<first\(-\(line\|letter\|child\)\)\=\>"
|
||||
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":lang(" end=")" oneline
|
||||
" FIXME: handle functions.
|
||||
"syn region cssPseudoClassLang matchgroup=cssPseudoClassId start="lang(" end=")"
|
||||
syn match cssPseudoClassId contained "\<\(last\|only\|nth\|nth-last\)-child\>"
|
||||
syn match cssPseudoClassId contained "\<\(first\|last\|only\|nth\|nth-last\)-of-type\>"
|
||||
syn keyword cssPseudoClassId root empty target enable disabled checked not invalid
|
||||
syn match cssPseudoClassId contained "::\(-moz-\)\=selection"
|
||||
|
||||
" Comment
|
||||
syn region cssComment start="/\*" end="\*/" contains=@Spell
|
||||
syn region cssComment start="//" skip="\\$" end="$" keepend contains=@Spell
|
||||
|
||||
syn match cssUnicodeEscape "\\\x\{1,6}\s\?"
|
||||
syn match cssSpecialCharQQ +\\"+ contained
|
||||
syn match cssSpecialCharQ +\\'+ contained
|
||||
syn region cssStringQQ start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=cssUnicodeEscape,cssSpecialCharQQ
|
||||
syn region cssStringQ start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=cssUnicodeEscape,cssSpecialCharQ
|
||||
syn match cssClassName "\.[A-Za-z][A-Za-z0-9_-]\+"
|
||||
|
||||
" Vendor Prefix
|
||||
syn match cssVendor contained "\(-\(webkit\|moz\|o\|ms\)-\)"
|
||||
|
||||
|
||||
if main_syntax == "css"
|
||||
syn sync minlines=10
|
||||
@@ -212,31 +374,75 @@ if version >= 508 || !exists("did_css_syn_inits")
|
||||
endif
|
||||
|
||||
HiLink cssComment Comment
|
||||
HiLink cssVendor Comment
|
||||
HiLink cssTagName Statement
|
||||
HiLink cssDeprecated Error
|
||||
HiLink cssSelectorOp Special
|
||||
HiLink cssSelectorOp2 Special
|
||||
HiLink cssFontProp StorageClass
|
||||
HiLink cssColorProp StorageClass
|
||||
HiLink cssTextProp StorageClass
|
||||
|
||||
HiLink cssAnimationProp StorageClass
|
||||
HiLink cssBackgroundProp StorageClass
|
||||
HiLink cssBorderOutlineProp StorageClass
|
||||
HiLink cssBoxProp StorageClass
|
||||
HiLink cssRenderProp StorageClass
|
||||
HiLink cssColorProp StorageClass
|
||||
HiLink cssContentForPagedMediaProp StorageClass
|
||||
HiLink cssDimensionProp StorageClass
|
||||
HiLink cssFlexibleBoxProp StorageClass
|
||||
HiLink cssFontProp StorageClass
|
||||
HiLink cssGeneratedContentProp StorageClass
|
||||
HiLink cssGridProp StorageClass
|
||||
HiLink cssHyerlinkProp StorageClass
|
||||
HiLink cssLineboxProp StorageClass
|
||||
HiLink cssListProp StorageClass
|
||||
HiLink cssMarginProp StorageClass
|
||||
HiLink cssMarqueeProp StorageClass
|
||||
HiLink cssMultiColumnProp StorageClass
|
||||
HiLink cssPaddingProp StorageClass
|
||||
HiLink cssPagedMediaProp StorageClass
|
||||
HiLink cssPositioningProp StorageClass
|
||||
HiLink cssPrintProp StorageClass
|
||||
HiLink cssRubyProp StorageClass
|
||||
HiLink cssSpeechProp StorageClass
|
||||
HiLink cssTableProp StorageClass
|
||||
HiLink cssTextProp StorageClass
|
||||
HiLink cssTransformProp StorageClass
|
||||
HiLink cssTransitionProp StorageClass
|
||||
HiLink cssUIProp StorageClass
|
||||
HiLink cssAuralProp StorageClass
|
||||
HiLink cssRenderProp StorageClass
|
||||
HiLink cssGeneratedContentProp StorageClass
|
||||
HiLink cssPagingProp StorageClass
|
||||
HiLink cssTableProp StorageClass
|
||||
HiLink cssUIProp StorageClass
|
||||
HiLink cssFontAttr Type
|
||||
HiLink cssColorAttr Type
|
||||
HiLink cssTextAttr Type
|
||||
|
||||
HiLink cssAnimationAttr Type
|
||||
HiLink cssBackgroundAttr Type
|
||||
HiLink cssBorderOutlineAttr Type
|
||||
HiLink cssBoxAttr Type
|
||||
HiLink cssRenderAttr Type
|
||||
HiLink cssAuralAttr Type
|
||||
HiLink cssColorAttr Type
|
||||
HiLink cssContentForPagedMediaAttr Type
|
||||
HiLink cssDimensionAttr Type
|
||||
HiLink cssFlexibleBoxAttr Type
|
||||
HiLink cssFontAttr Type
|
||||
HiLink cssGeneratedContentAttr Type
|
||||
HiLink cssPagingAttr Type
|
||||
HiLink cssGridAttr Type
|
||||
HiLink cssHyerlinkAttr Type
|
||||
HiLink cssLineboxAttr Type
|
||||
HiLink cssListAttr Type
|
||||
HiLink cssMarginAttr Type
|
||||
HiLink cssMarqueeAttr Type
|
||||
HiLink cssMultiColumnAttr Type
|
||||
HiLink cssPaddingAttr Type
|
||||
HiLink cssPagedMediaAttr Type
|
||||
HiLink cssPositioningAttr Type
|
||||
HiLink cssPrintAttr Type
|
||||
HiLink cssRubyAttr Type
|
||||
HiLink cssSpeechAttr Type
|
||||
HiLink cssTableAttr Type
|
||||
HiLink cssTextAttr Type
|
||||
HiLink cssTransformAttr Type
|
||||
HiLink cssTransitionAttr Type
|
||||
HiLink cssUIAttr Type
|
||||
HiLink cssAuralAttr Type
|
||||
HiLink cssRenderAttr Type
|
||||
HiLink cssCommonAttr Type
|
||||
|
||||
HiLink cssPseudoClassId PreProc
|
||||
HiLink cssPseudoClassLang Constant
|
||||
HiLink cssValueLength Number
|
||||
@@ -277,6 +483,7 @@ if main_syntax == 'css'
|
||||
unlet main_syntax
|
||||
endif
|
||||
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
" vim: ts=8
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
" Maintainer: Debian Vim Maintainers <pkg-vim-maintainers@lists.alioth.debian.org>
|
||||
" Former Maintainers: Gerfried Fuchs <alfie@ist.org>
|
||||
" Wichert Akkerman <wakkerma@debian.org>
|
||||
" Last Change: 2011 Dec 09
|
||||
" Last Change: 2012 Jun 06
|
||||
" URL: http://anonscm.debian.org/hg/pkg-vim/vim/raw-file/unstable/runtime/syntax/debcontrol.vim
|
||||
|
||||
" Standard syntax initialization
|
||||
@@ -45,7 +45,7 @@ syn match debcontrolEmail "[_=[:alnum:]\.+-]\+@[[:alnum:]\./\-]\+"
|
||||
syn match debcontrolEmail "<.\{-}>"
|
||||
|
||||
" #-Comments
|
||||
syn match debcontrolComment "^#.*$"
|
||||
syn match debcontrolComment "^#.*$" contains=@Spell
|
||||
|
||||
syn case ignore
|
||||
|
||||
@@ -69,6 +69,7 @@ syn region debcontrolStrictField start="^\%(XS-\)\=DM-Upload-Allowed" end="$" co
|
||||
" Catch-all for the other legal fields
|
||||
syn region debcontrolField start="^\%(\%(XSBC-Original-\)\=Maintainer\|Standards-Version\|Essential\|Bugs\|Origin\|X[SB]-Python-Version\|\%(XS-\)\=Vcs-Mtn\):" end="$" contains=debcontrolKey,debcontrolVariable,debcontrolEmail oneline
|
||||
syn region debcontrolMultiField start="^\%(Build-\%(Conflicts\|Depends\)\%(-Indep\)\=\|\%(Pre-\)\=Depends\|Recommends\|Suggests\|Provides\|Replaces\|Conflicts\|Enhances\|Breaks\|Uploaders\|Description\):" skip="^ " end="^$"me=s-1 end="^[^ #]"me=s-1 contains=debcontrolKey,debcontrolEmail,debcontrolVariable,debcontrolComment
|
||||
syn region debcontrolMultiFieldSpell start="^\%(Description\):" skip="^ " end="^$"me=s-1 end="^[^ #]"me=s-1 contains=debcontrolKey,debcontrolEmail,debcontrolVariable,debcontrolComment,@Spell
|
||||
|
||||
" Associate our matches and regions with pretty colours
|
||||
if version >= 508 || !exists("did_debcontrol_syn_inits")
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
" Vim syntax file
|
||||
" Language: DocBook
|
||||
" Maintainer: Devin Weaver <vim@tritarget.com>
|
||||
" Last Updated By: Shlomi Fish
|
||||
" URL: http://tritarget.com/pub/vim/syntax/docbk.vim
|
||||
" Last Change: $Date: 2005/06/23 22:31:01 $
|
||||
" Version: $Revision: 1.2 $
|
||||
" Last Change: 2012 Nov 28
|
||||
" Version: 1.2 (and modified after that)
|
||||
" Thanks to Johannes Zellner <johannes@zellner.org> for the default to XML
|
||||
" suggestion.
|
||||
|
||||
@@ -28,6 +29,15 @@ if !exists('b:docbk_type')
|
||||
let b:docbk_type = 'xml'
|
||||
endif
|
||||
endif
|
||||
|
||||
if !exists('b:docbk_ver')
|
||||
if exists('docbk_ver')
|
||||
let b:docbk_ver = docbk_ver
|
||||
else
|
||||
let b:docbk_ver = 4
|
||||
endif
|
||||
end
|
||||
|
||||
if 'xml' == b:docbk_type
|
||||
doau Syntax xml
|
||||
syn cluster xmlTagHook add=docbkKeyword
|
||||
@@ -40,81 +50,121 @@ elseif 'sgml' == b:docbk_type
|
||||
syn case ignore
|
||||
endif
|
||||
|
||||
" <comment> has been removed and replace with <remark> in DocBook 4.0
|
||||
" <comment> kept for backwards compatability.
|
||||
syn keyword docbkKeyword abbrev abstract accel ackno acronym action contained
|
||||
syn keyword docbkKeyword address affiliation alt anchor answer appendix contained
|
||||
syn keyword docbkKeyword application area areaset areaspec arg artheader contained
|
||||
syn keyword docbkKeyword article articleinfo artpagenums attribution audiodata contained
|
||||
syn keyword docbkKeyword audioobject author authorblurb authorgroup contained
|
||||
syn keyword docbkKeyword authorinitials beginpage bibliodiv biblioentry contained
|
||||
syn keyword docbkKeyword bibliography bibliomisc bibliomixed bibliomset contained
|
||||
syn keyword docbkKeyword biblioset blockquote book bookbiblio bookinfo contained
|
||||
syn keyword docbkKeyword bridgehead callout calloutlist caption caution contained
|
||||
syn keyword docbkKeyword chapter citation citerefentry citetitle city contained
|
||||
syn keyword docbkKeyword classname cmdsynopsis co collab collabname contained
|
||||
syn keyword docbkKeyword colophon colspec command comment computeroutput contained
|
||||
syn keyword docbkKeyword confdates confgroup confnum confsponsor conftitle contained
|
||||
syn keyword docbkKeyword constant contractnum contractsponsor contrib contained
|
||||
syn keyword docbkKeyword copyright corpauthor corpname country database contained
|
||||
syn keyword docbkKeyword date dedication docinfo edition editor email contained
|
||||
syn keyword docbkKeyword emphasis entry entrytbl envar epigraph equation contained
|
||||
syn keyword docbkKeyword errorcode errorname errortype example fax figure contained
|
||||
syn keyword docbkKeyword filename firstname firstterm footnote footnoteref contained
|
||||
syn keyword docbkKeyword abbrev abstract accel acronym address contained
|
||||
syn keyword docbkKeyword affiliation alt anchor answer appendix contained
|
||||
syn keyword docbkKeyword application area areaset areaspec arg contained
|
||||
syn keyword docbkKeyword article artpagenums attribution audiodata contained
|
||||
syn keyword docbkKeyword audioobject author authorgroup contained
|
||||
syn keyword docbkKeyword authorinitials bibliocoverage bibliodiv contained
|
||||
syn keyword docbkKeyword biblioentry bibliography biblioid contained
|
||||
syn keyword docbkKeyword bibliolist bibliomisc bibliomixed contained
|
||||
syn keyword docbkKeyword bibliomset biblioref bibliorelation contained
|
||||
syn keyword docbkKeyword biblioset bibliosource blockquote book contained
|
||||
syn keyword docbkKeyword bridgehead callout calloutlist caption contained
|
||||
syn keyword docbkKeyword caution chapter citation citebiblioid contained
|
||||
syn keyword docbkKeyword citerefentry citetitle city classname contained
|
||||
syn keyword docbkKeyword classsynopsis classsynopsisinfo cmdsynopsis contained
|
||||
syn keyword docbkKeyword co code col colgroup collab colophon contained
|
||||
syn keyword docbkKeyword colspec command computeroutput confdates contained
|
||||
syn keyword docbkKeyword confgroup confnum confsponsor conftitle contained
|
||||
syn keyword docbkKeyword constant constructorsynopsis contractnum contained
|
||||
syn keyword docbkKeyword contractsponsor contrib copyright coref contained
|
||||
syn keyword docbkKeyword country database date dedication contained
|
||||
syn keyword docbkKeyword destructorsynopsis edition editor email contained
|
||||
syn keyword docbkKeyword emphasis entry entrytbl envar epigraph contained
|
||||
syn keyword docbkKeyword equation errorcode errorname errortext contained
|
||||
syn keyword docbkKeyword errortype example exceptionname fax contained
|
||||
syn keyword docbkKeyword fieldsynopsis figure filename firstname contained
|
||||
syn keyword docbkKeyword firstterm footnote footnoteref contained
|
||||
syn keyword docbkKeyword foreignphrase formalpara funcdef funcparams contained
|
||||
syn keyword docbkKeyword funcprototype funcsynopsis funcsynopsisinfo contained
|
||||
syn keyword docbkKeyword function glossary glossdef glossdiv glossentry contained
|
||||
syn keyword docbkKeyword glosslist glosssee glossseealso glossterm graphic contained
|
||||
syn keyword docbkKeyword graphicco group guibutton guiicon guilabel contained
|
||||
syn keyword docbkKeyword function glossary glossdef glossdiv contained
|
||||
syn keyword docbkKeyword glossentry glosslist glosssee glossseealso contained
|
||||
syn keyword docbkKeyword glossterm group guibutton guiicon guilabel contained
|
||||
syn keyword docbkKeyword guimenu guimenuitem guisubmenu hardware contained
|
||||
syn keyword docbkKeyword highlights holder honorific imagedata imageobject contained
|
||||
syn keyword docbkKeyword imageobjectco important index indexdiv indexentry contained
|
||||
syn keyword docbkKeyword indexterm informalequation informalexample contained
|
||||
syn keyword docbkKeyword informalfigure informaltable inlineequation contained
|
||||
syn keyword docbkKeyword inlinegraphic inlinemediaobject interface contained
|
||||
syn keyword docbkKeyword interfacedefinition invpartnumber isbn issn contained
|
||||
syn keyword docbkKeyword issuenum itemizedlist itermset jobtitle keycap contained
|
||||
syn keyword docbkKeyword keycode keycombo keysym keyword keywordset label contained
|
||||
syn keyword docbkKeyword legalnotice lineage lineannotation link listitem contained
|
||||
syn keyword docbkKeyword literal literallayout lot lotentry manvolnum contained
|
||||
syn keyword docbkKeyword markup medialabel mediaobject mediaobjectco contained
|
||||
syn keyword docbkKeyword member menuchoice modespec mousebutton msg msgaud contained
|
||||
syn keyword docbkKeyword msgentry msgexplan msginfo msglevel msgmain contained
|
||||
syn keyword docbkKeyword msgorig msgrel msgset msgsub msgtext note contained
|
||||
syn keyword docbkKeyword objectinfo olink option optional orderedlist contained
|
||||
syn keyword docbkKeyword orgdiv orgname otheraddr othercredit othername contained
|
||||
syn keyword docbkKeyword pagenums para paramdef parameter part partintro contained
|
||||
syn keyword docbkKeyword phone phrase pob postcode preface primary contained
|
||||
syn keyword docbkKeyword primaryie printhistory procedure productname contained
|
||||
syn keyword docbkKeyword productnumber programlisting programlistingco contained
|
||||
syn keyword docbkKeyword prompt property pubdate publisher publishername contained
|
||||
syn keyword docbkKeyword pubsnumber qandadiv qandaentry qandaset question contained
|
||||
syn keyword docbkKeyword quote refclass refdescriptor refentry contained
|
||||
syn keyword docbkKeyword holder honorific imagedata imageobject contained
|
||||
syn keyword docbkKeyword imageobjectco important index indexdiv contained
|
||||
syn keyword docbkKeyword indexentry indexterm informalequation contained
|
||||
syn keyword docbkKeyword informalexample informalfigure contained
|
||||
syn keyword docbkKeyword informaltable initializer inlineequation contained
|
||||
syn keyword docbkKeyword inlinemediaobject interfacename issuenum contained
|
||||
syn keyword docbkKeyword itemizedlist itermset jobtitle keycap contained
|
||||
syn keyword docbkKeyword keycode keycombo keysym keyword keywordset contained
|
||||
syn keyword docbkKeyword label legalnotice lineage lineannotation contained
|
||||
syn keyword docbkKeyword link listitem literal literallayout contained
|
||||
syn keyword docbkKeyword manvolnum markup mathphrase mediaobject contained
|
||||
syn keyword docbkKeyword member menuchoice methodname methodparam contained
|
||||
syn keyword docbkKeyword methodsynopsis modifier mousebutton msg contained
|
||||
syn keyword docbkKeyword msgaud msgentry msgexplan msginfo msglevel contained
|
||||
syn keyword docbkKeyword msgmain msgorig msgrel msgset msgsub contained
|
||||
syn keyword docbkKeyword msgtext note olink ooclass ooexception contained
|
||||
syn keyword docbkKeyword oointerface option optional orderedlist contained
|
||||
syn keyword docbkKeyword orgdiv orgname otheraddr othercredit contained
|
||||
syn keyword docbkKeyword othername package pagenums para paramdef contained
|
||||
syn keyword docbkKeyword parameter part partintro personblurb contained
|
||||
syn keyword docbkKeyword personname phone phrase pob postcode contained
|
||||
syn keyword docbkKeyword preface primary primaryie printhistory contained
|
||||
syn keyword docbkKeyword procedure productname productnumber contained
|
||||
syn keyword docbkKeyword programlisting programlistingco prompt contained
|
||||
syn keyword docbkKeyword property pubdate publisher publishername contained
|
||||
syn keyword docbkKeyword qandadiv qandaentry qandaset question quote contained
|
||||
syn keyword docbkKeyword refclass refdescriptor refentry contained
|
||||
syn keyword docbkKeyword refentrytitle reference refmeta refmiscinfo contained
|
||||
syn keyword docbkKeyword refname refnamediv refpurpose refsect1 contained
|
||||
syn keyword docbkKeyword refsect1info refsect2 refsect2info refsect3 contained
|
||||
syn keyword docbkKeyword refsect3info refsynopsisdiv refsynopsisdivinfo contained
|
||||
syn keyword docbkKeyword releaseinfo remark replaceable returnvalue revhistory contained
|
||||
syn keyword docbkKeyword revision revnumber revremark row sbr screen contained
|
||||
syn keyword docbkKeyword screenco screeninfo screenshot secondary contained
|
||||
syn keyword docbkKeyword secondaryie sect1 sect1info sect2 sect2info sect3 contained
|
||||
syn keyword docbkKeyword sect3info sect4 sect4info sect5 sect5info section contained
|
||||
syn keyword docbkKeyword sectioninfo see seealso seealsoie seeie seg contained
|
||||
syn keyword docbkKeyword seglistitem segmentedlist segtitle seriesinfo contained
|
||||
syn keyword docbkKeyword seriesvolnums set setindex setinfo sgmltag contained
|
||||
syn keyword docbkKeyword shortaffil shortcut sidebar simpara simplelist contained
|
||||
syn keyword docbkKeyword simplesect spanspec state step street structfield contained
|
||||
syn keyword docbkKeyword structname subject subjectset subjectterm contained
|
||||
syn keyword docbkKeyword subscript substeps subtitle superscript surname contained
|
||||
syn keyword docbkKeyword symbol synopfragment synopfragmentref synopsis contained
|
||||
syn keyword docbkKeyword systemitem table tbody term tertiary tertiaryie contained
|
||||
syn keyword docbkKeyword textobject tfoot tgroup thead tip title contained
|
||||
syn keyword docbkKeyword titleabbrev toc tocback tocchap tocentry tocfront contained
|
||||
syn keyword docbkKeyword toclevel1 toclevel2 toclevel3 toclevel4 toclevel5 contained
|
||||
syn keyword docbkKeyword tocpart token trademark type ulink userinput contained
|
||||
syn keyword docbkKeyword refsect2 refsect3 refsection refsynopsisdiv contained
|
||||
syn keyword docbkKeyword releaseinfo remark replaceable returnvalue contained
|
||||
syn keyword docbkKeyword revdescription revhistory revision contained
|
||||
syn keyword docbkKeyword revnumber revremark row sbr screen screenco contained
|
||||
syn keyword docbkKeyword screenshot secondary secondaryie sect1 contained
|
||||
syn keyword docbkKeyword sect2 sect3 sect4 sect5 section see seealso contained
|
||||
syn keyword docbkKeyword seealsoie seeie seg seglistitem contained
|
||||
syn keyword docbkKeyword segmentedlist segtitle seriesvolnums set contained
|
||||
syn keyword docbkKeyword setindex shortaffil shortcut sidebar contained
|
||||
syn keyword docbkKeyword simpara simplelist simplemsgentry contained
|
||||
syn keyword docbkKeyword simplesect spanspec state step contained
|
||||
syn keyword docbkKeyword stepalternatives street subject subjectset contained
|
||||
syn keyword docbkKeyword subjectterm subscript substeps subtitle contained
|
||||
syn keyword docbkKeyword superscript surname symbol synopfragment contained
|
||||
syn keyword docbkKeyword synopfragmentref synopsis systemitem table contained
|
||||
syn keyword docbkKeyword task taskprerequisites taskrelated contained
|
||||
syn keyword docbkKeyword tasksummary tbody td term termdef tertiary contained
|
||||
syn keyword docbkKeyword tertiaryie textdata textobject tfoot tgroup contained
|
||||
syn keyword docbkKeyword th thead tip title titleabbrev toc tocentry contained
|
||||
syn keyword docbkKeyword token tr trademark type uri userinput contained
|
||||
syn keyword docbkKeyword varargs variablelist varlistentry varname contained
|
||||
syn keyword docbkKeyword videodata videoobject void volumenum warning contained
|
||||
syn keyword docbkKeyword wordasword xref year contained
|
||||
syn keyword docbkKeyword videodata videoobject void volumenum contained
|
||||
syn keyword docbkKeyword warning wordasword xref year contained
|
||||
|
||||
if b:docbk_ver == 4
|
||||
syn keyword docbkKeyword ackno action appendixinfo articleinfo contained
|
||||
syn keyword docbkKeyword authorblurb beginpage bibliographyinfo contained
|
||||
syn keyword docbkKeyword blockinfo bookinfo chapterinfo contained
|
||||
syn keyword docbkKeyword collabname corpauthor corpcredit contained
|
||||
syn keyword docbkKeyword corpname glossaryinfo graphic graphicco contained
|
||||
syn keyword docbkKeyword highlights indexinfo inlinegraphic contained
|
||||
syn keyword docbkKeyword interface invpartnumber isbn issn lot contained
|
||||
syn keyword docbkKeyword lotentry medialabel mediaobjectco contained
|
||||
syn keyword docbkKeyword modespec objectinfo partinfo contained
|
||||
syn keyword docbkKeyword prefaceinfo pubsnumber refentryinfo contained
|
||||
syn keyword docbkKeyword referenceinfo refsect1info refsect2info contained
|
||||
syn keyword docbkKeyword refsect3info refsectioninfo contained
|
||||
syn keyword docbkKeyword refsynopsisdivinfo screeninfo sect1info contained
|
||||
syn keyword docbkKeyword sect2info sect3info sect4info sect5info contained
|
||||
syn keyword docbkKeyword sectioninfo setindexinfo setinfo contained
|
||||
syn keyword docbkKeyword sgmltag sidebarinfo structfield contained
|
||||
syn keyword docbkKeyword structname tocback tocchap tocfront contained
|
||||
syn keyword docbkKeyword toclevel1 toclevel2 toclevel3 toclevel4 contained
|
||||
syn keyword docbkKeyword toclevel5 tocpart ulink contained
|
||||
|
||||
else
|
||||
syn keyword docbkKeyword acknowledgements annotation arc contained
|
||||
syn keyword docbkKeyword constraint constraintdef cover contained
|
||||
syn keyword docbkKeyword extendedlink givenname info lhs locator contained
|
||||
syn keyword docbkKeyword multimediaparam nonterminal org person contained
|
||||
syn keyword docbkKeyword production productionrecap contained
|
||||
syn keyword docbkKeyword productionset rhs tag tocdiv topic contained
|
||||
|
||||
endif
|
||||
|
||||
" Add special emphasis on some regions. Thanks to Rory Hunter <roryh@dcs.ed.ac.uk> for these ideas.
|
||||
syn region docbkRegion start="<emphasis>"lc=10 end="</emphasis>"me=e-11 contains=xmlRegion,xmlEntity,sgmlRegion,sgmlEntity keepend
|
||||
|
||||
26
runtime/syntax/dts.vim
Normal file
26
runtime/syntax/dts.vim
Normal file
@@ -0,0 +1,26 @@
|
||||
" Vim syntax file
|
||||
" Language: dts/dtsi (device tree files)
|
||||
" Maintainer: Daniel Mack <vim@zonque.org>
|
||||
" Last Change: 2012 Oct 04
|
||||
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
syntax region dtsComment start="/\*" end="\*/"
|
||||
syntax match dtsReference "&[[:alpha:][:digit:]_]\+"
|
||||
syntax region dtsBinaryProperty start="\[" end="\]"
|
||||
syntax match dtsStringProperty "\".*\""
|
||||
syntax match dtsKeyword "/.*/"
|
||||
syntax match dtsLabel "^[[:space:]]*[[:alpha:][:digit:]_]\+:"
|
||||
syntax region dtsCellProperty start="<" end=">" contains=dtsReference,dtsBinaryProperty,dtsStringProperty,dtsComment
|
||||
syntax region dtsCommentInner start="/\*" end="\*/"
|
||||
|
||||
hi def link dtsCellProperty Number
|
||||
hi def link dtsBinaryProperty Number
|
||||
hi def link dtsStringProperty String
|
||||
hi def link dtsKeyword Include
|
||||
hi def link dtsLabel Label
|
||||
hi def link dtsReference Macro
|
||||
hi def link dtsComment Comment
|
||||
hi def link dtsCommentInner Comment
|
||||
@@ -2,7 +2,7 @@
|
||||
" Language: GDB command files
|
||||
" Maintainer: Claudio Fleiner <claudio@fleiner.com>
|
||||
" URL: http://www.fleiner.com/vim/syntax/gdb.vim
|
||||
" Last Change: 2009 May 25
|
||||
" Last Change: 2012 Oct 05
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
@@ -12,6 +12,9 @@ elseif exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
syn keyword gdbInfo contained address architecture args breakpoints catch common copying dcache
|
||||
syn keyword gdbInfo contained display files float frame functions handle line
|
||||
syn keyword gdbInfo contained locals program registers scope set sharedlibrary signals
|
||||
@@ -32,7 +35,7 @@ syn match gdbFuncDef "\<define\>.*"
|
||||
syn match gdbStatmentContainer "^\s*\S\+" contains=gdbStatement,gdbFuncDef
|
||||
syn match gdbStatement "^\s*info" nextgroup=gdbInfo skipwhite skipempty
|
||||
|
||||
" some commonly used abreviations
|
||||
" some commonly used abbreviations
|
||||
syn keyword gdbStatement c disp undisp disas p
|
||||
|
||||
syn region gdbDocument matchgroup=gdbFuncDef start="\<document\>.*$" matchgroup=gdbFuncDef end="^end\s*$"
|
||||
@@ -65,12 +68,12 @@ syn match gdbSet "\<input-radix\>"
|
||||
syn match gdbSet "\<demangle-style\>"
|
||||
syn match gdbSet "\<output-radix\>"
|
||||
|
||||
syn match gdbComment "^\s*#.*"
|
||||
syn match gdbComment "^\s*#.*" contains=@Spell
|
||||
|
||||
syn match gdbVariable "\$\K\k*"
|
||||
|
||||
" Strings and constants
|
||||
syn region gdbString start=+"+ skip=+\\\\\|\\"+ end=+"+
|
||||
syn region gdbString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell
|
||||
syn match gdbCharacter "'[^']*'" contains=gdbSpecialChar,gdbSpecialCharError
|
||||
syn match gdbCharacter "'\\''" contains=gdbSpecialChar
|
||||
syn match gdbCharacter "'[^\\]'"
|
||||
@@ -108,4 +111,6 @@ endif
|
||||
|
||||
let b:current_syntax = "gdb"
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
" vim: ts=8
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim syntax file
|
||||
" Language: hg (Mercurial) commit file
|
||||
" Maintainer: Ken Takata <kentkt at csc dot jp>
|
||||
" Last Change: 2012 Aug 2
|
||||
" Last Change: 2012 Aug 23
|
||||
" Filenames: hg-editor-*.txt
|
||||
" License: VIM License
|
||||
" URL: https://github.com/k-takata/hg-vim
|
||||
@@ -10,12 +10,12 @@ if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
syn match hgcommitComment "^HG:.*$"
|
||||
syn match hgcommitUser "^HG: user: \zs.*$" contained containedin=hgcommitComment
|
||||
syn match hgcommitBranch "^HG: branch \zs.*$" contained containedin=hgcommitComment
|
||||
syn match hgcommitAdded "^HG: \zsadded .*$" contained containedin=hgcommitComment
|
||||
syn match hgcommitChanged "^HG: \zschanged .*$" contained containedin=hgcommitComment
|
||||
syn match hgcommitRemoved "^HG: \zsremoved .*$" contained containedin=hgcommitComment
|
||||
syn match hgcommitComment "^HG:.*$" contains=@NoSpell
|
||||
syn match hgcommitUser "^HG: user: \zs.*$" contains=@NoSpell contained containedin=hgcommitComment
|
||||
syn match hgcommitBranch "^HG: branch \zs.*$" contains=@NoSpell contained containedin=hgcommitComment
|
||||
syn match hgcommitAdded "^HG: \zsadded .*$" contains=@NoSpell contained containedin=hgcommitComment
|
||||
syn match hgcommitChanged "^HG: \zschanged .*$" contains=@NoSpell contained containedin=hgcommitComment
|
||||
syn match hgcommitRemoved "^HG: \zsremoved .*$" contains=@NoSpell contained containedin=hgcommitComment
|
||||
|
||||
hi def link hgcommitComment Comment
|
||||
hi def link hgcommitUser String
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
" Language: HTML
|
||||
" Maintainer: Claudio Fleiner <claudio@fleiner.com>
|
||||
" URL: http://www.fleiner.com/vim/syntax/html.vim
|
||||
" Last Change: 2006 Jun 19
|
||||
" Last Change: 2012 Oct 05
|
||||
|
||||
" Please check :help html.vim for some comments and a description of the options
|
||||
|
||||
@@ -17,6 +17,9 @@ if !exists("main_syntax")
|
||||
let main_syntax = 'html'
|
||||
endif
|
||||
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
" don't use standard HiLink, it will not work with included syntax files
|
||||
if version < 508
|
||||
command! -nargs=+ HtmlHiLink hi link <args>
|
||||
@@ -37,7 +40,7 @@ syn region htmlString contained start=+"+ end=+"+ contains=htmlSpecialChar,ja
|
||||
syn region htmlString contained start=+'+ end=+'+ contains=htmlSpecialChar,javaScriptExpression,@htmlPreproc
|
||||
syn match htmlValue contained "=[\t ]*[^'" \t>][^ \t>]*"hs=s+1 contains=javaScriptExpression,@htmlPreproc
|
||||
syn region htmlEndTag start=+</+ end=+>+ contains=htmlTagN,htmlTagError
|
||||
syn region htmlTag start=+<[^/]+ end=+>+ contains=htmlTagN,htmlString,htmlArg,htmlValue,htmlTagError,htmlEvent,htmlCssDefinition,@htmlPreproc,@htmlArgCluster
|
||||
syn region htmlTag start=+<[^/]+ end=+>+ fold contains=htmlTagN,htmlString,htmlArg,htmlValue,htmlTagError,htmlEvent,htmlCssDefinition,@htmlPreproc,@htmlArgCluster
|
||||
syn match htmlTagN contained +<\s*[-a-zA-Z0-9]\++hs=s+1 contains=htmlTagName,htmlSpecialTagName,@htmlTagNameCluster
|
||||
syn match htmlTagN contained +</\s*[-a-zA-Z0-9]\++hs=s+2 contains=htmlTagName,htmlSpecialTagName,@htmlTagNameCluster
|
||||
syn match htmlTagError contained "[^>]<"ms=s+1
|
||||
@@ -98,11 +101,11 @@ syn match htmlSpecialChar "&#\=[0-9A-Za-z]\{1,8};"
|
||||
|
||||
" Comments (the real ones or the old netscape ones)
|
||||
if exists("html_wrong_comments")
|
||||
syn region htmlComment start=+<!--+ end=+--\s*>+
|
||||
syn region htmlComment start=+<!--+ end=+--\s*>+ contains=@Spell
|
||||
else
|
||||
syn region htmlComment start=+<!+ end=+>+ contains=htmlCommentPart,htmlCommentError
|
||||
syn region htmlComment start=+<!+ end=+>+ contains=htmlCommentPart,htmlCommentError,@Spell
|
||||
syn match htmlCommentError contained "[^><!]"
|
||||
syn region htmlCommentPart contained start=+--+ end=+--\s*+ contains=@htmlPreProc
|
||||
syn region htmlCommentPart contained start=+--+ end=+--\s*+ contains=@htmlPreProc,@Spell
|
||||
endif
|
||||
syn region htmlComment start=+<!DOCTYPE+ keepend end=+>+
|
||||
|
||||
@@ -147,7 +150,8 @@ if !exists("html_no_rendering")
|
||||
syn region htmlItalicUnderlineBold contained start="<b\>" end="</b>"me=e-4 contains=@htmlTop
|
||||
syn region htmlItalicUnderlineBold contained start="<strong\>" end="</strong>"me=e-9 contains=@htmlTop
|
||||
|
||||
syn region htmlLink start="<a\>\_[^>]*\<href\>" end="</a>"me=e-4 contains=@Spell,htmlTag,htmlEndTag,htmlSpecialChar,htmlPreProc,htmlComment,javaScript,@htmlPreproc
|
||||
syn match htmlLeadingSpace "^\s\+" contained
|
||||
syn region htmlLink start="<a\>\_[^>]*\<href\>" end="</a>"me=e-4 contains=@Spell,htmlTag,htmlEndTag,htmlSpecialChar,htmlPreProc,htmlComment,htmlLeadingSpace,javaScript,@htmlPreproc
|
||||
syn region htmlH1 start="<h1\>" end="</h1>"me=e-5 contains=@htmlTop
|
||||
syn region htmlH2 start="<h2\>" end="</h2>"me=e-5 contains=@htmlTop
|
||||
syn region htmlH3 start="<h3\>" end="</h3>"me=e-5 contains=@htmlTop
|
||||
@@ -164,8 +168,8 @@ if main_syntax != 'java' || exists("java_javascript")
|
||||
" JAVA SCRIPT
|
||||
syn include @htmlJavaScript syntax/javascript.vim
|
||||
unlet b:current_syntax
|
||||
syn region javaScript start=+<script[^>]*>+ keepend end=+</script>+me=s-1 contains=@htmlJavaScript,htmlCssStyleComment,htmlScriptTag,@htmlPreproc
|
||||
syn region htmlScriptTag contained start=+<script+ end=+>+ contains=htmlTagN,htmlString,htmlArg,htmlValue,htmlTagError,htmlEvent
|
||||
syn region javaScript start=+<script\_[^>]*>+ keepend end=+</script>+me=s-1 contains=@htmlJavaScript,htmlCssStyleComment,htmlScriptTag,@htmlPreproc
|
||||
syn region htmlScriptTag contained start=+<script+ end=+>+ fold contains=htmlTagN,htmlString,htmlArg,htmlValue,htmlTagError,htmlEvent
|
||||
HtmlHiLink htmlScriptTag htmlTag
|
||||
|
||||
" html events (i.e. arguments that include javascript commands)
|
||||
@@ -189,7 +193,7 @@ if main_syntax != 'java' || exists("java_vb")
|
||||
" VB SCRIPT
|
||||
syn include @htmlVbScript syntax/vb.vim
|
||||
unlet b:current_syntax
|
||||
syn region javaScript start=+<script [^>]*language *=[^>]*vbscript[^>]*>+ keepend end=+</script>+me=s-1 contains=@htmlVbScript,htmlCssStyleComment,htmlScriptTag,@htmlPreproc
|
||||
syn region javaScript start=+<script \_[^>]*language *=\_[^>]*vbscript\_[^>]*>+ keepend end=+</script>+me=s-1 contains=@htmlVbScript,htmlCssStyleComment,htmlScriptTag,@htmlPreproc
|
||||
endif
|
||||
|
||||
syn cluster htmlJavaScript add=@htmlPreproc
|
||||
@@ -246,6 +250,7 @@ if version >= 508 || !exists("did_html_syn_inits")
|
||||
HtmlHiLink htmlItalicBoldUnderline htmlBoldUnderlineItalic
|
||||
HtmlHiLink htmlItalicUnderlineBold htmlBoldUnderlineItalic
|
||||
HtmlHiLink htmlLink Underlined
|
||||
HtmlHiLink htmlLeadingSpace None
|
||||
if !exists("html_my_rendering")
|
||||
hi def htmlBold term=bold cterm=bold gui=bold
|
||||
hi def htmlBoldUnderline term=bold,underline cterm=bold,underline gui=bold,underline
|
||||
@@ -289,4 +294,6 @@ if main_syntax == 'html'
|
||||
unlet main_syntax
|
||||
endif
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
" vim: ts=8
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
" Vim syntax file " Language: Java
|
||||
" Vim syntax file
|
||||
" Language: Java
|
||||
" Maintainer: Claudio Fleiner <claudio@fleiner.com>
|
||||
" URL: http://www.fleiner.com/vim/syntax/java.vim
|
||||
" Last Change: 2011 Dec 30
|
||||
" Last Change: 2012 Oct 05
|
||||
|
||||
" Please check :help java.vim for comments on some of the options available.
|
||||
|
||||
@@ -17,6 +18,9 @@ if !exists("main_syntax")
|
||||
syn region javaFold start="{" end="}" transparent fold
|
||||
endif
|
||||
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
" don't use standard HiLink, it will not work with included syntax files
|
||||
if version < 508
|
||||
command! -nargs=+ JavaHiLink hi link <args>
|
||||
@@ -26,7 +30,8 @@ endif
|
||||
|
||||
" some characters that cannot be in a java program (outside a string)
|
||||
syn match javaError "[\\@`]"
|
||||
syn match javaError "<<<\|\.\.\|=>\|<>\|||=\|&&=\|[^-]->\|\*\/"
|
||||
syn match javaError "<<<\|\.\.\|=>\|||=\|&&=\|[^-]->\|\*\/"
|
||||
|
||||
syn match javaOK "\.\.\."
|
||||
|
||||
" use separate name so that it can be deleted in javacc.vim
|
||||
@@ -161,7 +166,7 @@ if !exists("java_ignore_javadoc") && main_syntax != 'jsp'
|
||||
syn region javaDocComment start="/\*\*" end="\*/" keepend contains=javaCommentTitle,@javaHtml,javaDocTags,javaDocSeeTag,javaTodo,@Spell
|
||||
syn region javaCommentTitle contained matchgroup=javaDocComment start="/\*\*" matchgroup=javaCommentTitle keepend end="\.$" end="\.[ \t\r<&]"me=e-1 end="[^{]@"me=s-2,he=s-1 end="\*/"me=s-1,he=s-1 contains=@javaHtml,javaCommentStar,javaTodo,@Spell,javaDocTags,javaDocSeeTag
|
||||
|
||||
syn region javaDocTags contained start="{@\(link\|linkplain\|inherit[Dd]oc\|doc[rR]oot\|value\)" end="}"
|
||||
syn region javaDocTags contained start="{@\(code\|link\|linkplain\|inherit[Dd]oc\|doc[rR]oot\|value\)" end="}"
|
||||
syn match javaDocTags contained "@\(param\|exception\|throws\|since\)\s\+\S\+" contains=javaDocParam
|
||||
syn match javaDocParam contained "\s\S\+"
|
||||
syn match javaDocTags contained "@\(version\|author\|return\|deprecated\|serial\|serialField\|serialData\)\>"
|
||||
@@ -341,5 +346,7 @@ if main_syntax == 'java'
|
||||
endif
|
||||
|
||||
let b:spell_options="contained"
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
" vim: ts=8
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
" Language: JavaCC, a Java Compiler Compiler written by JavaSoft
|
||||
" Maintainer: Claudio Fleiner <claudio@fleiner.com>
|
||||
" URL: http://www.fleiner.com/vim/syntax/javacc.vim
|
||||
" Last Change: 2001 Jun 20
|
||||
" Last Change: 2012 Oct 05
|
||||
|
||||
" Uses java.vim, and adds a few special things for JavaCC Parser files.
|
||||
" Those files usually have the extension *.jj
|
||||
@@ -15,6 +15,9 @@ elseif exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
" source the java.vim file
|
||||
if version < 600
|
||||
source <sfile>:p:h/java.vim
|
||||
@@ -44,7 +47,7 @@ syn keyword javaccPackages options DEBUG_PARSER DEBUG_LOOKAHEAD DEBUG_TOKEN_MANA
|
||||
syn keyword javaccPackages COMMON_TOKEN_ACTION IGNORE_CASE CHOICE_AMBIGUITY_CHECK
|
||||
syn keyword javaccPackages OTHER_AMBIGUITY_CHECK STATIC LOOKAHEAD ERROR_REPORTING
|
||||
syn keyword javaccPackages USER_TOKEN_MANAGER USER_CHAR_STREAM JAVA_UNICODE_ESCAPE
|
||||
syn keyword javaccPackages UNICODE_INPUT
|
||||
syn keyword javaccPackages UNICODE_INPUT JDK_VERSION
|
||||
syn match javaccPackages "PARSER_END([^)]*)"
|
||||
syn match javaccPackages "PARSER_BEGIN([^)]*)"
|
||||
syn match javaccSpecToken "<EOF>"
|
||||
@@ -73,5 +76,7 @@ if version >= 508 || !exists("did_css_syn_inits")
|
||||
endif
|
||||
|
||||
let b:current_syntax = "javacc"
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
" vim: ts=8
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
" (ss) repaired several quoting and grouping glitches
|
||||
" (ss) fixed regex parsing issue with multiple qualifiers [gi]
|
||||
" (ss) additional factoring of keywords, globals, and members
|
||||
" Last Change: 2010 Mar 25
|
||||
" Last Change: 2012 Oct 05
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
@@ -23,6 +23,9 @@ if !exists("main_syntax")
|
||||
let main_syntax = 'javascript'
|
||||
endif
|
||||
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
" Drop fold if it set but vim doesn't support it.
|
||||
if version < 600 && exists("javaScript_fold")
|
||||
unlet javaScript_fold
|
||||
@@ -131,5 +134,7 @@ let b:current_syntax = "javascript"
|
||||
if main_syntax == 'javascript'
|
||||
unlet main_syntax
|
||||
endif
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
" vim: ts=8
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
" Vim syntax file
|
||||
" Language: Lex
|
||||
" Maintainer: Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Nov 01, 2010
|
||||
" Version: 12
|
||||
" Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Nov 14, 2012
|
||||
" Version: 14
|
||||
" URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
|
||||
"
|
||||
" Option:
|
||||
@@ -17,20 +17,16 @@ elseif exists("b:current_syntax")
|
||||
endif
|
||||
|
||||
" Read the C/C++ syntax to start with
|
||||
if version >= 600
|
||||
if exists("lex_uses_cpp")
|
||||
runtime! syntax/cpp.vim
|
||||
else
|
||||
runtime! syntax/c.vim
|
||||
endif
|
||||
unlet b:current_syntax
|
||||
else
|
||||
if exists("lex_uses_cpp")
|
||||
so <sfile>:p:h/cpp.vim
|
||||
else
|
||||
so <sfile>:p:h/c.vim
|
||||
let s:Cpath= fnameescape(expand("<sfile>:p:h").(exists("g:lex_uses_cpp")? "/cpp.vim" : "/c.vim"))
|
||||
if !filereadable(s:Cpath)
|
||||
for s:Cpath in split(globpath(&rtp,(exists("g:lex_uses_cpp")? "syntax/cpp.vim" : "syntax/c.vim")),"\n")
|
||||
if filereadable(fnameescape(s:Cpath))
|
||||
let s:Cpath= fnameescape(s:Cpath)
|
||||
break
|
||||
endif
|
||||
endfor
|
||||
endif
|
||||
exe "syn include @lexCcode ".s:Cpath
|
||||
|
||||
" --- ========= ---
|
||||
" --- Lex stuff ---
|
||||
@@ -39,10 +35,6 @@ endif
|
||||
" Options Section
|
||||
syn match lexOptions '^%\s*option\>.*$' contains=lexPatString
|
||||
|
||||
"I'd prefer to use lex.* , but vim doesn't handle forward definitions yet
|
||||
syn cluster lexListGroup contains=lexAbbrvBlock,lexAbbrv,lexAbbrv,lexAbbrvRegExp,lexInclude,lexPatBlock,lexPat,lexBrace,lexPatString,lexPatTag,lexPatTag,lexPatComment,lexPatCodeLine,lexMorePat,lexPatSep,lexSlashQuote,lexPatCode,cInParen,cUserLabel,cOctalZero,cCppSkip,cErrInBracket,cErrInParen,cOctalError,cCppOut2,cCommentStartError,cParenError
|
||||
syn cluster lexListPatCodeGroup contains=lexAbbrvBlock,lexAbbrv,lexAbbrv,lexAbbrvRegExp,lexInclude,lexPatBlock,lexPat,lexBrace,lexPatTag,lexPatTag,lexPatTagZoneStart,lexPatComment,lexPatCodeLine,lexMorePat,lexPatSep,lexSlashQuote,cInParen,cUserLabel,cOctalZero,cCppSkip,cErrInBracket,cErrInParen,cOctalError,cCppOut2,cCommentStartError,cParenError
|
||||
|
||||
" Abbreviations Section
|
||||
if has("folding")
|
||||
syn region lexAbbrvBlock fold start="^\(\h\+\s\|%{\)" end="^\ze%%$" skipnl nextgroup=lexPatBlock contains=lexAbbrv,lexInclude,lexAbbrvComment,lexStartState
|
||||
@@ -53,52 +45,69 @@ syn match lexAbbrv "^\I\i*\s"me=e-1 skipwhite contained nextgroup=lexAbbrvRe
|
||||
syn match lexAbbrv "^%[sx]" contained
|
||||
syn match lexAbbrvRegExp "\s\S.*$"lc=1 contained nextgroup=lexAbbrv,lexInclude
|
||||
if has("folding")
|
||||
syn region lexInclude fold matchgroup=lexSep start="^%{" end="%}" contained contains=ALLBUT,@lexListGroup
|
||||
syn region lexInclude fold matchgroup=lexSep start="^%{" end="%}" contained contains=@lexCcode
|
||||
syn region lexAbbrvComment fold start="^\s\+/\*" end="\*/" contains=@Spell
|
||||
syn region lexAbbrvComment fold start="\%^/\*" end="\*/" contains=@Spell
|
||||
syn region lexStartState fold matchgroup=lexAbbrv start="^%\a\+" end="$" contained
|
||||
else
|
||||
syn region lexInclude matchgroup=lexSep start="^%{" end="%}" contained contains=ALLBUT,@lexListGroup
|
||||
syn region lexInclude matchgroup=lexSep start="^%{" end="%}" contained contains=@lexCcode
|
||||
syn region lexAbbrvComment start="^\s\+/\*" end="\*/" contains=@Spell
|
||||
syn region lexAbbrvComment start="\%^/\*" end="\*/" contains=@Spell
|
||||
syn region lexStartState matchgroup=lexAbbrv start="^%\a\+" end="$" contained
|
||||
endif
|
||||
|
||||
"%% : Patterns {Actions}
|
||||
if has("folding")
|
||||
syn region lexPatBlock fold matchgroup=Todo start="^%%$" matchgroup=Todo end="^%%$" skipnl skipwhite contains=lexPatTag,lexPatTagZone,lexPatComment,lexPat,lexPatInclude
|
||||
syn region lexPat fold start=+\S+ skip="\\\\\|\\." end="\s"me=e-1 contained nextgroup=lexMorePat,lexPatSep contains=lexPatTag,lexPatString,lexSlashQuote,lexBrace
|
||||
syn region lexPatBlock fold matchgroup=Todo start="^%%$" matchgroup=Todo end="^%\ze%$" skipnl skipwhite nextgroup=lexFinalCodeBlock contains=lexPatTag,lexPatTagZone,lexPatComment,lexPat,lexPatInclude
|
||||
syn region lexPat fold start=+\S+ skip="\\\\\|\\." end="\s"me=e-1 skipwhite contained nextgroup=lexMorePat,lexPatSep,lexPattern contains=lexPatTag,lexPatString,lexSlashQuote,lexBrace
|
||||
syn region lexPatInclude fold matchgroup=lexSep start="^%{" end="%}" contained contains=lexPatCode
|
||||
syn region lexBrace fold start="\[" skip=+\\\\\|\\+ end="]" contained
|
||||
syn region lexPatString fold matchgroup=String start=+"+ skip=+\\\\\|\\"+ matchgroup=String end=+"+ contained
|
||||
else
|
||||
syn region lexPatBlock matchgroup=Todo start="^%%$" matchgroup=Todo end="^%%$" skipnl skipwhite contains=lexPatTag,lexPatTagZone,lexPatComment,lexPat,lexPatInclude
|
||||
syn region lexPat start=+\S+ skip="\\\\\|\\." end="\s"me=e-1 contained nextgroup=lexMorePat,lexPatSep contains=lexPatTag,lexPatString,lexSlashQuote,lexBrace
|
||||
syn region lexPatBlock matchgroup=Todo start="^%%$" matchgroup=Todo end="^%%$" skipnl skipwhite nextgroup=lexFinalCodeBlock contains=lexPatTag,lexPatTagZone,lexPatComment,lexPat,lexPatInclude
|
||||
syn region lexPat start=+\S+ skip="\\\\\|\\." end="\s"me=e-1 skipwhite contained nextgroup=lexMorePat,lexPatSep,lexPattern contains=lexPatTag,lexPatString,lexSlashQuote,lexBrace
|
||||
syn region lexPatInclude matchgroup=lexSep start="^%{" end="%}" contained contains=lexPatCode
|
||||
syn region lexBrace start="\[" skip=+\\\\\|\\+ end="]" contained
|
||||
syn region lexPatString matchgroup=String start=+"+ skip=+\\\\\|\\"+ matchgroup=String end=+"+ contained
|
||||
endif
|
||||
syn match lexPatTag "^<\I\i*\(,\I\i*\)*>" contained nextgroup=lexPat,lexPatTag,lexMorePat,lexPatSep
|
||||
syn match lexPatTagZone "^<\I\i*\(,\I\i*\)*>\s*\ze{" contained nextgroup=lexPatTagZoneStart
|
||||
syn match lexPatTagZone "^<\I\i*\(,\I\i*\)*>\s\+\ze{" contained nextgroup=lexPatTagZoneStart
|
||||
syn match lexPatTag +^<\I\i*\(,\I\i*\)*>*\(\\\\\)*\\"+ contained nextgroup=lexPat,lexPatTag,lexMorePat,lexPatSep
|
||||
|
||||
" Lex Patterns
|
||||
syn region lexPattern start='[^ \t{}]' end="$" contained contains=lexPatRange
|
||||
syn region lexPatRange matchgroup=Delimiter start='\[' skip='\\\\\|\\.' end='\]' contains=lexEscape
|
||||
syn match lexEscape '\%(\\\\\)*\\.' contained
|
||||
|
||||
if has("folding")
|
||||
syn region lexPatTagZoneStart matchgroup=lexPatTag fold start='{' end='}' contained contains=lexPat,lexPatComment
|
||||
syn region lexPatTagZoneStart matchgroup=lexPatTag fold start='{' end='}' contained contains=lexPat,lexPatComment
|
||||
syn region lexPatComment start="\s\+/\*" end="\*/" fold skipnl contained contains=cTodo skipwhite nextgroup=lexPatComment,lexPat,@Spell
|
||||
else
|
||||
syn region lexPatTagZoneStart matchgroup=lexPatTag start='{' end='}' contained contains=lexPat,lexPatComment
|
||||
syn region lexPatTagZoneStart matchgroup=lexPatTag start='{' end='}' contained contains=lexPat,lexPatComment
|
||||
syn region lexPatComment start="\s\+/\*" end="\*/" skipnl contained contains=cTodo skipwhite nextgroup=lexPatComment,lexPat,@Spell
|
||||
endif
|
||||
syn match lexPatCodeLine ".*$" contained contains=ALLBUT,@lexListGroup
|
||||
syn match lexPatCodeLine "[^{\[].*" contained contains=@lexCcode
|
||||
syn match lexMorePat "\s*|\s*$" skipnl contained nextgroup=lexPat,lexPatTag,lexPatComment
|
||||
syn match lexPatSep "\s\+" contained nextgroup=lexMorePat,lexPatCode,lexPatCodeLine
|
||||
syn match lexSlashQuote +\(\\\\\)*\\"+ contained
|
||||
if has("folding")
|
||||
syn region lexPatCode matchgroup=Delimiter start="{" end="}" fold skipnl contained contains=ALLBUT,@lexListPatCodeGroup
|
||||
syn region lexPatCode matchgroup=Delimiter start="{" end="}" fold skipnl contained contains=@lexCcode,lexCFunctions
|
||||
else
|
||||
syn region lexPatCode matchgroup=Delimiter start="{" end="}" skipnl contained contains=ALLBUT,@lexListPatCodeGroup
|
||||
syn region lexPatCode matchgroup=Delimiter start="{" end="}" skipnl contained contains=@lexCcode,lexCFunctions
|
||||
endif
|
||||
|
||||
" Lex "functions" which may appear in C/C++ code blocks
|
||||
syn keyword lexCFunctions BEGIN input unput woutput yyleng yylook yytext
|
||||
syn keyword lexCFunctions ECHO output winput wunput yyless yymore yywrap
|
||||
|
||||
" %%
|
||||
" lexAbbrevBlock
|
||||
" %%
|
||||
" lexPatBlock
|
||||
" %%
|
||||
" lexFinalCodeBlock
|
||||
syn region lexFinalCodeBlock matchgroup=Todo start="%$"me=e-1 end="\%$" contained contains=@lexCcode
|
||||
|
||||
" <c.vim> includes several ALLBUTs; these have to be treated so as to exclude lex* groups
|
||||
syn cluster cParenGroup add=lex.*
|
||||
syn cluster cDefineGroup add=lex.*
|
||||
@@ -107,27 +116,27 @@ syn cluster cMultiGroup add=lex.*
|
||||
|
||||
" Synchronization
|
||||
syn sync clear
|
||||
syn sync minlines=300
|
||||
syn sync minlines=500
|
||||
syn sync match lexSyncPat grouphere lexPatBlock "^%[a-zA-Z]"
|
||||
syn sync match lexSyncPat groupthere lexPatBlock "^<$"
|
||||
syn sync match lexSyncPat groupthere lexPatBlock "^%%$"
|
||||
|
||||
" The default highlighting.
|
||||
hi def link lexAbbrvComment lexPatComment
|
||||
hi def link lexBrace lexPat
|
||||
hi def link lexPatTagZone lexPatTag
|
||||
hi def link lexSlashQuote lexPat
|
||||
|
||||
hi def link lexAbbrvRegExp Macro
|
||||
hi def link lexAbbrv SpecialChar
|
||||
hi def link lexBrace lexPat
|
||||
hi def link lexCFunctions Function
|
||||
hi def link lexCstruct cStructure
|
||||
hi def link lexMorePat SpecialChar
|
||||
hi def link lexOptions PreProc
|
||||
hi def link lexPatComment Comment
|
||||
hi def link lexPat Function
|
||||
hi def link lexPatString Function
|
||||
hi def link lexPatTag Special
|
||||
hi def link lexPatTagZone lexPatTag
|
||||
hi def link lexSep Delimiter
|
||||
hi def link lexSlashQuote lexPat
|
||||
hi def link lexStartState Statement
|
||||
|
||||
let b:current_syntax = "lex"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
" Language: Makefile
|
||||
" Maintainer: Claudio Fleiner <claudio@fleiner.com>
|
||||
" URL: http://www.fleiner.com/vim/syntax/make.vim
|
||||
" Last Change: 2008 Aug 04
|
||||
" Last Change: 2012 Oct 05
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
@@ -12,6 +12,10 @@ elseif exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
|
||||
" some special characters
|
||||
syn match makeSpecial "^\s*[@+-]\+"
|
||||
syn match makeNextLine "\\\n\s*"
|
||||
@@ -25,8 +29,8 @@ syn match makeOverride "^ *override"
|
||||
hi link makeOverride makeStatement
|
||||
hi link makeExport makeStatement
|
||||
|
||||
" Koehler: catch unmatched define/endef keywords. endef only matches it is by itself on a line
|
||||
syn region makeDefine start="^\s*define\s" end="^\s*endef\s*$" contains=makeStatement,makeIdent,makePreCondit,makeDefine
|
||||
" catch unmatched define/endef keywords. endef only matches it is by itself on a line, possibly followed by a commend
|
||||
syn region makeDefine start="^\s*define\s" end="^\s*endef\s*\(#.*\)\?$" contains=makeStatement,makeIdent,makePreCondit,makeDefine
|
||||
|
||||
" Microsoft Makefile specials
|
||||
syn case ignore
|
||||
@@ -48,8 +52,8 @@ syn match makeConfig "@[A-Za-z0-9_]\+@"
|
||||
|
||||
" make targets
|
||||
" syn match makeSpecTarget "^\.\(SUFFIXES\|PHONY\|DEFAULT\|PRECIOUS\|IGNORE\|SILENT\|EXPORT_ALL_VARIABLES\|KEEP_STATE\|LIBPATTERNS\|NOTPARALLEL\|DELETE_ON_ERROR\|INTERMEDIATE\|POSIX\|SECONDARY\)\>"
|
||||
syn match makeImplicit "^\.[A-Za-z0-9_./\t -]\+\s*:[^=]"me=e-2 nextgroup=makeSource
|
||||
syn match makeImplicit "^\.[A-Za-z0-9_./\t -]\+\s*:$"me=e-1 nextgroup=makeSource
|
||||
syn match makeImplicit "^\.[A-Za-z0-9_./\t -]\+\s*:[^=]"me=e-2 nextgroup=makeSource
|
||||
|
||||
syn region makeTarget transparent matchgroup=makeTarget start="^[A-Za-z0-9_./$()%-][A-Za-z0-9_./\t $()%-]*:\{1,2}[^:=]"rs=e-1 end=";"re=e-1,me=e-1 end="[^\\]$" keepend contains=makeIdent,makeSpecTarget,makeNextLine skipnl nextGroup=makeCommands
|
||||
syn match makeTarget "^[A-Za-z0-9_./$()%*@-][A-Za-z0-9_./\t $()%*@-]*::\=\s*$" contains=makeIdent,makeSpecTarget skipnl nextgroup=makeCommands,makeCommandError
|
||||
@@ -134,4 +138,6 @@ endif
|
||||
|
||||
let b:current_syntax = "make"
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
" vim: ts=8
|
||||
|
||||
@@ -3,20 +3,20 @@
|
||||
" Filename extensions: *.p (collides with Pascal),
|
||||
" *.i (collides with assembler)
|
||||
" *.w (collides with cweb)
|
||||
" Maintainer: Philip Uren <philuSPAX@ieee.org> Remove SPAX spam block
|
||||
" Contributors: Chris Ruprecht <chris@ruprecht.org>
|
||||
" Philip Uren <philu@computer.org>
|
||||
" Mikhail Kuperblum <mikhail@whasup.com>
|
||||
" John Florian <jflorian@voyager.net>
|
||||
" Version: 11
|
||||
" Last Change: May 11 2012
|
||||
" Maintainer: Philip Uren <philuSPAXY@ieee.org> Remove SPAXY spam block
|
||||
" Contributors: Matthew Stickney <mtstickneySPAXY@gmail.com>
|
||||
" Chris Ruprecht <chrisSPAXY@ruprecht.org>
|
||||
" Mikhail Kuperblum <mikhailSPAXY@whasup.com>
|
||||
" John Florian <jflorianSPAXY@voyager.net>
|
||||
" Version: 13
|
||||
" Last Change: Nov 11 2012
|
||||
|
||||
" For version 5.x: Clear all syntax item
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
finish
|
||||
finish
|
||||
endif
|
||||
|
||||
let s:cpo_save = &cpo
|
||||
@@ -34,7 +34,7 @@ set expandtab
|
||||
syn case ignore
|
||||
|
||||
" Progress Blocks of code and mismatched "end." errors.
|
||||
syn match ProgressEndError "\<end\>"
|
||||
syn match ProgressEndError "\<end\>"
|
||||
syn region ProgressDoBlock transparent matchgroup=ProgressDo start="\<do\>" matchgroup=ProgressDo end="\<end\>" contains=ALLBUT,ProgressProcedure,ProgressFunction
|
||||
syn region ProgressForBlock transparent matchgroup=ProgressFor start="\<for\>" matchgroup=ProgressFor end="\<end\>" contains=ALLBUT,ProgressProcedure,ProgressFunction
|
||||
syn region ProgressRepeatBlock transparent matchgroup=ProgressRepeat start="\<repeat\>" matchgroup=ProgressRepeat end="\<end\>" contains=ALLBUT,ProgressProcedure,ProgressFunction
|
||||
@@ -44,20 +44,20 @@ syn region ProgressCaseBlock transparent matchgroup=ProgressCase start="\<case\>
|
||||
" and they could go in ProgressReserved,
|
||||
" but I found it more helpful to highlight them in a different color.
|
||||
syn keyword ProgressConditional if else then when otherwise
|
||||
syn keyword ProgressFor each where
|
||||
syn keyword ProgressFor each where
|
||||
|
||||
" Make those TODO and debugging notes stand out!
|
||||
syn keyword ProgressTodo contained TODO BUG FIX
|
||||
syn keyword ProgressDebug contained DEBUG
|
||||
syn keyword ProgressTodo contained TODO BUG FIX
|
||||
syn keyword ProgressDebug contained DEBUG
|
||||
syn keyword ProgressDebug debugger
|
||||
|
||||
" If you like to highlight the whole line of
|
||||
" the start and end of procedures
|
||||
" to make the whole block of code stand out:
|
||||
syn match ProgressProcedure "^\s*procedure.*"
|
||||
syn match ProgressProcedure "^\s*end\s\s*procedure.*"
|
||||
syn match ProgressFunction "^\s*function.*"
|
||||
syn match ProgressFunction "^\s*end\s\s*function.*"
|
||||
syn match ProgressProcedure "^\s*procedure.*"
|
||||
syn match ProgressProcedure "^\s*end\s\s*procedure.*"
|
||||
syn match ProgressFunction "^\s*function.*"
|
||||
syn match ProgressFunction "^\s*end\s\s*function.*"
|
||||
" ... otherwise use this:
|
||||
" syn keyword ProgressFunction procedure function
|
||||
|
||||
@@ -99,14 +99,14 @@ syn keyword ProgressReserved window-maxim[ized] window-minim[ized] window-normal
|
||||
" Strings. Handles embedded quotes.
|
||||
" Note that, for some reason, Progress doesn't use the backslash, "\"
|
||||
" as the escape character; it uses tilde, "~".
|
||||
syn region ProgressString matchgroup=ProgressQuote start=+"+ end=+"+ skip=+\~'\|\~\~+
|
||||
syn region ProgressString matchgroup=ProgressQuote start=+'+ end=+'+ skip=+\~'\|\~\~+
|
||||
syn region ProgressString matchgroup=ProgressQuote start=+"+ end=+"+ skip=+\~'\|\~\~\|\~"+ contains=@Spell
|
||||
syn region ProgressString matchgroup=ProgressQuote start=+'+ end=+'+ skip=+\~'\|\~\~\|\~"+ contains=@Spell
|
||||
|
||||
syn match ProgressIdentifier "\<[a-zA-Z_][a-zA-Z0-9_]*\>()"
|
||||
|
||||
" syn match ProgressDelimiter "()"
|
||||
|
||||
syn match ProgressMatrixDelimiter "[][]"
|
||||
syn match ProgressMatrixDelimiter "[][]"
|
||||
" If you prefer you can highlight the range:
|
||||
"syn match ProgressMatrixDelimiter "[\d\+\.\.\d\+]"
|
||||
|
||||
@@ -114,7 +114,7 @@ syn match ProgressNumber "\<\-\=\d\+\(u\=l\=\|lu\|f\)\>"
|
||||
syn match ProgressByte "\$[0-9a-fA-F]\+"
|
||||
|
||||
" More values: Logicals, and Progress's unknown value, ?.
|
||||
syn match ProgressNumber "?"
|
||||
syn match ProgressNumber "?"
|
||||
syn keyword ProgressNumber true false yes no
|
||||
|
||||
" If you don't like tabs:
|
||||
@@ -123,9 +123,9 @@ syn match ProgressShowTab "\t"
|
||||
" If you don't like white space on the end of lines, uncomment this:
|
||||
" syn match ProgressSpaceError "\s\+$"
|
||||
|
||||
syn region ProgressComment start="/\*" end="\*/" contains=ProgressComment,ProgressTodo,ProgressDebug
|
||||
syn region ProgressInclude start="^[ ]*[{]" end="[}]" contains=ProgressPreProc,ProgressOperator,ProgressString,ProgressComment
|
||||
syn region ProgressPreProc start="&" end="\>" contained
|
||||
syn region ProgressComment start="/\*" end="\*/" contains=ProgressComment,ProgressTodo,ProgressDebug,@Spell
|
||||
syn region ProgressInclude start="^[ ]*[{]" end="[}]" contains=ProgressPreProc,ProgressOperator,ProgressString,ProgressComment
|
||||
syn region ProgressPreProc start="&" end="\>" contained
|
||||
|
||||
" This next line works reasonably well.
|
||||
" syn match ProgressOperator "[!;|)(:.><+*=-]"
|
||||
@@ -277,7 +277,7 @@ syn keyword ProgressOperator write-fragment write-message write-processing-instr
|
||||
syn keyword ProgressOperator xml-data-type xml-node-name xml-node-type xml-schema-pat[h] xml-suppress-namespace-processing y y-of year year-offset yes-no
|
||||
syn keyword ProgressOperator yes-no-cancel
|
||||
|
||||
syn keyword ProgressType char[acter] int[eger] int64 dec[imal] log[ical] da[te] datetime datetime-tz
|
||||
syn keyword ProgressType char[acter] int[eger] int64 dec[imal] log[ical] da[te] datetime datetime-tz
|
||||
|
||||
syn sync lines=800
|
||||
|
||||
@@ -285,40 +285,40 @@ syn sync lines=800
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_progress_syntax_inits")
|
||||
if version < 508
|
||||
let did_progress_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
if version < 508
|
||||
let did_progress_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
|
||||
" The default methods for highlighting. Can be overridden later.
|
||||
HiLink ProgressByte Number
|
||||
HiLink ProgressCase Repeat
|
||||
HiLink ProgressComment Comment
|
||||
HiLink ProgressConditional Conditional
|
||||
HiLink ProgressDebug Debug
|
||||
HiLink ProgressDo Repeat
|
||||
HiLink ProgressEndError Error
|
||||
HiLink ProgressFor Repeat
|
||||
HiLink ProgressFunction Procedure
|
||||
HiLink ProgressIdentifier Identifier
|
||||
HiLink ProgressInclude Include
|
||||
HiLink ProgressMatrixDelimiter Identifier
|
||||
HiLink ProgressNumber Number
|
||||
HiLink ProgressOperator Operator
|
||||
HiLink ProgressPreProc PreProc
|
||||
HiLink ProgressProcedure Procedure
|
||||
HiLink ProgressQuote Delimiter
|
||||
HiLink ProgressRepeat Repeat
|
||||
HiLink ProgressReserved Statement
|
||||
HiLink ProgressSpaceError Error
|
||||
HiLink ProgressString String
|
||||
HiLink ProgressTodo Todo
|
||||
HiLink ProgressType Statement
|
||||
HiLink ProgressShowTab Error
|
||||
" The default methods for highlighting. Can be overridden later.
|
||||
HiLink ProgressByte Number
|
||||
HiLink ProgressCase Repeat
|
||||
HiLink ProgressComment Comment
|
||||
HiLink ProgressConditional Conditional
|
||||
HiLink ProgressDebug Debug
|
||||
HiLink ProgressDo Repeat
|
||||
HiLink ProgressEndError Error
|
||||
HiLink ProgressFor Repeat
|
||||
HiLink ProgressFunction Procedure
|
||||
HiLink ProgressIdentifier Identifier
|
||||
HiLink ProgressInclude Include
|
||||
HiLink ProgressMatrixDelimiter Identifier
|
||||
HiLink ProgressNumber Number
|
||||
HiLink ProgressOperator Operator
|
||||
HiLink ProgressPreProc PreProc
|
||||
HiLink ProgressProcedure Procedure
|
||||
HiLink ProgressQuote Delimiter
|
||||
HiLink ProgressRepeat Repeat
|
||||
HiLink ProgressReserved Statement
|
||||
HiLink ProgressSpaceError Error
|
||||
HiLink ProgressString String
|
||||
HiLink ProgressTodo Todo
|
||||
HiLink ProgressType Statement
|
||||
HiLink ProgressShowTab Error
|
||||
|
||||
delcommand HiLink
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "progress"
|
||||
@@ -326,4 +326,4 @@ let b:current_syntax = "progress"
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
" vim: ts=8 sw=4
|
||||
" vim: ts=8 sw=8
|
||||
|
||||
@@ -1,14 +1,8 @@
|
||||
" Vim syntax file
|
||||
" Language: Rexx
|
||||
" Maintainer: Thomas Geulig <geulig@nentec.de>
|
||||
" Last Change: 2005 Dez 9, added some <http://www.ooRexx.org>-coloring,
|
||||
" line comments, do *over*, messages, directives,
|
||||
" highlighting classes, methods, routines and requires
|
||||
" 2007 Oct 17, added support for new ooRexx 3.2 features
|
||||
" Rony G. Flatscher <rony.flatscher@wu-wien.ac.at>
|
||||
"
|
||||
" Last Change: 2012 Sep 14, added support for new ooRexx 4.0 features
|
||||
" URL: http://www.geulig.de/vim/rexx.vim
|
||||
"
|
||||
" Special Thanks to Dan Sharp <dwsharp@hotmail.com> and Rony G. Flatscher
|
||||
" <Rony.Flatscher@wu-wien.ac.at> for comments and additions
|
||||
|
||||
@@ -54,7 +48,7 @@ syn match rexxKeyword contained "\<use\>\s*\(strict\s*\)\?\<arg\>"
|
||||
syn match rexxRegularCallSignal contained "\<\(call\|signal\)\s\(\s*on\>\|\s*off\>\)\@!\(\k\+\ze\|\ze(\)\(\s*\|;\|$\|(\)"
|
||||
syn region rexxLabel contained start="\<\(call\|signal\)\>\s*\zs\(\k*\|(\)" end="\ze\(\s*\|;\|$\|(\)" containedin=rexxRegularCallSignal
|
||||
|
||||
syn match rexxExceptionHandling contained "\<\(call\|signal\)\>\s\+\<\(on\|off\)\>.*\(;\|$\)"
|
||||
syn match rexxExceptionHandling contained "\<\(call\|signal\)\>\s\+\<\(on\|off\)\>.*\(;\|$\)" contains=rexxComment
|
||||
|
||||
" hilite label given after keyword "name"
|
||||
syn match rexxLabel "name\s\+\zs\k\+\ze" containedin=rexxExceptionHandling
|
||||
@@ -74,13 +68,14 @@ syn match rexxConditional "\<\(then\|else\|when\|otherwise\)\(\s*\|;\|\_$\|\)\>"
|
||||
syn match rexxLoopKeywords "\<\(to\|by\|for\|until\|while\|over\)\>" containedin=doLoopSelectLabelRegion
|
||||
|
||||
" must be after Conditional phrases!
|
||||
syn match doLoopSelectLabelRegion "\<\(do\|loop\|select\)\>\s\+\(label\s\+\)\?\(\s\+\k\+\s\+\zs\<over\>\)\?\k*\(\s\+forever\)\?\(\s\|;\|$\)"
|
||||
syn match doLoopSelectLabelRegion "\<\(do\|loop\|select\)\>\s\+\(label\s\+\)\?\(\s\+\k\+\s\+\zs\<over\>\)\?\k*\(\s\+forever\)\?\(\s\|;\|$\)" contains=doLoopSelectLabelRegion,rexxStartValueAssignment,rexxLoopKeywords
|
||||
|
||||
" color label's name
|
||||
syn match rexxLabel2 "\<\(do\|loop\|select\)\>\s\+label\s\+\zs\k*\ze" containedin=doLoopSelectLabelRegion
|
||||
|
||||
" make sure control variable is normal
|
||||
syn match rexxControlVariable "\<\(do\|loop\)\>\(\s\+label\s\+\k*\)\?\s\+\zs.*\ze\s\+\<over\>" containedin=doLoopSelectLabelRegion
|
||||
" TODO: re-activate ?
|
||||
"rgf syn match rexxControlVariable "\<\(do\|loop\)\>\(\s\+label\s\+\k*\)\?\s\+\zs.*\ze\s\+\<over\>" containedin=doLoopSelectLabelRegion
|
||||
|
||||
" make sure control variable assignment is normal
|
||||
syn match rexxStartValueAssignment "\<\(do\|loop\)\>\(\s\+label\s\+\k*\)\?\s\+\zs.*\ze\(=.*\)\?\s\+\<to\>" containedin=doLoopSelectLabelRegion
|
||||
@@ -96,7 +91,8 @@ syn match rexxGuard "\(^\|;\|:\)\s*\<guard\>\s\+\<\(on\|off\)\>"
|
||||
syn match rexxTrace "\(^\|;\|:\)\s*\<trace\>\s\+\<\K\k*\>"
|
||||
|
||||
" Raise statement
|
||||
syn match rexxRaise "\(^\|;\|:\)\s\+\<raise\>\s*\<\(propagate\|error\|failure\|syntax\|user\)\>\?" contains=rexxRaise2
|
||||
" syn match rexxRaise "\(^\|;\|:\)\s\+\<raise\>\s*\<\(propagate\|error\|failure\|syntax\|user\)\>\?" contains=rexxRaise2
|
||||
syn match rexxRaise "\(^\|;\|:\)\s*\<raise\>\s*\<\(propagate\|error\|failure\|syntax\|user\)\>\?" contains=rexxRaise2
|
||||
syn match rexxRaise2 "\<\(additional\|array\|description\|exit\|propagate\|return\)\>" containedin=rexxRaise
|
||||
|
||||
" Forward statement
|
||||
@@ -142,19 +138,36 @@ syn keyword rexxSpecialVariable sigl rc result self super
|
||||
syn keyword rexxSpecialVariable .environment .error .input .local .methods .output .rs .stderr .stdin .stdout .stdque
|
||||
|
||||
" Constants
|
||||
syn keyword rexxConst .true .false .nil .endOfLine .line
|
||||
syn keyword rexxConst .true .false .nil .endOfLine .line .context
|
||||
|
||||
" Rexx numbers
|
||||
" int like number
|
||||
syn match rexxNumber '\d\+' contained
|
||||
syn match rexxNumber '[-+]\s*\d\+' contained
|
||||
|
||||
" Floating point number with decimal
|
||||
syn match rexxNumber '\d\+\.\d*' contained
|
||||
syn match rexxNumber '[-+]\s*\d\+\.\d*' contained
|
||||
|
||||
" Floating point like number with E
|
||||
syn match rexxNumber '[-+]\s*\d*[eE][\-+]\d\+' contained
|
||||
syn match rexxNumber '\d*[eE][\-+]\d\+' contained
|
||||
|
||||
" Floating point like number with E and decimal point (+,-)
|
||||
syn match rexxNumber '[-+]\s*\d*\.\d*[eE][\-+]\d\+' contained
|
||||
syn match rexxNumber '\d*\.\d*[eE][\-+]\d\+' contained
|
||||
|
||||
syn match rexxNumber "\(-\|+\)\?\s*\zs\<\(\d\+\.\?\|\d*\.\d\+\(E\(+\|-\)\d\{2,2}\)\?\)\?\>"
|
||||
|
||||
" ooRexx builtin classes (as of version 3.2.0, fall 2007), first define dot to be o.k. in keywords
|
||||
syn keyword rexxBuiltinClass .Alarm .ArgUtil .Array .Bag .CaselessColumnComparator
|
||||
syn keyword rexxBuiltinClass .CaselessComparator .CaselessDescendingComparator .CircularQueue
|
||||
syn keyword rexxBuiltinClass .Class .Collection .ColumnComparator .Comparable .Comparator
|
||||
syn keyword rexxBuiltinClass .DateTime .DescendingComparator .Directory .InputOutputStream
|
||||
syn keyword rexxBuiltinClass .DateTime .DescendingComparator .Directory .File .InputOutputStream
|
||||
syn keyword rexxBuiltinClass .InputStream .InvertingComparator .List .MapCollection
|
||||
syn keyword rexxBuiltinClass .Message .Method .Monitor .MutableBuffer .Object
|
||||
syn keyword rexxBuiltinClass .OrderedCollection .OutputStream .Properties .Queue
|
||||
syn keyword rexxBuiltinClass .Relation .RexxQueue .Set .SetCollection .Stem .Stream
|
||||
syn keyword rexxBuiltinClass .OrderedCollection .OutputStream .Package .Properties .Queue
|
||||
syn keyword rexxBuiltinClass .RegularExpression .Relation .RexxContext .RexxQueue .Routine
|
||||
syn keyword rexxBuiltinClass .Set .SetCollection .Stem .Stream
|
||||
syn keyword rexxBuiltinClass .StreamSupplier .String .Supplier .Table .TimeSpan
|
||||
|
||||
" Windows-only classes
|
||||
@@ -163,7 +176,8 @@ syn keyword rexxBuiltinClass .CategoryDialog .CheckBox .CheckList .ComboBox .Dia
|
||||
syn keyword rexxBuiltinClass .DialogExtensions .DlgArea .DlgAreaU .DynamicDialog
|
||||
syn keyword rexxBuiltinClass .EditControl .InputBox .IntegerBox .ListBox .ListChoice
|
||||
syn keyword rexxBuiltinClass .ListControl .MenuObject .MessageExtensions .MultiInputBox
|
||||
syn keyword rexxBuiltinClass .MultiListChoice .PasswordBox .PlainBaseDialog .PlainUserDialog
|
||||
syn keyword rexxBuiltinClass .MultiListChoice .OLEObject .OLEVariant
|
||||
syn keyword rexxBuiltinClass .PasswordBox .PlainBaseDialog .PlainUserDialog
|
||||
syn keyword rexxBuiltinClass .ProgressBar .ProgressIndicator .PropertySheet .RadioButton
|
||||
syn keyword rexxBuiltinClass .RcDialog .ResDialog .ScrollBar .SingleSelection .SliderControl
|
||||
syn keyword rexxBuiltinClass .StateIndicator .StaticControl .TabControl .TimedMessage
|
||||
@@ -171,22 +185,34 @@ syn keyword rexxBuiltinClass .TreeControl .UserDialog .VirtualKeyCodes .WindowBa
|
||||
syn keyword rexxBuiltinClass .WindowExtensions .WindowObject .WindowsClassesBase .WindowsClipboard
|
||||
syn keyword rexxBuiltinClass .WindowsEventLog .WindowsManager .WindowsProgramManager .WindowsRegistry
|
||||
|
||||
" BSF4ooRexx classes
|
||||
syn keyword rexxBuiltinClass .BSF .bsf.dialog .bsf_proxy
|
||||
syn keyword rexxBuiltinClass .UNO .UNO_ENUM .UNO_CONSTANTS .UNO_PROPERTIES
|
||||
|
||||
" ooRexx directives, ---rgf location important, otherwise directives in top of file not matched!
|
||||
syn region rexxClassDirective start="::\s*class\s*"ms=e+1 end="\ze\(\s\|;\|$\)"
|
||||
syn region rexxMethodDirective start="::\s*method\s*"ms=e+1 end="\ze\(\s\|;\|$\)"
|
||||
syn region rexxRequiresDirective start="::\s*requires\s*"ms=e+1 end="\ze\(\s\|;\|$\)"
|
||||
syn region rexxRoutineDirective start="::\s*routine\s*"ms=e+1 end="\ze\(\s\|;\|$\)"
|
||||
syn region rexxAttributeDirective start="::\s*attribute\s*"ms=e+1 end="\ze\(\s\|;\|$\)"
|
||||
" rgf, 2012-09-09
|
||||
syn region rexxOptionsDirective start="::\s*options\s*"ms=e+1 end="\ze\(\s\|;\|$\)"
|
||||
syn region rexxConstantDirective start="::\s*constant\s*"ms=e+1 end="\ze\(\s\|;\|$\)"
|
||||
|
||||
syn region rexxDirective start="\(^\|;\)\s*::\s*\w\+" end="\($\|;\)" contains=rexxString,rexxNumber,rexxComment,rexxLineComment,rexxClassDirective,rexxMethodDirective,rexxRoutineDirective,rexxRequiresDirective,rexxAttributeDirective,rexxOptionsDirective,rexxConstantDirective keepend
|
||||
|
||||
syn match rexxOptionsDirective2 "\<\(digits\|form\|fuzz\|trace\)\>" containedin = rexxOptionsDirective3
|
||||
syn region rexxOptionsDirective3 start="\(^\|;\)\s*::\s*options\s"ms=e+1 end="\($\|;\)" contains=rexxString,rexxNumber,rexxVariable,rexxComment,rexxLineComment containedin = rexxDirective
|
||||
|
||||
syn region rexxDirective start="\(^\|;\)\s*::\s*\w\+" end="\($\|;\)" contains=rexxString,rexxComment,rexxLineComment,rexxClassDirective,rexxMethodDirective,rexxRoutineDirective,rexxRequiresDirective,rexxAttributeDirective keepend
|
||||
|
||||
syn region rexxVariable start="\zs\<\(\.\)\@!\K\k\+\>\ze\s*\(=\|,\|)\|%\|\]\|\\\||\|&\|+=\|-=\|<\|>\)" end="\(\_$\|.\)"me=e-1
|
||||
syn match rexxVariable "\(=\|,\|)\|%\|\]\|\\\||\|&\|+=\|-=\|<\|>\)\s*\zs\K\k*\ze"
|
||||
syn match rexxVariable "\(=\|,\|)\|%\|\]\|\\\||\|&\|+=\|-=\|<\|>\)\s*\zs\K\k*\ze"
|
||||
|
||||
" rgf, 2007-07-22: unfortunately, the entire region is colored (not only the
|
||||
" patterns), hence useless (vim 7.0)! (syntax-docs hint that that should work)
|
||||
" attempt: just colorize the parenthesis in matching colors, keep content
|
||||
" transparent to keep the formatting already done to it!
|
||||
" TODO: test on 7.3
|
||||
" syn region par1 matchgroup=par1 start="(" matchgroup=par1 end=")" transparent contains=par2
|
||||
" syn region par2 matchgroup=par2 start="(" matchgroup=par2 end=")" transparent contains=par3 contained
|
||||
" syn region par3 matchgroup=par3 start="(" matchgroup=par3 end=")" transparent contains=par4 contained
|
||||
@@ -200,11 +226,11 @@ syn match rexxVariable "\(=\|,\|)\|%\|\]\|\\\||\|&\|+=\|-=\|<\|>\)\s*\zs\K\k*\ze
|
||||
" syn region par4 matchgroup=par4 start="(" end=")" contains=par5 contained
|
||||
" syn region par5 matchgroup=par5 start="(" end=")" contains=par1 contained
|
||||
|
||||
hi par1 ctermfg=red guifg=red
|
||||
hi par2 ctermfg=blue guifg=blue
|
||||
hi par3 ctermfg=darkgreen guifg=darkgreen
|
||||
hi par4 ctermfg=darkyellow guifg=darkyellow
|
||||
hi par5 ctermfg=darkgrey guifg=darkgrey
|
||||
hi par1 ctermfg=red guifg=red "guibg=grey
|
||||
hi par2 ctermfg=blue guifg=blue "guibg=grey
|
||||
hi par3 ctermfg=darkgreen guifg=darkgreen "guibg=grey
|
||||
hi par4 ctermfg=darkyellow guifg=darkyellow "guibg=grey
|
||||
hi par5 ctermfg=darkgrey guifg=darkgrey "guibg=grey
|
||||
|
||||
" line continuation (trailing comma or single dash)
|
||||
syn sync linecont "\(,\|-\ze-\@!\)\ze\s*\(--.*\|\/\*.*\)*$"
|
||||
@@ -214,7 +240,7 @@ syn sync linecont "\(,\|-\ze-\@!\)\ze\s*\(--.*\|\/\*.*\)*$"
|
||||
" endif
|
||||
" exec "syn sync ccomment rexxComment minlines=" . rexx_minlines
|
||||
|
||||
" always scan from start, PCs are powerful enough for that in 2007 !
|
||||
" always scan from start, PCs have long become to be powerful enough for that
|
||||
exec "syn sync fromstart"
|
||||
|
||||
" Define the default highlighting.
|
||||
@@ -236,7 +262,7 @@ if version >= 508 || !exists("did_rexx_syn_inits")
|
||||
HiLink endIterateLeaveLabelRegion rexxKeyword
|
||||
HiLink rexxLoopKeywords rexxKeyword " Todo
|
||||
|
||||
HiLink rexxNumber Normal
|
||||
HiLink rexxNumber Normal "DiffChange
|
||||
" HiLink rexxIdentifier DiffChange
|
||||
|
||||
HiLink rexxRegularCallSignal Statement
|
||||
@@ -249,7 +275,7 @@ if version >= 508 || !exists("did_rexx_syn_inits")
|
||||
HiLink rexxCommentError rexxError
|
||||
HiLink rexxError Error
|
||||
HiLink rexxKeyword Statement
|
||||
HiLink rexxKeywordStatements Statement
|
||||
HiLink rexxKeywordStatements Statement
|
||||
|
||||
HiLink rexxFunction Function
|
||||
HiLink rexxString String
|
||||
@@ -271,6 +297,13 @@ if version >= 508 || !exists("did_rexx_syn_inits")
|
||||
HiLink rexxRequiresDirective Include
|
||||
HiLink rexxRoutineDirective rexxFunction
|
||||
|
||||
" rgf, 2012-09-09
|
||||
HiLink rexxOptionsDirective rexxFunction
|
||||
HiLink rexxOptionsDirective2 rexxOptionsDirective
|
||||
HiLink rexxOptionsDirective3 Normal " rexxOptionsDirective
|
||||
|
||||
HiLink rexxConstantDirective rexxFunction
|
||||
|
||||
HiLink rexxConst Constant
|
||||
HiLink rexxTypeSpecifier Type
|
||||
HiLink rexxBuiltinClass rexxTypeSpecifier
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim syntax file
|
||||
" Language: reStructuredText documentation format
|
||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||
" Latest Revision: 2012-08-05
|
||||
" Latest Revision: 2012-11-01
|
||||
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
@@ -139,6 +139,27 @@ syn match rstStandaloneHyperlink contains=@NoSpell
|
||||
" though.
|
||||
syn sync minlines=50 linebreaks=1
|
||||
|
||||
syn region rstCodeBlock contained matchgroup=rstDirective
|
||||
\ start=+\%(sourcecode\|code\%(-block\)\=\)::\s+
|
||||
\ skip=+^$+
|
||||
\ end=+^\s\@!+
|
||||
\ contains=@NoSpell
|
||||
syn cluster rstDirectives add=rstCodeBlock
|
||||
|
||||
if !exists('g:rst_syntax_code_list')
|
||||
let g:rst_syntax_code_list = ['vim', 'java', 'cpp', 'lisp', 'php', 'python', 'perl']
|
||||
endif
|
||||
|
||||
for code in g:rst_syntax_code_list
|
||||
unlet! b:current_syntax
|
||||
exe 'syn include @rst'.code.' syntax/'.code.'.vim'
|
||||
exe 'syn region rstDirective'.code.' matchgroup=rstDirective fold '
|
||||
\.'start=#\%(sourcecode\|code\%(-block\)\=\)::\s\+'.code.'\s*$# '
|
||||
\.'skip=#^$# '
|
||||
\.'end=#^\s\@!# contains=@NoSpell,@rst'.code
|
||||
exe 'syn cluster rstDirectives add=rstDirective'.code
|
||||
endfor
|
||||
|
||||
hi def link rstTodo Todo
|
||||
hi def link rstComment Comment
|
||||
hi def link rstSections Title
|
||||
@@ -168,6 +189,7 @@ hi def link rstFootnoteReference Identifier
|
||||
hi def link rstCitationReference Identifier
|
||||
hi def link rstHyperLinkReference Identifier
|
||||
hi def link rstStandaloneHyperlink Identifier
|
||||
hi def link rstCodeBlock String
|
||||
|
||||
let b:current_syntax = "rst"
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
" Vim syntax file
|
||||
" Language: shell (sh) Korn shell (ksh) bash (sh)
|
||||
" Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Previous Maintainer: Lennart Schultz <Lennart.Schultz@ecmwf.int>
|
||||
" Last Change: Mar 19, 2012
|
||||
" Version: 122
|
||||
" Last Change: Nov 14, 2012
|
||||
" Version: 128
|
||||
" URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
|
||||
" For options and settings, please use: :help ft-sh-syntax
|
||||
" This file includes many ideas from ?ric Brunet (eric.brunet@ens.fr)
|
||||
@@ -17,15 +17,18 @@ elseif exists("b:current_syntax")
|
||||
endif
|
||||
|
||||
" AFAICT "." should be considered part of the iskeyword. Using iskeywords in
|
||||
" syntax is dicey, so the following code permits the user to prevent/override
|
||||
" its setting.
|
||||
if exists("g:sh_isk") " override support
|
||||
exe "setlocal isk=".g:sh_isk
|
||||
elseif !exists("g:sh_noisk") " prevent modification support
|
||||
setlocal isk+=.
|
||||
" syntax is dicey, so the following code permits the user to
|
||||
" g:sh_isk set to a string : specify iskeyword.
|
||||
" g:sh_noisk exists : don't change iskeyword
|
||||
" g:sh_noisk does not exist : (default) append "." to iskeyword
|
||||
if exists("g:sh_isk") && type(g:sh_isk) == 1 " user specifying iskeyword
|
||||
exe "setl isk=".g:sh_isk
|
||||
elseif !exists("g:sh_noisk") " optionally prevent appending '.' to iskeyword
|
||||
setl isk+=.
|
||||
endif
|
||||
|
||||
" trying to answer the question: which shell is /bin/sh, really?
|
||||
" If the user has not specified any of g:is_kornshell, g:is_bash, g:is_posix, g:is_sh, then guess.
|
||||
if !exists("g:is_kornshell") && !exists("g:is_bash") && !exists("g:is_posix") && !exists("g:is_sh")
|
||||
if executable("/bin/sh")
|
||||
if resolve("/bin/sh") =~ 'bash$'
|
||||
@@ -76,16 +79,19 @@ elseif g:sh_fold_enabled != 0 && !has("folding")
|
||||
echomsg "Ignoring g:sh_fold_enabled=".g:sh_fold_enabled."; need to re-compile vim for +fold support"
|
||||
endif
|
||||
if !exists("s:sh_fold_functions")
|
||||
let s:sh_fold_functions = 1
|
||||
let s:sh_fold_functions= and(g:sh_fold_enabled,1)
|
||||
endif
|
||||
if !exists("s:sh_fold_heredoc")
|
||||
let s:sh_fold_heredoc = 2
|
||||
let s:sh_fold_heredoc = and(g:sh_fold_enabled,2)
|
||||
endif
|
||||
if !exists("s:sh_fold_ifdofor")
|
||||
let s:sh_fold_ifdofor = 4
|
||||
let s:sh_fold_ifdofor = and(g:sh_fold_enabled,4)
|
||||
endif
|
||||
if g:sh_fold_enabled && &fdm == "manual"
|
||||
setlocal fdm=syntax
|
||||
" Given that the user provided g:sh_fold_enabled
|
||||
" AND g:sh_fold_enabled is manual (usual default)
|
||||
" implies a desire for syntax-based folding
|
||||
setl fdm=syntax
|
||||
endif
|
||||
|
||||
" sh syntax is case sensitive {{{1
|
||||
@@ -102,12 +108,12 @@ syn cluster shArithList contains=@shArithParenList,shParenError
|
||||
syn cluster shCaseEsacList contains=shCaseStart,shCase,shCaseBar,shCaseIn,shComment,shDeref,shDerefSimple,shCaseCommandSub,shCaseExSingleQuote,shCaseSingleQuote,shCaseDoubleQuote,shCtrlSeq,@shErrorList,shStringSpecial,shCaseRange
|
||||
syn cluster shCaseList contains=@shCommandSubList,shCaseEsac,shColon,shCommandSub,shComment,shDo,shEcho,shExpr,shFor,shHereDoc,shIf,shRedir,shSetList,shSource,shStatement,shVariable,shCtrlSeq
|
||||
"syn cluster shColonList contains=@shCaseList
|
||||
syn cluster shCommandSubList contains=shArithmetic,shDeref,shDerefSimple,shEscape,shNumber,shOperator,shPosnParm,shExSingleQuote,shSingleQuote,shExDoubleQuote,shDoubleQuote,shStatement,shVariable,shSubSh,shAlias,shTest,shCtrlSeq,shSpecial
|
||||
syn cluster shCommandSubList contains=shArithmetic,shDeref,shDerefSimple,shEscape,shNumber,shOperator,shPosnParm,shExSingleQuote,shSingleQuote,shExDoubleQuote,shDoubleQuote,shStatement,shVariable,shSubSh,shAlias,shTest,shCtrlSeq,shSpecial,shCmdParenRegion
|
||||
syn cluster shCurlyList contains=shNumber,shComma,shDeref,shDerefSimple,shDerefSpecial
|
||||
syn cluster shDblQuoteList contains=shCommandSub,shDeref,shDerefSimple,shPosnParm,shCtrlSeq,shSpecial
|
||||
syn cluster shDblQuoteList contains=shCommandSub,shDeref,shDerefSimple,shEscape,shPosnParm,shCtrlSeq,shSpecial
|
||||
syn cluster shDerefList contains=shDeref,shDerefSimple,shDerefVar,shDerefSpecial,shDerefWordError,shDerefPPS
|
||||
syn cluster shDerefVarList contains=shDerefOp,shDerefVarArray,shDerefOpError
|
||||
syn cluster shEchoList contains=shArithmetic,shCommandSub,shDeref,shDerefSimple,shExpr,shExSingleQuote,shExDoubleQuote,shSingleQuote,shDoubleQuote,shCtrlSeq,shEchoQuote
|
||||
syn cluster shEchoList contains=shArithmetic,shCommandSub,shDeref,shDerefSimple,shEscape,shExpr,shExSingleQuote,shExDoubleQuote,shSingleQuote,shDoubleQuote,shCtrlSeq,shEchoQuote
|
||||
syn cluster shExprList1 contains=shCharClass,shNumber,shOperator,shExSingleQuote,shExDoubleQuote,shSingleQuote,shDoubleQuote,shExpr,shDblBrace,shDeref,shDerefSimple,shCtrlSeq
|
||||
syn cluster shExprList2 contains=@shExprList1,@shCaseList,shTest
|
||||
syn cluster shFunctionList contains=@shCommandSubList,shCaseEsac,shColon,shCommandSub,shComment,shDo,shEcho,shExpr,shFor,shHereDoc,shIf,shOption,shRedir,shSetList,shSource,shStatement,shVariable,shOperator,shCtrlSeq
|
||||
@@ -160,7 +166,7 @@ endif
|
||||
|
||||
" Options: {{{1
|
||||
" ====================
|
||||
syn match shOption "\s\zs[-+][-_a-zA-Z0-9]\+\>"
|
||||
syn match shOption "\s\zs[-+][-_a-zA-Z0-9#]\+"
|
||||
syn match shOption "\s\zs--[^ \t$`'"|]\+"
|
||||
|
||||
" File Redirection Highlighted As Operators: {{{1
|
||||
@@ -204,14 +210,15 @@ syn match shCharClass contained "\[:\(backspace\|escape\|return\|xdigit\|alnum
|
||||
|
||||
" Loops: do, if, while, until {{{1
|
||||
" ======
|
||||
if (g:sh_fold_enabled % (s:sh_fold_ifdofor * 2))/s:sh_fold_ifdofor
|
||||
if s:sh_fold_ifdofor
|
||||
syn region shDo fold transparent matchgroup=shConditional start="\<do\>" matchgroup=shConditional end="\<done\>" contains=@shLoopList
|
||||
syn region shIf fold transparent matchgroup=shConditional start="\<if\_s" matchgroup=shConditional skip=+-fi\>+ end="\<;\_s*then\>" end="\<fi\>" contains=@shIfList
|
||||
syn region shFor fold matchgroup=shLoop start="\<for\_s" end="\<in\_s" end="\<do\>"me=e-2 contains=@shLoopList,shDblParen skipwhite nextgroup=shCurlyIn
|
||||
syn region shFor fold matchgroup=shLoop start="\<for\ze\_s\s*\%(((\)\@!" end="\<in\_s" end="\<do\>"me=e-2 contains=@shLoopList,shDblParen skipwhite nextgroup=shCurlyIn
|
||||
else
|
||||
syn region shDo transparent matchgroup=shConditional start="\<do\>" matchgroup=shConditional end="\<done\>" contains=@shLoopList
|
||||
syn region shIf transparent matchgroup=shConditional start="\<if\_s" matchgroup=shConditional skip=+-fi\>+ end="\<;\_s*then\>" end="\<fi\>" contains=@shIfList
|
||||
syn region shFor matchgroup=shLoop start="\<for\_s" end="\<in\>" end="\<do\>"me=e-2 contains=@shLoopList,shDblParen skipwhite nextgroup=shCurlyIn
|
||||
syn region shFor matchgroup=shLoop start="\<for\ze\_s\s*\%(((\)\@!" end="\<in\>" end="\<do\>"me=e-2 contains=@shLoopList,shDblParen skipwhite nextgroup=shCurlyIn
|
||||
syn match shForPP '\<for\>\ze\_s*(('
|
||||
endif
|
||||
if exists("b:is_kornshell") || exists("b:is_bash")
|
||||
syn cluster shCaseList add=shRepeat
|
||||
@@ -230,7 +237,7 @@ syn match shComma contained ","
|
||||
" ====
|
||||
syn match shCaseBar contained skipwhite "\(^\|[^\\]\)\(\\\\\)*\zs|" nextgroup=shCase,shCaseStart,shCaseBar,shComment,shCaseExSingleQuote,shCaseSingleQuote,shCaseDoubleQuote
|
||||
syn match shCaseStart contained skipwhite skipnl "(" nextgroup=shCase,shCaseBar
|
||||
if (g:sh_fold_enabled % (s:sh_fold_ifdofor * 2))/s:sh_fold_ifdofor
|
||||
if s:sh_fold_ifdofor
|
||||
syn region shCase fold contained skipwhite skipnl matchgroup=shSnglCase start="\%(\\.\|[^#$()'" \t]\)\{-}\zs)" end=";;" end="esac"me=s-1 contains=@shCaseList nextgroup=shCaseStart,shCase,shComment
|
||||
syn region shCaseEsac fold matchgroup=shConditional start="\<case\>" end="\<esac\>" contains=@shCaseEsacList
|
||||
else
|
||||
@@ -246,13 +253,17 @@ endif
|
||||
syn region shCaseSingleQuote matchgroup=shQuote start=+'+ end=+'+ contains=shStringSpecial skipwhite skipnl nextgroup=shCaseBar contained
|
||||
syn region shCaseDoubleQuote matchgroup=shQuote start=+"+ skip=+\\\\\|\\.+ end=+"+ contains=@shDblQuoteList,shStringSpecial skipwhite skipnl nextgroup=shCaseBar contained
|
||||
syn region shCaseCommandSub start=+`+ skip=+\\\\\|\\.+ end=+`+ contains=@shCommandSubList skipwhite skipnl nextgroup=shCaseBar contained
|
||||
syn region shCaseRange matchgroup=Delimiter start=+\[+ skip=+\\\\+ end=+]+ contained
|
||||
|
||||
if exists("b:is_bash")
|
||||
syn region shCaseRange matchgroup=Delimiter start=+\[+ skip=+\\\\+ end=+\]+ contained contains=shCharClass
|
||||
syn match shCharClass '\[:\%(alnum\|alpha\|ascii\|blank\|cntrl\|digit\|graph\|lower\|print\|punct\|space\|upper\|word\|or\|xdigit\):\]' contained
|
||||
else
|
||||
syn region shCaseRange matchgroup=Delimiter start=+\[+ skip=+\\\\+ end=+\]+ contained
|
||||
endif
|
||||
" Misc: {{{1
|
||||
"======
|
||||
syn match shWrapLineOperator "\\$"
|
||||
syn region shCommandSub start="`" skip="\\\\\|\\." end="`" contains=@shCommandSubList
|
||||
syn match shEscape contained '\\.' contains=@shCommandSubList
|
||||
syn region shCommandSub start="`" skip="\\\\\|\\." end="`" contains=@shCommandSubList
|
||||
syn match shEscape contained '\%(\\\\\)*\\.'
|
||||
|
||||
" $() and $(()): {{{1
|
||||
" $(..) is not supported by sh (Bourne shell). However, apparently
|
||||
@@ -268,20 +279,23 @@ if exists("b:is_kornshell") || exists("b:is_bash")
|
||||
elseif !exists("g:sh_no_error")
|
||||
syn region shCommandSub matchgroup=Error start="\$(" end=")" contains=@shCommandSubList
|
||||
endif
|
||||
syn region shCmdParenRegion matchgroup=shCmdSubRegion start="(" skip='\\\\\|\\.' end=")" contains=@shCommandSubList
|
||||
|
||||
if exists("b:is_bash")
|
||||
syn cluster shCommandSubList add=bashSpecialVariables,bashStatement
|
||||
syn cluster shCaseList add=bashAdminStatement,bashStatement
|
||||
syn keyword bashSpecialVariables contained auto_resume BASH BASH_ALIASES BASH_ALIASES BASH_ARGC BASH_ARGC BASH_ARGV BASH_ARGV BASH_CMDS BASH_CMDS BASH_COMMAND BASH_COMMAND BASH_ENV BASH_EXECUTION_STRING BASH_EXECUTION_STRING BASH_LINENO BASH_LINENO BASHOPTS BASHOPTS BASHPID BASHPID BASH_REMATCH BASH_REMATCH BASH_SOURCE BASH_SOURCE BASH_SUBSHELL BASH_SUBSHELL BASH_VERSINFO BASH_VERSION BASH_XTRACEFD BASH_XTRACEFD CDPATH COLUMNS COLUMNS COMP_CWORD COMP_CWORD COMP_KEY COMP_KEY COMP_LINE COMP_LINE COMP_POINT COMP_POINT COMPREPLY COMPREPLY COMP_TYPE COMP_TYPE COMP_WORDBREAKS COMP_WORDBREAKS COMP_WORDS COMP_WORDS COPROC COPROC DIRSTACK EMACS EMACS ENV ENV EUID FCEDIT FIGNORE FUNCNAME FUNCNAME FUNCNEST FUNCNEST GLOBIGNORE GROUPS histchars HISTCMD HISTCONTROL HISTFILE HISTFILESIZE HISTIGNORE HISTSIZE HISTTIMEFORMAT HISTTIMEFORMAT HOME HOSTFILE HOSTNAME HOSTTYPE IFS IGNOREEOF INPUTRC LANG LC_ALL LC_COLLATE LC_CTYPE LC_CTYPE LC_MESSAGES LC_NUMERIC LC_NUMERIC LINENO LINES LINES MACHTYPE MAIL MAILCHECK MAILPATH MAPFILE MAPFILE OLDPWD OPTARG OPTERR OPTIND OSTYPE PATH PIPESTATUS POSIXLY_CORRECT POSIXLY_CORRECT PPID PROMPT_COMMAND PS1 PS2 PS3 PS4 PWD RANDOM READLINE_LINE READLINE_LINE READLINE_POINT READLINE_POINT REPLY SECONDS SHELL SHELL SHELLOPTS SHLVL TIMEFORMAT TIMEOUT TMPDIR TMPDIR UID
|
||||
syn keyword bashStatement chmod clear complete du egrep expr fgrep find gnufind gnugrep grep install less ls mkdir mv rm rmdir rpm sed sleep sort strip tail touch
|
||||
syn keyword bashStatement chmod clear complete du egrep expr fgrep find gnufind gnugrep grep less ls mkdir mv rm rmdir rpm sed sleep sort strip tail touch
|
||||
syn keyword bashAdminStatement daemon killall killproc nice reload restart start status stop
|
||||
syn keyword bashStatement command compgen
|
||||
endif
|
||||
|
||||
if exists("b:is_kornshell")
|
||||
syn cluster shCommandSubList add=kshSpecialVariables,kshStatement
|
||||
syn cluster shCaseList add=kshStatement
|
||||
syn keyword kshSpecialVariables contained CDPATH COLUMNS EDITOR ENV ERRNO FCEDIT FPATH HISTFILE HISTSIZE HOME IFS LINENO LINES MAIL MAILCHECK MAILPATH OLDPWD OPTARG OPTIND PATH PPID PS1 PS2 PS3 PS4 PWD RANDOM REPLY SECONDS SHELL TMOUT VISUAL
|
||||
syn keyword kshStatement cat chmod clear cp du egrep expr fgrep find grep install killall less ls mkdir mv nice printenv rm rmdir sed sort strip stty tail touch tput
|
||||
syn keyword kshStatement cat chmod clear cp du egrep expr fgrep find grep killall less ls mkdir mv nice printenv rm rmdir sed sort strip stty tail touch tput
|
||||
syn keyword kshStatement command setgroups setsenv
|
||||
endif
|
||||
|
||||
syn match shSource "^\.\s"
|
||||
@@ -309,8 +323,8 @@ syn region shDoubleQuote matchgroup=shQuote start=+\%(\%(\\\\\)*\\\)\@<!"+ skip
|
||||
"syn region shDoubleQuote matchgroup=shQuote start=+"+ skip=+\\"+ end=+"+ contains=@shDblQuoteList,shStringSpecial,@Spell
|
||||
syn match shStringSpecial "[^[:print:] \t]" contained
|
||||
syn match shStringSpecial "\%(\\\\\)*\\[\\"'`$()#]"
|
||||
syn match shSpecial "[^\\]\zs\%(\\\\\)*\\[\\"'`$()#]" nextgroup=shMoreSpecial
|
||||
syn match shSpecial "^\%(\\\\\)*\\[\\"'`$()#]"
|
||||
syn match shSpecial "[^\\]\zs\%(\\\\\)*\\[\\"'`$()#]" nextgroup=shMoreSpecial,shComment
|
||||
syn match shSpecial "^\%(\\\\\)*\\[\\"'`$()#]" nextgroup=shComment
|
||||
syn match shMoreSpecial "\%(\\\\\)*\\[\\"'`$()#]" nextgroup=shMoreSpecial contained
|
||||
|
||||
" Comments: {{{1
|
||||
@@ -319,6 +333,7 @@ syn cluster shCommentGroup contains=shTodo,@Spell
|
||||
syn keyword shTodo contained COMBAK FIXME TODO XXX
|
||||
syn match shComment "^\s*\zs#.*$" contains=@shCommentGroup
|
||||
syn match shComment "\s\zs#.*$" contains=@shCommentGroup
|
||||
syn match shComment contained "#.*$" contains=@shCommentGroup
|
||||
syn match shQuickComment contained "#.*$"
|
||||
|
||||
" Here Documents: {{{1
|
||||
@@ -331,52 +346,52 @@ if version < 600
|
||||
syn region shHereDoc matchgroup=shRedir start="<<\s*\**\.\**" matchgroup=shRedir end="^\.$" contains=@shDblQuoteList
|
||||
syn region shHereDoc matchgroup=shRedir start="<<-\s*\**\.\**" matchgroup=shRedir end="^\s*\.$" contains=@shDblQuoteList
|
||||
|
||||
elseif (g:sh_fold_enabled % (s:sh_fold_heredoc * 2))/s:sh_fold_heredoc
|
||||
syn region shHereDoc matchgroup=shRedir fold start="<<\s*\z(\S*\)" matchgroup=shRedir end="^\z1\s*$" contains=@shDblQuoteList
|
||||
syn region shHereDoc matchgroup=shRedir fold start="<<\s*\"\z(\S*\)\"" matchgroup=shRedir end="^\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir fold start="<<\s*'\z(\S*\)'" matchgroup=shRedir end="^\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir fold start="<<-\s*\z(\S*\)" matchgroup=shRedir end="^\s*\z1\s*$" contains=@shDblQuoteList
|
||||
syn region shHereDoc matchgroup=shRedir fold start="<<-\s*\"\z(\S*\)\"" matchgroup=shRedir end="^\s*\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir fold start="<<-\s*'\z(\S*\)'" matchgroup=shRedir end="^\s*\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir fold start="<<\s*\\\_$\_s*\z(\S*\)" matchgroup=shRedir end="^\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir fold start="<<\s*\\\_$\_s*\"\z(\S*\)\"" matchgroup=shRedir end="^\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir fold start="<<-\s*\\\_$\_s*'\z(\S*\)'" matchgroup=shRedir end="^\s*\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir fold start="<<-\s*\\\_$\_s*\z(\S*\)" matchgroup=shRedir end="^\s*\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir fold start="<<-\s*\\\_$\_s*\"\z(\S*\)\"" matchgroup=shRedir end="^\s*\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir fold start="<<\s*\\\_$\_s*'\z(\S*\)'" matchgroup=shRedir end="^\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir fold start="<<\\\z(\S*\)" matchgroup=shRedir end="^\z1\s*$"
|
||||
elseif s:sh_fold_heredoc
|
||||
syn region shHereDoc matchgroup=shRedir fold start="<<\s*\z([^ \t|]*\)" matchgroup=shRedir end="^\z1\s*$" contains=@shDblQuoteList
|
||||
syn region shHereDoc matchgroup=shRedir fold start="<<\s*\"\z([^ \t|]*\)\"" matchgroup=shRedir end="^\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir fold start="<<\s*'\z([^ \t|]*\)'" matchgroup=shRedir end="^\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir fold start="<<-\s*\z([^ \t|]*\)" matchgroup=shRedir end="^\s*\z1\s*$" contains=@shDblQuoteList
|
||||
syn region shHereDoc matchgroup=shRedir fold start="<<-\s*\"\z([^ \t|]*\)\"" matchgroup=shRedir end="^\s*\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir fold start="<<-\s*'\z([^ \t|]*\)'" matchgroup=shRedir end="^\s*\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir fold start="<<\s*\\\_$\_s*\z([^ \t|]*\)" matchgroup=shRedir end="^\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir fold start="<<\s*\\\_$\_s*\"\z([^ \t|]*\)\"" matchgroup=shRedir end="^\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir fold start="<<-\s*\\\_$\_s*'\z([^ \t|]*\)'" matchgroup=shRedir end="^\s*\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir fold start="<<-\s*\\\_$\_s*\z([^ \t|]*\)" matchgroup=shRedir end="^\s*\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir fold start="<<-\s*\\\_$\_s*\"\z([^ \t|]*\)\"" matchgroup=shRedir end="^\s*\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir fold start="<<\s*\\\_$\_s*'\z([^ \t|]*\)'" matchgroup=shRedir end="^\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir fold start="<<\\\z([^ \t|]*\)" matchgroup=shRedir end="^\z1\s*$"
|
||||
|
||||
else
|
||||
syn region shHereDoc matchgroup=shRedir start="<<\s*\\\=\z(\S*\)" matchgroup=shRedir end="^\z1\s*$" contains=@shDblQuoteList
|
||||
syn region shHereDoc matchgroup=shRedir start="<<\s*\"\z(\S*\)\"" matchgroup=shRedir end="^\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir start="<<-\s*\z(\S*\)" matchgroup=shRedir end="^\s*\z1\s*$" contains=@shDblQuoteList
|
||||
syn region shHereDoc matchgroup=shRedir start="<<-\s*'\z(\S*\)'" matchgroup=shRedir end="^\s*\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir start="<<\s*'\z(\S*\)'" matchgroup=shRedir end="^\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir start="<<-\s*\"\z(\S*\)\"" matchgroup=shRedir end="^\s*\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir start="<<\s*\\\_$\_s*\z(\S*\)" matchgroup=shRedir end="^\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir start="<<-\s*\\\_$\_s*\z(\S*\)" matchgroup=shRedir end="^\s*\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir start="<<-\s*\\\_$\_s*'\z(\S*\)'" matchgroup=shRedir end="^\s*\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir start="<<\s*\\\_$\_s*'\z(\S*\)'" matchgroup=shRedir end="^\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir start="<<\s*\\\_$\_s*\"\z(\S*\)\"" matchgroup=shRedir end="^\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir start="<<-\s*\\\_$\_s*\"\z(\S*\)\"" matchgroup=shRedir end="^\s*\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir start="<<\\\z(\S*\)" matchgroup=shRedir end="^\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir start="<<\s*\\\=\z([^ \t|]*\)" matchgroup=shRedir end="^\z1\s*$" contains=@shDblQuoteList
|
||||
syn region shHereDoc matchgroup=shRedir start="<<\s*\"\z([^ \t|]*\)\"" matchgroup=shRedir end="^\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir start="<<-\s*\z([^ \t|]*\)" matchgroup=shRedir end="^\s*\z1\s*$" contains=@shDblQuoteList
|
||||
syn region shHereDoc matchgroup=shRedir start="<<-\s*'\z([^ \t|]*\)'" matchgroup=shRedir end="^\s*\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir start="<<\s*'\z([^ \t|]*\)'" matchgroup=shRedir end="^\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir start="<<-\s*\"\z([^ \t|]*\)\"" matchgroup=shRedir end="^\s*\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir start="<<\s*\\\_$\_s*\z([^ \t|]*\)" matchgroup=shRedir end="^\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir start="<<-\s*\\\_$\_s*\z([^ \t|]*\)" matchgroup=shRedir end="^\s*\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir start="<<-\s*\\\_$\_s*'\z([^ \t|]*\)'" matchgroup=shRedir end="^\s*\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir start="<<\s*\\\_$\_s*'\z([^ \t|]*\)'" matchgroup=shRedir end="^\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir start="<<\s*\\\_$\_s*\"\z([^ \t|]*\)\"" matchgroup=shRedir end="^\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir start="<<-\s*\\\_$\_s*\"\z([^ \t|]*\)\"" matchgroup=shRedir end="^\s*\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir start="<<\\\z([^ \t|]*\)" matchgroup=shRedir end="^\z1\s*$"
|
||||
endif
|
||||
|
||||
" Here Strings: {{{1
|
||||
" =============
|
||||
" available for: bash; ksh (really should be ksh93 only) but not if its a posix
|
||||
if exists("b:is_bash") || (exists("b:is_kornshell") && !exists("g:is_posix"))
|
||||
syn match shRedir "<<<"
|
||||
syn match shRedir "<<<" skipwhite nextgroup=shCmdParenRegion
|
||||
endif
|
||||
|
||||
" Identifiers: {{{1
|
||||
"=============
|
||||
syn match shSetOption "\s\zs[-+][a-zA-Z0-9]\+\>" contained
|
||||
syn match shVariable "\<\([bwglsav]:\)\=[a-zA-Z0-9.!@_%+,]*\ze=" nextgroup=shSetIdentifier
|
||||
syn match shSetIdentifier "=" contained nextgroup=shPattern,shDeref,shDerefSimple,shDoubleQuote,shExDoubleQuote,shSingleQuote,shExSingleQuote
|
||||
syn match shSetIdentifier "=" contained nextgroup=shCmdParenRegion,shPattern,shDeref,shDerefSimple,shDoubleQuote,shExDoubleQuote,shSingleQuote,shExSingleQuote
|
||||
if exists("b:is_bash")
|
||||
syn region shSetList oneline matchgroup=shSet start="\<\(declare\|typeset\|local\|export\|unset\)\>\ze[^/]" end="$" matchgroup=shSetListDelim end="\ze[}|);&]" matchgroup=NONE end="\ze\s\+#\|=" contains=@shIdList
|
||||
syn region shSetList oneline matchgroup=shSet start="\<set\>\ze[^/]" end="\ze[;|)]\|$" matchgroup=shSetListDelim end="\ze[}|);&]" matchgroup=NONE end="\ze\s\+[#=]" contains=@shIdList
|
||||
syn region shSetList oneline matchgroup=shSet start="\<set\>\ze[^/]" end="\ze[;|)]\|$" matchgroup=shSetListDelim end="\ze[}|);&]" matchgroup=NONE end="\ze\s\+=" contains=@shIdList
|
||||
elseif exists("b:is_kornshell")
|
||||
syn region shSetList oneline matchgroup=shSet start="\<\(typeset\|export\|unset\)\>\ze[^/]" end="$" matchgroup=shSetListDelim end="\ze[}|);&]" matchgroup=NONE end="\ze\s\+[#=]" contains=@shIdList
|
||||
syn region shSetList oneline matchgroup=shSet start="\<set\>\ze[^/]" end="$" matchgroup=shSetListDelim end="\ze[}|);&]" matchgroup=NONE end="\ze\s\+[#=]" contains=@shIdList
|
||||
@@ -390,15 +405,15 @@ if !exists("g:is_posix")
|
||||
endif
|
||||
|
||||
if exists("b:is_bash")
|
||||
if (g:sh_fold_enabled % (s:sh_fold_functions * 2))/s:sh_fold_functions
|
||||
syn region shFunctionOne fold matchgroup=shFunction start="^\s*\h[-a-zA-Z_0-9]*\s*()\_s*{" end="}" contains=@shFunctionList skipwhite skipnl nextgroup=shFunctionStart,shQuickComment
|
||||
if s:sh_fold_functions
|
||||
syn region shFunctionOne fold matchgroup=shFunction start="^\s*\h[-a-zA-Z_0-9]*\s*()\_s*{" end="}" contains=@shFunctionList skipwhite skipnl nextgroup=shFunctionStart,shQuickComment
|
||||
syn region shFunctionTwo fold matchgroup=shFunction start="\h[-a-zA-Z_0-9]*\s*\%(()\)\=\_s*{" end="}" contains=shFunctionKey,@shFunctionList contained skipwhite skipnl nextgroup=shFunctionStart,shQuickComment
|
||||
else
|
||||
syn region shFunctionOne matchgroup=shFunction start="^\s*\h[-a-zA-Z_0-9]*\s*()\_s*{" end="}" contains=@shFunctionList
|
||||
syn region shFunctionTwo matchgroup=shFunction start="\h[-a-zA-Z_0-9]*\s*\%(()\)\=\_s*{" end="}" contains=shFunctionKey,@shFunctionList contained
|
||||
endif
|
||||
else
|
||||
if (g:sh_fold_enabled % (s:sh_fold_functions * 2))/s:sh_fold_functions
|
||||
if s:sh_fold_functions
|
||||
syn region shFunctionOne fold matchgroup=shFunction start="^\s*\h\w*\s*()\_s*{" end="}" contains=@shFunctionList skipwhite skipnl nextgroup=shFunctionStart,shQuickComment
|
||||
syn region shFunctionTwo fold matchgroup=shFunction start="\h\w*\s*\%(()\)\=\_s*{" end="}" contains=shFunctionKey,@shFunctionList contained skipwhite skipnl nextgroup=shFunctionStart,shQuickComment
|
||||
else
|
||||
@@ -409,7 +424,7 @@ endif
|
||||
|
||||
" Parameter Dereferencing: {{{1
|
||||
" ========================
|
||||
syn match shDerefSimple "\$\%(\h\w*\|\d\)"
|
||||
syn match shDerefSimple "\$\%(\k\+\|\d\)"
|
||||
syn region shDeref matchgroup=PreProc start="\${" end="}" contains=@shDerefList,shDerefVarArray
|
||||
if !exists("g:sh_no_error")
|
||||
syn match shDerefWordError "[^}$[]" contained
|
||||
@@ -425,12 +440,12 @@ endif
|
||||
" ====================================
|
||||
if exists("b:is_bash")
|
||||
syn region shDeref matchgroup=PreProc start="\${!" end="\*\=}" contains=@shDerefList,shDerefOp
|
||||
syn match shDerefVar contained "{\@<=!\w\+" nextgroup=@shDerefVarList
|
||||
syn match shDerefVar contained "{\@<=!\k\+" nextgroup=@shDerefVarList
|
||||
endif
|
||||
|
||||
syn match shDerefSpecial contained "{\@<=[-*@?0]" nextgroup=shDerefOp,shDerefOpError
|
||||
syn match shDerefSpecial contained "\({[#!]\)\@<=[[:alnum:]*@_]\+" nextgroup=@shDerefVarList,shDerefOp
|
||||
syn match shDerefVar contained "{\@<=\w\+" nextgroup=@shDerefVarList
|
||||
syn match shDerefVar contained "{\@<=\k\+" nextgroup=@shDerefVarList
|
||||
|
||||
" sh ksh bash : ${var[... ]...} array reference: {{{1
|
||||
syn region shDerefVarArray contained matchgroup=shDeref start="\[" end="]" contains=@shCommandSubList nextgroup=shDerefOp,shDerefOpError
|
||||
@@ -477,12 +492,12 @@ if exists("b:is_bash")
|
||||
" bash : ${parameter//pattern/string}
|
||||
" bash : ${parameter//pattern}
|
||||
syn match shDerefPPS contained '/\{1,2}' nextgroup=shDerefPPSleft
|
||||
syn region shDerefPPSleft contained start='.' skip=@\%(\\\)\/@ matchgroup=shDerefOp end='/' end='\ze}' nextgroup=shDerefPPSright contains=@shCommandSubList
|
||||
syn region shDerefPPSright contained start='.' end='\ze}' contains=@shCommandSubList
|
||||
syn region shDerefPPSleft contained start='.' skip=@\%(\\\\\)*\\/@ matchgroup=shDerefOp end='/' end='\ze}' nextgroup=shDerefPPSright contains=@shCommandSubList
|
||||
syn region shDerefPPSright contained start='.' skip=@\%(\\\\\)\+@ end='\ze}' contains=@shCommandSubList
|
||||
endif
|
||||
|
||||
" Arithmetic Parenthesized Expressions: {{{1
|
||||
syn region shParen matchgroup=shArithRegion start='(\%(\ze[^(]\|$\)' end=')' contains=@shArithParenList
|
||||
syn region shParen matchgroup=shArithRegion start='[^$]\zs(\%(\ze[^(]\|$\)' end=')' contains=@shArithParenList
|
||||
|
||||
" Useful sh Keywords: {{{1
|
||||
" ===================
|
||||
@@ -557,6 +572,7 @@ hi def link shDoubleQuote shString
|
||||
hi def link shEcho shString
|
||||
hi def link shEchoDelim shOperator
|
||||
hi def link shEchoQuote shString
|
||||
hi def link shForPP shLoop
|
||||
hi def link shEmbeddedEcho shString
|
||||
hi def link shEscape shCommandSub
|
||||
hi def link shExDoubleQuote shDoubleQuote
|
||||
@@ -592,6 +608,7 @@ if exists("b:is_bash")
|
||||
hi def link bashStatement shStatement
|
||||
hi def link shFunctionParen Delimiter
|
||||
hi def link shFunctionDelim Delimiter
|
||||
hi def link shCharClass shSpecial
|
||||
endif
|
||||
if exists("b:is_kornshell")
|
||||
hi def link kshSpecialVariables shShellVariables
|
||||
|
||||
293
runtime/syntax/sqlhana.vim
Normal file
293
runtime/syntax/sqlhana.vim
Normal file
@@ -0,0 +1,293 @@
|
||||
" Vim syntax file
|
||||
" Language: SQL, SAP HANA In Memory Database
|
||||
" Maintainer: David Fishburn <dfishburn dot vim at gmail dot com>
|
||||
" Last Change: 2012 Oct 23
|
||||
" Version: SP4 b (Q2 2012)
|
||||
" Homepage: http://www.vim.org/scripts/script.php?script_id=4275
|
||||
|
||||
" Description: Updated to SAP HANA SP4
|
||||
"
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
syn case ignore
|
||||
|
||||
" The SQL reserved words, defined as keywords.
|
||||
" These were pulled from the following SQL reference:
|
||||
" http://help.sap.com/hana/hana_sql_en.pdf
|
||||
" An easy approach is to copy all text from the PDF
|
||||
" into a Vim buffer. The keywords are in UPPER case,
|
||||
" so you can run the following commands to be left with
|
||||
" mainly the UPPER case words:
|
||||
" 1. Delete all words that do not begin with a Capital
|
||||
" %s/\(\<[^A-Z]\w*\>\)//g
|
||||
" 2. Remove all words where the 2nd letter is not a Capital
|
||||
" %s/\(\<[A-Z][^A-Z]\w*\>\)//g
|
||||
" 3. Remove all non-word (or space) characters
|
||||
" %s/[^0-9A-Za-z_ ]*//g
|
||||
" 4. Remove some known words
|
||||
" %s/\<\(SAP\|HANA\|OK\|AG\|IBM\|DB2\|AIX\|POWER\d\+\|UNIX\)\>//g
|
||||
" 5. Remove blank lines and trailing spaces
|
||||
" %s/\s\+$//g
|
||||
" %s/^\s\+//g
|
||||
" %s/^$\n//g
|
||||
" 6. Convert spaces to newlines remove single character
|
||||
" %s/[ ]\+/\r/g
|
||||
" %g/^\w$/d
|
||||
" 7. Sort and remove duplicates
|
||||
" :sort
|
||||
" :Uniq
|
||||
" 8. Use the WhatsMissing plugin against the sqlhana.vim file.
|
||||
" 9. Generated a file of all UPPER cased words which should not
|
||||
" be in the syntax file. These items should be removed
|
||||
" from the list in step 7. You can use WhatsNotMissing
|
||||
" between step 7 and this new file to weed out the words
|
||||
" we know are not syntax related.
|
||||
" 10. Use the WhatsMissingRemoveMatches to remove the words
|
||||
" from step 9.
|
||||
|
||||
syn keyword sqlSpecial false null true
|
||||
|
||||
" Supported Functions for Date/Time types
|
||||
syn keyword sqlFunction ADD_DAYS ADD_MONTHS ADD_SECONDS ADD_YEARS COALESCE
|
||||
syn keyword sqlFunction CURRENT_DATE CURRENT_TIME CURRENT_TIMESTAMP CURRENT_UTCDATE
|
||||
syn keyword sqlFunction CURRENT_UTCTIME CURRENT_UTCTIMESTAMP
|
||||
syn keyword sqlFunction DAYNAME DAYOFMONTH DAYOFYEAR DAYS_BETWEEN EXTRACT
|
||||
syn keyword sqlFunction GREATEST HOUR IFNULL ISOWEEK LAST_DAY LEAST LOCALTOUTC
|
||||
syn keyword sqlFunction MINUTE MONTH MONTHNAME NEXT_DAY NOW QUARTER SECOND
|
||||
syn keyword sqlFunction SECONDS_BETWEEN UTCTOLOCAL WEEK WEEKDAY YEAR
|
||||
|
||||
syn keyword sqlFunction TO_CHAR TO_DATE TO_DATS TO_NCHAR TO_TIME TO_TIMESTAMP UTCTOLOCAL
|
||||
|
||||
" Aggregate
|
||||
syn keyword sqlFunction COUNT MIN MAX SUM AVG STDDEV VAR
|
||||
|
||||
" Datatype conversion
|
||||
syn keyword sqlFunction CAST TO_ALPHANUM TO_BIGINT TO_BINARY TO_BLOB TO_CHAR TO_CLOB
|
||||
syn keyword sqlFunction TO_DATE TO_DATS TO_DECIMAL TO_DOUBLE TO_INT TO_INTEGER TO_NCHAR
|
||||
syn keyword sqlFunction TO_NCLOB TO_NVARCHAR TO_REAL TO_SECONDDATE TO_SMALLDECIMAL
|
||||
syn keyword sqlFunction TO_SMALLINT TO_TIME TO_TIMESTAMP TO_TINYINT TO_VARCHAR TO_VARBINARY
|
||||
|
||||
" Number functions
|
||||
syn keyword sqlFunction ABS ACOS ASIN ATAN ATAN2 BINTOHEX BITAND CEIL COS COSH COT
|
||||
syn keyword sqlFunction EXP FLOOR GREATEST HEXTOBIN LEAST LN LOG MOD POWER ROUND
|
||||
syn keyword sqlFunction SIGN SIN SINH SQRT TAN TANH UMINUS
|
||||
|
||||
" String functions
|
||||
syn keyword sqlFunction ASCII CHAR CONCAT LCASE LENGTH LOCATE LOWER LPAD LTRIM
|
||||
syn keyword sqlFunction NCHAR REPLACE RPAD RTRIM SUBSTR_AFTER SUBSTR_BEFORE
|
||||
syn keyword sqlFunction SUBSTRING TRIM UCASE UNICODE UPPER
|
||||
|
||||
" Miscellaneous functions
|
||||
syn keyword sqlFunction COALESCE CURRENT_CONNECTION CURRENT_SCHEMA CURRENT_USER
|
||||
syn keyword sqlFunction GROUPING_ID IFNULL MAP NULLIF SESSION_CONTEXT SESSION_USER SYSUUIDSQL
|
||||
syn keyword sqlFunction GET_NUM_SERVERS
|
||||
|
||||
|
||||
" sp_ procedures
|
||||
" syn keyword sqlFunction sp_addalias
|
||||
|
||||
|
||||
" Reserved keywords
|
||||
syn keyword sqlkeyword ALL AS AT BEFORE
|
||||
syn keyword sqlkeyword BEGIN BOTH BY
|
||||
syn keyword sqlkeyword CONDITION
|
||||
syn keyword sqlkeyword CURRVAL CURSOR DECLARE
|
||||
syn keyword sqlkeyword DISTINCT DO ELSE ELSEIF ELSIF
|
||||
syn keyword sqlkeyword END EXCEPTION EXEC
|
||||
syn keyword sqlkeyword FOR FROM GROUP
|
||||
syn keyword sqlkeyword HAVING IN
|
||||
syn keyword sqlkeyword INOUT INTO IS
|
||||
syn keyword sqlkeyword LEADING
|
||||
syn keyword sqlkeyword LOOP MINUS NATURAL NEXTVAL
|
||||
syn keyword sqlkeyword OF ON ORDER OUT
|
||||
syn keyword sqlkeyword PRIOR RETURN RETURNS REVERSE
|
||||
syn keyword sqlkeyword ROWID SELECT
|
||||
syn keyword sqlkeyword SQL START STOP SYSDATE
|
||||
syn keyword sqlkeyword SYSTIME SYSTIMESTAMP SYSUUID
|
||||
syn keyword sqlkeyword TRAILING USING UTCDATE
|
||||
syn keyword sqlkeyword UTCTIME UTCTIMESTAMP VALUES
|
||||
syn keyword sqlkeyword WHILE
|
||||
syn keyword sqlkeyword ANY SOME EXISTS ESCAPE
|
||||
|
||||
" IF keywords
|
||||
syn keyword sqlkeyword IF
|
||||
|
||||
" CASE keywords
|
||||
syn keyword sqlKeyword WHEN THEN
|
||||
|
||||
" Syntax rules common to TEXT and SHORTTEXT keywords
|
||||
syn keyword sqlKeyword LANGUAGE DETECTION LINGUISTIC
|
||||
syn keyword sqlkeyword MIME TYPE
|
||||
syn keyword sqlkeyword EXACT WEIGHT FUZZY FUZZINESSTHRESHOLD SEARCH
|
||||
syn keyword sqlkeyword PHRASE INDEX RATIO REBUILD
|
||||
syn keyword sqlkeyword CONFIGURATION
|
||||
syn keyword sqlkeyword SEARCH ONLY
|
||||
syn keyword sqlkeyword FAST PREPROCESS
|
||||
syn keyword sqlkeyword SYNC SYNCHRONOUS ASYNC ASYNCHRONOUS FLUSH QUEUE
|
||||
syn keyword sqlkeyword EVERY AFTER MINUTES DOCUMENTS SUSPEND
|
||||
|
||||
" Statement keywords (i.e. after ALTER or CREATE)
|
||||
syn keyword sqlkeyword AUDIT POLICY
|
||||
syn keyword sqlkeyword FULLTEXT
|
||||
syn keyword sqlkeyword SEQUENCE RESTART
|
||||
syn keyword sqlkeyword TABLE
|
||||
syn keyword sqlkeyword PROCEDURE STATISTICS
|
||||
syn keyword sqlkeyword SCHEMA
|
||||
syn keyword sqlkeyword SYNONYM
|
||||
syn keyword sqlkeyword VIEW
|
||||
syn keyword sqlkeyword COLUMN
|
||||
syn keyword sqlkeyword SYSTEM LICENSE
|
||||
syn keyword sqlkeyword SESSION
|
||||
syn keyword sqlkeyword CANCEL WORK
|
||||
syn keyword sqlkeyword PLAN CACHE
|
||||
syn keyword sqlkeyword LOGGING NOLOGGING RETENTION
|
||||
syn keyword sqlkeyword RECONFIGURE SERVICE
|
||||
syn keyword sqlkeyword RESET MONITORING
|
||||
syn keyword sqlkeyword SAVE DURATION PERFTRACE FUNCTION_PROFILER
|
||||
syn keyword sqlkeyword SAVEPOINT
|
||||
syn keyword sqlkeyword USER
|
||||
syn keyword sqlkeyword ROLE
|
||||
syn keyword sqlkeyword ASC DESC
|
||||
syn keyword sqlkeyword OWNED
|
||||
syn keyword sqlkeyword DEPENDENCIES SCRAMBLE
|
||||
|
||||
" Create sequence
|
||||
syn keyword sqlkeyword INCREMENT MAXVALUE MINVALUE CYCLE
|
||||
|
||||
" Create table
|
||||
syn keyword sqlkeyword HISTORY GLOBAL LOCAL TEMPORARY
|
||||
|
||||
" Create trigger
|
||||
syn keyword sqlkeyword TRIGGER REFERENCING EACH DEFAULT
|
||||
syn keyword sqlkeyword SIGNAL RESIGNAL MESSAGE_TEXT OLD NEW
|
||||
syn keyword sqlkeyword EXIT HANDLER SQL_ERROR_CODE
|
||||
syn keyword sqlkeyword TARGET CONDITION SIGNAL
|
||||
|
||||
" Alter table
|
||||
syn keyword sqlkeyword ADD DROP MODIFY GENERATED ALWAYS
|
||||
syn keyword sqlkeyword UNIQUE BTREE CPBTREE PRIMARY KEY
|
||||
syn keyword sqlkeyword CONSTRAINT PRELOAD NONE
|
||||
syn keyword sqlkeyword ROW THREADS BATCH
|
||||
syn keyword sqlkeyword MOVE PARTITION TO LOCATION PHYSICAL OTHERS
|
||||
syn keyword sqlkeyword ROUNDROBIN PARTITIONS HASH RANGE VALUE
|
||||
syn keyword sqlkeyword PERSISTENT DELTA AUTO AUTOMERGE
|
||||
|
||||
" Create audit policy
|
||||
syn keyword sqlkeyword AUDITING SUCCESSFUL UNSUCCESSFUL
|
||||
syn keyword sqlkeyword PRIVILEGE STRUCTURED CHANGE LEVEL
|
||||
syn keyword sqlkeyword EMERGENCY ALERT CRITICAL WARNING INFO
|
||||
|
||||
" Privileges
|
||||
syn keyword sqlkeyword DEBUG EXECUTE
|
||||
|
||||
" Schema
|
||||
syn keyword sqlkeyword CASCADE RESTRICT PARAMETERS SCAN
|
||||
|
||||
" Traces
|
||||
syn keyword sqlkeyword CLIENT CRASHDUMP EMERGENCYDUMP
|
||||
syn keyword sqlkeyword INDEXSERVER NAMESERVER DAEMON
|
||||
syn keyword sqlkeyword CLEAR REMOVE TRACES
|
||||
|
||||
" Reclaim
|
||||
syn keyword sqlkeyword RECLAIM DATA VOLUME VERSION SPACE DEFRAGMENT SPARSIFY
|
||||
|
||||
" Join
|
||||
syn keyword sqlkeyword INNER OUTER LEFT RIGHT FULL CROSS JOIN
|
||||
syn keyword sqlkeyword GROUPING SETS ROLLUP CUBE
|
||||
syn keyword sqlkeyword BEST LIMIT OFFSET
|
||||
syn keyword sqlkeyword WITH SUBTOTAL BALANCE TOTAL
|
||||
syn keyword sqlkeyword TEXT_FILTER FILL UP SORT MATCHES TOP
|
||||
syn keyword sqlkeyword RESULT OVERVIEW PREFIX MULTIPLE RESULTSETS
|
||||
|
||||
" Lock
|
||||
syn keyword sqlkeyword EXCLUSIVE MODE NOWAIT
|
||||
|
||||
" Transaction
|
||||
syn keyword sqlkeyword TRANSACTION ISOLATION READ COMMITTED
|
||||
syn keyword sqlkeyword REPEATABLE SERIALIZABLE WRITE
|
||||
|
||||
" Saml
|
||||
syn keyword sqlkeyword SAML ASSERTION PROVIDER SUBJECT ISSUER
|
||||
|
||||
" User
|
||||
syn keyword sqlkeyword PASSWORD IDENTIFIED EXTERNALLY ATTEMPTS ATTEMPTS
|
||||
syn keyword sqlkeyword ENABLE DISABLE OFF LIFETIME FORCE DEACTIVATE
|
||||
syn keyword sqlkeyword ACTIVATE IDENTITY KERBEROS
|
||||
|
||||
" Grant
|
||||
syn keyword sqlkeyword ADMIN BACKUP CATALOG SCENARIO INIFILE MONITOR
|
||||
syn keyword sqlkeyword OPTIMIZER OPTION
|
||||
syn keyword sqlkeyword RESOURCE STRUCTUREDPRIVILEGE TRACE
|
||||
|
||||
" Import
|
||||
syn keyword sqlkeyword CSV FILE CONTROL NO CHECK SKIP FIRST LIST
|
||||
syn keyword sqlkeyword RECORD DELIMITED FIELD OPTIONALLY ENCLOSED FORMAT
|
||||
|
||||
" Roles
|
||||
syn keyword sqlkeyword PUBLIC CONTENT_ADMIN MODELING MONITORING
|
||||
|
||||
" Miscellaneous
|
||||
syn keyword sqlkeyword APPLICATION BINARY IMMEDIATE COREFILE SECURITY DEFINER
|
||||
syn keyword sqlkeyword DUMMY INVOKER MATERIALIZED MESSEGE_TEXT PARAMETER PARAMETERS
|
||||
syn keyword sqlkeyword PART
|
||||
syn keyword sqlkeyword CONSTANT SQLEXCEPTION SQLWARNING
|
||||
|
||||
syn keyword sqlOperator WHERE BETWEEN LIKE NULL CONTAINS
|
||||
syn keyword sqlOperator AND OR NOT CASE
|
||||
syn keyword sqlOperator UNION INTERSECT EXCEPT
|
||||
|
||||
syn keyword sqlStatement ALTER CALL CALLS CREATE DROP RENAME TRUNCATE
|
||||
syn keyword sqlStatement DELETE INSERT UPDATE EXPLAIN
|
||||
syn keyword sqlStatement MERGE REPLACE UPSERT SELECT
|
||||
syn keyword sqlStatement SET UNSET LOAD UNLOAD
|
||||
syn keyword sqlStatement CONNECT DISCONNECT COMMIT LOCK ROLLBACK
|
||||
syn keyword sqlStatement GRANT REVOKE
|
||||
syn keyword sqlStatement EXPORT IMPORT
|
||||
|
||||
|
||||
syn keyword sqlType DATE TIME SECONDDATE TIMESTAMP TINYINT SMALLINT
|
||||
syn keyword sqlType INT INTEGER BIGINT SMALLDECIMAL DECIMAL
|
||||
syn keyword sqlType REAL DOUBLE FLOAT
|
||||
syn keyword sqlType VARCHAR NVARCHAR ALPHANUM SHORTTEXT VARBINARY
|
||||
syn keyword sqlType BLOB CLOB NCLOB TEXT DAYDATE
|
||||
|
||||
syn keyword sqlOption Webservice_namespace_host
|
||||
|
||||
" Strings and characters:
|
||||
syn region sqlString start=+"+ end=+"+ contains=@Spell
|
||||
syn region sqlString start=+'+ end=+'+ contains=@Spell
|
||||
|
||||
" Numbers:
|
||||
syn match sqlNumber "-\=\<\d*\.\=[0-9_]\>"
|
||||
|
||||
" Comments:
|
||||
syn region sqlDashComment start=/--/ end=/$/ contains=@Spell
|
||||
syn region sqlSlashComment start=/\/\// end=/$/ contains=@Spell
|
||||
syn region sqlMultiComment start="/\*" end="\*/" contains=sqlMultiComment,@Spell
|
||||
syn cluster sqlComment contains=sqlDashComment,sqlSlashComment,sqlMultiComment,@Spell
|
||||
syn sync ccomment sqlComment
|
||||
syn sync ccomment sqlDashComment
|
||||
syn sync ccomment sqlSlashComment
|
||||
|
||||
hi def link sqlDashComment Comment
|
||||
hi def link sqlSlashComment Comment
|
||||
hi def link sqlMultiComment Comment
|
||||
hi def link sqlNumber Number
|
||||
hi def link sqlOperator Operator
|
||||
hi def link sqlSpecial Special
|
||||
hi def link sqlKeyword Keyword
|
||||
hi def link sqlStatement Statement
|
||||
hi def link sqlString String
|
||||
hi def link sqlType Type
|
||||
hi def link sqlFunction Function
|
||||
hi def link sqlOption PreProc
|
||||
|
||||
let b:current_syntax = "sqlhana"
|
||||
|
||||
" vim:sw=4:
|
||||
@@ -1,6 +1,6 @@
|
||||
" Vim syntax support file
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2012 Feb 11
|
||||
" Last Change: 2012 Sep 25
|
||||
|
||||
" This file sets up for syntax highlighting.
|
||||
" It is loaded from "syntax.vim" and "manual.vim".
|
||||
@@ -46,6 +46,8 @@ fun! s:SynSet()
|
||||
echohl None
|
||||
endif
|
||||
let s = &filetype
|
||||
elseif s == "OFF"
|
||||
let s = ""
|
||||
endif
|
||||
|
||||
if s != ""
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
" Vim syntax file
|
||||
" Language: TeX
|
||||
" Maintainer: Dr. Charles E. Campbell, Jr. <NdrchipO@ScampbellPfamily.AbizM>
|
||||
" Last Change: Apr 24, 2012
|
||||
" Version: 73
|
||||
" Maintainer: Charles E. Campbell <NdrchipO@ScampbellPfamily.AbizM>
|
||||
" Last Change: Nov 14, 2012
|
||||
" Version: 75
|
||||
" URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
|
||||
"
|
||||
" Notes: {{{1
|
||||
@@ -155,7 +155,7 @@ endif
|
||||
" Try to flag {} and () mismatches: {{{1
|
||||
if !exists("g:tex_no_error")
|
||||
syn region texMatcher matchgroup=Delimiter start="{" skip="\\\\\|\\[{}]" end="}" contains=@texMatchGroup,texError
|
||||
syn region texMatcher matchgroup=Delimiter start="\[" end="]" contains=@texMatchGroup,texError
|
||||
syn region texMatcher matchgroup=Delimiter start="\[" end="]" contains=@texMatchGroup,texError,@NoSpell
|
||||
else
|
||||
syn region texMatcher matchgroup=Delimiter start="{" skip="\\\\\|\\[{}]" end="}" contains=@texMatchGroup
|
||||
syn region texMatcher matchgroup=Delimiter start="\[" end="]" contains=@texMatchGroup
|
||||
@@ -723,7 +723,7 @@ if has("conceal") && &enc == 'utf-8'
|
||||
\ ['leftarrowtail' , '↢'],
|
||||
\ ['leftharpoondown', '↽'],
|
||||
\ ['leftharpoonup' , '↼'],
|
||||
\ ['leftrightarrow' , '⇔'],
|
||||
\ ['leftrightarrow' , '↔'],
|
||||
\ ['Leftrightarrow' , '⇔'],
|
||||
\ ['leftrightsquigarrow', '↭'],
|
||||
\ ['leftthreetimes' , '⋋'],
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
" Vim syntax file
|
||||
" Language: Vim 7.3 script
|
||||
" Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Jan 11, 2012
|
||||
" Version: 7.3-13
|
||||
" Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Nov 14, 2012
|
||||
" Version: 7.3-20
|
||||
" Automatically generated keyword lists: {{{1
|
||||
|
||||
" Quit when a syntax file was already loaded {{{2
|
||||
@@ -76,7 +76,7 @@ syn case match
|
||||
" Function Names {{{2
|
||||
syn keyword vimFuncName contained abs append argv atan2 bufexists bufname byte2line ceil cindent complete confirm cosh cursor did_filetype empty eventhandler exp extend filewritable findfile fmod foldclosed foldtext function getbufline getcharmod getcmdtype getfperm getftype getmatches getqflist gettabvar getwinposy globpath haslocaldir histdel hlexists iconv input inputrestore insert items len line localtime map match matchdelete matchstr min mode nextnonblank pathshorten prevnonblank pumvisible readfile reltimestr remote_foreground remote_read remove repeat reverse search searchpair searchpos serverlist setcmdpos setloclist setpos setreg settabwinvar shellescape sin sort spellbadword split str2float strchars strftime string strpart strtrans submatch synconcealed synIDattr synstack tabpagebuflist tabpagewinnr taglist tanh tolower tr type undotree virtcol winbufnr winheight winnr winrestview winwidth
|
||||
syn keyword vimFuncName contained acos argc asin browse buflisted bufnr byteidx changenr clearmatches complete_add copy count deepcopy diff_filler escape executable expand feedkeys filter float2nr fnameescape foldclosedend foldtextresult garbagecollect getbufvar getcmdline getcwd getfsize getline getpid getreg gettabwinvar getwinvar has hasmapto histget hlID indent inputdialog inputsave isdirectory join libcall line2byte log maparg matchadd matchend max mkdir mzeval nr2char pow printf range reltime remote_expr remote_peek remote_send rename resolve round searchdecl searchpairpos server2client setbufvar setline setmatches setqflist settabvar setwinvar simplify sinh soundfold spellsuggest sqrt str2nr strdisplaywidth stridx strlen strridx strwidth substitute synID synIDtrans system tabpagenr tagfiles tan tempname toupper trunc undofile values visualmode wincol winline winrestcmd winsaveview writefile
|
||||
syn keyword vimFuncName contained add argidx atan browsedir bufloaded bufwinnr call char2nr col complete_check cos cscope_connection delete diff_hlID eval exists expr8 filereadable finddir floor fnamemodify foldlevel foreground get getchar getcmdpos getfontname getftime getloclist getpos getregtype getwinposx glob has_key histadd histnr hostname index inputlist inputsecret islocked keys libcallnr lispindent log10 mapcheck matcharg matchlist pyeval py3eval luaeval
|
||||
syn keyword vimFuncName contained add argidx atan browsedir bufloaded bufwinnr call char2nr col complete_check cos cscope_connection delete diff_hlID eval exists expr8 filereadable finddir floor fnamemodify foldlevel foreground get getchar getcmdpos getfontname getftime getloclist getpos getregtype getwinposx glob has_key histadd histnr hostname index inputlist inputsecret islocked keys libcallnr lispindent log10 mapcheck matcharg matchlist
|
||||
|
||||
"--- syntax above generated by mkvimvim ---
|
||||
" Special Vim Highlighting (not automatic) {{{1
|
||||
@@ -149,11 +149,12 @@ syn keyword vimAugroupKey contained aug[roup]
|
||||
|
||||
" Operators: {{{2
|
||||
" =========
|
||||
" COMBAK: vimOperParen used to have "oneline"
|
||||
syn cluster vimOperGroup contains=vimFunc,vimFuncVar,vimOper,vimOperParen,vimNumber,vimString,vimRegister,vimContinue
|
||||
syn match vimOper "\(==\|!=\|>=\|<=\|=\~\|!\~\|>\|<\|=\)[?#]\{0,2}" skipwhite nextgroup=vimString,vimSpecFile
|
||||
syn match vimOper "||\|&&\|[-+.]" skipwhite nextgroup=vimString,vimSpecFile
|
||||
syn region vimOperParen oneline matchgroup=vimParenSep start="(" end=")" contains=@vimOperGroup
|
||||
syn region vimOperParen oneline matchgroup=vimSep start="{" end="}" contains=@vimOperGroup nextgroup=vimVar,vimFuncVar
|
||||
syn region vimOperParen matchgroup=vimParenSep start="(" end=")" contains=@vimOperGroup
|
||||
syn region vimOperParen matchgroup=vimSep start="{" end="}" contains=@vimOperGroup nextgroup=vimVar,vimFuncVar
|
||||
if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_noopererror")
|
||||
syn match vimOperError ")"
|
||||
endif
|
||||
@@ -203,7 +204,7 @@ if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_nousercmderror")
|
||||
endif
|
||||
syn case ignore
|
||||
syn keyword vimUserAttrbKey contained bar ban[g] cou[nt] ra[nge] com[plete] n[args] re[gister]
|
||||
syn keyword vimUserAttrbCmplt contained augroup buffer command dir environment event expression file function help highlight mapping menu option shellcmd something tag tag_listfiles var
|
||||
syn keyword vimUserAttrbCmplt contained augroup buffer color command compiler cscope dir environment event expression file file_in_path filetype function help highlight locale mapping menu option shellcmd sign syntax tag tag_listfiles var
|
||||
syn keyword vimUserAttrbCmplt contained custom customlist nextgroup=vimUserAttrbCmpltFunc,vimUserCmdError
|
||||
syn match vimUserAttrbCmpltFunc contained ",\%([sS]:\|<[sS][iI][dD]>\)\=\%(\h\w*\%(#\u\w*\)\+\|\u\w*\)"hs=s+1 nextgroup=vimUserCmdError
|
||||
|
||||
@@ -328,7 +329,7 @@ syn match vimMapLhs contained "\S\+" contains=vimNotation,vimCtrlChar skipwhit
|
||||
syn match vimMapBang contained "!" skipwhite nextgroup=vimMapMod,vimMapLhs
|
||||
syn match vimMapMod contained "\c<\(buffer\|expr\|\(local\)\=leader\|plug\|script\|sid\|unique\|silent\)\+>" contains=vimMapModKey,vimMapModErr skipwhite nextgroup=vimMapMod,vimMapLhs
|
||||
syn match vimMapRhs contained ".*" contains=vimNotation,vimCtrlChar skipnl nextgroup=vimMapRhsExtend
|
||||
syn match vimMapRhsExtend contained "^\s*\\.*$" contains=vimContinue
|
||||
syn match vimMapRhsExtend contained "^\s*\\.*$" contains=vimNotation,vimCtrlChar,vimContinue skipnl nextgroup=vimMapRhsExtend
|
||||
syn case ignore
|
||||
syn keyword vimMapModKey contained buffer expr leader localleader plug script sid silent unique
|
||||
syn case match
|
||||
@@ -360,8 +361,8 @@ syn case match
|
||||
" User Function Highlighting {{{2
|
||||
" (following Gautam Iyer's suggestion)
|
||||
" ==========================
|
||||
syn match vimFunc "\%(\%([sSgGbBwWtTlL]:\|<[sS][iI][dD]>\)\=\%([a-zA-Z0-9_.]\+\.\)*\I[a-zA-Z0-9_.]*\)\ze\s*(" contains=vimFuncName,vimUserFunc,vimExecute
|
||||
syn match vimUserFunc contained "\%(\%([sSgGbBwWtTlL]:\|<[sS][iI][dD]>\)\=\%([a-zA-Z0-9_.]\+\.\)*\I[a-zA-Z0-9_.]*\)\|\<\u[a-zA-Z0-9.]*\>\|\<if\>" contains=vimNotation
|
||||
syn match vimFunc "\%(\%([sSgGbBwWtTlL]:\|<[sS][iI][dD]>\)\=\%([a-zA-Z0-9_]\+\.\)*\I[a-zA-Z0-9_.]*\)\ze\s*(" contains=vimFuncName,vimUserFunc,vimExecute
|
||||
syn match vimUserFunc contained "\%(\%([sSgGbBwWtTlL]:\|<[sS][iI][dD]>\)\=\%([a-zA-Z0-9_]\+\.\)*\I[a-zA-Z0-9_.]*\)\|\<\u[a-zA-Z0-9.]*\>\|\<if\>" contains=vimNotation
|
||||
syn match vimNotFunc "\<if\>\|\<el\%[seif]\>\|\<return\>\|\<while\>"
|
||||
|
||||
" Errors And Warnings: {{{2
|
||||
@@ -429,7 +430,7 @@ syn keyword vimSynType contained match skipwhite nextgroup=vimSynMatchRegion
|
||||
syn region vimSynMatchRegion contained keepend matchgroup=vimGroupName start="\k\+" matchgroup=vimSep end="|\|$" contains=@vimSynMtchGroup
|
||||
syn match vimSynMtchOpt contained "\<\(conceal\|transparent\|contained\|excludenl\|skipempty\|skipwhite\|display\|extend\|skipnl\|fold\)\>"
|
||||
if has("conceal")
|
||||
syn match vimSynMtchOpt contained "\<cchar=" nextgroup=VimSynMtchCchar
|
||||
syn match vimSynMtchOpt contained "\<cchar=" nextgroup=vimSynMtchCchar
|
||||
syn match vimSynMtchCchar contained "\S"
|
||||
endif
|
||||
syn cluster vimFuncBodyList add=vimSynMtchGroup
|
||||
@@ -510,17 +511,18 @@ endif
|
||||
syn match vimHiTerm contained "\cterm="he=e-1 nextgroup=vimHiAttribList
|
||||
syn match vimHiStartStop contained "\c\(start\|stop\)="he=e-1 nextgroup=vimHiTermcap,vimOption
|
||||
syn match vimHiCTerm contained "\ccterm="he=e-1 nextgroup=vimHiAttribList
|
||||
syn match vimHiCtermFgBg contained "\ccterm[fb]g="he=e-1 nextgroup=vimNumber,vimHiCtermColor,vimFgBgAttrib,vimHiCtermError
|
||||
syn match vimHiCtermFgBg contained "\ccterm[fb]g="he=e-1 nextgroup=vimHiNmbr,vimHiCtermColor,vimFgBgAttrib,vimHiCtermError
|
||||
syn match vimHiGui contained "\cgui="he=e-1 nextgroup=vimHiAttribList
|
||||
syn match vimHiGuiFont contained "\cfont="he=e-1 nextgroup=vimHiFontname
|
||||
syn match vimHiGuiFgBg contained "\cgui\%([fb]g\|sp\)="he=e-1 nextgroup=vimHiGroup,vimHiGuiFontname,vimHiGuiRgb,vimFgBgAttrib
|
||||
syn match vimHiTermcap contained "\S\+" contains=vimNotation
|
||||
syn match vimHiNmbr contained '\d\+'
|
||||
|
||||
" Highlight: clear {{{2
|
||||
syn keyword vimHiClear contained clear nextgroup=vimHiGroup
|
||||
|
||||
" Highlight: link {{{2
|
||||
syn region vimHiLink contained oneline matchgroup=vimCommand start="\<\(def\%[ault]\s\+\)\=link\>\|\<def\>" end="$" contains=vimHiGroup,vimGroup,vimHLGroup,vimNotation
|
||||
syn region vimHiLink contained oneline matchgroup=vimCommand start="\(\<hi\%[ghlight]\s\+\)\@<=\(\(def\%[ault]\s\+\)\=link\>\|\<def\>\)" end="$" contains=vimHiGroup,vimGroup,vimHLGroup,vimNotation
|
||||
syn cluster vimFuncBodyList add=vimHiLink
|
||||
|
||||
" Control Characters {{{2
|
||||
@@ -562,7 +564,12 @@ endif
|
||||
" [-- lua --] {{{3
|
||||
let s:luapath= fnameescape(expand("<sfile>:p:h")."/lua.vim")
|
||||
if !filereadable(s:luapath)
|
||||
let s:luapath= fnameescape(globpath(&rtp,"syntax/lua.vim"))
|
||||
for s:luapath in split(globpath(&rtp,"syntax/lua.vim"),"\n")
|
||||
if filereadable(fnameescape(s:luapath))
|
||||
let s:luapath= fnameescape(s:luapath)
|
||||
break
|
||||
endif
|
||||
endfor
|
||||
endif
|
||||
if (g:vimsyn_embed =~ 'l' && has("lua")) && filereadable(s:luapath)
|
||||
unlet! b:current_syntax
|
||||
@@ -584,7 +591,12 @@ unlet s:luapath
|
||||
" [-- perl --] {{{3
|
||||
let s:perlpath= fnameescape(expand("<sfile>:p:h")."/perl.vim")
|
||||
if !filereadable(s:perlpath)
|
||||
let s:perlpath= fnameescape(globpath(&rtp,"syntax/perl.vim"))
|
||||
for s:perlpath in split(globpath(&rtp,"syntax/perl.vim"),"\n")
|
||||
if filereadable(fnameescape(s:perlpath))
|
||||
let s:perlpath= fnameescape(s:perlpath)
|
||||
break
|
||||
endif
|
||||
endfor
|
||||
endif
|
||||
if (g:vimsyn_embed =~ 'p' && has("perl")) && filereadable(s:perlpath)
|
||||
unlet! b:current_syntax
|
||||
@@ -606,7 +618,12 @@ unlet s:perlpath
|
||||
" [-- ruby --] {{{3
|
||||
let s:rubypath= fnameescape(expand("<sfile>:p:h")."/ruby.vim")
|
||||
if !filereadable(s:rubypath)
|
||||
let s:rubypath= fnameescape(globpath(&rtp,"syntax/ruby.vim"))
|
||||
for s:rubypath in split(globpath(&rtp,"syntax/ruby.vim"),"\n")
|
||||
if filereadable(fnameescape(s:rubypath))
|
||||
let s:rubypath= fnameescape(s:rubypath)
|
||||
break
|
||||
endif
|
||||
endfor
|
||||
endif
|
||||
if (g:vimsyn_embed =~ 'r' && has("ruby")) && filereadable(s:rubypath)
|
||||
unlet! b:current_syntax
|
||||
@@ -627,9 +644,14 @@ unlet s:rubypath
|
||||
" [-- python --] {{{3
|
||||
let s:pythonpath= fnameescape(expand("<sfile>:p:h")."/python.vim")
|
||||
if !filereadable(s:pythonpath)
|
||||
let s:pythonpath= fnameescape(globpath(&rtp,"syntax/python.vim"))
|
||||
for s:pythonpath in split(globpath(&rtp,"syntax/python.vim"),"\n")
|
||||
if filereadable(fnameescape(s:pythonpath))
|
||||
let s:pythonpath= fnameescape(s:pythonpath)
|
||||
break
|
||||
endif
|
||||
endfor
|
||||
endif
|
||||
if (g:vimsyn_embed =~ 'P' && has("python")) && filereadable(s:pythonpath)
|
||||
if g:vimsyn_embed =~ 'P' && (has("python") || has("python3")) && filereadable(s:pythonpath)
|
||||
unlet! b:current_syntax
|
||||
exe "syn include @vimPythonScript ".s:pythonpath
|
||||
if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'P'
|
||||
@@ -656,7 +678,12 @@ endif
|
||||
if s:trytcl
|
||||
let s:tclpath= fnameescape(expand("<sfile>:p:h")."/tcl.vim")
|
||||
if !filereadable(s:tclpath)
|
||||
let s:tclpath= fnameescape(globpath(&rtp,"syntax/tcl.vim"))
|
||||
for s:tclpath in split(globpath(&rtp,"syntax/tcl.vim"),"\n")
|
||||
if filereadable(fnameescape(s:tclpath))
|
||||
let s:tclpath= fnameescape(s:tclpath)
|
||||
break
|
||||
endif
|
||||
endfor
|
||||
endif
|
||||
if (g:vimsyn_embed =~ 't' && has("tcl")) && filereadable(s:tclpath)
|
||||
unlet! b:current_syntax
|
||||
@@ -683,7 +710,12 @@ unlet s:trytcl
|
||||
" [-- mzscheme --] {{{3
|
||||
let s:mzschemepath= fnameescape(expand("<sfile>:p:h")."/scheme.vim")
|
||||
if !filereadable(s:mzschemepath)
|
||||
let s:mzschemepath= fnameescape(globpath(&rtp,"syntax/scheme.vim"))
|
||||
for s:mzschemepath in split(globpath(&rtp,"syntax/mzscheme.vim"),"\n")
|
||||
if filereadable(fnameescape(s:mzschemepath))
|
||||
let s:mzschemepath= fnameescape(s:mzschemepath)
|
||||
break
|
||||
endif
|
||||
endfor
|
||||
endif
|
||||
if (g:vimsyn_embed =~ 'm' && has("mzscheme")) && filereadable(s:mzschemepath)
|
||||
unlet! b:current_syntax
|
||||
@@ -879,6 +911,7 @@ hi def link vimUserCmdError Error
|
||||
hi def link vimUserFunc Normal
|
||||
hi def link vimVar Identifier
|
||||
hi def link vimWarn WarningMsg
|
||||
hi def link vimHiNmbr Number
|
||||
|
||||
" Current Syntax Variable: {{{2
|
||||
let b:current_syntax = "vim"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
" Vim syntax file
|
||||
" Language: Yacc
|
||||
" Maintainer: Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Aug 12, 2010
|
||||
" Version: 9
|
||||
" Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Nov 14, 2012
|
||||
" Version: 10
|
||||
" URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
|
||||
"
|
||||
" Options: {{{1
|
||||
@@ -20,18 +20,24 @@ endif
|
||||
" ---------------------------------------------------------------------
|
||||
" Folding Support {{{1
|
||||
if has("folding")
|
||||
com! -nargs=+ HiFold <args> fold
|
||||
com! -nargs=+ SynFold <args> fold
|
||||
else
|
||||
com! -nargs=+ HiFold <args>
|
||||
com! -nargs=+ SynFold <args>
|
||||
endif
|
||||
|
||||
" ---------------------------------------------------------------------
|
||||
" Read the C syntax to start with {{{1
|
||||
if exists("g:yacc_uses_cpp")
|
||||
syn include @yaccCode <sfile>:p:h/cpp.vim
|
||||
else
|
||||
syn include @yaccCode <sfile>:p:h/c.vim
|
||||
" Read the C/C++ syntax to start with
|
||||
let s:Cpath= fnameescape(expand("<sfile>:p:h").(exists("g:yacc_uses_cpp")? "/cpp.vim" : "/c.vim"))
|
||||
if !filereadable(s:Cpath)
|
||||
for s:Cpath in split(globpath(&rtp,(exists("g:yacc_uses_cpp")? "syntax/cpp.vim" : "syntax/c.vim")),"\n")
|
||||
if filereadable(fnameescape(s:Cpath))
|
||||
let s:Cpath= fnameescape(s:Cpath)
|
||||
break
|
||||
endif
|
||||
endfor
|
||||
endif
|
||||
exe "syn include @yaccCode ".s:Cpath
|
||||
|
||||
" ---------------------------------------------------------------------
|
||||
" Yacc Clusters: {{{1
|
||||
@@ -40,12 +46,12 @@ syn cluster yaccRulesCluster contains=yaccNonterminal,yaccString
|
||||
|
||||
" ---------------------------------------------------------------------
|
||||
" Yacc Sections: {{{1
|
||||
HiFold syn region yaccInit start='.'ms=s-1,rs=s-1 matchgroup=yaccSectionSep end='^%%$'me=e-2,re=e-2 contains=@yaccInitCluster nextgroup=yaccRules skipwhite skipempty contained
|
||||
HiFold syn region yaccInit2 start='\%^.'ms=s-1,rs=s-1 matchgroup=yaccSectionSep end='^%%$'me=e-2,re=e-2 contains=@yaccInitCluster nextgroup=yaccRules skipwhite skipempty
|
||||
HiFold syn region yaccHeader2 matchgroup=yaccSep start="^\s*\zs%{" end="^\s*%}" contains=@yaccCode nextgroup=yaccInit skipwhite skipempty contained
|
||||
HiFold syn region yaccHeader matchgroup=yaccSep start="^\s*\zs%{" end="^\s*%}" contains=@yaccCode nextgroup=yaccInit skipwhite skipempty
|
||||
HiFold syn region yaccRules matchgroup=yaccSectionSep start='^%%$' end='^%%$'me=e-2,re=e-2 contains=@yaccRulesCluster nextgroup=yaccEndCode skipwhite skipempty contained
|
||||
HiFold syn region yaccEndCode matchgroup=yaccSectionSep start='^%%$' end='\%$' contains=@yaccCode contained
|
||||
SynFold syn region yaccInit start='.'ms=s-1,rs=s-1 matchgroup=yaccSectionSep end='^%%$'me=e-2,re=e-2 contains=@yaccInitCluster nextgroup=yaccRules skipwhite skipempty contained
|
||||
SynFold syn region yaccInit2 start='\%^.'ms=s-1,rs=s-1 matchgroup=yaccSectionSep end='^%%$'me=e-2,re=e-2 contains=@yaccInitCluster nextgroup=yaccRules skipwhite skipempty
|
||||
SynFold syn region yaccHeader2 matchgroup=yaccSep start="^\s*\zs%{" end="^\s*%}" contains=@yaccCode nextgroup=yaccInit skipwhite skipempty contained
|
||||
SynFold syn region yaccHeader matchgroup=yaccSep start="^\s*\zs%{" end="^\s*%}" contains=@yaccCode nextgroup=yaccInit skipwhite skipempty
|
||||
SynFold syn region yaccRules matchgroup=yaccSectionSep start='^%%$' end='^%%$'me=e-2,re=e-2 contains=@yaccRulesCluster nextgroup=yaccEndCode skipwhite skipempty contained
|
||||
SynFold syn region yaccEndCode matchgroup=yaccSectionSep start='^%%$' end='\%$' contains=@yaccCode contained
|
||||
|
||||
" ---------------------------------------------------------------------
|
||||
" Yacc Commands: {{{1
|
||||
@@ -63,11 +69,11 @@ syn match yaccKey "\$\(<[a-zA-Z_][a-zA-Z_0-9]*>\)\=[\$0-9]\+" contained
|
||||
syn keyword yaccKeyActn yyerrok yyclearin contained
|
||||
|
||||
syn match yaccUnionStart "^%union" skipwhite skipnl nextgroup=yaccUnion contained
|
||||
HiFold syn region yaccUnion matchgroup=yaccCurly start="{" matchgroup=yaccCurly end="}" contains=@yaccCode contained
|
||||
SynFold syn region yaccUnion matchgroup=yaccCurly start="{" matchgroup=yaccCurly end="}" contains=@yaccCode contained
|
||||
syn match yaccBrkt "[<>]" contained
|
||||
syn match yaccType "<[a-zA-Z_][a-zA-Z0-9_]*>" contains=yaccBrkt contained
|
||||
|
||||
HiFold syn region yaccNonterminal start="^\s*\a\w*\ze\_s*\(/\*\_.\{-}\*/\)\=\_s*:" matchgroup=yaccDelim end=";" matchgroup=yaccSectionSep end='^%%$'me=e-2,re=e-2 contains=yaccAction,yaccDelim,yaccString,yaccComment contained
|
||||
SynFold syn region yaccNonterminal start="^\s*\a\w*\ze\_s*\(/\*\_.\{-}\*/\)\=\_s*:" matchgroup=yaccDelim end=";" matchgroup=yaccSectionSep end='^%%$'me=e-2,re=e-2 contains=yaccAction,yaccDelim,yaccString,yaccComment contained
|
||||
syn region yaccComment start="/\*" end="\*/"
|
||||
syn match yaccString "'[^']*'" contained
|
||||
|
||||
@@ -75,7 +81,8 @@ syn match yaccString "'[^']*'" contained
|
||||
" ---------------------------------------------------------------------
|
||||
" I'd really like to highlight just the outer {}. Any suggestions??? {{{1
|
||||
syn match yaccCurlyError "[{}]"
|
||||
HiFold syn region yaccAction matchgroup=yaccCurly start="{" end="}" contains=@yaccCode contained
|
||||
SynFold syn region yaccAction matchgroup=yaccCurly start="{" end="}" contains=@yaccCode,yaccVar contained
|
||||
syn match yaccVar '\$\d\+\|\$\$\|\$<\I\i*>\$\|\$<\I\i*>\d\+' containedin=cParen,cPreProc,cMulti contained
|
||||
|
||||
" ---------------------------------------------------------------------
|
||||
" Yacc synchronization: {{{1
|
||||
@@ -84,39 +91,30 @@ syn sync fromstart
|
||||
" ---------------------------------------------------------------------
|
||||
" Define the default highlighting. {{{1
|
||||
if !exists("did_yacc_syn_inits")
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
|
||||
" Internal yacc highlighting links {{{2
|
||||
HiLink yaccBrkt yaccStmt
|
||||
HiLink yaccKey yaccStmt
|
||||
HiLink yaccOper yaccStmt
|
||||
HiLink yaccUnionStart yaccKey
|
||||
|
||||
" External yacc highlighting links {{{2
|
||||
HiLink yaccComment Comment
|
||||
HiLink yaccCurly Delimiter
|
||||
HiLink yaccCurlyError Error
|
||||
HiLink yaccDefines cDefine
|
||||
HiLink yaccParseParam yaccParseOption
|
||||
HiLink yaccParseOption cDefine
|
||||
HiLink yaccNonterminal Function
|
||||
HiLink yaccDelim Delimiter
|
||||
HiLink yaccKeyActn Special
|
||||
HiLink yaccSectionSep Todo
|
||||
HiLink yaccSep Delimiter
|
||||
HiLink yaccString String
|
||||
HiLink yaccStmt Statement
|
||||
HiLink yaccType Type
|
||||
|
||||
" since Bram doesn't like my Delimiter :| {{{2
|
||||
HiLink Delimiter Type
|
||||
|
||||
delcommand HiLink
|
||||
hi def link yaccBrkt yaccStmt
|
||||
hi def link yaccComment Comment
|
||||
hi def link yaccCurly Delimiter
|
||||
hi def link yaccCurlyError Error
|
||||
hi def link yaccDefines cDefine
|
||||
hi def link yaccDelim Delimiter
|
||||
hi def link yaccKeyActn Special
|
||||
hi def link yaccKey yaccStmt
|
||||
hi def link yaccNonterminal Function
|
||||
hi def link yaccOper yaccStmt
|
||||
hi def link yaccParseOption cDefine
|
||||
hi def link yaccParseParam yaccParseOption
|
||||
hi def link yaccSectionSep Todo
|
||||
hi def link yaccSep Delimiter
|
||||
hi def link yaccStmt Statement
|
||||
hi def link yaccString String
|
||||
hi def link yaccType Type
|
||||
hi def link yaccUnionStart yaccKey
|
||||
hi def link yaccVar Special
|
||||
endif
|
||||
|
||||
" ---------------------------------------------------------------------
|
||||
" Cleanup: {{{1
|
||||
delcommand HiFold
|
||||
delcommand SynFold
|
||||
let b:current_syntax = "yacc"
|
||||
|
||||
" ---------------------------------------------------------------------
|
||||
|
||||
@@ -658,7 +658,7 @@ NOTE: If you were to exit Vim and start it again with vim TEST , the file
|
||||
4. Type w TEST , where TEST is a filename that does not exist yet. Verify
|
||||
that you see :'<,'>w TEST before you press <ENTER>.
|
||||
|
||||
5. Vim will write the selected lines to the file TEST. Use :!dir or !ls
|
||||
5. Vim will write the selected lines to the file TEST. Use :!dir or :!ls
|
||||
to see it. Do not remove it yet! We will use it in the next lesson.
|
||||
|
||||
NOTE: Pressing v starts Visual selection. You can move the cursor around
|
||||
|
||||
@@ -645,7 +645,7 @@ RIMARKO: Ĉiuj : komandoj devas finiĝi per tajpo de <Enenklavo>
|
||||
3. Nun tajpu: :w TESTO (kie TESTO estas la elektita dosiernomo)
|
||||
|
||||
4. Tio konservas la tutan dosieron (instruilon de Vim) kun la nomo TESTO.
|
||||
Por kontroli tion, tajpu :!dir aŭ !ls denove por vidigi vian
|
||||
Por kontroli tion, tajpu :!dir aŭ :!ls denove por vidigi vian
|
||||
dosierujon.
|
||||
|
||||
RIMARKO: Se vi volus eliri el Vim kaj restartigi ĝin denove per vim TESTO,
|
||||
|
||||
@@ -707,7 +707,7 @@ NOTE : Si vous quittez Vim et le red
|
||||
V<>rifiez que vous voyez :'<,'>w TEST avant de d'appuyer sur <Entr<74>e>.
|
||||
|
||||
5. Vim va enregistrer les lignes s<>lectionn<6E>es dans le fichier TEST.
|
||||
Utilisez :!dir ou !ls pour le voir. Ne l'effacez pas encore !
|
||||
Utilisez :!dir ou :!ls pour le voir. Ne l'effacez pas encore !
|
||||
Nous allons l'utiliser dans la le<6C>on suivante.
|
||||
|
||||
NOTE : L'appui de v d<>marre la s<>lection Visuelle. Vous pouvez d<>placer le
|
||||
|
||||
@@ -707,7 +707,7 @@ NOTE : Si vous quittez Vim et le redémarrez de nouveau avec le fichier TEST,
|
||||
Vérifiez que vous voyez :'<,'>w TEST avant de d'appuyer sur <Entrée>.
|
||||
|
||||
5. Vim va enregistrer les lignes sélectionnées dans le fichier TEST.
|
||||
Utilisez :!dir ou !ls pour le voir. Ne l'effacez pas encore !
|
||||
Utilisez :!dir ou :!ls pour le voir. Ne l'effacez pas encore !
|
||||
Nous allons l'utiliser dans la leçon suivante.
|
||||
|
||||
NOTE : L'appui de v démarre la sélection Visuelle. Vous pouvez déplacer le
|
||||
|
||||
@@ -659,7 +659,7 @@ NAPOMENA: Ako bi napustili Vim i ponovno ga pokrenuli sa vim TEST ,
|
||||
Provjerite da zaista pi<70>e :'<,'>w TEST
|
||||
prije nego <20>to pritisnite <ENTER>.
|
||||
|
||||
5. Vim <20>e spremiti ozna<6E>eni tekst u TEST. Provjerite sa :!dir ili !ls .
|
||||
5. Vim <20>e spremiti ozna<6E>eni tekst u TEST. Provjerite sa :!dir ili :!ls .
|
||||
Nemojte je jo<6A> brisati! Koristiti <20>e te je u sljede<64>oj lekciji.
|
||||
|
||||
NAPOMENA: Tipka v zapo<70>inje Vizualno ozna<6E>avanje. Mo<4D>ete pomicati kursor
|
||||
|
||||
@@ -659,7 +659,7 @@ NAPOMENA: Ako bi napustili Vim i ponovno ga pokrenuli sa vim TEST ,
|
||||
Provjerite da zaista pi<70>e :'<,'>w TEST
|
||||
prije nego <20>to pritisnite <ENTER>.
|
||||
|
||||
5. Vim <20>e spremiti ozna<6E>eni tekst u TEST. Provjerite sa :!dir ili !ls .
|
||||
5. Vim <20>e spremiti ozna<6E>eni tekst u TEST. Provjerite sa :!dir ili :!ls .
|
||||
Nemojte je jo<6A> brisati! Koristiti <20>e te je u sljede<64>oj lekciji.
|
||||
|
||||
NAPOMENA: Tipka v zapo<70>inje Vizualno ozna<6E>avanje. Mo<4D>ete pomicati kursor
|
||||
|
||||
@@ -659,7 +659,7 @@ NAPOMENA: Ako bi napustili Vim i ponovno ga pokrenuli sa vim TEST ,
|
||||
Provjerite da zaista piše :'<,'>w TEST
|
||||
prije nego što pritisnite <ENTER>.
|
||||
|
||||
5. Vim će spremiti označeni tekst u TEST. Provjerite sa :!dir ili !ls .
|
||||
5. Vim će spremiti označeni tekst u TEST. Provjerite sa :!dir ili :!ls .
|
||||
Nemojte je još brisati! Koristiti će te je u sljedećoj lekciji.
|
||||
|
||||
NAPOMENA: Tipka v započinje Vizualno označavanje. Možete pomicati kursor
|
||||
|
||||
@@ -117,7 +117,7 @@ NOTE:
|
||||
<20><><EFBFBD>å<EFBFBD><C3A5><EFBFBD> 1.5: <20>ƥ<EFBFBD><C6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Խ<EFBFBD> - <20>ɲ<EFBFBD>
|
||||
|
||||
|
||||
** <20>ƥ<EFBFBD><C6A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɲä<C9B2><C3A4><EFBFBD><EFBFBD>ˤ<EFBFBD> A <20><EFBFBD><F2B2A1A4>ޤ<EFBFBD><DEA4>礦 **
|
||||
** <20>ƥ<EFBFBD><C6A5><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD>ɲä<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ˤ<EFBFBD> A <20><EFBFBD><F2B2A1A4>ޤ<EFBFBD><DEA4>礦 **
|
||||
|
||||
1. <20>ʲ<EFBFBD><CAB2><EFBFBD> ---> <20>ȼ<EFBFBD><C8BC><EFBFBD><EFBFBD>줿<EFBFBD>ǽ<EFBFBD><C7BD>ιԤ˥<D4A4><CBA5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ư<EFBFBD><C6B0><EFBFBD>ޤ<EFBFBD><DEA4>礦<EFBFBD><E7A4A6>
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>뤬<EFBFBD><EBA4AC><EFBFBD><EFBFBD>ʸ<EFBFBD><CAB8><EFBFBD><EFBFBD><EFBFBD>ˤ<EFBFBD><CBA4>äƤ⤫<C6A4>ޤ<EFBFBD><DEA4>ޤ<EFBFBD><DEA4><EFBFBD><EFBFBD><EFBFBD>
|
||||
@@ -232,7 +232,7 @@ NOTE: <ESC>
|
||||
<20><><EFBFBD>å<EFBFBD><C3A5><EFBFBD> 2.3: <20><><EFBFBD>ڥ졼<DAA5><ECA1BC><EFBFBD>ȥ⡼<C8A5><E2A1BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
|
||||
¿<><C2BF><EFBFBD>Υ<EFBFBD><CEA5>ޥ<EFBFBD><DEA5>ɤϥ<C9A4><CFA5>ڥ졼<DAA5><ECA1BC><EFBFBD>ȥ⡼<C8A5><E2A1BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><F3A4ABA4>ƥ<EFBFBD><C6A5><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4>ѹ<EFBFBD><D1B9><EFBFBD><EFBFBD>äޤ<C3A4><DEA4><EFBFBD>
|
||||
¿<><C2BF><EFBFBD>Υ<EFBFBD><CEA5>ޥ<EFBFBD><DEA5>ɤϥ<C9A4><CFA5>ڥ졼<DAA5><ECA1BC><EFBFBD>ȥ⡼<C8A5><E2A1BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><F3A4ABA4>ƥ<EFBFBD><C6A5><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4>ѹ<EFBFBD><D1B9><EFBFBD><EFBFBD>ä<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޥ<EFBFBD><DEA5><EFBFBD> d <20>Υ<EFBFBD><CEA5>ڥ졼<DAA5><ECA1BC><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD><EFBFBD>ͤˤʤäƤ<C3A4><C6A4>ޤ<EFBFBD>:
|
||||
|
||||
d <20>⡼<EFBFBD><E2A1BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
@@ -259,7 +259,7 @@ NOTE:
|
||||
|
||||
1. <20>ʲ<EFBFBD><CAB2><EFBFBD> ---> <20>ȼ<EFBFBD><C8BC><EFBFBD><EFBFBD>줿<EFBFBD>Ԥ<EFBFBD><D4A4><EFBFBD>Ƭ<EFBFBD>˥<EFBFBD><CBA5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ư<EFBFBD><C6B0><EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD>
|
||||
|
||||
2. 2dw <20><EFBFBD><F2A5BFA5>פ<EFBFBD><D7A4><EFBFBD>ñ<EFBFBD><C3B1>2<EFBFBD><32>ʬ<EFBFBD><CAAC>ư<EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
||||
2. 2dw <20><EFBFBD><F2A5BFA5>פ<EFBFBD><D7A4><EFBFBD>ñ<EFBFBD><C3B1>2<EFBFBD><32>ʬ<EFBFBD><CAAC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
3. 3e <20><EFBFBD><F2A5BFA5>פ<EFBFBD><D7A4><EFBFBD>3<EFBFBD><33><EFBFBD>ܤ<EFBFBD>ñ<EFBFBD><C3B1><EFBFBD>ν<EFBFBD>ü<EFBFBD>˰<EFBFBD>ư<EFBFBD><C6B0><EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD>
|
||||
|
||||
@@ -326,8 +326,8 @@ NOTE:
|
||||
|
||||
** <20>Ǹ<EFBFBD><C7B8>Υ<EFBFBD><CEA5>ޥ<EFBFBD><DEA5>ɤ<EFBFBD><C9A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ä<EFBFBD><C3A4>ˤ<EFBFBD> u <20><EFBFBD><F2B2A1A4>ޤ<EFBFBD><DEA4><EFBFBD>U <20>Ϲ<EFBFBD><CFB9><EFBFBD><EFBFBD>Τμ<CEA4><CEBC>äǤ<C3A4><C7A4><EFBFBD> **
|
||||
|
||||
1. <20>ʲ<EFBFBD><CAB2><EFBFBD> ---> <20>ȼ<EFBFBD><C8BC><EFBFBD><EFBFBD>줿<EFBFBD>Ԥ˥<D4A4><CBA5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ư<EFBFBD><C6B0><EFBFBD><EFBFBD><EFBFBD>ǽ<EFBFBD><C7BD>δְ㤤<D6B0>˥<EFBFBD><CBA5><EFBFBD><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ư<EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD>礦<EFBFBD><EFBFBD>
|
||||
1. <20>ʲ<EFBFBD><CAB2><EFBFBD> ---> <20>ȼ<EFBFBD><C8BC><EFBFBD><EFBFBD>줿<EFBFBD>Ԥ˥<D4A4><CBA5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ư<EFBFBD><C6B0><EFBFBD><EFBFBD><EFBFBD>ǽ<EFBFBD><C7BD>δְ㤤<D6B0>˥<EFBFBD><CBA5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD><EFBFBD>ư<EFBFBD><C6B0><EFBFBD>ޤ<EFBFBD><DEA4>礦<EFBFBD><E7A4A6>
|
||||
2. x <20><EFBFBD><F2A5BFA5>פ<EFBFBD><D7A4>Ƥ<EFBFBD><C6A4><EFBFBD><EFBFBD>ʤ<EFBFBD><CAA4><EFBFBD>Ƭ<EFBFBD><C6AC>ʸ<EFBFBD><CAB8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><DEA4>礦<EFBFBD><E7A4A6>
|
||||
3. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>u <20><EFBFBD><F2A5BFA5>פ<EFBFBD><D7A4>ƺǸ<C6BA><C7B8>˼¹Ԥ<C2B9><D4A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޥ<EFBFBD><DEA5>ɤ<EFBFBD><C9A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ä<EFBFBD><C3A4>ޤ<EFBFBD><DEA4>礦<EFBFBD><E7A4A6>
|
||||
4. <20><><EFBFBD>٤ϡ<D9A4>x <20><><EFBFBD><EFBFBD><EFBFBD>Ѥ<EFBFBD><D1A4>Ƹ<EFBFBD><C6B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƽ<EFBFBD><C6BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><DEA4>礦<EFBFBD><E7A4A6>
|
||||
@@ -541,7 +541,7 @@ Note:
|
||||
|
||||
4. <20>ǽ<EFBFBD><C7BD>γ<EFBFBD><CEB3>̤˰<CCA4>ư<EFBFBD><C6B0><EFBFBD><EFBFBD><EFBFBD>ˤ<EFBFBD> % <20>ȥ<EFBFBD><C8A5><EFBFBD><EFBFBD>פ<EFBFBD><D7A4>ޤ<EFBFBD><DEA4>礦<EFBFBD><E7A4A6>
|
||||
|
||||
5. ¾<><C2BE> (,),[,],{ or } <20>ǥ<EFBFBD><C7A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ư<EFBFBD><C6B0><EFBFBD><EFBFBD>% <20><><EFBFBD><EFBFBD><EFBFBD>Ƥ<F2A4B7A4><C6A4>뤫<EFBFBD><EBA4AB>ǧ<EFBFBD><C7A7><EFBFBD>ޤ<EFBFBD><DEA4>礦<EFBFBD><E7A4A6>
|
||||
5. ¾<><C2BE> (,),[,],{ <EFBFBD><EFBFBD> } <20>ǥ<EFBFBD><C7A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ư<EFBFBD><C6B0><EFBFBD><EFBFBD>% <20><><EFBFBD><EFBFBD><EFBFBD>Ƥ<F2A4B7A4><C6A4>뤫<EFBFBD><EBA4AB>ǧ<EFBFBD><C7A7><EFBFBD>ޤ<EFBFBD><DEA4>礦<EFBFBD><E7A4A6>
|
||||
|
||||
---> This ( is a test line with ('s, ['s ] and {'s } in it. ))
|
||||
|
||||
@@ -633,7 +633,7 @@ Note:
|
||||
3. <20>Ǥ<EFBFBD> :w TEST <20>ȥ<EFBFBD><C8A5><EFBFBD><EFBFBD>פ<EFBFBD><D7A4>ޤ<EFBFBD><DEA4>礦 (TEST <20>ϡ<EFBFBD><CFA1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ե<EFBFBD><D5A5><EFBFBD><EFBFBD><EFBFBD>̾<EFBFBD>Ǥ<EFBFBD>)<29><>
|
||||
|
||||
4. <20><><EFBFBD><EFBFBD><EFBFBD>ˤ<EFBFBD><CBA4><EFBFBD><EFBFBD>ե<EFBFBD><D5A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Τ<EFBFBD> TEST <20>Ȥ<EFBFBD><C8A4><EFBFBD>̾<EFBFBD><CCBE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¸<EFBFBD><C2B8><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD>
|
||||
<20>⤦<EFBFBD><E2A4A6><EFBFBD><EFBFBD> :!dir <20>⤷<EFBFBD><E2A4B7><EFBFBD><EFBFBD> !ls <20>ȥ<EFBFBD><C8A5><EFBFBD><EFBFBD>פ<EFBFBD><D7A4>Ƴ<EFBFBD>ǧ<EFBFBD><C7A7><EFBFBD>Ƥߤޤ<DFA4><DEA4>礦<EFBFBD><E7A4A6>
|
||||
<20>⤦<EFBFBD><E2A4A6><EFBFBD><EFBFBD> :!dir <20>⤷<EFBFBD><E2A4B7><EFBFBD><EFBFBD> :!ls <20>ȥ<EFBFBD><C8A5><EFBFBD><EFBFBD>פ<EFBFBD><D7A4>Ƴ<EFBFBD>ǧ<EFBFBD><C7A7><EFBFBD>Ƥߤޤ<DFA4><DEA4>礦<EFBFBD><E7A4A6>
|
||||
|
||||
Note: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Vim <20><><EFBFBD><EFBFBD>λ<EFBFBD><CEBB><EFBFBD><EFBFBD><EFBFBD>ե<EFBFBD><D5A5><EFBFBD><EFBFBD><EFBFBD>̾ TEST <20>ȶ<EFBFBD><C8B6>˵<EFBFBD>ư<EFBFBD><C6B0><EFBFBD><EFBFBD><EFBFBD>ȡ<EFBFBD><C8A1><EFBFBD>¸<EFBFBD><C2B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD>塼<EFBFBD>ȥꥢ<C8A5><EAA5A2><EFBFBD><EFBFBD>ʣ<EFBFBD><CAA3><EFBFBD><EFBFBD><EFBFBD>Ǥ<EFBFBD><C7A4>夬<EFBFBD><E5A4AC><EFBFBD>Ϥ<EFBFBD><CFA4>Ǥ<EFBFBD><C7A4><EFBFBD>
|
||||
@@ -655,7 +655,7 @@ Note:
|
||||
|
||||
3. ʸ<><CAB8> : <20><EFBFBD><F2B2A1A4>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD>̤κDz<CEBA><C7B2><EFBFBD><EFBFBD><EFBFBD> :'<,'> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD>
|
||||
|
||||
4. w TEST (TESET <20><>¸<EFBFBD>ߤ<EFBFBD><DFA4>ʤ<EFBFBD><CAA4>ե<EFBFBD><D5A5><EFBFBD><EFBFBD><EFBFBD>̾)<29><EFBFBD><F2A5BFA5>פ<EFBFBD><D7A4>ޤ<EFBFBD><DEA4><EFBFBD>
|
||||
4. w TEST (TEST <20><>¸<EFBFBD>ߤ<EFBFBD><DFA4>ʤ<EFBFBD><CAA4>ե<EFBFBD><D5A5><EFBFBD><EFBFBD><EFBFBD>̾)<29><EFBFBD><F2A5BFA5>פ<EFBFBD><D7A4>ޤ<EFBFBD><DEA4><EFBFBD>
|
||||
Enter <20><EFBFBD><F2B2A1A4><EFBFBD><EFBFBD><EFBFBD> :'<,'>w TEST <20>ȤʤäƤ<C3A4><C6A4>뤳<EFBFBD>Ȥ<EFBFBD><C8A4><EFBFBD>ǧ<EFBFBD><C7A7><EFBFBD>Ʋ<EFBFBD><C6B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
5. Vim <20><> TEST <20>Ȥ<EFBFBD><C8A4><EFBFBD><EFBFBD>ե<EFBFBD><D5A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>줿<F2A4B5A4>Ԥ<EFBFBD><D4A4><EFBFBD><F1A4ADB9><EFBFBD><EFBFBD>Ǥ<EFBFBD><C7A4>礦<EFBFBD><E7A4A6>
|
||||
@@ -772,7 +772,7 @@ Note: a, i
|
||||
3. <20>ִ<EFBFBD><D6B4>⡼<EFBFBD>ɤ<EFBFBD>ȴ<EFBFBD><C8B4><EFBFBD><EFBFBD><EFBFBD>ˤ<EFBFBD> <ESC> <20><EFBFBD><F2B2A1A4>ޤ<EFBFBD><DEA4><EFBFBD><EFBFBD>ԤλĤ꤬<C4A4>ѹ<EFBFBD><D1B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD><C6A4>ʤ<EFBFBD><CAA4>ޤޤ<DEA4>
|
||||
<20>ʤ뤳<CAA4>Ȥ<EFBFBD><C8A4><EFBFBD><EFBFBD>դ<EFBFBD><D5A4>Ƥ<EFBFBD><C6A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
5. <20>Ĥä<C4A4> xxx <20>ƥåפ<D7A4><F2B7ABA4>֤<EFBFBD><D6A4><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4><EFBFBD><EFBFBD>ޤ<EFBFBD><DEA4>礦<EFBFBD><E7A4A6>
|
||||
4. <20>Ĥä<C4A4> xxx <20>ƥåפ<D7A4><F2B7ABA4>֤<EFBFBD><D6A4><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4><EFBFBD><EFBFBD>ޤ<EFBFBD><DEA4>礦<EFBFBD><E7A4A6>
|
||||
|
||||
---> Adding 123 to xxx gives you xxx.
|
||||
---> Adding 123 to 456 gives you 579.
|
||||
@@ -869,10 +869,10 @@ Note: 1
|
||||
":help" <20><><EFBFBD>ޥ<EFBFBD><DEA5>ɤ˰<C9A4><CBB0><EFBFBD><EFBFBD><EFBFBD>Ϳ<EFBFBD><CDBF><EFBFBD>뤳<EFBFBD>Ȥˤ<C8A4><CBA4>ꡢ<EFBFBD><EAA1A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̾<EFBFBD>Υإ<CEA5><D8A5>פĤ<F2B8ABA4><C4A4>뤳<EFBFBD><EBA4B3>
|
||||
<20><><EFBFBD>Ǥ<EFBFBD><C7A4>ޤ<EFBFBD><DEA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƥߤޤ<DFA4><DEA4>礦(<ENTER> <20><EFBFBD><F2A5BFA5>פ<EFBFBD>˺<EFBFBD><CBBA><EFBFBD>ʤ<EFBFBD><CAA4>褦<EFBFBD><E8A4A6>):
|
||||
|
||||
:help w
|
||||
:help c_<T
|
||||
:help insert-index
|
||||
:help user-manual
|
||||
:help w
|
||||
:help c_CTRL-D
|
||||
:help insert-index
|
||||
:help user-manual
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
<20><><EFBFBD>å<EFBFBD><C3A5><EFBFBD> 7.2: <20><>ư<EFBFBD><C6B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ץȤκ<C8A4><CEBA><EFBFBD>
|
||||
|
||||
@@ -947,7 +947,7 @@ NOTE:
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD>ˤ<EFBFBD> Vim <20>Υ<EFBFBD><CEA5>塼<EFBFBD>ȥꥢ<C8A5><EAA5A2><EFBFBD><EFBFBD><F2BDAAA4><EFBFBD><EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǥ<EFBFBD><C7A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ñ<EFBFBD>ˡ<EFBFBD><CBA1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⽼ʬ<E2BDBC><CAAC>
|
||||
<20>Ȥ<EFBFBD><C8A4><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4>Ǥ<EFBFBD><C7A4><EFBFBD><EFBFBD>褦<EFBFBD>ˤȡ<CBA4>Vim <20>λ<EFBFBD><CEBB>ij<EFBFBD>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Τߤ<CEA4><DFA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>褦<EFBFBD>Ȥ<EFBFBD><C8A4>ޤ<EFBFBD><DEA4><EFBFBD><EFBFBD><EFBFBD>
|
||||
Vim <20>ˤϤ<CBA4><CFA4><EFBFBD><EFBFBD><EFBFBD>¿<EFBFBD><C2BF><EFBFBD>Υ<EFBFBD><CEA5>ޥ<EFBFBD><DEA5>ɤ<EFBFBD><C9A4><EFBFBD><EFBFBD>ꡢ<EFBFBD><EAA1A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƥ<EFBFBD><C6A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>뤳<EFBFBD>ȤϤǤ<CFA4><C7A4>ޤ<EFBFBD><DEA4><EFBFBD><EFBFBD><EFBFBD>
|
||||
<20>ʹߤϥ桼<CFA5><E6A1BC><EFBFBD>ޥ˥奢<CBA5><E5A5A2><EFBFBD>Ȥ<F2BBB2BE><C8A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: "help :user-manual"
|
||||
<20>ʹߤϥ桼<CFA5><E6A1BC><EFBFBD>ޥ˥奢<CBA5><E5A5A2><EFBFBD>Ȥ<F2BBB2BE><C8A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: ":help user-manual"
|
||||
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD>ʸ<EFBFBD><CAB8>γؽ<CEB3><D8BD>Τ<EFBFBD><CEA4><EFBFBD><EFBFBD>ˡ<EFBFBD><CBA1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܤ<EFBFBD><DCA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD>
|
||||
Vim - Vi Improved - by Steve Oualline
|
||||
|
||||
@@ -117,7 +117,7 @@ NOTE:
|
||||
<20><><EFBFBD>b<EFBFBD>X<EFBFBD><58> 1.5: <20>e<EFBFBD>L<EFBFBD>X<EFBFBD>g<EFBFBD>ҏW - <20>lj<EFBFBD>
|
||||
|
||||
|
||||
** <20>e<EFBFBD>L<EFBFBD>X<EFBFBD>g<EFBFBD>lj<EFBFBD><C789><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɂ<EFBFBD> A <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>傤 **
|
||||
** <20>e<EFBFBD>L<EFBFBD>X<EFBFBD>g<EFBFBD><EFBFBD><EFBFBD>lj<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɂ<EFBFBD> A <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>傤 **
|
||||
|
||||
1. <20>ȉ<EFBFBD><C889><EFBFBD> ---> <20>Ǝ<EFBFBD><C68E><EFBFBD><EFBFBD>ꂽ<EFBFBD>ŏ<EFBFBD><C58F>̍s<CC8D>ɃJ<C983>[<5B>\<5C><><EFBFBD><EFBFBD><EFBFBD>ړ<EFBFBD><DA93><EFBFBD><EFBFBD>܂<EFBFBD><DC82>傤<EFBFBD>B
|
||||
<20>J<EFBFBD>[<5B>\<5C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̕<EFBFBD><CC95><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD>܂<EFBFBD><DC82>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
|
||||
@@ -232,7 +232,7 @@ NOTE: <ESC>
|
||||
<20><><EFBFBD>b<EFBFBD>X<EFBFBD><58> 2.3: <20>I<EFBFBD>y<EFBFBD><79><EFBFBD>[<5B>^<5E>ƃ<EFBFBD><C683>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD>
|
||||
|
||||
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD>̃R<CC83>}<7D><><EFBFBD>h<EFBFBD>̓I<CD83>y<EFBFBD><79><EFBFBD>[<5B>^<5E>ƃ<EFBFBD><C683>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>e<EFBFBD>L<EFBFBD>X<EFBFBD>g<EFBFBD>ɕύX<CF8D><58><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD>̃R<CC83>}<7D><><EFBFBD>h<EFBFBD>̓I<CD83>y<EFBFBD><79><EFBFBD>[<5B>^<5E>ƃ<EFBFBD><C683>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>e<EFBFBD>L<EFBFBD>X<EFBFBD>g<EFBFBD>ɕύX<CF8D><58><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD>B
|
||||
<20>폜<EFBFBD>R<EFBFBD>}<7D><><EFBFBD>h d <20>̃I<CC83>y<EFBFBD><79><EFBFBD>[<5B>^<5E>͎<EFBFBD><CD8E>̗l<CC97>ɂȂ<C982><C882>Ă<EFBFBD><C482>܂<EFBFBD>:
|
||||
|
||||
d <20><><EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD>
|
||||
@@ -259,7 +259,7 @@ NOTE:
|
||||
|
||||
1. <20>ȉ<EFBFBD><C889><EFBFBD> ---> <20>Ǝ<EFBFBD><C68E><EFBFBD><EFBFBD>ꂽ<EFBFBD>s<EFBFBD>̐擪<CC90>ɃJ<C983>[<5B>\<5C><><EFBFBD><EFBFBD><EFBFBD>ړ<EFBFBD><DA93><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
|
||||
|
||||
2. 2dw <20><><EFBFBD>^<5E>C<EFBFBD>v<EFBFBD><76><EFBFBD>ĒP<C492><50>2<EFBFBD><EFBFBD><C295>ړ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD>B
|
||||
2. 2dw <20><><EFBFBD>^<5E>C<EFBFBD>v<EFBFBD><76><EFBFBD>ĒP<C492><50>2<EFBFBD><EFBFBD><C295>폜<EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD>B
|
||||
|
||||
3. 3e <20><><EFBFBD>^<5E>C<EFBFBD>v<EFBFBD><76><EFBFBD><EFBFBD>3<EFBFBD>ڂ̒P<CC92><50><EFBFBD>̏I<CC8F>[<5B>Ɉړ<C988><DA93><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
|
||||
|
||||
@@ -326,8 +326,8 @@ NOTE:
|
||||
|
||||
** <20>Ō<EFBFBD><C58C>̃R<CC83>}<7D><><EFBFBD>h<EFBFBD><68><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɂ<EFBFBD> u <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>BU <20>͍s<CD8D>S<EFBFBD>̂̎<CC82><CC8E><EFBFBD><EFBFBD>ł<EFBFBD><C582>B **
|
||||
|
||||
1. <20>ȉ<EFBFBD><C889><EFBFBD> ---> <20>Ǝ<EFBFBD><C68E><EFBFBD><EFBFBD>ꂽ<EFBFBD>s<EFBFBD>ɃJ<C983>[<5B>\<5C><><EFBFBD><EFBFBD><EFBFBD>ړ<EFBFBD><DA93><EFBFBD><EFBFBD>A<EFBFBD>ŏ<EFBFBD><C58F>̊ԈႢ<D488>ɃJ<C983>[<5B>\
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD>ړ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><EFBFBD>傤<EFBFBD>B
|
||||
1. <20>ȉ<EFBFBD><C889><EFBFBD> ---> <20>Ǝ<EFBFBD><C68E><EFBFBD><EFBFBD>ꂽ<EFBFBD>s<EFBFBD>ɃJ<C983>[<5B>\<5C><><EFBFBD><EFBFBD><EFBFBD>ړ<EFBFBD><DA93><EFBFBD><EFBFBD>A<EFBFBD>ŏ<EFBFBD><C58F>̊ԈႢ<D488>ɃJ<C983>[<5B>\<EFBFBD><EFBFBD>
|
||||
<20><><EFBFBD>ړ<EFBFBD><DA93><EFBFBD><EFBFBD>܂<EFBFBD><DC82>傤<EFBFBD>B
|
||||
2. x <20><><EFBFBD>^<5E>C<EFBFBD>v<EFBFBD><76><EFBFBD>Ă<EFBFBD><C482><EFBFBD><EFBFBD>Ȃ<EFBFBD><C882>擪<EFBFBD>̕<EFBFBD><CC95><EFBFBD><EFBFBD><EFBFBD><EFBFBD>폜<EFBFBD><ED8F9C><EFBFBD>܂<EFBFBD><DC82>傤<EFBFBD>B
|
||||
3. <20><><EFBFBD><EFBFBD><EFBFBD>Au <20><><EFBFBD>^<5E>C<EFBFBD>v<EFBFBD><76><EFBFBD>čŌ<C48D><C58C>Ɏ<EFBFBD><C98E>s<EFBFBD><73><EFBFBD><EFBFBD><EFBFBD>R<EFBFBD>}<7D><><EFBFBD>h<EFBFBD><68><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>傤<EFBFBD>B
|
||||
4. <20><><EFBFBD>x<EFBFBD>́Ax <20><><EFBFBD>g<EFBFBD>p<EFBFBD><70><EFBFBD>Č<EFBFBD><C48C><EFBFBD><EFBFBD><EFBFBD><EFBFBD>S<EFBFBD>ďC<C48F><43><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>傤<EFBFBD>B
|
||||
@@ -541,7 +541,7 @@ Note:
|
||||
|
||||
4. <20>ŏ<EFBFBD><C58F>̊<EFBFBD><CC8A>ʂɈړ<C988><DA93><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɂ<EFBFBD> % <20>ƃ^<5E>C<EFBFBD>v<EFBFBD><76><EFBFBD>܂<EFBFBD><DC82>傤<EFBFBD>B
|
||||
|
||||
5. <20><><EFBFBD><EFBFBD> (,),[,],{ or } <20>ŃJ<C583>[<5B>\<5C><><EFBFBD><EFBFBD><EFBFBD>ړ<EFBFBD><DA93><EFBFBD><EFBFBD>A% <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482>邩<EFBFBD>m<EFBFBD>F<EFBFBD><46><EFBFBD>܂<EFBFBD><DC82>傤<EFBFBD>B
|
||||
5. <20><><EFBFBD><EFBFBD> (,),[,],{ <EFBFBD><EFBFBD> } <20>ŃJ<C583>[<5B>\<5C><><EFBFBD><EFBFBD><EFBFBD>ړ<EFBFBD><DA93><EFBFBD><EFBFBD>A% <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482>邩<EFBFBD>m<EFBFBD>F<EFBFBD><46><EFBFBD>܂<EFBFBD><DC82>傤<EFBFBD>B
|
||||
|
||||
---> This ( is a test line with ('s, ['s ] and {'s } in it. ))
|
||||
|
||||
@@ -633,7 +633,7 @@ Note:
|
||||
3. <20>ł<EFBFBD> :w TEST <20>ƃ^<5E>C<EFBFBD>v<EFBFBD><76><EFBFBD>܂<EFBFBD><DC82>傤 (TEST <20>́A<CD81>I<EFBFBD>t<F182BE83>@<40>C<EFBFBD><43><EFBFBD><EFBFBD><EFBFBD>ł<EFBFBD>)<29>B
|
||||
|
||||
4. <20><><EFBFBD><EFBFBD><EFBFBD>ɂ<EFBFBD><C982><EFBFBD><EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>S<EFBFBD>̂<EFBFBD> TEST <20>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD>ŕۑ<C595><DB91><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>x :!dir <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> !ls <20>ƃ^<5E>C<EFBFBD>v<EFBFBD><76><EFBFBD>Ċm<C48A>F<EFBFBD><46><EFBFBD>Ă݂܂<DD82><DC82>傤<EFBFBD>B
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>x :!dir <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> :!ls <20>ƃ^<5E>C<EFBFBD>v<EFBFBD><76><EFBFBD>Ċm<C48A>F<EFBFBD><46><EFBFBD>Ă݂܂<DD82><DC82>傤<EFBFBD>B
|
||||
|
||||
Note: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Vim <20><><EFBFBD>I<EFBFBD><49><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD> TEST <20>Ƌ<EFBFBD><C68B>ɋN<C98B><4E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƁA<C681>ۑ<EFBFBD><DB91><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<20>`<60><><EFBFBD>[<5B>g<EFBFBD><67><EFBFBD>A<EFBFBD><41><EFBFBD>̕<EFBFBD><CC95><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ł<EFBFBD><C582>オ<EFBFBD><E382AA><EFBFBD>͂<EFBFBD><CD82>ł<EFBFBD><C582>B
|
||||
@@ -655,7 +655,7 @@ Note:
|
||||
|
||||
3. <20><><EFBFBD><EFBFBD> : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƁA<C681><41><EFBFBD>ʂ̍ʼn<CC8D><C589><EFBFBD><EFBFBD><EFBFBD> :'<,'> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B
|
||||
|
||||
4. w TEST (TESET <20>͑<EFBFBD><CD91>݂<EFBFBD><DD82>Ȃ<EFBFBD><C882>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD>)<29><><EFBFBD>^<5E>C<EFBFBD>v<EFBFBD><76><EFBFBD>܂<EFBFBD><DC82>B
|
||||
4. w TEST (TEST <20>͑<EFBFBD><CD91>݂<EFBFBD><DD82>Ȃ<EFBFBD><C882>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD><EFBFBD>)<29><><EFBFBD>^<5E>C<EFBFBD>v<EFBFBD><76><EFBFBD>܂<EFBFBD><DC82>B
|
||||
Enter <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD><4F> :'<,'>w TEST <20>ƂȂ<C682><C882>Ă<EFBFBD><C482>邱<EFBFBD>Ƃ<EFBFBD><C682>m<EFBFBD>F<EFBFBD><46><EFBFBD>ĉ<EFBFBD><C489><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
|
||||
|
||||
5. Vim <20><> TEST <20>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD>t<EFBFBD>@<40>C<EFBFBD><43><EFBFBD>ɑI<C991><49><EFBFBD><EFBFBD><EFBFBD>ꂽ<EFBFBD>s<EFBFBD><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ނł<DE82><C582>傤<EFBFBD>B
|
||||
@@ -772,7 +772,7 @@ Note: a, i
|
||||
3. <20>u<EFBFBD><75><EFBFBD><EFBFBD><EFBFBD>[<5B>h<EFBFBD><EFBFBD><F094B282><EFBFBD><EFBFBD>ɂ<EFBFBD> <ESC> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD>s<EFBFBD>̎c<CC8E>肪<EFBFBD>ύX<CF8D><58><EFBFBD><EFBFBD><EFBFBD>Ă<EFBFBD><C482>Ȃ<EFBFBD><C882>܂܂<DC82>
|
||||
<20>Ȃ邱<C882>Ƃɒ<C682><C992>ӂ<EFBFBD><D382>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>B
|
||||
|
||||
5. <20>c<EFBFBD><63><EFBFBD><EFBFBD> xxx <20><><EFBFBD>X<EFBFBD>e<EFBFBD>b<EFBFBD>v<EFBFBD><76><EFBFBD>J<EFBFBD><4A><EFBFBD>Ԃ<EFBFBD><D482>Ēu<C492><75><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>傤<EFBFBD>B
|
||||
4. <20>c<EFBFBD><63><EFBFBD><EFBFBD> xxx <20><><EFBFBD>X<EFBFBD>e<EFBFBD>b<EFBFBD>v<EFBFBD><76><EFBFBD>J<EFBFBD><4A><EFBFBD>Ԃ<EFBFBD><D482>Ēu<C492><75><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>傤<EFBFBD>B
|
||||
|
||||
---> Adding 123 to xxx gives you xxx.
|
||||
---> Adding 123 to 456 gives you 579.
|
||||
@@ -869,10 +869,10 @@ Note: 1
|
||||
":help" <20>R<EFBFBD>}<7D><><EFBFBD>h<EFBFBD>Ɉ<EFBFBD><C988><EFBFBD><EFBFBD><EFBFBD><EFBFBD>^<5E><><EFBFBD>邱<EFBFBD>Ƃɂ<C682><C982><EFBFBD><EFBFBD>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>薼<EFBFBD>̃w<CC83><77><EFBFBD>v<EFBFBD><76><EFBFBD><EFBFBD><EFBFBD><EFBFBD><C282>邱<EFBFBD><E982B1>
|
||||
<20><><EFBFBD>ł<EFBFBD><C582>܂<EFBFBD><DC82>B<EFBFBD><42><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ă݂܂<DD82><DC82>傤(<ENTER> <20><><EFBFBD>^<5E>C<EFBFBD>v<EFBFBD><76><EFBFBD>Y<EFBFBD><59><EFBFBD>Ȃ<EFBFBD><C882>悤<EFBFBD><E682A4>):
|
||||
|
||||
:help w
|
||||
:help c_<T
|
||||
:help insert-index
|
||||
:help user-manual
|
||||
:help w
|
||||
:help c_CTRL-D
|
||||
:help insert-index
|
||||
:help user-manual
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
<20><><EFBFBD>b<EFBFBD>X<EFBFBD><58> 7.2: <20>N<EFBFBD><4E><EFBFBD>X<EFBFBD>N<EFBFBD><4E><EFBFBD>v<EFBFBD>g<EFBFBD>̍쐬
|
||||
|
||||
@@ -947,7 +947,7 @@ NOTE:
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD>ɂ<EFBFBD> Vim <20>̃`<60><><EFBFBD>[<5B>g<EFBFBD><67><EFBFBD>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD>I<EFBFBD><49><EFBFBD><EFBFBD><EFBFBD>܂<EFBFBD><DC82>B<EFBFBD>G<EFBFBD>f<EFBFBD>B<EFBFBD>^<5E><><EFBFBD>ȒP<C892>ɁA<C981><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[<5B><><EFBFBD><EFBFBD>
|
||||
<20>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>Ƃ<EFBFBD><C682>ł<EFBFBD><C582><EFBFBD><EFBFBD>悤<EFBFBD>ɂƁAVim <20>̎<EFBFBD><CC8E>T<C28A>O<EFBFBD>̗v<CC97>_<EFBFBD>݂̂<CC82><DD82>`<60><><EFBFBD>悤<EFBFBD>Ƃ<EFBFBD><C682>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
|
||||
Vim <20>ɂ͂<C982><CD82><EFBFBD><EFBFBD>ɑ<EFBFBD><C991><EFBFBD><EFBFBD>̃R<CC83>}<7D><><EFBFBD>h<EFBFBD><68><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD>őS<C591>Ă<EFBFBD><C482><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>邱<EFBFBD>Ƃ͂ł<CD82><C582>܂<EFBFBD><DC82><EFBFBD><EFBFBD>B
|
||||
<20>ȍ~<7E>̓<EFBFBD><CD83>[<5B>U<EFBFBD>}<7D>j<EFBFBD><6A><EFBFBD>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD>Q<EFBFBD>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: "help :user-manual"
|
||||
<20>ȍ~<7E>̓<EFBFBD><CD83>[<5B>U<EFBFBD>}<7D>j<EFBFBD><6A><EFBFBD>A<EFBFBD><41><EFBFBD><EFBFBD><EFBFBD>Q<EFBFBD>Ƃ<EFBFBD><C682><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: ":help user-manual"
|
||||
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD>Ȍ<EFBFBD><C88C>̊w<CC8A>K<EFBFBD>̂<EFBFBD><CC82>߂ɁA<C981><41><EFBFBD>̖{<7B>𐄑E<F0908491><45><EFBFBD>܂<EFBFBD><DC82>B
|
||||
Vim - Vi Improved - by Steve Oualline
|
||||
|
||||
@@ -117,7 +117,7 @@ NOTE: 全てのレッスンを通じて、覚えようとするのではなく
|
||||
レッスン 1.5: テキスト編集 - 追加
|
||||
|
||||
|
||||
** テキスト追加するには A を押しましょう **
|
||||
** テキストを追加するには A を押しましょう **
|
||||
|
||||
1. 以下の ---> と示された最初の行にカーソルを移動しましょう。
|
||||
カーソルがその文字上にあってもかまいません。
|
||||
@@ -232,7 +232,7 @@ NOTE: <ESC> キーを押すとノーマルモードに移行します。その
|
||||
レッスン 2.3: オペレータとモーション
|
||||
|
||||
|
||||
多くのコマンドはオペレータとモーションからテキストに変更を加ます。
|
||||
多くのコマンドはオペレータとモーションからテキストに変更を加えます。
|
||||
削除コマンド d のオペレータは次の様になっています:
|
||||
|
||||
d モーション
|
||||
@@ -259,7 +259,7 @@ NOTE: 冒険したい人は、ノーマルモードにてコマンドなしに
|
||||
|
||||
1. 以下の ---> と示された行の先頭にカーソルを移動します。
|
||||
|
||||
2. 2dw をタイプして単語2つ分移動します。
|
||||
2. 2dw をタイプして単語2つ分削除します。
|
||||
|
||||
3. 3e をタイプして3つ目の単語の終端に移動します。
|
||||
|
||||
@@ -326,8 +326,8 @@ NOTE: オペレータ d とモーションの間にカウントを使った場
|
||||
|
||||
** 最後のコマンドを取り消すには u を押します。U は行全体の取消です。 **
|
||||
|
||||
1. 以下の ---> と示された行にカーソルを移動し、最初の間違いにカーソ
|
||||
ルを移動しましょう。
|
||||
1. 以下の ---> と示された行にカーソルを移動し、最初の間違いにカーソル
|
||||
を移動しましょう。
|
||||
2. x をタイプしていらない先頭の文字を削除しましょう。
|
||||
3. さぁ、u をタイプして最後に実行したコマンドを取り消しましょう。
|
||||
4. 今度は、x を使用して誤りを全て修正しましょう。
|
||||
@@ -541,7 +541,7 @@ Note: 検索がファイルの終わりに達すると、オプション 'wrapsc
|
||||
|
||||
4. 最初の括弧に移動するには % とタイプしましょう。
|
||||
|
||||
5. 他の (,),[,],{ or } でカーソルを移動し、% が何をしているか確認しましょう。
|
||||
5. 他の (,),[,],{ や } でカーソルを移動し、% が何をしているか確認しましょう。
|
||||
|
||||
---> This ( is a test line with ('s, ['s ] and {'s } in it. ))
|
||||
|
||||
@@ -633,7 +633,7 @@ Note: 全ての : コマンドは <ENTER> を押して終了しなければな
|
||||
3. では :w TEST とタイプしましょう (TEST は、選んだファイル名です)。
|
||||
|
||||
4. これによりファイル全体が TEST という名前で保存されます。
|
||||
もう一度 :!dir もしくは !ls とタイプして確認してみましょう。
|
||||
もう一度 :!dir もしくは :!ls とタイプして確認してみましょう。
|
||||
|
||||
Note: ここで Vim を終了し、ファイル名 TEST と共に起動すると、保存した時の
|
||||
チュートリアルの複製ができ上がるはずです。
|
||||
@@ -655,7 +655,7 @@ Note: ここで Vim を終了し、ファイル名 TEST と共に起動すると
|
||||
|
||||
3. 文字 : を押すと、画面の最下部に :'<,'> が現れます。
|
||||
|
||||
4. w TEST (TESET は存在しないファイル名)をタイプします。
|
||||
4. w TEST (TEST は存在しないファイル名)をタイプします。
|
||||
Enter を押す前に :'<,'>w TEST となっていることを確認して下さい。
|
||||
|
||||
5. Vim は TEST というファイルに選択された行を書き込むでしょう。
|
||||
@@ -772,7 +772,7 @@ Note: a, i と A は同じ挿入モードへ移りますが、文字が挿入さ
|
||||
3. 置換モードを抜けるには <ESC> を押します。行の残りが変更されていないままに
|
||||
なることに注意してください。
|
||||
|
||||
5. 残った xxx をステップを繰り返して置換しましょう。
|
||||
4. 残った xxx をステップを繰り返して置換しましょう。
|
||||
|
||||
---> Adding 123 to xxx gives you xxx.
|
||||
---> Adding 123 to 456 gives you 579.
|
||||
@@ -869,10 +869,10 @@ Note: 1つの検索コマンドだけ大文字小文字の区別をやめたい
|
||||
":help" コマンドに引数を与えることにより、あらゆる題名のヘルプを見つけること
|
||||
ができます。これらを試してみましょう(<ENTER> をタイプし忘れないように):
|
||||
|
||||
:help w
|
||||
:help c_<T
|
||||
:help insert-index
|
||||
:help user-manual
|
||||
:help w
|
||||
:help c_CTRL-D
|
||||
:help insert-index
|
||||
:help user-manual
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
レッスン 7.2: 起動スクリプトの作成
|
||||
|
||||
@@ -947,7 +947,7 @@ NOTE: 補完は多くのコマンドで動作します。そして CTRL-D と <T
|
||||
これにて Vim のチュートリアルを終わります。エディタを簡単に、しかも充分に
|
||||
使うことができるようにと、Vim の持つ概念の要点のみを伝えようとしました。
|
||||
Vim にはさらに多くのコマンドがあり、ここで全てを説明することはできません。
|
||||
以降はユーザマニュアルを参照ください: "help :user-manual"
|
||||
以降はユーザマニュアルを参照ください: ":help user-manual"
|
||||
|
||||
これ以後の学習のために、次の本を推薦します。
|
||||
Vim - Vi Improved - by Steve Oualline
|
||||
|
||||
@@ -551,7 +551,7 @@ cw
|
||||
|
||||
** <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ϻθ<CFBA> <20><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD><CFB7><EFBFBD>, :#,# w FILENAME <20>Ͻʽÿ<CABD>. **
|
||||
|
||||
1. <20>ٽ<EFBFBD> <20>ѹ<EFBFBD>, :!dir <20>̳<EFBFBD> !ls <20><> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>丮<EFBFBD><E4B8AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ƿ<DEBE> <20><>
|
||||
1. <20>ٽ<EFBFBD> <20>ѹ<EFBFBD>, :!dir <20>̳<EFBFBD> :!ls <20><> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>丮<EFBFBD><E4B8AE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ƿ<DEBE> <20><>
|
||||
TEST <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
|
||||
|
||||
2. Ŀ<><C4BF><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ó<><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ű<EFBFBD> <20><>, Ctrl-g <20><> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20>ٹ<EFBFBD>ȣ<EFBFBD><C8A3>
|
||||
|
||||
@@ -551,7 +551,7 @@ cw 는 단어를 치환하는 것 뿐만 아니라, 내용을 삽입할 수 있
|
||||
|
||||
** 파일의 일부를 저장하려면, :#,# w FILENAME 하십시오. **
|
||||
|
||||
1. 다시 한번, :!dir 이나 !ls 를 입력하여 디렉토리의 목록을 받아온 후
|
||||
1. 다시 한번, :!dir 이나 :!ls 를 입력하여 디렉토리의 목록을 받아온 후
|
||||
TEST 같은 적합한 이름을 선택합니다.
|
||||
|
||||
2. 커서를 이 페이지의 처음으로 옮긴 후, Ctrl-g 를 입력하여 그 줄의 줄번호를
|
||||
|
||||
@@ -658,7 +658,7 @@ Merk: Hvis du n
|
||||
4. Trykk w TEST , der TEST er et filnavn som ikke finnes enda. Kontroller
|
||||
at du ser :'<,'>w TEST f<EFBFBD>r du trykker Enter.
|
||||
|
||||
5. Vim vil skrive de valgte linjene til filen TEST. Bruk :!dir eller !ls
|
||||
5. Vim vil skrive de valgte linjene til filen TEST. Bruk :!dir eller :!ls
|
||||
for <EFBFBD> se den. Ikke slett den enda! Vi vil bruke den i neste leksjon.
|
||||
|
||||
MERK: Ved <EFBFBD> trykke v startes visuelt valg. Du kan flytte mark<EFBFBD>ren rundt for
|
||||
|
||||
@@ -658,7 +658,7 @@ Merk: Hvis du nå hadde avsluttet Vim og startet på nytt igjen med «vim TEST»
|
||||
4. Trykk w TEST , der TEST er et filnavn som ikke finnes enda. Kontroller
|
||||
at du ser :'<,'>w TEST før du trykker Enter.
|
||||
|
||||
5. Vim vil skrive de valgte linjene til filen TEST. Bruk :!dir eller !ls
|
||||
5. Vim vil skrive de valgte linjene til filen TEST. Bruk :!dir eller :!ls
|
||||
for å se den. Ikke slett den enda! Vi vil bruke den i neste leksjon.
|
||||
|
||||
MERK: Ved å trykke v startes visuelt valg. Du kan flytte markøren rundt for
|
||||
|
||||
@@ -658,7 +658,7 @@ Merk: Hvis du n
|
||||
4. Trykk w TEST , der TEST er et filnavn som ikke finnes enda. Kontroller
|
||||
at du ser :'<,'>w TEST f<>r du trykker Enter.
|
||||
|
||||
5. Vim vil skrive de valgte linjene til filen TEST. Bruk :!dir eller !ls
|
||||
5. Vim vil skrive de valgte linjene til filen TEST. Bruk :!dir eller :!ls
|
||||
for <20> se den. Ikke slett den enda! Vi vil bruke den i neste leksjon.
|
||||
|
||||
MERK: Ved <20> trykke v startes visuelt valg. Du kan flytte mark<72>ren rundt for
|
||||
|
||||
@@ -658,7 +658,7 @@ Merk: Hvis du nå hadde avsluttet Vim og startet på nytt igjen med «vim TEST»
|
||||
4. Trykk w TEST , der TEST er et filnavn som ikke finnes enda. Kontroller
|
||||
at du ser :'<,'>w TEST før du trykker Enter.
|
||||
|
||||
5. Vim vil skrive de valgte linjene til filen TEST. Bruk :!dir eller !ls
|
||||
5. Vim vil skrive de valgte linjene til filen TEST. Bruk :!dir eller :!ls
|
||||
for å se den. Ikke slett den enda! Vi vil bruke den i neste leksjon.
|
||||
|
||||
MERK: Ved å trykke v startes visuelt valg. Du kan flytte markøren rundt for
|
||||
|
||||
@@ -671,7 +671,7 @@ Pozn
|
||||
4. Nap<61><70> w TEST , kde TEST je meno s<>boru, ktor<6F> zatial neexistuje.
|
||||
Skontroluj, e vid<69><64> :'<,'>w TEST predt<64>m ne<6E> stla<6C><61><EFBFBD> Enter.
|
||||
|
||||
5. Vim zap<61><70>e ozna<6E>en<65> riadky do s<>boru TEST. Pou<6F>i :!dir alebo !ls
|
||||
5. Vim zap<61><70>e ozna<6E>en<65> riadky do s<>boru TEST. Pou<6F>i :!dir alebo :!ls
|
||||
pre overenie. Zatial ho e<>te nema<6D>! Pou<6F>ijeme ho v <20>al<61>ej lekcii.
|
||||
|
||||
POZN<EFBFBD>MKA: Stla<6C>en<65>m kl<6B>vesy v sa spust<73> vizu<7A>lne ozna<6E>ovanie.
|
||||
|
||||
@@ -671,7 +671,7 @@ Pozn
|
||||
4. Nap<61><70> w TEST , kde TEST je meno s<>boru, ktor<6F> zatial neexistuje.
|
||||
Skontroluj, e vid<69><64> :'<,'>w TEST predt<64>m ne<6E> stla<6C><61><EFBFBD> Enter.
|
||||
|
||||
5. Vim zap<61><70>e ozna<6E>en<65> riadky do s<>boru TEST. Pou<6F>i :!dir alebo !ls
|
||||
5. Vim zap<61><70>e ozna<6E>en<65> riadky do s<>boru TEST. Pou<6F>i :!dir alebo :!ls
|
||||
pre overenie. Zatial ho e<>te nema<6D>! Pou<6F>ijeme ho v <20>al<61>ej lekcii.
|
||||
|
||||
POZN<EFBFBD>MKA: Stla<6C>en<65>m kl<6B>vesy v sa spust<73> vizu<7A>lne ozna<6E>ovanie.
|
||||
|
||||
@@ -671,7 +671,7 @@ Poznámka: že ak ukončíš prácu s editorom Vim a znovu ho spustíš príkazo
|
||||
4. Napíš w TEST , kde TEST je meno súboru, ktorý zatial neexistuje.
|
||||
Skontroluj, e vidíš :'<,'>w TEST predtým než stlačíš Enter.
|
||||
|
||||
5. Vim zapíše označené riadky do súboru TEST. Použi :!dir alebo !ls
|
||||
5. Vim zapíše označené riadky do súboru TEST. Použi :!dir alebo :!ls
|
||||
pre overenie. Zatial ho ešte nemaž! Použijeme ho v ďalšej lekcii.
|
||||
|
||||
POZNÁMKA: Stlačením klávesy v sa spustí vizuálne označovanie.
|
||||
|
||||
@@ -658,7 +658,7 @@ NOTE: If you were to exit Vim and start it again with vim TEST , the file
|
||||
4. Type w TEST , where TEST is a filename that does not exist yet. Verify
|
||||
that you see :'<,'>w TEST before you press <ENTER>.
|
||||
|
||||
5. Vim will write the selected lines to the file TEST. Use :!dir or !ls
|
||||
5. Vim will write the selected lines to the file TEST. Use :!dir or :!ls
|
||||
to see it. Do not remove it yet! We will use it in the next lesson.
|
||||
|
||||
NOTE: Pressing v starts Visual selection. You can move the cursor around
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim tutor support file
|
||||
" Author: Eduardo F. Amatria <eferna1@platea.pntic.mec.es>
|
||||
" Maintainer: Bram Moolenaar
|
||||
" Last Change: 2008 Jul 21
|
||||
" Last Change: 2012 Sep 21
|
||||
|
||||
" This Vim script is used for detecting if a translation of the
|
||||
" tutor file exist, i.e., a tutor.xx file, where xx is the language.
|
||||
@@ -72,14 +72,20 @@ if s:ext =~? '\.ko'
|
||||
endif
|
||||
endif
|
||||
|
||||
" The Chinese tutor is available in two encodings, guess which one to use
|
||||
" The Chinese tutor is available in three encodings, guess which one to use
|
||||
" This segment is from the above lines and modified by
|
||||
" Mendel L Chan <beos@turbolinux.com.cn> for Chinese vim tutorial
|
||||
" When 'encoding' is utf-8, choose between China (simplified) and Taiwan
|
||||
" (traditional) based on the language, suggested by Alick Zhao.
|
||||
if s:ext =~? '\.zh'
|
||||
if &enc =~ 'big5\|cp950'
|
||||
let s:ext = ".zh.big5"
|
||||
elseif &enc != 'utf-8'
|
||||
let s:ext = ".zh.euc"
|
||||
elseif s:ext =~? 'zh_tw' || (exists("s:lang") && s:lang =~? 'zh_tw')
|
||||
let s:ext = ".zh_tw"
|
||||
else
|
||||
let s:ext = ".zh_cn"
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
996
runtime/tutor/tutor.zh_cn.utf-8
Normal file
996
runtime/tutor/tutor.zh_cn.utf-8
Normal file
@@ -0,0 +1,996 @@
|
||||
===============================================================================
|
||||
= 欢 迎 阅 读 《 V I M 教 程 》 —— 版本 1.7 =
|
||||
===============================================================================
|
||||
|
||||
Vim 是一个具有很多命令的功能非常强大的编辑器。限于篇幅,在本教程当中
|
||||
就不详细介绍了。本教程的设计目标是讲述一些必要的基本命令,而掌握好这
|
||||
些命令,您就能够很容易地将 Vim 当作一个通用编辑器来使用了。
|
||||
|
||||
完成本教程的内容大约需要25-30分钟,取决于您训练的时间。
|
||||
|
||||
注意:
|
||||
每一节的命令操作将会更改本文。推荐您复制本文的一个副本,然后在副本上
|
||||
进行训练(如果您是通过"vimtutor"来启动教程的,那么本文就已经是副本了)。
|
||||
|
||||
切记一点:本教程的设计思路是在使用中进行学习的。也就是说,您需要通过
|
||||
执行命令来学习它们本身的正确用法。如果您只是阅读而不操作,那么您可能
|
||||
会很快遗忘这些命令的!
|
||||
|
||||
好了,现在请确定您的Shift-Lock(大小写锁定键)还没有按下,然后按键盘上
|
||||
的字母键 j 足够多次来移动光标,直到第一节的内容能够完全充满屏幕。
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第一讲第一节:移动光标
|
||||
|
||||
|
||||
** 要移动光标,请依照说明分别按下 h、j、k、l 键。 **
|
||||
|
||||
^
|
||||
k 提示: h 的键位于左边,每次按下就会向左移动。
|
||||
< h l > l 的键位于右边,每次按下就会向右移动。
|
||||
j j 键看起来很象一支尖端方向朝下的箭头。
|
||||
v
|
||||
|
||||
1. 请随意在屏幕内移动光标,直至您觉得舒服为止。
|
||||
|
||||
2. 按下下行键(j),直到出现光标重复下行。
|
||||
|
||||
---> 现在您应该已经学会如何移动到下一讲吧。
|
||||
|
||||
3. 现在请使用下行键,将光标移动到第一讲第二节。
|
||||
|
||||
提示:如果您不敢确定您所按下的字母,请按下<ESC>键回到正常(Normal)模式。
|
||||
然后再次从键盘输入您想要的命令。
|
||||
|
||||
提示:光标键应当也能正常工作的。但是使用hjkl键,在习惯之后您就能够更快
|
||||
地在屏幕内四处移动光标。真的是这样!
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第一讲第二节:VIM的进入和退出
|
||||
|
||||
|
||||
!! 特别提示:敬请阅读本一节的完整内容,然后再执行以下所讲解的命令。
|
||||
|
||||
1. 按<ESC>键(这是为了确保您处在正常模式)。
|
||||
|
||||
2. 然后输入: :q! <回车>
|
||||
这种方式的退出编辑器会丢弃您进入编辑器以来所做的改动。
|
||||
|
||||
3. 如果您看到了命令行提示符,请输入能够带您回到本教程的命令,那就是:
|
||||
vimtutor <回车>
|
||||
|
||||
4. 如果您自信已经牢牢记住了这些步骤的话,请从步骤1执行到步骤3退出,然
|
||||
后再次进入编辑器。
|
||||
|
||||
提示: :q! <回车> 会丢弃您所做的任何改动。几讲之后您将学会如何保存改动到文件。
|
||||
|
||||
5. 将光标下移到第一讲第三节。
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第一讲第三节:文本编辑之删除
|
||||
|
||||
|
||||
** 在正常(Normal)模式下,可以按下 x 键来删除光标所在位置的字符。**
|
||||
|
||||
1. 请将光标移动到本节中下面标记有 ---> 的那一行。
|
||||
|
||||
2. 为了修正输入错误,请将光标移至准备删除的字符的位置处。
|
||||
|
||||
3. 然后按下 x 键将错误字符删除掉。
|
||||
|
||||
4. 重复步骤2到步骤4,直到句子修正为止。
|
||||
|
||||
---> The ccow jumpedd ovverr thhe mooon.
|
||||
|
||||
5. 好了,该行已经修正了,下面是第一讲第四节。
|
||||
|
||||
特别提示:在浏览本教程时,不要强行记忆。记住一点:在使用中学习。
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第一讲第四节:文本编辑之插入
|
||||
|
||||
|
||||
** 在正常模式下,可以按下 i 键来插入文本。**
|
||||
|
||||
1. 请将光标移动到本节中下面标记有 ---> 的第一行。
|
||||
|
||||
2. 为了使得第一行内容雷同于第二行,请将光标移至文本第一个准备插入字符
|
||||
的位置。
|
||||
|
||||
3. 然后按下 i 键,接着输入必要的文本字符。
|
||||
|
||||
4. 每个错误修正完毕后,请按下 <ESC> 键返回正常模式。
|
||||
重复步骤2至步骤4以便修正句子。
|
||||
|
||||
---> There is text misng this .
|
||||
---> There is some text missing from this line.
|
||||
|
||||
5. 如果您对文本插入操作已经很满意,请接着阅读下面的第一讲第五节。
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第一讲第五节:文本编辑之添加
|
||||
|
||||
|
||||
** 按 A 键以添加文本。 **
|
||||
|
||||
1. 移动光标到下面第一个标记有 ---> 的一行。
|
||||
光标放在那一行的哪个字符上并不重要。
|
||||
|
||||
2. 按 A 键输入必要的添加内容。
|
||||
|
||||
3. 文本添加完毕后,按 <ESC> 键回到正常模式。
|
||||
|
||||
4. 移动光标到下面第二个标记有 ---> 的一行。重复步骤2和步骤3以改正这个句子。
|
||||
|
||||
---> There is some text missing from th
|
||||
There is some text missing from this line.
|
||||
---> There is also some text miss
|
||||
There is also some text missing here.
|
||||
|
||||
5. 当您对添加文本操作感到满意时,请继续学习第一讲第六节。
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第一讲第六节:编辑文件
|
||||
|
||||
** 使用 :wq 以保存文件并退出。 **
|
||||
|
||||
特别提示:在执行以下步骤之前,请先读完整个小节!
|
||||
|
||||
1. 如您在第一讲第二节中所做的那样退出本教程: :q!
|
||||
或者,如果您可以访问另一个终端,请在那里执行以下操作。
|
||||
|
||||
2. 在 shell 的提示符下输入命令: vim tutor <回车>
|
||||
'vim'是启动 Vim 编辑器的命令,'tutor'是您希望编辑的文件的名字。
|
||||
请使用一个可以改动的文件。
|
||||
|
||||
3. 使用您在前面的教程中学到的命令插入删除文本。
|
||||
|
||||
4. 保存改动过的文件并退出 Vim,按这些键: :wq <回车>
|
||||
|
||||
5. 如果您在步骤1中已经退出 vimtutor,请重启 vimtutor 移动到下面的小结一节。
|
||||
|
||||
6. 阅读完以上步骤,弄懂它们的意义,然后在实践中进行练习。
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第一讲小结
|
||||
|
||||
|
||||
1. 光标在屏幕文本中的移动既可以用箭头键,也可以使用 hjkl 字母键。
|
||||
h (左移) j (下行) k (上行) l (右移)
|
||||
|
||||
2. 欲进入 Vim 编辑器(从命令行提示符),请输入:vim 文件名 <回车>
|
||||
|
||||
3. 欲退出 Vim 编辑器,请输入 <ESC> :q! <回车> 放弃所有改动。
|
||||
或者输入 <ESC> :wq <回车> 保存改动。
|
||||
|
||||
4. 在正常模式下删除光标所在位置的字符,请按: x
|
||||
|
||||
5. 欲插入或添加文本,请输入:
|
||||
|
||||
i 输入欲插入文本 <ESC> 在光标前插入文本
|
||||
A 输入欲添加文本 <ESC> 在一行后添加文本
|
||||
|
||||
特别提示:按下 <ESC> 键会带您回到正常模式或者撤消一个不想输入或部分完整
|
||||
的命令。
|
||||
|
||||
好了,第一讲到此结束。下面接下来继续第二讲的内容。
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第二讲第一节:删除类命令
|
||||
|
||||
|
||||
** 输入 dw 可以从光标处删除至一个单词的末尾。**
|
||||
|
||||
1. 请按下 <ESC> 键确保您处于正常模式。
|
||||
|
||||
2. 请将光标移动到本节中下面标记有 ---> 的那一行。
|
||||
|
||||
3. 请将光标移至准备要删除的单词的起始处。
|
||||
|
||||
4. 接着输入 dw 删除掉该单词。
|
||||
|
||||
特别提示:当您输入时,字母 d 会同时出现在屏幕的最后一行。Vim 在等待您输入
|
||||
字母 w。如果您看到的是除 d 外的其他字符,那表明您按错了;请按下 <ESC> 键,
|
||||
然后重新再来。
|
||||
|
||||
---> There are a some words fun that don't belong paper in this sentence.
|
||||
|
||||
5. 重复步骤3和步骤4,直至句子修正完毕。接着继续第二讲第二节内容。
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第二讲第二节:更多删除类命令
|
||||
|
||||
|
||||
** 输入 d$ 从当前光标删除到行末。**
|
||||
|
||||
1. 请按下 <ESC> 键确保您处于正常模式。
|
||||
|
||||
2. 请将光标移动到本节中下面标记有 ---> 的那一行。
|
||||
|
||||
3. 请将光标移动到该行的尾部(也就是在第一个点号‘.’后面)。
|
||||
|
||||
4. 然后输入 d$ 从光标处删至当前行尾部。
|
||||
|
||||
---> Somebody typed the end of this line twice. end of this line twice.
|
||||
|
||||
|
||||
5. 请继续学习第二讲第三节就知道是怎么回事了。
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第二讲第三节:关于命令和对象
|
||||
|
||||
|
||||
许多改变文本的命令都由一个操作符和一个动作构成。
|
||||
使用删除操作符 d 的删除命令的格式如下:
|
||||
|
||||
d motion
|
||||
|
||||
其中:
|
||||
d - 删除操作符。
|
||||
motion - 操作符的操作对象(在下面列出)。
|
||||
|
||||
一个简短的动作列表:
|
||||
w - 从当前光标当前位置直到下一个单词起始处,不包括它的第一个字符。
|
||||
e - 从当前光标当前位置直到单词末尾,包括最后一个字符。
|
||||
$ - 从当前光标当前位置直到当前行末。
|
||||
|
||||
因此输入 de 会从当前光标位置删除到单词末尾。
|
||||
|
||||
特别提示:
|
||||
对于勇于探索者,请在正常模式下面仅按代表相应动作的键而不使用操作符,您
|
||||
将看到光标的移动正如上面的对象列表所代表的一样。
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第二讲第四节:使用计数指定动作
|
||||
|
||||
|
||||
** 在动作前输入数字会使它重复那么多次。 **
|
||||
|
||||
1. 移动光标到下面标记有 ---> 的一行的开始。
|
||||
|
||||
2. 输入 2w 使光标向前移动两个单词。
|
||||
|
||||
3. 输入 3e 使光标向前移动到第三个单词的末尾。
|
||||
|
||||
4. 输入 0 (数字零) 移动光标到行首。
|
||||
|
||||
5. 重复步骤2和步骤3,尝试不同的数字。
|
||||
|
||||
---> This is just a line with words you can move around in.
|
||||
|
||||
6. 请继续学习第二讲第五节。
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第二讲第五节:使用计数以删除更多
|
||||
|
||||
|
||||
** 使用操作符时输入数字可以使它重复那么多次。 **
|
||||
|
||||
上面已经提到过删除操作符和动作的组合,您可以在组合中动作之前插入一个数字以
|
||||
删除更多:
|
||||
d number(数字) motion
|
||||
|
||||
1. 移动光标到下面标记有 ---> 的一行中第一个大写字母单词上。
|
||||
|
||||
2. 输入 d2w 以删除两个大写字母单词。
|
||||
|
||||
3. 重复步骤1和步骤2,使用不同的数字使得用一个命令就能删除全部相邻的大写字母
|
||||
单词
|
||||
|
||||
---> this ABC DE line FGHI JK LMN OP of words is Q RS TUV cleaned up.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第二讲第六节:操作整行
|
||||
|
||||
|
||||
** 输入 dd 可以删除整一个当前行。 **
|
||||
|
||||
鉴于整行删除的高频度,Vi 的设计者决定要简化整行删除操作,您仅需要在同一行上
|
||||
击打两次 d 就可以删除掉光标所在的整行了。
|
||||
|
||||
1. 请将光标移动到本节中下面的短句段落中的第二行。
|
||||
2. 输入 dd 删除该行。
|
||||
3. 然后移动到第四行。
|
||||
4. 接着输入 2dd 删除两行。
|
||||
|
||||
---> 1) Roses are red,
|
||||
---> 2) Mud is fun,
|
||||
---> 3) Violets are blue,
|
||||
---> 4) I have a car,
|
||||
---> 5) Clocks tell time,
|
||||
---> 6) Sugar is sweet
|
||||
---> 7) And so are you.
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第二讲第七节:撤消类命令
|
||||
|
||||
|
||||
** 输入 u 来撤消最后执行的命令,输入 U 来撤消对整行的修改。 **
|
||||
|
||||
1. 请将光标移动到本节中下面标记有 ---> 的那一行,并将其置于第一个错误
|
||||
处。
|
||||
2. 输入 x 删除第一个不想保留的字母。
|
||||
3. 然后输入 u 撤消最后执行的(一次)命令。
|
||||
4. 这次要使用 x 修正本行的所有错误。
|
||||
5. 现在输入一个大写的 U ,恢复到该行的原始状态。
|
||||
6. 接着多次输入 u 以撤消 U 以及更前的命令。
|
||||
7. 然后多次输入 CTRL-R (先按下 CTRL 键不放开,接着按 R 键),这样就
|
||||
可以重做被撤消的命令,也就是撤消掉撤消命令。
|
||||
|
||||
---> Fiix the errors oon thhis line and reeplace them witth undo.
|
||||
|
||||
8. 这些都是非常有用的命令。下面是第二讲的小结了。
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第二讲小结
|
||||
|
||||
|
||||
1. 欲从当前光标删除至下一个单词,请输入:dw
|
||||
2. 欲从当前光标删除至当前行末尾,请输入:d$
|
||||
3. 欲删除整行,请输入:dd
|
||||
|
||||
4. 欲重复一个动作,请在它前面加上一个数字:2w
|
||||
5. 在正常模式下修改命令的格式是:
|
||||
operator [number] motion
|
||||
其中:
|
||||
operator - 操作符,代表要做的事情,比如 d 代表删除
|
||||
[number] - 可以附加的数字,代表动作重复的次数
|
||||
motion - 动作,代表在所操作的文本上的移动,例如 w 代表单词(word),
|
||||
$ 代表行末等等。
|
||||
|
||||
6. 欲移动光标到行首,请按数字0键:0
|
||||
|
||||
7. 欲撤消以前的操作,请输入:u (小写的u)
|
||||
欲撤消在一行中所做的改动,请输入:U (大写的U)
|
||||
欲撤消以前的撤消命令,恢复以前的操作结果,请输入:CTRL-R
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第三讲第一节:置入类命令
|
||||
|
||||
|
||||
** 输入 p 将最后一次删除的内容置入光标之后。 **
|
||||
|
||||
1. 请将光标移动到本节中下面第一个标记有 ---> 的一行。
|
||||
|
||||
2. 输入 dd 将该行删除,这样会将该行保存到 Vim 的一个寄存器中。
|
||||
|
||||
3. 接着将光标移动到 c) 一行,即准备置入的位置的上方。记住:是上方哦。
|
||||
|
||||
4. 然后在正常模式下(<ESC>键进入)输入 p 将该行粘贴置入。
|
||||
|
||||
5. 重复步骤2至步骤4,将所有的行依序放置到正确的位置上。
|
||||
|
||||
---> d) Can you learn too?
|
||||
---> b) Violets are blue,
|
||||
---> c) Intelligence is learned,
|
||||
---> a) Roses are red,
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第三讲第二节:替换类命令
|
||||
|
||||
|
||||
** 输入 r 和一个字符替换光标所在位置的字符。**
|
||||
|
||||
1. 请将光标移动到本节中下面标记有 ---> 的第一行。
|
||||
|
||||
2. 请移动光标到第一个出错的位置。
|
||||
|
||||
3. 接着输入 r 和要替换成的字符,这样就能将错误替换掉了。
|
||||
|
||||
4. 重复步骤2和步骤3,直到第一行已经修改完毕。
|
||||
|
||||
---> Whan this lime was tuoed in, someone presswd some wrojg keys!
|
||||
---> When this line was typed in, someone pressed some wrong keys!
|
||||
|
||||
5. 然后我们继续学习第三讲第三节。
|
||||
|
||||
特别提示:切记您要在使用中学习,而不是在记忆中学习。
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第三讲第三节:更改类命令
|
||||
|
||||
|
||||
** 要改变文本直到一个单词的末尾,请输入 ce **
|
||||
|
||||
1. 请将光标移动到本节中下面标记有 ---> 的第一行。
|
||||
|
||||
2. 接着把光标放在单词 lubw 的字母 u 的位置那里。
|
||||
|
||||
3. 然后输入 cw 以及正确的单词(在本例中是输入 ine )。
|
||||
|
||||
4. 最后按 <ESC> 键,然后光标定位到下一个错误第一个准备更改的字母处。
|
||||
|
||||
5. 重复步骤3和步骤4,直到第一个句子完全雷同第二个句子。
|
||||
|
||||
---> This lubw has a few wptfd that mrrf changing usf the change operator.
|
||||
---> This line has a few words that need changing using the change operator.
|
||||
|
||||
提示:请注意 ce 命令不仅仅是删除了一个单词,它也让您进入插入模式了。
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第三讲第四节:使用c更改更多
|
||||
|
||||
|
||||
** 更改类操作符可以与删除中使用的同样的动作配合使用。 **
|
||||
|
||||
1. 更改类操作符的工作方式跟删除类是一致的。操作格式是:
|
||||
|
||||
c [number] motion
|
||||
|
||||
2. 动作参数(motion)也是一样的,比如 w 代表单词,$代表行末等等。
|
||||
|
||||
3. 请将光标移动到本节中下面标记有 ---> 的第一行。
|
||||
|
||||
4. 接着将光标移动到第一个错误处。
|
||||
|
||||
5. 然后输入 c$ 使得该行剩下的部分更正得同第二行一样。最后按 <ESC> 键。
|
||||
|
||||
---> The end of this line needs some help to make it like the second.
|
||||
---> The end of this line needs to be corrected using the c$ command.
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第三讲小结
|
||||
|
||||
|
||||
1. 要重新置入已经删除的文本内容,请按小写字母 p 键。该操作可以将已删除
|
||||
的文本内容置于光标之后。如果最后一次删除的是一个整行,那么该行将置
|
||||
于当前光标所在行的下一行。
|
||||
|
||||
2. 要替换光标所在位置的字符,请输入小写的 r 和要替换掉原位置字符的新字
|
||||
符即可。
|
||||
|
||||
3. 更改类命令允许您改变从当前光标所在位置直到动作指示的位置中间的文本。
|
||||
比如输入 ce 可以替换当前光标到单词的末尾的内容;输入 c$ 可以替换当
|
||||
前光标到行末的内容。
|
||||
|
||||
4. 更改类命令的格式是:
|
||||
|
||||
c [number] motion
|
||||
|
||||
现在我们继续学习下一讲。
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第四讲第一节:定位及文件状态
|
||||
|
||||
** 输入 CTRL-G 显示当前编辑文件中当前光标所在行位置以及文件状态信息。
|
||||
输入大写 G 则直接跳转到文件中的某一指定行。**
|
||||
|
||||
提示:切记要先通读本节内容,之后才可以执行以下步骤!!!
|
||||
|
||||
1. 按下 CTRL 键不放开然后按 g 键。我们称这个键组合为 CTRL-G。
|
||||
您会看到页面最底部出现一个状态信息行,显示的内容是当前编辑的文件名
|
||||
和文件中光标位置。请记住行号,它会在步骤3中用到。
|
||||
|
||||
提示:您也许会在屏幕的右下角看到光标位置,这会在 'ruler' 选项设置时发生
|
||||
(参见 :help 'ruler')
|
||||
|
||||
2. 输入大写 G 可以使得当前光标直接跳转到文件最后一行。
|
||||
输入 gg 可以使得当前光标直接跳转到文件第一行。
|
||||
|
||||
3. 输入您曾停留的行号,然后输入大写 G。这样就可以返回到您第一次按下
|
||||
CTRL-G 时所在的行了。
|
||||
|
||||
4. 如果您觉得没问题的话,请执行步骤1至步骤3的操作进行练习。
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第四讲第二节:搜索类命令
|
||||
|
||||
|
||||
** 输入 / 加上一个字符串可以用以在当前文件中查找该字符串。**
|
||||
|
||||
1. 在正常模式下输入 / 字符。您此时会注意到该字符和光标都会出现在屏幕底
|
||||
部,这跟 : 命令是一样的。
|
||||
|
||||
2. 接着输入 errroor <回车>。那个errroor就是您要查找的字符串。
|
||||
|
||||
3. 要查找同上一次的字符串,只需要按 n 键。要向相反方向查找同上一次的字
|
||||
符串,请输入大写 N 即可。
|
||||
|
||||
4. 如果您想逆向查找字符串,请使用 ? 代替 / 进行。
|
||||
|
||||
5. 要回到您之前的位置按 CTRL-O (按住 Ctrl 键不放同时按下字母 o)。重复按可以
|
||||
回退更多步。CTRL-I 会跳转到较新的位置。
|
||||
|
||||
---> "errroor" is not the way to spell error; errroor is an error.
|
||||
提示:如果查找已经到达文件末尾,查找会自动从文件头部继续查找,除非
|
||||
'wrapscan' 选项被复位。
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第四讲第三节:配对括号的查找
|
||||
|
||||
|
||||
** 输入 % 可以查找配对的括号 )、]、}。**
|
||||
|
||||
1. 把光标放在本节下面标记有 --> 那一行中的任何一个 (、[ 或 { 处。
|
||||
|
||||
2. 接着按 % 字符。
|
||||
|
||||
3. 此时光标的位置应当是在配对的括号处。
|
||||
|
||||
4. 再次按 % 就可以跳回配对的第一个括号处。
|
||||
|
||||
5. 移动光标到另一个 (、)、[、]、{ 或 } 处,按 % 查看其所作所为。
|
||||
|
||||
---> This ( is a test line with ('s, ['s ] and {'s } in it. ))
|
||||
|
||||
|
||||
提示:在程序调试时,这个功能用来查找不配对的括号是很有用的。
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第四讲第四节:替换命令
|
||||
|
||||
|
||||
** 输入 :s/old/new/g 可以替换 old 为 new。**
|
||||
|
||||
1. 请将光标移动到本节中下面标记有 ---> 的那一行。
|
||||
|
||||
2. 输入 :s/thee/the <回车> 。请注意该命令只改变光标所在行的第一个匹配
|
||||
串。
|
||||
|
||||
3. 输入 :s/thee/the/g 则是替换全行的匹配串,该行中所有的 "thee" 都会被
|
||||
改变。
|
||||
|
||||
---> thee best time to see thee flowers is in thee spring.
|
||||
|
||||
4. 要替换两行之间出现的每个匹配串,请
|
||||
输入 :#,#s/old/new/g 其中 #,# 代表的是替换操作的若干行中
|
||||
首尾两行的行号。
|
||||
输入 :%s/old/new/g 则是替换整个文件中的每个匹配串。
|
||||
输入 :%s/old/new/gc 会找到整个文件中的每个匹配串,并且对每个匹配串
|
||||
提示是否进行替换。
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第四讲小结
|
||||
|
||||
|
||||
1. CTRL-G 用于显示当前光标所在位置和文件状态信息。
|
||||
G 用于将光标跳转至文件最后一行。
|
||||
先敲入一个行号然后输入大写 G 则是将光标移动至该行号代表的行。
|
||||
gg 用于将光标跳转至文件第一行。
|
||||
|
||||
2. 输入 / 然后紧随一个字符串是在当前所编辑的文档中正向查找该字符串。
|
||||
输入 ? 然后紧随一个字符串则是在当前所编辑的文档中反向查找该字符串。
|
||||
完成一次查找之后按 n 键是重复上一次的命令,可在同一方向上查
|
||||
找下一个匹配字符串所在;或者按大写 N 向相反方向查找下一匹配字符串所在。
|
||||
CTRL-O 带您跳转回较旧的位置,CTRL-I 则带您到较新的位置。
|
||||
|
||||
3. 如果光标当前位置是括号(、)、[、]、{、},按 % 会将光标移动到配对的括号上。
|
||||
|
||||
4. 在一行内替换头一个字符串 old 为新的字符串 new,请输入 :s/old/new
|
||||
在一行内替换所有的字符串 old 为新的字符串 new,请输入 :s/old/new/g
|
||||
在两行内替换所有的字符串 old 为新的字符串 new,请输入 :#,#s/old/new/g
|
||||
在文件内替换所有的字符串 old 为新的字符串 new,请输入 :%s/old/new/g
|
||||
进行全文替换时询问用户确认每个替换需添加 c 标志 :%s/old/new/gc
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第五讲第一节:在 VIM 内执行外部命令的方法
|
||||
|
||||
|
||||
** 输入 :! 然后紧接着输入一个外部命令可以执行该外部命令。**
|
||||
|
||||
1. 按下我们所熟悉的 : 命令使光标移动到屏幕底部。这样您就可以输入一行命令了。
|
||||
|
||||
2. 接着输入感叹号 ! 这个字符,这样就允许您执行外部的 shell 命令了。
|
||||
|
||||
3. 我们以 ls 命令为例。输入 !ls <回车> 。该命令就会列举出您当前目录的
|
||||
内容,就如同您在命令行提示符下输入 ls 命令的结果一样。如果 !ls 没起
|
||||
作用,您可以试试 :!dir 看看。
|
||||
|
||||
提示:所有的外部命令都可以以这种方式执行,包括带命令行参数的那些。
|
||||
|
||||
提示:所有的 : 命令都必须以敲 <回车> 键结束。从今以后我们就不会总是提到这一点
|
||||
了。
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第五讲第二节:关于保存文件的更多信息
|
||||
|
||||
|
||||
** 要将对文件的改动保存到文件中,请输入 :w FILENAME 。**
|
||||
|
||||
1. 输入 :!dir 或者 :!ls 获知当前目录的内容。您应当已知道最后还得敲
|
||||
<回车> 吧。
|
||||
|
||||
2. 选择一个未被用到的文件名,比如 TEST。
|
||||
|
||||
3. 接着输入 :w TEST (此处 TEST 是您所选择的文件名。)
|
||||
|
||||
4. 该命令会以 TEST 为文件名保存整个文件 (Vim 教程)。为了验证这一点,
|
||||
请再次输入 :!dir 或 :!ls 查看您的目录列表内容。
|
||||
|
||||
请注意:如果您退出 Vim 然后在以命令 vim TEST 再次启动 Vim,那么该文件内
|
||||
容应该同您保存时的文件内容是完全一样的。
|
||||
|
||||
5. 现在您可以删除 TEST 文件了。在 MS-DOS 下,请输入: :!del TEST
|
||||
在 Unix 下,请输入: :!rm TEST
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第五讲第三节:一个具有选择性的保存命令
|
||||
|
||||
|
||||
** 要保存文件的部分内容,请输入 v motion :w FILENAME **
|
||||
|
||||
1. 移动光标到本行。
|
||||
|
||||
2. 接着按 v 键,将光标移动至下面第五个条目上。您会注意到之间的文本被高亮了。
|
||||
|
||||
3. 然后按 : 字符。您将看到屏幕底部会出现 :'<,'> 。
|
||||
|
||||
4. 现在请输入 w TEST,其中 TEST 是一个未被使用的文件名。确认您看到了
|
||||
:'<,'>w TEST 之后按 <回车> 键。
|
||||
|
||||
5. 这时 Vim 会把选中的行写入到以 TEST 命名的文件中去。使用 :!dir 或 :!ls
|
||||
确认文件被正确保存。这次先别删除它!我们在下一讲中会用到它。
|
||||
|
||||
提示:按 v 键使 Vim 进入可视模式进行选取。您可以四处移动光标使选取区域变大或
|
||||
变小。接着您可以使用一个操作符对选中文本进行操作。例如,按 d 键会删除
|
||||
选中的文本内容。
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第五讲第四节:提取和合并文件
|
||||
|
||||
|
||||
** 要向当前文件中插入另外的文件的内容,请输入 :r FILENAME **
|
||||
|
||||
1. 请把光标移动到本行上面一行。
|
||||
|
||||
特别提示:执行步骤2之后您将看到第五讲第三节的文字,请届时往下移动
|
||||
以再次看到本讲内容。
|
||||
|
||||
2. 接着通过命令 :r TEST 将前面创建的名为 TEST 的文件提取进来。
|
||||
您所提取进来的文件将从光标所在位置处开始置入。
|
||||
|
||||
3. 为了确认文件已经提取成功,移动光标回到原来的位置就可以注意有两份第
|
||||
五讲第三节的内容,一份是原始内容,另外一份是来自文件的副本。
|
||||
|
||||
提示:您还可以读取外部命令的输出。例如, :r !ls 可以读取 ls 命令的输出,并
|
||||
把它放置在光标下面。
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第五讲小结
|
||||
|
||||
|
||||
1. :!command 用于执行一个外部命令 command。
|
||||
|
||||
请看一些实际例子:
|
||||
(MS-DOS) (Unix)
|
||||
:!dir :!ls - 用于显示当前目录的内容。
|
||||
:!del FILENAME :!rm FILENAME - 用于删除名为 FILENAME 的文件。
|
||||
|
||||
2. :w FILENAME 可将当前 VIM 中正在编辑的文件保存到名为 FILENAME 的文
|
||||
件中。
|
||||
|
||||
3. v motion :w FILENAME 可将当前编辑文件中可视模式下选中的内容保存到文件
|
||||
FILENAME 中。
|
||||
|
||||
4. :r FILENAME 可提取磁盘文件 FILENAME 并将其插入到当前文件的光标位置
|
||||
后面。
|
||||
|
||||
5. :r !dir 可以读取 dir 命令的输出并将其放置到当前文件的光标位置后面。
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第六讲第一节:打开类命令
|
||||
|
||||
|
||||
** 输入 o 将在光标的下方打开新的一行并进入插入模式。**
|
||||
|
||||
1. 请将光标移动到本节中下面标记有 ---> 的那一行。
|
||||
|
||||
2. 接着输入小写的 o 在光标 *下方* 打开新的一行,这个命令会使您
|
||||
进入插入模式。
|
||||
|
||||
3. 然后输入一些文字,之后按 <ESC> 键退出插入模式而进入正常模式。
|
||||
|
||||
---> After typing o the cursor is placed on the open line in Insert mode.
|
||||
|
||||
4. 为了在光标 *上方* 打开新的一行,只需要输入大写的 O 而不是小写的 o
|
||||
就可以了。请在下行测试一下吧。
|
||||
|
||||
---> Open up a line above this by typing O while the cursor is on this line.
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第六讲第二节:附加类命令
|
||||
|
||||
|
||||
** 输入 a 将可在光标之后插入文本。 **
|
||||
|
||||
1. 请在正常模式下将光标移动到本节中下面标记有 ---> 的第一行的行首。
|
||||
|
||||
2. 接着输入 e 直到光标位于 li 的末尾。
|
||||
|
||||
3. 输入小写的 a 则可在光标之后插入文本了。
|
||||
|
||||
4. 将单词补充完整,就像下一行中的那样。之后按 <ESC> 键退出插入模式回到
|
||||
正常模式。
|
||||
|
||||
5. 使用 e 移动光标到下一步不完整的单词,重复步骤3和步骤4。
|
||||
|
||||
---> This li will allow you to pract appendi text to a line.
|
||||
---> This line will allow you to practice appending text to a line.
|
||||
|
||||
提示:a、i 和 A 都会带您进入插入模式,惟一的区别在于字符插入的位置。
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第六讲第三节:另外一个置换类命令的版本
|
||||
|
||||
|
||||
** 输入大写的 R 可连续替换多个字符。**
|
||||
|
||||
1. 请将光标移动到本节中下面标记有 ---> 的第一行。移动光标到第一个 xxx 的
|
||||
起始位置。
|
||||
|
||||
2. 然后输入大写的 R 开始把第一行中的不同于第二行的剩余字符逐一输入,就
|
||||
可以全部替换掉原有的字符而使得第一行完全雷同第二行了。
|
||||
|
||||
3. 接着按 <ESC> 键退出替换模式回到正常模式。您可以注意到尚未替换的文本
|
||||
仍然保持原状。
|
||||
|
||||
4. 重复以上步骤,将剩余的 xxx 也替换掉。
|
||||
|
||||
---> Adding 123 to xxx gives you xxx.
|
||||
---> Adding 123 to 456 gives you 579.
|
||||
|
||||
提示:替换模式与插入模式相似,不过每个输入的字符都会删除一个已有的字符。
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第六讲第四节:复制粘贴文本
|
||||
|
||||
|
||||
** 使用操作符 y 复制文本,使用 p 粘贴文本 **
|
||||
|
||||
1. 定位到下面标记有 ---> 的一行,将光标移动到 "a)" 之后。
|
||||
|
||||
2. 接着使用 v 进入可视模式,移动光标到 "first" 的前面。
|
||||
|
||||
3. 现在输入 y 以抽出(复制)高亮的文本。
|
||||
|
||||
4. 然后移动光标到下一行的末尾:j$
|
||||
|
||||
5. 接着输入 p 以放置(粘贴)复制了的文本。然后输入:a second <ESC>。
|
||||
|
||||
6. 使用可视模式选中 " item.",用 y 复制,再用 j$ 将光标移动到下一行末尾,
|
||||
用 p 将文本粘贴到那里。
|
||||
|
||||
---> a) this is the first item.
|
||||
b)
|
||||
|
||||
提示:您还可以把 y 当作操作符来使用;例如 yw 可以用来复制一个单词。
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第六讲第五节:设置类命令的选项
|
||||
|
||||
|
||||
** 设置可使查找或者替换可忽略大小写的选项 **
|
||||
|
||||
1. 要查找单词 ignore 可在正常模式下输入 /ignore <回车>。
|
||||
要重复查找该词,可以重复按 n 键。
|
||||
|
||||
2. 然后设置 ic 选项(Ignore Case,忽略大小写),请输入: :set ic
|
||||
|
||||
3. 现在可以通过键入 n 键再次查找单词 ignore。注意到 Ignore 和 IGNORE 现在
|
||||
也被找到了。
|
||||
|
||||
4. 然后设置 hlsearch 和 incsearch 这两个选项,请输入: :set hls is
|
||||
|
||||
5. 现在可以再次输入查找命令,看看会有什么效果: /ignore <回车>
|
||||
|
||||
6. 要禁用忽略大小写,请输入: :set noic
|
||||
|
||||
提示:要移除匹配项的高亮显示,请输入: :nohlsearch
|
||||
提示:如果您想要仅在一次查找时忽略字母大小写,您可以使用 \c:
|
||||
/ignore\c <回车>
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第六讲小结
|
||||
|
||||
1. 输入小写的 o 可以在光标下方打开新的一行并进入插入模式。
|
||||
输入大写的 O 可以在光标上方打开新的一行。
|
||||
|
||||
2. 输入小写的 a 可以在光标所在位置之后插入文本。
|
||||
输入大写的 A 可以在光标所在行的行末之后插入文本。
|
||||
|
||||
3. e 命令可以使光标移动到单词末尾。
|
||||
|
||||
4. 操作符 y 复制文本,p 粘贴先前复制的文本。
|
||||
|
||||
5. 输入大写的 R 将进入替换模式,直至按 <ESC> 键回到正常模式。
|
||||
|
||||
6. 输入 :set xxx 可以设置 xxx 选项。一些有用的选项如下:
|
||||
'ic' 'ignorecase' 查找时忽略字母大小写
|
||||
'is' 'incsearch' 查找短语时显示部分匹配
|
||||
'hls' 'hlsearch' 高亮显示所有的匹配短语
|
||||
选项名可以用完整版本,也可以用缩略版本。
|
||||
|
||||
7. 在选项前加上 no 可以关闭选项: :set noic
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第七讲第一节:获取帮助信息
|
||||
|
||||
|
||||
** 使用在线帮助系统 **
|
||||
|
||||
Vim 拥有一个细致全面的在线帮助系统。要启动该帮助系统,请选择如下三种方
|
||||
法之一:
|
||||
- 按下 <HELP> 键 (如果键盘上有的话)
|
||||
- 按下 <F1> 键 (如果键盘上有的话)
|
||||
- 输入 :help <回车>
|
||||
|
||||
请阅读帮助窗口中的文字以了解帮助是如何工作的。
|
||||
输入 CTRL-W CTRL-W 可以使您在窗口之间跳转。
|
||||
输入 :q <回车> 可以关闭帮助窗口。
|
||||
|
||||
提供一个正确的参数给":help"命令,您可以找到关于该主题的帮助。请试验以
|
||||
下参数(可别忘了按回车键哦):
|
||||
|
||||
:help w
|
||||
:help c_CTRL-D
|
||||
:help insert-index
|
||||
:help user-manual
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第七讲第二节:创建启动脚本
|
||||
|
||||
|
||||
** 启用 Vim 的特性 **
|
||||
|
||||
Vim 的功能特性要比 Vi 多得多,但其中大部分都没有缺省启用。为了使用更多的
|
||||
特性,您得创建一个 vimrc 文件。
|
||||
|
||||
1. 开始编辑 vimrc 文件,具体命令取决于您所使用的操作系统:
|
||||
:edit ~/.vimrc 这是 Unix 系统所使用的命令
|
||||
:edit $VIM/_vimrc 这是 MS-Windows 系统所使用的命令
|
||||
|
||||
2. 接着读取 vimrc 示例文件的内容:
|
||||
:r $VIMRUNTIME/vimrc_example.vim
|
||||
|
||||
3. 保存文件,命令为:
|
||||
:write
|
||||
|
||||
下次您启动 Vim 时,编辑器就会有了语法高亮的功能。
|
||||
您可以把您喜欢的各种设置添加到这个 vimrc 文件中。
|
||||
要了解更多信息请输入 :help vimrc-intro
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第七讲第三节:补全功能
|
||||
|
||||
|
||||
** 使用 CTRL-D 和 <TAB> 可以进行命令行补全 **
|
||||
|
||||
1. 请确保 Vim 不是在以兼容模式运行: :set nocp
|
||||
|
||||
2. 查看一下当前目录下已经存在哪些文件,输入: :!ls 或者 :!dir
|
||||
|
||||
3. 现在输入一个目录的起始部分,例如输入: :e
|
||||
|
||||
4. 接着按 CTRL-D 键,Vim 会显示以 e 开始的命令的列表。
|
||||
|
||||
5. 然后按 <TAB> 键,Vim 会补全命令为 :edit 。
|
||||
|
||||
6. 现在添加一个空格,以及一个已有文件的文件名的起始部分,例如: :edit FIL
|
||||
|
||||
7. 接着按 <TAB> 键,Vim 会补全文件名(如果它是惟一匹配的)。
|
||||
|
||||
提示:补全对于许多命令都有效。您只需尝试按 CTRL-D 和 <TAB>。
|
||||
它对于 :help 命令非常有用。
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
第七讲小结
|
||||
|
||||
|
||||
1. 输入 :help 或者按 <F1> 键或 <Help> 键可以打开帮助窗口。
|
||||
|
||||
2. 输入 :help cmd 可以找到关于 cmd 命令的帮助。
|
||||
|
||||
3. 输入 CTRL-W CTRL-W 可以使您在窗口之间跳转。
|
||||
|
||||
4. 输入 :q 以关闭帮助窗口
|
||||
|
||||
5. 您可以创建一个 vimrc 启动脚本文件用来保存您偏好的设置。
|
||||
|
||||
6. 当输入 : 命令时,按 CTRL-D 可以查看可能的补全结果。
|
||||
按 <TAB> 可以使用一个补全。
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
vim 教程到此就结束了。本教程只是为了简明地介绍一下 Vim 编辑器,但已足以让您
|
||||
很容易使用这个编辑器了。毋庸质疑,vim还有很多很多的命令,本教程所介
|
||||
绍的距离完整的差得很远。所以您要精通的话,还望继续努力哦。下一步您可以阅读
|
||||
Vim 的用户手册,使用的命令是: :help user-manual
|
||||
|
||||
下面这本书值得推荐用于更进一步的阅读和学习:
|
||||
Vim - Vi Improved - 作者:Steve Oualline
|
||||
出版社:New Riders
|
||||
这是第一本完全讲解 Vim 的书籍。它对于初学者特别有用。其中包含有大量实例
|
||||
和图示。
|
||||
欲知详情,请访问 http://iccf-holland.org/click5.html
|
||||
|
||||
以下这本书比较老了而且内容更多是关于 Vi 而非 Vim,但是也值得推荐:
|
||||
Learning the Vi Editor - 作者:Linda Lamb
|
||||
出版社:O'Reilly & Associates Inc.
|
||||
这是一本不错的书,通过它您几乎能够了解到任何您想要使用 Vi 做的事情。
|
||||
此书的第六个版本也包含了一些关于 Vim 的信息。
|
||||
|
||||
本教程是由来自 Calorado School of Mines 的 Michael C. Pierce 和
|
||||
Robert K. Ware 所编写的,其中很多创意由来自 Colorado State University 的
|
||||
Charles Smith 提供。编者的电子邮箱是:bware@mines.colorado.edu
|
||||
|
||||
本教程已由 Bram Moolenaar 专为 Vim 进行修订。
|
||||
|
||||
译制者附言:
|
||||
===========
|
||||
简体中文教程翻译版之译制者为梁昌泰 <beos@turbolinux.com.cn>,还有
|
||||
另外一个联系地址:linuxrat@gnuchina.org。
|
||||
|
||||
繁体中文教程是从简体中文教程翻译版使用 Debian GNU/Linux 中文项目小
|
||||
组的于广辉先生编写的中文汉字转码器 autoconvert 转换而成的,并对转
|
||||
换的结果做了一些细节的改动。
|
||||
|
||||
变更记录:
|
||||
=========
|
||||
2012年10月01日 赵涛 <alick9188@gmail.com>
|
||||
将 vimtutor 中译版从 1.5 升级到 1.7。
|
||||
|
||||
2002年08月30日 梁昌泰 <beos@turbolinux.com.cn>
|
||||
感谢 RMS@SMTH 的指正,将多处错误修正。
|
||||
|
||||
2002年04月22日 梁昌泰 <linuxrat@gnuchina.org>
|
||||
感谢 xuandong@sh163.net 的指正,将两处错别字修正。
|
||||
|
||||
2002年03月18日 梁昌泰 <linuxrat@gnuchina.org>
|
||||
根据Bram Molenaar先生在2002年03月16日的来信要求,将vimtutor1.4中译
|
||||
版升级到vimtutor1.5。
|
||||
|
||||
2001年11月15日 梁昌泰 <linuxrat@gnuchina.org>
|
||||
将vimtutor1.4中译版提交给Bram Molenaar和Sven Guckes。
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
@@ -10,7 +10,11 @@ APPVER=4.0
|
||||
NODEBUG = 1
|
||||
!endif
|
||||
|
||||
!include <win32.mak>
|
||||
!ifdef SDK_INCLUDE_DIR
|
||||
!include $(SDK_INCLUDE_DIR)\Win32.mak
|
||||
!else
|
||||
!include <Win32.mak>
|
||||
!endif
|
||||
|
||||
all: gvimext.dll
|
||||
|
||||
|
||||
@@ -45,6 +45,10 @@ Visual Studio
|
||||
Building with Visual Studio (VS 98, VS .NET, VS .NET 2003, VS 2005, and VS 2008)
|
||||
is straightforward. (These instructions should also work for VS 4 and VS 5.)
|
||||
|
||||
Using VS C++ 2008 Express is recommended, the binaries build with that run on
|
||||
nearly all platforms. Binaries from later versions may not run on Windows 95
|
||||
or XP.
|
||||
|
||||
To build Vim from the command line with MSVC, use Make_mvc.mak.
|
||||
Visual Studio installed a batch file called vcvars32.bat, which you must
|
||||
run to set up paths for nmake and MSVC.
|
||||
@@ -172,6 +176,10 @@ This includes the IDE and the debugger.
|
||||
To set the environment execute the msvc2008.bat script. You can then build
|
||||
Vim with Make_mvc.mak.
|
||||
|
||||
For building 64 bit binaries you also need to install the SDK:
|
||||
"Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1"
|
||||
You don't need the examples and documentation.
|
||||
|
||||
|
||||
Visual C++ 2010 Express Edition *msvc-2010-express*
|
||||
-------------------------------
|
||||
@@ -296,10 +304,12 @@ Now you have created the Windows binary from your Linux box! Have fun...
|
||||
6. Building with Python support
|
||||
===============================
|
||||
|
||||
(written by Ron Aaron: <ronaharon@yahoo.com>)
|
||||
For building with MSVC 2008 the "Windows Installer" from www.python.org
|
||||
works fine.
|
||||
|
||||
This has been tested with the mingw32 compiler, and the ActiveState
|
||||
ActivePython:
|
||||
(rest written by Ron Aaron: <ronaharon@yahoo.com>)
|
||||
|
||||
Building with the mingw32 compiler, and the ActiveState ActivePython:
|
||||
http://www.ActiveState.com/Products/ActivePython/
|
||||
|
||||
After installing the ActivePython, you will have to create a 'mingw32'
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user