mirror of
https://github.com/zoriya/vim.git
synced 2025-12-27 09:28:16 +00:00
Compare commits
191 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e5c421cfd7 | ||
|
|
1ca2e361a8 | ||
|
|
09deeb7c94 | ||
|
|
dbcf19dc49 | ||
|
|
71371b1579 | ||
|
|
310f2d59b2 | ||
|
|
6383b92d8c | ||
|
|
f11ce667b0 | ||
|
|
a161e26d55 | ||
|
|
6c927557e2 | ||
|
|
eab316bdf9 | ||
|
|
77b7710d4e | ||
|
|
e7154eb5c3 | ||
|
|
5837f1f447 | ||
|
|
b5971141df | ||
|
|
4df702999d | ||
|
|
dcefba9934 | ||
|
|
3b7b83649c | ||
|
|
825e7ab423 | ||
|
|
fbc25b20cb | ||
|
|
b1fc2bf29c | ||
|
|
76feaf1bfe | ||
|
|
6b31467aa7 | ||
|
|
404c942fb8 | ||
|
|
438b64ab71 | ||
|
|
6c5bdb751c | ||
|
|
c7dc1f4a53 | ||
|
|
488eb26ec7 | ||
|
|
0f8dd840fc | ||
|
|
ab11a5914b | ||
|
|
d8b77f7dc0 | ||
|
|
b6c2735c56 | ||
|
|
a245bc79b4 | ||
|
|
e421450a5e | ||
|
|
4dcdf29910 | ||
|
|
4f36dc3bf7 | ||
|
|
5d3fbf3bfe | ||
|
|
cf48767cd1 | ||
|
|
f3c2afb77f | ||
|
|
2b8388bd01 | ||
|
|
bac203ea2d | ||
|
|
13cf77ba17 | ||
|
|
e25bb90b2e | ||
|
|
8da9bbfd02 | ||
|
|
ba17ed6797 | ||
|
|
c6b7217ff5 | ||
|
|
d45c07ac74 | ||
|
|
dfd7691bb8 | ||
|
|
c3bbad085c | ||
|
|
8fc6bc7126 | ||
|
|
46538ee46c | ||
|
|
1e997827f1 | ||
|
|
35e7594dd4 | ||
|
|
4653911950 | ||
|
|
05eb612ff3 | ||
|
|
f65aad5554 | ||
|
|
be20f9fa5d | ||
|
|
eaa330e8e9 | ||
|
|
4a42710695 | ||
|
|
c51b02d7d9 | ||
|
|
98f52500b6 | ||
|
|
8872ef1b4e | ||
|
|
494838a3fe | ||
|
|
eb2928595b | ||
|
|
24a6ff88bc | ||
|
|
9abd5c6507 | ||
|
|
a1d2c58985 | ||
|
|
168e04966c | ||
|
|
f554a3285e | ||
|
|
934b136193 | ||
|
|
b84634de30 | ||
|
|
9d49da8cbb | ||
|
|
0122c4070f | ||
|
|
c0a37b9db3 | ||
|
|
f2c03d7301 | ||
|
|
e71eea801e | ||
|
|
d7ce7a9ad2 | ||
|
|
70781ee403 | ||
|
|
e08dd4e49e | ||
|
|
b641df4965 | ||
|
|
016154919e | ||
|
|
2459a5ecaa | ||
|
|
4ac163ae5f | ||
|
|
73a156bf36 | ||
|
|
7cc8ec4720 | ||
|
|
3b3a9498d1 | ||
|
|
6bf7c523ad | ||
|
|
1c93429c48 | ||
|
|
18400e6430 | ||
|
|
0a988df731 | ||
|
|
0cd040b96a | ||
|
|
aaf3047de2 | ||
|
|
5c27fd100a | ||
|
|
9a492d456d | ||
|
|
932d88662f | ||
|
|
322a24af83 | ||
|
|
1dc92334eb | ||
|
|
e0ad365498 | ||
|
|
df5caa08f6 | ||
|
|
8a94d873aa | ||
|
|
df82661c9c | ||
|
|
eea478f885 | ||
|
|
1ec4dd41de | ||
|
|
4bde00c595 | ||
|
|
6a6028cf4b | ||
|
|
6bf7a5933f | ||
|
|
e823183254 | ||
|
|
ff8a75dab7 | ||
|
|
ff13610d7b | ||
|
|
ef795d1a5b | ||
|
|
7cbc703fdc | ||
|
|
164f3269b1 | ||
|
|
83caecf314 | ||
|
|
d574ea2f80 | ||
|
|
084abaec06 | ||
|
|
a20bcad15c | ||
|
|
ba3f58e296 | ||
|
|
ea67672534 | ||
|
|
615b9978dd | ||
|
|
5000869712 | ||
|
|
84c8e5ab9c | ||
|
|
435797304a | ||
|
|
0c7485fdbb | ||
|
|
9da7ff70cc | ||
|
|
651863c94a | ||
|
|
8be6388b76 | ||
|
|
e271909625 | ||
|
|
c60c4f6e06 | ||
|
|
8feef4ff62 | ||
|
|
a162bc555e | ||
|
|
3ffc79a4a8 | ||
|
|
49a6ed8a8a | ||
|
|
684d409f63 | ||
|
|
0027c218e9 | ||
|
|
abe382cd2a | ||
|
|
e88b0033f6 | ||
|
|
fc3f23bedf | ||
|
|
527a6785c7 | ||
|
|
140e995ed5 | ||
|
|
ae38d05271 | ||
|
|
36ff08479f | ||
|
|
6f2dd9e75e | ||
|
|
caad4f0a0b | ||
|
|
e3faf44bef | ||
|
|
c68c72ea7b | ||
|
|
b12db9f92e | ||
|
|
3f9be97015 | ||
|
|
ddfb925480 | ||
|
|
ef92390cb7 | ||
|
|
2d78cd7756 | ||
|
|
8340dd9b29 | ||
|
|
2f1e51a43c | ||
|
|
aff5c3a530 | ||
|
|
d96c52c71b | ||
|
|
cc2b9d5dc0 | ||
|
|
f1d6ccf2f9 | ||
|
|
b2a851fee4 | ||
|
|
ed32d9424d | ||
|
|
f8a447c6dc | ||
|
|
4d84d9325f | ||
|
|
0b10541606 | ||
|
|
76440e2efe | ||
|
|
f1e30ccb82 | ||
|
|
f240e181d7 | ||
|
|
2a0b33e284 | ||
|
|
9014074913 | ||
|
|
0a38396937 | ||
|
|
a3dfccc6e9 | ||
|
|
1c40a66bad | ||
|
|
b96a7f325c | ||
|
|
baf0344ed7 | ||
|
|
cbdf0a0b4a | ||
|
|
8c731505b0 | ||
|
|
66a3e797a2 | ||
|
|
b738c9a442 | ||
|
|
2683c8e7f7 | ||
|
|
2f3b510b0f | ||
|
|
b1e265045c | ||
|
|
4c7b2f50fd | ||
|
|
06e7ce1a01 | ||
|
|
57bc4633b2 | ||
|
|
dffa5b8ecf | ||
|
|
df46f6f07f | ||
|
|
a365091dbb | ||
|
|
1ba903fb92 | ||
|
|
c229967caa | ||
|
|
8a349ff944 | ||
|
|
54fb438134 | ||
|
|
ef6875be7a | ||
|
|
42d84f8aed | ||
|
|
b8e0bdbda3 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -69,5 +69,7 @@ src/testdir/lua.vim
|
||||
src/testdir/small.vim
|
||||
src/testdir/tiny.vim
|
||||
src/testdir/test*.out
|
||||
src/testdir/test*.failed
|
||||
src/testdir/test.log
|
||||
src/testdir/dostmp/*
|
||||
src/memfile_test
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
" netrwSettings.vim: makes netrw settings simpler
|
||||
" Date: Aug 27, 2013
|
||||
" Date: Dec 30, 2014
|
||||
" Maintainer: Charles E Campbell <drchipNOSPAM at campbellfamily dot biz>
|
||||
" Version: 14
|
||||
" Version: 15
|
||||
" Copyright: Copyright (C) 1999-2007 Charles E. Campbell {{{1
|
||||
" Permission is hereby granted to use and distribute this code,
|
||||
" with or without modifications, provided that this copyright
|
||||
@@ -19,7 +19,7 @@
|
||||
if exists("g:loaded_netrwSettings") || &cp
|
||||
finish
|
||||
endif
|
||||
let g:loaded_netrwSettings = "v14"
|
||||
let g:loaded_netrwSettings = "v15"
|
||||
if v:version < 700
|
||||
echohl WarningMsg
|
||||
echo "***warning*** this version of netrwSettings needs vim 7.0"
|
||||
@@ -31,7 +31,7 @@ endif
|
||||
" NetrwSettings: {{{1
|
||||
fun! netrwSettings#NetrwSettings()
|
||||
" this call is here largely just to insure that netrw has been loaded
|
||||
call netrw#NetrwSavePosn()
|
||||
call netrw#SavePosn()
|
||||
if !exists("g:loaded_netrw")
|
||||
echohl WarningMsg | echomsg "***sorry*** netrw needs to be loaded prior to using NetrwSettings" | echohl None
|
||||
return
|
||||
@@ -177,6 +177,7 @@ fun! netrwSettings#NetrwSettings()
|
||||
put = 'let g:netrw_sort_direction = '.g:netrw_sort_direction
|
||||
put = 'let g:netrw_sort_options = '.g:netrw_sort_options
|
||||
put = 'let g:netrw_sort_sequence = '.g:netrw_sort_sequence
|
||||
put = 'let g:netrw_servername = '.g:netrw_servername
|
||||
put = 'let g:netrw_special_syntax = '.g:netrw_special_syntax
|
||||
put = 'let g:netrw_ssh_browse_reject = '.g:netrw_ssh_browse_reject
|
||||
put = 'let g:netrw_ssh_cmd = '.g:netrw_ssh_cmd
|
||||
|
||||
@@ -61,9 +61,16 @@ function! netrw_gitignore#Hide(...)
|
||||
" convert gitignore patterns to Netrw/Vim regex patterns
|
||||
let escaped_lines = []
|
||||
for line in gitignore_lines
|
||||
let escaped = line
|
||||
let escaped = substitute(escaped, '\.', '\\.', 'g')
|
||||
let escaped = substitute(escaped, '*', '.*', 'g')
|
||||
let escaped = line
|
||||
let escaped = substitute(escaped, '\*\*', '*', 'g')
|
||||
let escaped = substitute(escaped, '\.', '\\.', 'g')
|
||||
let escaped = substitute(escaped, '\$', '\\$', 'g')
|
||||
let escaped = substitute(escaped, '*', '.*', 'g')
|
||||
" correction: dot, dollar and asterisks chars shouldn't be escaped when
|
||||
" within regex matching groups.
|
||||
let escaped = substitute(escaped, '\(\[[^]]*\)\zs\\\.', '\.', 'g')
|
||||
let escaped = substitute(escaped, '\(\[[^]]*\)\zs\\\$', '\$', 'g')
|
||||
let escaped = substitute(escaped, '\(\[[^]]*\)\zs\.\*', '*', 'g')
|
||||
let escaped_lines = add(escaped_lines, escaped)
|
||||
endfor
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
" Maintainer: Dávid Szabó ( complex857 AT gmail DOT com )
|
||||
" Previous Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
|
||||
" URL: https://github.com/shawncplus/phpcomplete.vim
|
||||
" Last Change: 2014 Oct 02
|
||||
" Last Change: 2015 Feb 28
|
||||
"
|
||||
" OPTIONS:
|
||||
"
|
||||
@@ -145,7 +145,7 @@ function! phpcomplete#CompletePHP(findstart, base) " {{{
|
||||
|
||||
let [current_namespace, imports] = phpcomplete#GetCurrentNameSpace(getline(0, line('.')))
|
||||
|
||||
if context =~? '^use\s'
|
||||
if context =~? '^use\s' || context ==? 'use'
|
||||
return phpcomplete#CompleteUse(a:base)
|
||||
endif
|
||||
|
||||
@@ -189,7 +189,7 @@ function! phpcomplete#CompletePHP(findstart, base) " {{{
|
||||
" }}}
|
||||
elseif context =~? 'implements'
|
||||
return phpcomplete#CompleteClassName(a:base, ['i'], current_namespace, imports)
|
||||
elseif context =~? 'extends\s\+.\+$'
|
||||
elseif context =~? 'extends\s\+.\+$' && a:base == ''
|
||||
return ['implements']
|
||||
elseif context =~? 'extends'
|
||||
let kinds = context =~? 'class\s' ? ['c'] : ['i']
|
||||
@@ -244,12 +244,13 @@ function! phpcomplete#CompleteUse(base) " {{{
|
||||
if has_key(tag, 'namespace')
|
||||
let patched_ctags_detected = 1
|
||||
endif
|
||||
|
||||
if tag.kind ==? 'n' && tag.name =~? '^'.namespace_match_pattern
|
||||
let patched_ctags_detected = 1
|
||||
call add(namespaced_matches, {'word': tag.name, 'kind': 'n', 'menu': tag.filename, 'info': tag.filename })
|
||||
elseif has_key(tag, 'namespace') && (tag.kind ==? 'c' || tag.kind ==? 'i') && tag.namespace ==? namespace_for_class
|
||||
elseif has_key(tag, 'namespace') && (tag.kind ==? 'c' || tag.kind ==? 'i' || tag.kind ==? 't') && tag.namespace ==? namespace_for_class
|
||||
call add(namespaced_matches, {'word': namespace_for_class.'\'.tag.name, 'kind': tag.kind, 'menu': tag.filename, 'info': tag.filename })
|
||||
elseif (tag.kind ==? 'c' || tag.kind ==? 'i')
|
||||
elseif (tag.kind ==? 'c' || tag.kind ==? 'i' || tag.kind ==? 't')
|
||||
call add(no_namespace_matches, {'word': namespace_for_class.'\'.tag.name, 'kind': tag.kind, 'menu': tag.filename, 'info': tag.filename })
|
||||
endif
|
||||
endfor
|
||||
@@ -272,6 +273,10 @@ function! phpcomplete#CompleteUse(base) " {{{
|
||||
endfor
|
||||
endif
|
||||
|
||||
for comp in res
|
||||
let comp.word = substitute(comp.word, '^\\', '', '')
|
||||
endfor
|
||||
|
||||
return res
|
||||
endfunction
|
||||
" }}}
|
||||
@@ -326,6 +331,7 @@ function! phpcomplete#CompleteGeneral(base, current_namespace, imports) " {{{
|
||||
let ext_functions = {}
|
||||
let ext_constants = {}
|
||||
let ext_classes = {}
|
||||
let ext_traits = {}
|
||||
let ext_interfaces = {}
|
||||
let ext_namespaces = {}
|
||||
|
||||
@@ -420,7 +426,7 @@ function! phpcomplete#CompleteGeneral(base, current_namespace, imports) " {{{
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
elseif tag.kind ==? 'c' || tag.kind ==? 'i'
|
||||
elseif tag.kind ==? 'c' || tag.kind ==? 'i' || tag.kind ==? 't'
|
||||
let info = ' - '.tag.filename
|
||||
|
||||
let key = ''
|
||||
@@ -441,6 +447,8 @@ function! phpcomplete#CompleteGeneral(base, current_namespace, imports) " {{{
|
||||
let ext_classes[key] = info
|
||||
elseif tag.kind ==? 'i'
|
||||
let ext_interfaces[key] = info
|
||||
elseif tag.kind ==? 't'
|
||||
let ext_traits[key] = info
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
@@ -463,7 +471,7 @@ function! phpcomplete#CompleteGeneral(base, current_namespace, imports) " {{{
|
||||
endfor
|
||||
for [interfacename, info] in items(g:php_builtin_interfacenames)
|
||||
if interfacename =~? '^'.base
|
||||
let builtin_interfaces[leading_slash.interfacename] = info
|
||||
let builtin_interfaces[leading_slash.g:php_builtin_interfaces[tolower(interfacename)].name] = info
|
||||
endif
|
||||
endfor
|
||||
endif
|
||||
@@ -511,6 +519,8 @@ function! phpcomplete#CompleteGeneral(base, current_namespace, imports) " {{{
|
||||
else
|
||||
let ext_interfaces[imported_name] = ' '.import.name.' - '.import.filename
|
||||
endif
|
||||
elseif import.kind ==? 't'
|
||||
let ext_traits[imported_name] = ' '.import.name.' - '.import.filename
|
||||
endif
|
||||
|
||||
" no builtin interfaces
|
||||
@@ -540,6 +550,9 @@ function! phpcomplete#CompleteGeneral(base, current_namespace, imports) " {{{
|
||||
" Add external interfaces
|
||||
call extend(all_values, ext_interfaces)
|
||||
|
||||
" Add external traits
|
||||
call extend(all_values, ext_traits)
|
||||
|
||||
" Add built-in classes
|
||||
call extend(all_values, builtin_classnames)
|
||||
|
||||
@@ -566,6 +579,8 @@ function! phpcomplete#CompleteGeneral(base, current_namespace, imports) " {{{
|
||||
elseif has_key(ext_interfaces, i) || has_key(builtin_interfaces, i)
|
||||
let info = has_key(ext_interfaces, i) ? ext_interfaces[i] : builtin_interfaces[i].' - builtin'
|
||||
let final_list += [{'word':i, 'kind': 'i', 'menu': info, 'info': i.info}]
|
||||
elseif has_key(ext_traits, i)
|
||||
let final_list += [{'word':i, 'kind': 't', 'menu': ext_traits[i], 'info': ext_traits[i]}]
|
||||
elseif has_key(int_constants, i) || has_key(builtin_constants, i)
|
||||
let info = has_key(int_constants, i) ? int_constants[i] : ' - builtin'
|
||||
let final_list += [{'word':i, 'kind': 'd', 'menu': info, 'info': i.info}]
|
||||
@@ -784,7 +799,7 @@ function! phpcomplete#CompleteClassName(base, kinds, current_namespace, imports)
|
||||
|
||||
let tags = []
|
||||
if len(tag_match_pattern) >= g:phpcomplete_min_num_of_chars_for_namespace_completion
|
||||
let tags = phpcomplete#GetTaglist('^'.tag_match_pattern)
|
||||
let tags = phpcomplete#GetTaglist('^\c'.tag_match_pattern)
|
||||
endif
|
||||
|
||||
if len(tags)
|
||||
@@ -861,6 +876,39 @@ function! phpcomplete#CompareCompletionRow(i1, i2) " {{{
|
||||
endfunction
|
||||
" }}}
|
||||
|
||||
function! s:getNextCharWithPos(filelines, current_pos) " {{{
|
||||
let line_no = a:current_pos[0]
|
||||
let col_no = a:current_pos[1]
|
||||
let last_line = a:filelines[len(a:filelines) - 1]
|
||||
let end_pos = [len(a:filelines) - 1, strlen(last_line) - 1]
|
||||
if line_no > end_pos[0] || line_no == end_pos[0] && col_no > end_pos[1]
|
||||
return ['EOF', 'EOF']
|
||||
endif
|
||||
|
||||
" we've not reached the end of the current line break
|
||||
if col_no + 1 < strlen(a:filelines[line_no])
|
||||
let col_no += 1
|
||||
else
|
||||
" we've reached the end of the current line, jump to the next
|
||||
" non-blank line (blank lines have no position where we can read from,
|
||||
" not even a whitespace. The newline char does not positionable by vim
|
||||
let line_no += 1
|
||||
while strlen(a:filelines[line_no]) == 0
|
||||
let line_no += 1
|
||||
endwhile
|
||||
|
||||
let col_no = 0
|
||||
endif
|
||||
|
||||
" return 'EOF' string to signal end of file, normal results only one char
|
||||
" in length
|
||||
if line_no == end_pos[0] && col_no > end_pos[1]
|
||||
return ['EOF', 'EOF']
|
||||
endif
|
||||
|
||||
return [[line_no, col_no], a:filelines[line_no][col_no]]
|
||||
endfunction " }}}
|
||||
|
||||
function! phpcomplete#EvaluateModifiers(modifiers, required_modifiers, prohibited_modifiers) " {{{
|
||||
" if theres no modifier, and no modifier is allowed and no modifier is required
|
||||
if len(a:modifiers) == 0 && len(a:required_modifiers) == 0
|
||||
@@ -1172,11 +1220,11 @@ function! phpcomplete#GetCurrentInstruction(line_number, col_number, phpbegin) "
|
||||
" break if we are on a "naked" stop_char (operators, colon, openparent...)
|
||||
if index(stop_chars, current_char) != -1
|
||||
let do_break = 1
|
||||
" dont break does not look like a "->"
|
||||
" dont break if it does look like a "->"
|
||||
if (prev_char == '-' && current_char == '>') || (current_char == '-' && next_char == '>')
|
||||
let do_break = 0
|
||||
endif
|
||||
" dont break if its looks like a "::"
|
||||
" dont break if it does look like a "::"
|
||||
if (prev_char == ':' && current_char == ':') || (current_char == ':' && next_char == ':')
|
||||
let do_break = 0
|
||||
endif
|
||||
@@ -1356,8 +1404,12 @@ function! phpcomplete#GetCallChainReturnType(classname_candidate, class_candidat
|
||||
endif
|
||||
" make @return self, static, $this the same way
|
||||
" (not exactly what php means by these)
|
||||
if returnclass == 'self' || returnclass == 'static' || returnclass == '$this'
|
||||
let classname_candidate = a:classname_candidate
|
||||
if returnclass == 'self' || returnclass == 'static' || returnclass == '$this' || returnclass == 'self[]' || returnclass == 'static[]' || returnclass == '$this[]'
|
||||
if returnclass =~ '\[\]$'
|
||||
let classname_candidate = a:classname_candidate.'[]'
|
||||
else
|
||||
let classname_candidate = a:classname_candidate
|
||||
endif
|
||||
let class_candidate_namespace = a:class_candidate_namespace
|
||||
else
|
||||
let [classname_candidate, class_candidate_namespace] = phpcomplete#ExpandClassName(returnclass, fullnamespace, a:imports)
|
||||
@@ -1527,7 +1579,7 @@ function! phpcomplete#GetClassName(start_line, context, current_namespace, impor
|
||||
let function_boundary = phpcomplete#GetCurrentFunctionBoundaries()
|
||||
let search_end_line = max([1, function_boundary[0][0]])
|
||||
" -1 makes us ignore the current line (where the completion was invoked
|
||||
let lines = reverse(getline(search_end_line, line('.') - 1))
|
||||
let lines = reverse(getline(search_end_line, a:start_line - 1))
|
||||
|
||||
" check Constant lookup
|
||||
let constant_object = matchstr(a:context, '\zs'.class_name_pattern.'\ze::')
|
||||
@@ -1598,26 +1650,26 @@ function! phpcomplete#GetClassName(start_line, context, current_namespace, impor
|
||||
endif
|
||||
endif
|
||||
|
||||
" in-file lookup for typehinted function arguments
|
||||
" - the function can have a name or be anonymous (e.g., function qux() { ... } vs. function () { ... })
|
||||
" - the type-hinted argument can be anywhere in the arguments list.
|
||||
if line =~? 'function\(\s\+'.function_name_pattern.'\)\?\s*(.\{-}'.class_name_pattern.'\s\+'.object && !object_is_array
|
||||
let f_args = matchstr(line, '\cfunction\(\s\+'.function_name_pattern.'\)\?\s*(\zs.\{-}\ze)')
|
||||
let args = split(f_args, '\s*\zs,\ze\s*')
|
||||
for arg in args
|
||||
if arg =~# object.'\(,\|$\)'
|
||||
let classname_candidate = matchstr(arg, '\s*\zs'.class_name_pattern.'\ze\s\+'.object)
|
||||
let [classname_candidate, class_candidate_namespace] = phpcomplete#ExpandClassName(classname_candidate, a:current_namespace, a:imports)
|
||||
" function declaration line
|
||||
if line =~? 'function\(\s\+'.function_name_pattern.'\)\?\s*('
|
||||
let function_lines = join(reverse(lines), " ")
|
||||
" search for type hinted arguments
|
||||
if function_lines =~? 'function\(\s\+'.function_name_pattern.'\)\?\s*(.\{-}'.class_name_pattern.'\s\+'.object && !object_is_array
|
||||
let f_args = matchstr(function_lines, '\cfunction\(\s\+'.function_name_pattern.'\)\?\s*(\zs.\{-}\ze)')
|
||||
let args = split(f_args, '\s*\zs,\ze\s*')
|
||||
for arg in args
|
||||
if arg =~# object.'\(,\|$\)'
|
||||
let classname_candidate = matchstr(arg, '\s*\zs'.class_name_pattern.'\ze\s\+'.object)
|
||||
let [classname_candidate, class_candidate_namespace] = phpcomplete#ExpandClassName(classname_candidate, a:current_namespace, a:imports)
|
||||
break
|
||||
endif
|
||||
endfor
|
||||
if classname_candidate != ''
|
||||
break
|
||||
endif
|
||||
endfor
|
||||
if classname_candidate != ''
|
||||
break
|
||||
endif
|
||||
endif
|
||||
|
||||
" if we see a function declaration, try loading the docblock for it and look for matching @params
|
||||
if line =~? 'function\(\s\+'.function_name_pattern.'\)\?\s*(.\{-}'.object
|
||||
" search for docblock for the function
|
||||
let match_line = substitute(line, '\\', '\\\\', 'g')
|
||||
let sccontent = getline(0, a:start_line - i)
|
||||
let doc_str = phpcomplete#GetDocBlock(sccontent, match_line)
|
||||
@@ -1637,10 +1689,34 @@ function! phpcomplete#GetClassName(start_line, context, current_namespace, impor
|
||||
endif
|
||||
|
||||
" assignment for the variable in question with a variable on the right hand side
|
||||
if line =~# '^\s*'.object.'\s*=&\?\s*'.variable_name_pattern
|
||||
let tailing_semicolon = match(line, ';\s*$')
|
||||
let tailing_semicolon = tailing_semicolon != -1 ? tailing_semicolon : strlen(getline(a:start_line - i))
|
||||
let prev_context = phpcomplete#GetCurrentInstruction(a:start_line - i, tailing_semicolon - 1, b:phpbegin)
|
||||
if line =~# '^\s*'.object.'\s*=&\?\s\+\(clone\)\?\s*'.variable_name_pattern
|
||||
|
||||
" try to find the next non-comment or string ";" char
|
||||
let start_col = match(line, '^\s*'.object.'\C\s*=\zs&\?\s\+\(clone\)\?\s*'.variable_name_pattern)
|
||||
let filelines = reverse(lines)
|
||||
let [pos, char] = s:getNextCharWithPos(filelines, [a:start_line - i - 1, start_col])
|
||||
let chars_read = 1
|
||||
let last_pos = pos
|
||||
" read while end of the file
|
||||
while char != 'EOF' && chars_read < 1000
|
||||
let last_pos = pos
|
||||
let [pos, char] = s:getNextCharWithPos(filelines, pos)
|
||||
let chars_read += 1
|
||||
" we got a candidate
|
||||
if char == ';'
|
||||
let synIDName = synIDattr(synID(pos[0] + 1, pos[1] + 1, 0), 'name')
|
||||
" it's not a comment or string, end search
|
||||
if synIDName !~? 'comment\|string'
|
||||
break
|
||||
endif
|
||||
endif
|
||||
endwhile
|
||||
|
||||
let prev_context = phpcomplete#GetCurrentInstruction(last_pos[0] + 1, last_pos[1], b:phpbegin)
|
||||
if prev_context == ''
|
||||
" cannot get previous context give up
|
||||
return
|
||||
endif
|
||||
let prev_class = phpcomplete#GetClassName(a:start_line - i, prev_context, a:current_namespace, a:imports)
|
||||
|
||||
if stridx(prev_class, '\') != -1
|
||||
@@ -1656,9 +1732,33 @@ function! phpcomplete#GetClassName(start_line, context, current_namespace, impor
|
||||
|
||||
" assignment for the variable in question with a function on the right hand side
|
||||
if line =~# '^\s*'.object.'\s*=&\?\s*'.function_invocation_pattern
|
||||
let tailing_semicolon = match(line, ';\s*$')
|
||||
let tailing_semicolon = tailing_semicolon != -1 ? tailing_semicolon : strlen(getline(a:start_line - i))
|
||||
let prev_context = phpcomplete#GetCurrentInstruction(a:start_line - i, tailing_semicolon - 1, b:phpbegin)
|
||||
|
||||
" try to find the next non-comment or string ";" char
|
||||
let start_col = match(line, '\C^\s*'.object.'\s*=\zs&\?\s*'.function_invocation_pattern)
|
||||
let filelines = reverse(lines)
|
||||
let [pos, char] = s:getNextCharWithPos(filelines, [a:start_line - i - 1, start_col])
|
||||
let chars_read = 1
|
||||
let last_pos = pos
|
||||
" read while end of the file
|
||||
while char != 'EOF' && chars_read < 1000
|
||||
let last_pos = pos
|
||||
let [pos, char] = s:getNextCharWithPos(filelines, pos)
|
||||
let chars_read += 1
|
||||
" we got a candidate
|
||||
if char == ';'
|
||||
let synIDName = synIDattr(synID(pos[0] + 1, pos[1] + 1, 0), 'name')
|
||||
" it's not a comment or string, end search
|
||||
if synIDName !~? 'comment\|string'
|
||||
break
|
||||
endif
|
||||
endif
|
||||
endwhile
|
||||
|
||||
let prev_context = phpcomplete#GetCurrentInstruction(last_pos[0] + 1, last_pos[1], b:phpbegin)
|
||||
if prev_context == ''
|
||||
" cannot get previous context give up
|
||||
return
|
||||
endif
|
||||
|
||||
let function_name = matchstr(prev_context, '^'.function_invocation_pattern.'\ze')
|
||||
let function_name = matchstr(function_name, '^\zs.\+\ze\s*($') " strip the trailing (
|
||||
@@ -1769,7 +1869,7 @@ function! phpcomplete#GetClassLocation(classname, namespace) " {{{
|
||||
let i = 1
|
||||
while i < line('.')
|
||||
let line = getline(line('.')-i)
|
||||
if line =~? '^\s*\(abstract\s\+\|final\s\+\)*\s*class\s*'.a:classname.'\(\s\+\|$\)' && tolower(current_namespace) == search_namespace
|
||||
if line =~? '^\s*\(abstract\s\+\|final\s\+\)*\s*\(class\|interface\|trait\)\s*'.a:classname.'\(\s\+\|$\)' && tolower(current_namespace) == search_namespace
|
||||
return expand('%:p')
|
||||
else
|
||||
let i += 1
|
||||
@@ -1781,7 +1881,9 @@ function! phpcomplete#GetClassLocation(classname, namespace) " {{{
|
||||
let no_namespace_candidate = ''
|
||||
let tags = phpcomplete#GetTaglist('^'.a:classname.'$')
|
||||
for tag in tags
|
||||
if tag.kind == 'c' || tag.kind == 'i'
|
||||
" We'll allow interfaces and traits to be handled classes since you
|
||||
" can't have colliding names with different kinds anyway
|
||||
if tag.kind == 'c' || tag.kind == 'i' || tag.kind == 't'
|
||||
if !has_key(tag, 'namespace')
|
||||
let no_namespace_candidate = tag.filename
|
||||
else
|
||||
@@ -1929,9 +2031,9 @@ function! phpcomplete#GetClassContentsStructure(file_path, file_lines, class_nam
|
||||
" remember the window we started at
|
||||
let phpcomplete_original_window = winnr()
|
||||
|
||||
silent! below 1new
|
||||
silent! tab 1new
|
||||
silent! 0put =cfile
|
||||
call search('\(class\|interface\)\_s\+'.a:class_name.'\(\>\|$\)')
|
||||
call search('\c\(class\|interface\|trait\)\_s\+'.a:class_name.'\(\>\|$\)')
|
||||
let cfline = line('.')
|
||||
call search('{')
|
||||
let endline = line('.')
|
||||
@@ -1944,8 +2046,48 @@ function! phpcomplete#GetClassContentsStructure(file_path, file_lines, class_nam
|
||||
let extends_class = ''
|
||||
endif
|
||||
call searchpair('{', '', '}', 'W')
|
||||
let classcontent = join(getline(cfline, line('.')), "\n")
|
||||
let class_closing_bracket_line = line('.')
|
||||
let classcontent = join(getline(cfline, class_closing_bracket_line), "\n")
|
||||
|
||||
let used_traits = []
|
||||
" move back to the line next to the class's definition
|
||||
call cursor(endline + 1, 1)
|
||||
let keep_searching = 1
|
||||
while keep_searching != 0
|
||||
" try to grab "use..." keywords
|
||||
let [lnum, col] = searchpos('\c^\s\+use\s\+'.class_name_pattern, 'cW', class_closing_bracket_line)
|
||||
let syn_name = synIDattr(synID(lnum, col, 0), "name")
|
||||
if syn_name =~? 'string\|comment'
|
||||
call cursor(lnum + 1, 1)
|
||||
continue
|
||||
endif
|
||||
|
||||
let trait_line = getline(lnum)
|
||||
if trait_line !~? ';'
|
||||
" try to find the next line containing ';'
|
||||
let l = lnum
|
||||
let search_line = trait_line
|
||||
|
||||
" add lines from the file until theres no ';' in them
|
||||
while search_line !~? ';' && l > 0
|
||||
" file lines are reversed so we need to go backwards
|
||||
let l += 1
|
||||
let search_line = getline(l)
|
||||
let trait_line .= ' '.substitute(search_line, '\(^\s\+\|\s\+$\)', '', 'g')
|
||||
endwhile
|
||||
endif
|
||||
let use_expression = matchstr(trait_line, '^\s*use\s\+\zs.\{-}\ze;')
|
||||
let use_parts = map(split(use_expression, '\s*,\s*'), 'substitute(v:val, "\\s+", " ", "g")')
|
||||
let used_traits += map(use_parts, 'substitute(v:val, "\\s", "", "g")')
|
||||
call cursor(lnum + 1, 1)
|
||||
|
||||
if [lnum, col] == [0, 0]
|
||||
let keep_searching = 0
|
||||
endif
|
||||
endwhile
|
||||
|
||||
silent! bw! %
|
||||
|
||||
let [current_namespace, imports] = phpcomplete#GetCurrentNameSpace(a:file_lines[0:cfline])
|
||||
" go back to original window
|
||||
exe phpcomplete_original_window.'wincmd w'
|
||||
@@ -1958,21 +2100,27 @@ function! phpcomplete#GetClassContentsStructure(file_path, file_lines, class_nam
|
||||
\ 'mtime': getftime(full_file_path),
|
||||
\ })
|
||||
|
||||
let all_extends = used_traits
|
||||
if extends_class != ''
|
||||
let [extends_class, namespace] = phpcomplete#ExpandClassName(extends_class, current_namespace, imports)
|
||||
if namespace == ''
|
||||
let namespace = '\'
|
||||
endif
|
||||
let classlocation = phpcomplete#GetClassLocation(extends_class, namespace)
|
||||
if classlocation == "VIMPHP_BUILTINOBJECT"
|
||||
let result += [phpcomplete#GenerateBuiltinClassStub(g:php_builtin_classes[tolower(extends_class)])]
|
||||
elseif classlocation != '' && filereadable(classlocation)
|
||||
let full_file_path = fnamemodify(classlocation, ':p')
|
||||
let result += phpcomplete#GetClassContentsStructure(full_file_path, readfile(full_file_path), extends_class)
|
||||
elseif tolower(current_namespace) == tolower(namespace)
|
||||
" try to find the declaration in the same file.
|
||||
let result += phpcomplete#GetClassContentsStructure(full_file_path, a:file_lines, extends_class)
|
||||
endif
|
||||
call add(all_extends, extends_class)
|
||||
endif
|
||||
if len(all_extends) > 0
|
||||
for class in all_extends
|
||||
let [class, namespace] = phpcomplete#ExpandClassName(class, current_namespace, imports)
|
||||
if namespace == ''
|
||||
let namespace = '\'
|
||||
endif
|
||||
let classlocation = phpcomplete#GetClassLocation(class, namespace)
|
||||
if classlocation == "VIMPHP_BUILTINOBJECT"
|
||||
let result += [phpcomplete#GenerateBuiltinClassStub(g:php_builtin_classes[tolower(class)])]
|
||||
elseif classlocation != '' && filereadable(classlocation)
|
||||
let full_file_path = fnamemodify(classlocation, ':p')
|
||||
let result += phpcomplete#GetClassContentsStructure(full_file_path, readfile(full_file_path), class)
|
||||
elseif tolower(current_namespace) == tolower(namespace)
|
||||
" try to find the declaration in the same file.
|
||||
let result += phpcomplete#GetClassContentsStructure(full_file_path, a:file_lines, class)
|
||||
endif
|
||||
endfor
|
||||
endif
|
||||
|
||||
return result
|
||||
@@ -2220,19 +2368,40 @@ endfunction!
|
||||
" }}}
|
||||
|
||||
function! phpcomplete#GetCurrentNameSpace(file_lines) " {{{
|
||||
let original_window = winnr()
|
||||
|
||||
silent! tab 1new
|
||||
silent! 0put =a:file_lines
|
||||
normal! G
|
||||
|
||||
" clear out classes, functions and other blocks
|
||||
while 1
|
||||
let block_start_pos = searchpos('\c\(class\|trait\|function\|interface\)\s\+\_.\{-}\zs{', 'Web')
|
||||
if block_start_pos == [0, 0]
|
||||
break
|
||||
endif
|
||||
let block_end_pos = searchpairpos('{', '', '}\|\%$', 'W', 'synIDattr(synID(line("."), col("."), 0), "name") =~? "string\\|comment"')
|
||||
silent! exec block_start_pos[0].','.block_end_pos[0].'d'
|
||||
endwhile
|
||||
normal! G
|
||||
|
||||
" grab the remains
|
||||
let file_lines = reverse(getline(1, line('.') - 1))
|
||||
|
||||
silent! bw! %
|
||||
exe original_window.'wincmd w'
|
||||
|
||||
let namespace_name_pattern = '[a-zA-Z_\x7f-\xff\\][a-zA-Z_0-9\x7f-\xff\\]*'
|
||||
let file_lines = reverse(copy(a:file_lines))
|
||||
let i = 0
|
||||
let file_length = len(file_lines)
|
||||
let imports = {}
|
||||
|
||||
let current_namespace = '\'
|
||||
|
||||
while i < file_length
|
||||
let line = file_lines[i]
|
||||
|
||||
if line =~? '^\s*namespace\s*'.namespace_name_pattern
|
||||
let current_namespace = matchstr(line, '^\s*namespace\s*\zs'.namespace_name_pattern.'\ze')
|
||||
let current_namespace = matchstr(line, '\c^\s*namespace\s*\zs'.namespace_name_pattern.'\ze')
|
||||
break
|
||||
endif
|
||||
|
||||
@@ -2253,11 +2422,11 @@ function! phpcomplete#GetCurrentNameSpace(file_lines) " {{{
|
||||
let use_line .= ' '.substitute(search_line, '\(^\s\+\|\s\+$\)', '', 'g')
|
||||
endwhile
|
||||
endif
|
||||
let use_expression = matchstr(use_line, '^\s*use\s\+\zs.\{-}\ze;')
|
||||
let use_expression = matchstr(use_line, '^\c\s*use\s\+\zs.\{-}\ze;')
|
||||
let use_parts = map(split(use_expression, '\s*,\s*'), 'substitute(v:val, "\\s+", " ", "g")')
|
||||
for part in use_parts
|
||||
if part =~? '\s\+as\s\+'
|
||||
let [object, name] = split(part, '\s\+as\s\+')
|
||||
let [object, name] = split(part, '\s\+as\s\+\c')
|
||||
let object = substitute(object, '^\\', '', '')
|
||||
let name = substitute(name, '^\\', '', '')
|
||||
else
|
||||
@@ -2293,7 +2462,7 @@ function! phpcomplete#GetCurrentNameSpace(file_lines) " {{{
|
||||
break
|
||||
endif
|
||||
" if the name matches with the extracted classname and namespace
|
||||
if (tag.kind == 'c' || tag.kind == 'i') && tag.name == classname
|
||||
if (tag.kind == 'c' || tag.kind == 'i' || tag.kind == 't') && tag.name == classname
|
||||
if has_key(tag, 'namespace')
|
||||
let patched_ctags_detected = 1
|
||||
if tag.namespace == namespace_for_classes
|
||||
@@ -2336,7 +2505,7 @@ function! phpcomplete#GetCurrentNameSpace(file_lines) " {{{
|
||||
let tags = phpcomplete#GetTaglist('^'.import['name'].'$')
|
||||
for tag in tags
|
||||
" search for the first matchin namespace, class, interface with no namespace
|
||||
if !has_key(tag, 'namespace') && (tag.kind == 'n' || tag.kind == 'c' || tag.kind == 'i')
|
||||
if !has_key(tag, 'namespace') && (tag.kind == 'n' || tag.kind == 'c' || tag.kind == 'i' || tag.kind == 't')
|
||||
call extend(import, tag)
|
||||
let import['builtin'] = 0
|
||||
break
|
||||
|
||||
@@ -229,7 +229,6 @@ HTMLS = \
|
||||
starting.html \
|
||||
syntax.html \
|
||||
tabpage.html \
|
||||
tags.html \
|
||||
tagsrch.html \
|
||||
term.html \
|
||||
tips.html \
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*change.txt* For Vim version 7.4. Last change: 2014 Jun 26
|
||||
*change.txt* For Vim version 7.4. Last change: 2015 Feb 10
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -1103,11 +1103,12 @@ There are nine types of registers: *registers* *E354*
|
||||
2. 10 numbered registers "0 to "9
|
||||
3. The small delete register "-
|
||||
4. 26 named registers "a to "z or "A to "Z
|
||||
5. four read-only registers ":, "., "% and "#
|
||||
6. the expression register "=
|
||||
7. The selection and drop registers "*, "+ and "~
|
||||
8. The black hole register "_
|
||||
9. Last search pattern register "/
|
||||
5. three read-only registers ":, "., "%
|
||||
6. alternate buffer register "#
|
||||
7. the expression register "=
|
||||
8. The selection and drop registers "*, "+ and "~
|
||||
9. The black hole register "_
|
||||
10. Last search pattern register "/
|
||||
|
||||
1. Unnamed register "" *quote_quote* *quotequote*
|
||||
Vim fills this register with text deleted with the "d", "c", "s", "x" commands
|
||||
@@ -1153,7 +1154,7 @@ letters to replace their previous contents or as uppercase letters to append
|
||||
to their previous contents. When the '>' flag is present in 'cpoptions' then
|
||||
a line break is inserted before the appended text.
|
||||
|
||||
5. Read-only registers ":, "., "% and "#
|
||||
5. Read-only registers ":, ". and "%
|
||||
These are '%', '#', ':' and '.'. You can use them only with the "p", "P",
|
||||
and ":put" commands and with CTRL-R. {not in Vi}
|
||||
*quote_.* *quote.* *E29*
|
||||
@@ -1164,8 +1165,6 @@ and ":put" commands and with CTRL-R. {not in Vi}
|
||||
('textwidth' and other options affect what is inserted).
|
||||
*quote_%* *quote%*
|
||||
"% Contains the name of the current file.
|
||||
*quote_#* *quote#*
|
||||
"# Contains the name of the alternate file.
|
||||
*quote_:* *quote:* *E30*
|
||||
": Contains the most recent executed command-line. Example: Use
|
||||
"@:" to repeat the previous command-line command.
|
||||
@@ -1174,16 +1173,33 @@ and ":put" commands and with CTRL-R. {not in Vi}
|
||||
the command was completely from a mapping.
|
||||
{not available when compiled without the |+cmdline_hist|
|
||||
feature}
|
||||
*quote_#* *quote#*
|
||||
6. Alternate file register "#
|
||||
Contains the name of the alternate file for the current window. It will
|
||||
change how the |CTRL-^| command works.
|
||||
This register is writable, mainly to allow for restoring it after a plugin has
|
||||
changed it. It accepts buffer number: >
|
||||
let altbuf = bufnr(@#)
|
||||
...
|
||||
let @# = altbuf
|
||||
It will give error |E86| if you pass buffer number and this buffer does not
|
||||
exist.
|
||||
It can also accept a match with an existing buffer name: >
|
||||
let @# = 'buffer_name'
|
||||
Error |E93| if there is more than one buffer matching the given name or |E94|
|
||||
if none of buffers matches the given name.
|
||||
|
||||
6. Expression register "= *quote_=* *quote=* *@=*
|
||||
7. Expression register "= *quote_=* *quote=* *@=*
|
||||
This is not really a register that stores text, but is a way to use an
|
||||
expression in commands which use a register. The expression register is
|
||||
read-only; you cannot put text into it. After the '=', the cursor moves to
|
||||
the command-line, where you can enter any expression (see |expression|). All
|
||||
normal command-line editing commands are available, including a special
|
||||
history for expressions. When you end the command-line by typing <CR>, Vim
|
||||
computes the result of the expression. If you end it with <Esc>, Vim abandons
|
||||
the expression. If you do not enter an expression, Vim uses the previous
|
||||
read-write.
|
||||
|
||||
When typing the '=' after " or CTRL-R the cursor moves to the command-line,
|
||||
where you can enter any expression (see |expression|). All normal
|
||||
command-line editing commands are available, including a special history for
|
||||
expressions. When you end the command-line by typing <CR>, Vim computes the
|
||||
result of the expression. If you end it with <Esc>, Vim abandons the
|
||||
expression. If you do not enter an expression, Vim uses the previous
|
||||
expression (like with the "/" command).
|
||||
|
||||
The expression must evaluate to a String. A Number is always automatically
|
||||
@@ -1196,7 +1212,7 @@ If the "= register is used for the "p" command, the String is split up at <NL>
|
||||
characters. If the String ends in a <NL>, it is regarded as a linewise
|
||||
register. {not in Vi}
|
||||
|
||||
7. Selection and drop registers "*, "+ and "~
|
||||
8. Selection and drop registers "*, "+ and "~
|
||||
Use these registers for storing and retrieving the selected text for the GUI.
|
||||
See |quotestar| and |quoteplus|. When the clipboard is not available or not
|
||||
working, the unnamed register is used instead. For Unix systems the clipboard
|
||||
@@ -1218,17 +1234,17 @@ GTK GUI}
|
||||
Note: The "~ register is only used when dropping plain text onto Vim.
|
||||
Drag'n'drop of URI lists is handled internally.
|
||||
|
||||
8. Black hole register "_ *quote_*
|
||||
9. Black hole register "_ *quote_*
|
||||
When writing to this register, nothing happens. This can be used to delete
|
||||
text without affecting the normal registers. When reading from this register,
|
||||
nothing is returned. {not in Vi}
|
||||
|
||||
9. Last search pattern register "/ *quote_/* *quote/*
|
||||
10. Last search pattern register "/ *quote_/* *quote/*
|
||||
Contains the most recent search-pattern. This is used for "n" and 'hlsearch'.
|
||||
It is writable with `:let`, you can change it to have 'hlsearch' highlight
|
||||
other matches without actually searching. You can't yank or delete into this
|
||||
register. The search direction is available in |v:searchforward|.
|
||||
Note that the valued is restored when returning from a function
|
||||
Note that the value is restored when returning from a function
|
||||
|function-search-undo|.
|
||||
{not in Vi}
|
||||
|
||||
@@ -1443,10 +1459,10 @@ When you hit Return in a C-comment, Vim will insert the middle comment leader
|
||||
for the new line: " * ". To close this comment you just have to type "/"
|
||||
before typing anything else on the new line. This will replace the
|
||||
middle-comment leader with the end-comment leader and apply any specified
|
||||
alignment, leaving just " */". There is no need to hit BackSpace first.
|
||||
alignment, leaving just " */". There is no need to hit Backspace first.
|
||||
|
||||
When there is a match with a middle part, but there also is a maching end part
|
||||
which is longer, the end part is used. This makes a C style comment work
|
||||
When there is a match with a middle part, but there also is a matching end
|
||||
part which is longer, the end part is used. This makes a C style comment work
|
||||
without requiring the middle part to end with a space.
|
||||
|
||||
Here is an example of alignment flags at work to make a comment stand out
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*diff.txt* For Vim version 7.4. Last change: 2014 Oct 31
|
||||
*diff.txt* For Vim version 7.4. Last change: 2015 Feb 03
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -314,6 +314,19 @@ name or a part of a buffer name. Examples:
|
||||
|
||||
Also see |'diffopt'| and the "diff" item of |'fillchars'|.
|
||||
|
||||
*diff-slow* *diff_translations*
|
||||
For very long lines, the diff syntax highlighting might be slow, especially
|
||||
since it tries to match all different kind of localisations. To disable
|
||||
localisations and speed up the syntax highlighting, set the global variable
|
||||
g:diff_translations to zero: >
|
||||
|
||||
let g:diff_translations = 0
|
||||
<
|
||||
After setting this variable, Reload the syntax script: >
|
||||
|
||||
set syntax=diff
|
||||
<
|
||||
|
||||
|
||||
FINDING THE DIFFERENCES *diff-diffexpr*
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*editing.txt* For Vim version 7.4. Last change: 2014 Sep 19
|
||||
*editing.txt* For Vim version 7.4. Last change: 2015 Feb 27
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -304,7 +304,8 @@ CTRL-^ Edit the alternate file. Mostly the alternate file is
|
||||
Mnemonic: "goto file".
|
||||
Uses the 'isfname' option to find out which characters
|
||||
are supposed to be in a file name. Trailing
|
||||
punctuation characters ".,:;!" are ignored.
|
||||
punctuation characters ".,:;!" are ignored. Escaped
|
||||
spaces "\ " are reduced to a single space.
|
||||
Uses the 'path' option as a list of directory names to
|
||||
look for the file. See the 'path' option for details
|
||||
about relative directories and wildcards.
|
||||
@@ -611,7 +612,7 @@ list of the current window.
|
||||
:[count]arga[dd] {name} .. *:arga* *:argadd* *E479*
|
||||
:[count]arga[dd]
|
||||
Add the {name}s to the argument list. When {name} is
|
||||
omitted at the current buffer name to the argument
|
||||
omitted add the current buffer name to the argument
|
||||
list.
|
||||
If [count] is omitted, the {name}s are added just
|
||||
after the current entry in the argument list.
|
||||
@@ -622,7 +623,8 @@ list of the current window.
|
||||
:argadd x a b x c
|
||||
:0argadd x x a b c
|
||||
:1argadd x a x b c
|
||||
:99argadd x a b c x
|
||||
:$argadd x a b c x
|
||||
:+2argadd y a b c x y
|
||||
There is no check for duplicates, it is possible to
|
||||
add a file to the argument list twice.
|
||||
The currently edited file is not changed.
|
||||
@@ -644,11 +646,19 @@ list of the current window.
|
||||
< {not in Vi} {not available when compiled without the
|
||||
|+listcmds| feature}
|
||||
|
||||
:{range}argd[elete] Delete the {range} files from the argument list.
|
||||
:[range]argd[elete] Delete the {range} files from the argument list.
|
||||
Example: >
|
||||
:10,$argdel
|
||||
< Deletes arguments 10 and further, keeping 1-9. >
|
||||
:$argd
|
||||
< Deletes just the last one. >
|
||||
:argd
|
||||
:.argd
|
||||
< Deletes the current argument. >
|
||||
:%argd
|
||||
< Removes all the files from the arglist.
|
||||
When the last number in the range is too high, up to
|
||||
the last argument is deleted. Example: >
|
||||
:10,1000argdel
|
||||
< Deletes arguments 10 and further, keeping 1-9.
|
||||
the last argument is deleted.
|
||||
{not in Vi} {not available when compiled without the
|
||||
|+listcmds| feature}
|
||||
|
||||
@@ -823,8 +833,9 @@ current window. The two windows then share this list, until one of them uses
|
||||
USING THE ARGUMENT LIST
|
||||
|
||||
*:argdo*
|
||||
:argdo[!] {cmd} Execute {cmd} for each file in the argument list.
|
||||
It works like doing this: >
|
||||
:[range]argdo[!] {cmd} Execute {cmd} for each file in the argument list or
|
||||
if [range] is specified only for arguments in that
|
||||
range. It works like doing this: >
|
||||
:rewind
|
||||
:{cmd}
|
||||
:next
|
||||
@@ -1080,9 +1091,12 @@ The names can be in upper- or lowercase.
|
||||
the last file in the argument list has not been
|
||||
edited. See |:confirm| and 'confirm'. {not in Vi}
|
||||
|
||||
:q[uit]! Quit without writing, also when visible buffers have
|
||||
changes. Does not exit when there are changed hidden
|
||||
buffers. Use ":qall!" to exit always.
|
||||
:q[uit]! Quit without writing, also when currently visible
|
||||
buffers have changes. Does not exit when this is the
|
||||
last window and there is a changed hidden buffer.
|
||||
In this case, the first changed hidden buffer becomes
|
||||
the current buffer.
|
||||
Use ":qall!" to exit always.
|
||||
|
||||
:cq[uit] Quit always, without writing, and return an error
|
||||
code. See |:cq|. Used for Manx's QuickFix mode (see
|
||||
@@ -1379,7 +1393,7 @@ reveal it to others. The 'viminfo' file is not encrypted.
|
||||
You could do this to edit very secret text: >
|
||||
:set noundofile viminfo=
|
||||
:noswapfile edit secrets.txt
|
||||
Keep in mind that without a swap file you risk loosing your work in a crash.
|
||||
Keep in mind that without a swap file you risk losing your work in a crash.
|
||||
|
||||
WARNING: If you make a typo when entering the key and then write the file and
|
||||
exit, the text will be lost!
|
||||
@@ -1415,13 +1429,11 @@ Do this before writing the file. When reading an encrypted file it will be
|
||||
set automatically to the method used when that file was written. You can
|
||||
change 'cryptmethod' before writing that file to change the method.
|
||||
|
||||
To set the default method, used for new files, use one of these in your
|
||||
|vimrc| file: >
|
||||
set cm=zip
|
||||
To set the default method, used for new files, use this in your |vimrc|
|
||||
file: >
|
||||
set cm=blowfish2
|
||||
Use the first one if you need to be compatible with Vim 7.2 and older. Using
|
||||
"blowfish2" is highly recommended if you can use a Vim version that supports
|
||||
it.
|
||||
Using "blowfish2" is highly recommended. Only use another method if you
|
||||
must use an older Vim version that does not support it.
|
||||
|
||||
The message given for reading and writing a file will show "[crypted]" when
|
||||
using zip, "[blowfish]" when using blowfish, etc.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*eval.txt* For Vim version 7.4. Last change: 2014 Sep 27
|
||||
*eval.txt* For Vim version 7.4. Last change: 2015 Mar 21
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -956,7 +956,7 @@ Decimal, Hexadecimal (starting with 0x or 0X), or Octal (starting with 0).
|
||||
Floating point numbers can be written in two forms:
|
||||
|
||||
[-+]{N}.{M}
|
||||
[-+]{N}.{M}e[-+]{exp}
|
||||
[-+]{N}.{M}[eE][-+]{exp}
|
||||
|
||||
{N} and {M} are numbers. Both {N} and {M} must be present and can only
|
||||
contain digits.
|
||||
@@ -1457,10 +1457,10 @@ v:foldstart Used for 'foldtext': first line of closed fold.
|
||||
Read-only in the |sandbox|. |fold-foldtext|
|
||||
|
||||
*v:hlsearch* *hlsearch-variable*
|
||||
v:hlsearch Variable that determines whether search highlighting is on.
|
||||
Makes sense only if 'hlsearch' is enabled which requires
|
||||
|+extra_search|. Setting this variable to zero acts the like
|
||||
|:nohlsearch| command, setting it to one acts like >
|
||||
v:hlsearch Variable that indicates whether search highlighting is on.
|
||||
Setting it makes sense only if 'hlsearch' is enabled which
|
||||
requires |+extra_search|. Setting this variable to zero acts
|
||||
the like |:nohlsearch| command, setting it to one acts like >
|
||||
let &hlsearch = &hlsearch
|
||||
<
|
||||
*v:insertmode* *insertmode-variable*
|
||||
@@ -1755,8 +1755,8 @@ count( {list}, {expr} [, {ic} [, {start}]])
|
||||
Number count how many {expr} are in {list}
|
||||
cscope_connection( [{num} , {dbpath} [, {prepend}]])
|
||||
Number checks existence of cscope connection
|
||||
cursor( {lnum}, {col} [, {coladd}])
|
||||
Number move cursor to {lnum}, {col}, {coladd}
|
||||
cursor( {lnum}, {col} [, {off}])
|
||||
Number move cursor to {lnum}, {col}, {off}
|
||||
cursor( {list}) Number move cursor to position in {list}
|
||||
deepcopy( {expr} [, {noref}]) any make a full copy of {expr}
|
||||
delete( {fname}) Number delete file {fname}
|
||||
@@ -1834,9 +1834,10 @@ getwinposx() Number X coord in pixels of GUI Vim window
|
||||
getwinposy() Number Y coord in pixels of GUI Vim window
|
||||
getwinvar( {nr}, {varname} [, {def}])
|
||||
any variable {varname} in window {nr}
|
||||
glob( {expr} [, {nosuf} [, {list}]])
|
||||
glob( {expr} [, {nosuf} [, {list} [, {alllinks}]]])
|
||||
any expand file wildcards in {expr}
|
||||
globpath( {path}, {expr} [, {nosuf} [, {list}]])
|
||||
glob2regpat( {expr}) String convert a glob pat into a search pat
|
||||
globpath( {path}, {expr} [, {nosuf} [, {list} [, {alllinks}]]])
|
||||
String do glob({expr}) for all dirs in {path}
|
||||
has( {feature}) Number TRUE if feature {feature} supported
|
||||
has_key( {dict}, {key}) Number TRUE if {dict} has entry {key}
|
||||
@@ -2395,6 +2396,10 @@ col({expr}) The result is a Number, which is the byte index of the column
|
||||
number of bytes in the cursor line plus one)
|
||||
'x position of mark x (if the mark is not set, 0 is
|
||||
returned)
|
||||
v In Visual mode: the start of the Visual area (the
|
||||
cursor is the end). When not in Visual mode
|
||||
returns the cursor position. Differs from |'<| in
|
||||
that it's updated right away.
|
||||
Additionally {expr} can be [lnum, col]: a |List| with the line
|
||||
and column number. Most useful when the column is "$", to get
|
||||
the last column of a specific line. When "lnum" or "col" is
|
||||
@@ -2623,6 +2628,7 @@ cursor({list})
|
||||
If {col} is zero, the cursor will stay in the current column.
|
||||
If {curswant} is given it is used to set the preferred column
|
||||
for vertical movement. Otherwise {col} is used.
|
||||
|
||||
When 'virtualedit' is used {off} specifies the offset in
|
||||
screen columns from the start of the character. E.g., a
|
||||
position within a <Tab> or after the last character.
|
||||
@@ -2960,9 +2966,12 @@ extend({expr1}, {expr2} [, {expr3}]) *extend()*
|
||||
|
||||
feedkeys({string} [, {mode}]) *feedkeys()*
|
||||
Characters in {string} are queued for processing as if they
|
||||
come from a mapping or were typed by the user. They are added
|
||||
to the end of the typeahead buffer, thus if a mapping is still
|
||||
being executed these characters come after them.
|
||||
come from a mapping or were typed by the user.
|
||||
By default the string is added to the end of the typeahead
|
||||
buffer, thus if a mapping is still being executed the
|
||||
characters come after them. Use the 'i' flag to insert before
|
||||
other characters, they will be executed next, before any
|
||||
characters from a mapping.
|
||||
The function does not wait for processing of keys contained in
|
||||
{string}.
|
||||
To include special keys into {string}, use double-quotes
|
||||
@@ -2976,6 +2985,7 @@ feedkeys({string} [, {mode}]) *feedkeys()*
|
||||
't' Handle keys as if typed; otherwise they are handled as
|
||||
if coming from a mapping. This matters for undo,
|
||||
opening folds, etc.
|
||||
'i' Insert the string instead of appending (see above).
|
||||
Return value is always 0.
|
||||
|
||||
filereadable({file}) *filereadable()*
|
||||
@@ -3304,6 +3314,17 @@ getchar([expr]) *getchar()*
|
||||
: endif
|
||||
: endwhile
|
||||
:endfunction
|
||||
<
|
||||
You may also receive synthetic characters, such as
|
||||
|<CursorHold>|. Often you will want to ignore this and get
|
||||
another character: >
|
||||
:function GetKey()
|
||||
: let c = getchar()
|
||||
: while c == "\<CursorHold>"
|
||||
: let c = getchar()
|
||||
: endwhile
|
||||
: return c
|
||||
:endfunction
|
||||
|
||||
getcharmod() *getcharmod()*
|
||||
The result is a Number which is the state of the modifiers for
|
||||
@@ -3514,7 +3535,7 @@ getpos({expr}) Get the position for {expr}. For possible values of {expr}
|
||||
This can be used to save and restore the position of a mark: >
|
||||
let save_a_mark = getpos("'a")
|
||||
...
|
||||
call setpos(''a', save_a_mark
|
||||
call setpos("'a", save_a_mark)
|
||||
< Also see |getcurpos()| and |setpos()|.
|
||||
|
||||
|
||||
@@ -3618,7 +3639,7 @@ getwinvar({winnr}, {varname} [, {def}]) *getwinvar()*
|
||||
:let list_is_on = getwinvar(2, '&list')
|
||||
:echo "myvar = " . getwinvar(1, 'myvar')
|
||||
<
|
||||
glob({expr} [, {nosuf} [, {list}]]) *glob()*
|
||||
glob({expr} [, {nosuf} [, {list} [, {alllinks}]]]) *glob()*
|
||||
Expand the file wildcards in {expr}. See |wildcards| for the
|
||||
use of special characters.
|
||||
|
||||
@@ -3635,8 +3656,11 @@ glob({expr} [, {nosuf} [, {list}]]) *glob()*
|
||||
matches, they are separated by <NL> characters.
|
||||
|
||||
If the expansion fails, the result is an empty String or List.
|
||||
|
||||
A name for a non-existing file is not included. A symbolic
|
||||
link is only included if it points to an existing file.
|
||||
However, when the {alllinks} argument is present and it is
|
||||
non-zero then all symbolic links are included.
|
||||
|
||||
For most systems backticks can be used to get files names from
|
||||
any external command. Example: >
|
||||
@@ -3648,7 +3672,16 @@ glob({expr} [, {nosuf} [, {list}]]) *glob()*
|
||||
See |expand()| for expanding special Vim variables. See
|
||||
|system()| for getting the raw output of an external command.
|
||||
|
||||
globpath({path}, {expr} [, {nosuf} [, {list}]]) *globpath()*
|
||||
glob2regpat({expr}) *glob2regpat()*
|
||||
Convert a file pattern, as used by glob(), into a search
|
||||
pattern. The result can be used to match with a string that
|
||||
is a file name. E.g. >
|
||||
if filename =~ glob2regpat('Make*.mak')
|
||||
< This is equivalent to: >
|
||||
if filename =~ '^Make.*\.mak$'
|
||||
<
|
||||
*globpath()*
|
||||
globpath({path}, {expr} [, {nosuf} [, {list} [, {allinks}]]])
|
||||
Perform glob() on all directories in {path} and concatenate
|
||||
the results. Example: >
|
||||
:echo globpath(&rtp, "syntax/c.vim")
|
||||
@@ -3674,6 +3707,8 @@ globpath({path}, {expr} [, {nosuf} [, {list}]]) *globpath()*
|
||||
they are separated by <NL> characters. Example: >
|
||||
:echo globpath(&rtp, "syntax/c.vim", 0, 1)
|
||||
<
|
||||
{allinks} is used as with |glob()|.
|
||||
|
||||
The "**" item can be used to search in a directory tree.
|
||||
For example, to find all "README.txt" files in the directories
|
||||
in 'runtimepath' and below: >
|
||||
@@ -4746,6 +4781,7 @@ 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.
|
||||
*printf-S*
|
||||
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|
|
||||
@@ -4807,7 +4843,7 @@ py3eval({expr}) *py3eval()*
|
||||
Evaluate Python expression {expr} and return its result
|
||||
converted to Vim data structures.
|
||||
Numbers and strings are returned as they are (strings are
|
||||
copied though, unicode strings are additionally converted to
|
||||
copied though, Unicode strings are additionally converted to
|
||||
'encoding').
|
||||
Lists are represented as Vim |List| type.
|
||||
Dictionaries are represented as Vim |Dictionary| type with
|
||||
@@ -4851,7 +4887,7 @@ readfile({fname} [, {binary} [, {max}]])
|
||||
separated with CR will result in a single long line (unless a
|
||||
NL appears somewhere).
|
||||
All NUL characters are replaced with a NL character.
|
||||
When {binary} is equal to "b" binary mode is used:
|
||||
When {binary/append} contains "b" binary mode is used:
|
||||
- When the last line ends in a NL an extra empty list item is
|
||||
added.
|
||||
- No CR characters are removed.
|
||||
@@ -5546,7 +5582,7 @@ setwinvar({nr}, {varname}, {val}) *setwinvar()*
|
||||
:call setwinvar(2, "myvar", "foobar")
|
||||
|
||||
sha256({string}) *sha256()*
|
||||
Returns a String with 64 hex charactes, which is the SHA256
|
||||
Returns a String with 64 hex characters, which is the SHA256
|
||||
checksum of {string}.
|
||||
{only available when compiled with the |+cryptv| feature}
|
||||
|
||||
@@ -6406,6 +6442,10 @@ virtcol({expr}) *virtcol()*
|
||||
plus one)
|
||||
'x position of mark x (if the mark is not set, 0 is
|
||||
returned)
|
||||
v In Visual mode: the start of the Visual area (the
|
||||
cursor is the end). When not in Visual mode
|
||||
returns the cursor position. Differs from |'<| in
|
||||
that it's updated right away.
|
||||
Note that only marks in the current file can be used.
|
||||
Examples: >
|
||||
virtcol(".") with text "foo^Lbar", with cursor on the "^L", returns 5
|
||||
@@ -7351,7 +7391,7 @@ This does NOT work: >
|
||||
:unlet v
|
||||
< *E741*
|
||||
If you try to change a locked variable you get an
|
||||
error message: "E741: Value of {name} is locked"
|
||||
error message: "E741: Value is locked: {name}"
|
||||
|
||||
[depth] is relevant when locking a |List| or
|
||||
|Dictionary|. It specifies how deep the locking goes:
|
||||
@@ -8255,7 +8295,7 @@ You can catch all Vim errors by the pattern >
|
||||
*catch-text*
|
||||
NOTE: You should never catch the error message text itself: >
|
||||
:catch /No such variable/
|
||||
only works in the english locale, but not when the user has selected
|
||||
only works in the English locale, but not when the user has selected
|
||||
a different language by the |:language| command. It is however helpful to
|
||||
cite the message text in a comment: >
|
||||
:catch /^Vim(\a\+):E108:/ " No such variable
|
||||
|
||||
@@ -222,7 +222,7 @@ o Keyboard
|
||||
Note:
|
||||
<09> stands for Farsi PSP (break without space)
|
||||
|
||||
<09> stands for Farsi PCN (for HAMZE attribute )
|
||||
<09> stands for Farsi PCN (for HAMZE attribute)
|
||||
|
||||
Restrictions
|
||||
------------
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*gui_w32.txt* For Vim version 7.4. Last change: 2012 Aug 04
|
||||
*gui_w32.txt* For Vim version 7.4. Last change: 2014 Dec 20
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -452,9 +452,10 @@ detailed elsewhere: see |'mouse'|, |win32-hidden-menus|.
|
||||
You can drag and drop one or more files into the Vim window, where they will
|
||||
be opened as normal. See |drag-n-drop|.
|
||||
|
||||
*:simalt* *:si*
|
||||
*:simalt* *:sim*
|
||||
:sim[alt] {key} simulate pressing {key} while holding Alt pressed.
|
||||
{not in Vi} {only for Win32 versions}
|
||||
Note: ":si" means ":s" with the "i" flag.
|
||||
|
||||
Normally, Vim takes control of all Alt-<Key> combinations, to increase the
|
||||
number of possible mappings. This clashes with the standard use of Alt as the
|
||||
|
||||
@@ -197,7 +197,7 @@ files in it.
|
||||
--remote-silent "+call cursor(10, 27)"
|
||||
- Places the cursor on line 10 column 27
|
||||
In Vim >
|
||||
:h --remote-silent for mor details
|
||||
:h --remote-silent for more details
|
||||
|
||||
[.Net remarks provided by Dave Fishburn and Brian Sturk]
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*if_ruby.txt* For Vim version 7.4. Last change: 2012 Aug 02
|
||||
*if_ruby.txt* For Vim version 7.4. Last change: 2015 Feb 22
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Shugo Maeda
|
||||
@@ -120,9 +120,13 @@ VIM::command({cmd})
|
||||
*ruby-evaluate*
|
||||
VIM::evaluate({expr})
|
||||
Evaluates {expr} using the vim internal expression evaluator (see
|
||||
|expression|). Returns the expression result as a string.
|
||||
A |List| is turned into a string by joining the items and inserting
|
||||
line breaks.
|
||||
|expression|). Returns the expression result as:
|
||||
- a Integer if the Vim expression evaluates to a number
|
||||
- a Float if the Vim expression evaluates to a float
|
||||
- a String if the Vim expression evaluates to a string
|
||||
- a Array if the Vim expression evaluates to a Vim list
|
||||
- a Hash if the Vim expression evaluates to a Vim dictionary
|
||||
Dictionaries and lists are recursively expanded.
|
||||
|
||||
==============================================================================
|
||||
3. VIM::Buffer objects *ruby-buffer*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*indent.txt* For Vim version 7.4. Last change: 2014 Apr 23
|
||||
*indent.txt* For Vim version 7.4. Last change: 2014 Dec 06
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*index.txt* For Vim version 7.4. Last change: 2014 Sep 19
|
||||
*index.txt* For Vim version 7.4. Last change: 2015 Feb 12
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -702,12 +702,16 @@ tag char note action in Normal mode ~
|
||||
|g'| g'{mark} 1 like |'| but without changing the jumplist
|
||||
|g`| g`{mark} 1 like |`| but without changing the jumplist
|
||||
|gstar| g* 1 like "*", but without using "\<" and "\>"
|
||||
|g+| g+ go to newer text state N times
|
||||
|g,| g, 1 go to N newer position in change list
|
||||
|g-| g- go to older text state N times
|
||||
|g0| g0 1 when 'wrap' off go to leftmost character of
|
||||
the current line that is on the screen;
|
||||
when 'wrap' on go to the leftmost character
|
||||
of the current screen line
|
||||
|g8| g8 print hex value of bytes used in UTF-8
|
||||
character under the cursor
|
||||
|g;| g; 1 go to N older position in change list
|
||||
|g<| g< display previous command output
|
||||
|g?| g? 2 Rot13 encoding operator
|
||||
|g?g?| g?? 2 Rot13 encode current line
|
||||
@@ -736,6 +740,7 @@ tag char note action in Normal mode ~
|
||||
the screen; when 'wrap' on go to the
|
||||
leftmost non-white character of the current
|
||||
screen line
|
||||
|g_| g_ 1 cursor to the last CHAR N - 1 lines lower
|
||||
|ga| ga print ascii value of character under the
|
||||
cursor
|
||||
|gd| gd 1 go to definition of word under the cursor
|
||||
@@ -1465,7 +1470,7 @@ tag command action ~
|
||||
buffer list
|
||||
|:sbrewind| :sbr[ewind] split window and go to first file in the
|
||||
buffer list
|
||||
|:scriptnames| :scrip[tnames] list names of all sourced Vim scripts
|
||||
|:scriptnames| :scr[iptnames] list names of all sourced Vim scripts
|
||||
|:scriptencoding| :scripte[ncoding] encoding used in sourced Vim script
|
||||
|:scscope| :scs[cope] split window and execute cscope command
|
||||
|:set| :se[t] show or set options
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*intro.txt* For Vim version 7.4. Last change: 2014 May 24
|
||||
*intro.txt* For Vim version 7.4. Last change: 2015 Jan 20
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -135,7 +135,7 @@ http://www.vim.org/maillist.php
|
||||
|
||||
Bug reports: *bugs* *bug-reports* *bugreport.vim*
|
||||
|
||||
Send bug reports to: Vim Developers <vim_dev@vim.org>
|
||||
Send bug reports to: Vim Developers <vim-dev@vim.org>
|
||||
This is a maillist, you need to become a member first and many people will see
|
||||
the message. If you don't want that, e.g. because it is a security issue,
|
||||
send it to <bugs@vim.org>, this only goes to the Vim maintainer (that's Bram).
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*map.txt* For Vim version 7.4. Last change: 2014 Oct 03
|
||||
*map.txt* For Vim version 7.4. Last change: 2014 Dec 08
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -1358,6 +1358,19 @@ Possible attributes are:
|
||||
Note that -range=N and -count=N are mutually exclusive - only one should be
|
||||
specified.
|
||||
|
||||
*E889* *:command-addr*
|
||||
It is possible that the special characters in the range like ., $ or % which
|
||||
by default correspond to the current line, last line and the whole buffer,
|
||||
relate to arguments, (loaded) buffers, windows or tab pages.
|
||||
|
||||
Possible values are:
|
||||
-addr=lines Range of lines (this is the default)
|
||||
-addr=arguments Range for arguments
|
||||
-addr=buffers Range for buffers (also not loaded buffers)
|
||||
-addr=loaded_buffers Range for loaded buffers
|
||||
-addr=windows Range for windows
|
||||
-addr=tabs Range for tab pages
|
||||
|
||||
Special cases *:command-bang* *:command-bar*
|
||||
*:command-register* *:command-buffer*
|
||||
There are some special cases as well:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*netbeans.txt* For Vim version 7.4. Last change: 2012 Jan 26
|
||||
*netbeans.txt* For Vim version 7.4. Last change: 2015 Mar 14
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Gordon Prieur et al.
|
||||
@@ -306,7 +306,12 @@ bufID Buffer number. A message may be either for a specific buffer
|
||||
or generic. Generic messages use a bufID of zero. NOTE: this
|
||||
buffer ID is assigned by the IDE, it is not Vim's buffer
|
||||
number. The bufID must be a sequentially rising number,
|
||||
starting at one.
|
||||
starting at one. When the 'switchbuf' option is set to
|
||||
"usetab" and the "bufID" buffer is not found in the current
|
||||
tab page, the netbeans commands and functions that set this
|
||||
buffer as the current buffer will jump to the first open
|
||||
window that contains this buffer in other tab pages instead of
|
||||
replacing the buffer in the current window.
|
||||
|
||||
seqno The IDE uses a sequence number for Commands and Functions. A
|
||||
Reply must use the sequence number of the Function that it is
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*options.txt* For Vim version 7.4. Last change: 2014 Nov 05
|
||||
*options.txt* For Vim version 7.4. Last change: 2015 Feb 17
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -59,9 +59,7 @@ achieve special effects. These options come in three forms:
|
||||
:se[t] {option}:{value}
|
||||
Set string or number option to {value}.
|
||||
For numeric options the value can be given in decimal,
|
||||
hex (preceded with 0x) or octal (preceded with '0')
|
||||
(hex and octal are only available for machines which
|
||||
have the strtol() function).
|
||||
hex (preceded with 0x) or octal (preceded with '0').
|
||||
The old value can be inserted by typing 'wildchar' (by
|
||||
default this is a <Tab> or CTRL-E if 'compatible' is
|
||||
set). See |cmdline-completion|.
|
||||
@@ -538,11 +536,11 @@ number can be specified where "vim:" or "Vim:" is used:
|
||||
vim<{vers}: version before {vers}
|
||||
vim={vers}: version {vers}
|
||||
vim>{vers}: version after {vers}
|
||||
{vers} is 600 for Vim 6.0 (hundred times the major version plus minor).
|
||||
For example, to use a modeline only for Vim 6.0 and later:
|
||||
/* vim600: set foldmethod=marker: */ ~
|
||||
To use a modeline for Vim before version 5.7:
|
||||
/* vim<570: set sw=4: */ ~
|
||||
{vers} is 700 for Vim 7.0 (hundred times the major version plus minor).
|
||||
For example, to use a modeline only for Vim 7.0:
|
||||
/* vim700: set foldmethod=marker */ ~
|
||||
To use a modeline for Vim after version 7.2:
|
||||
/* vim>702: set cole=2: */ ~
|
||||
There can be no blanks between "vim" and the ":".
|
||||
|
||||
|
||||
@@ -730,8 +728,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
open a file, switch buffers, delete a buffer or open/close a window.
|
||||
It will change to the directory containing the file which was opened
|
||||
or selected.
|
||||
This option is provided for backward compatibility with the Vim
|
||||
released with Sun ONE Studio 4 Enterprise Edition.
|
||||
Note: When this option is on some plugins may not work.
|
||||
|
||||
*'arabic'* *'arab'* *'noarabic'* *'noarab'*
|
||||
@@ -1320,6 +1316,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
nofile only: The buffer name is fixed, it is not handled like a
|
||||
file name. It is not modified in response to a |:cd|
|
||||
command.
|
||||
both: When using ":e bufname" and already editing "bufname"
|
||||
the buffer is made empty and autocommands are
|
||||
triggered as usual for |:edit|.
|
||||
*E676*
|
||||
"acwrite" implies that the buffer name is not related to a file, like
|
||||
"nofile", but it will be written. Thus, in contrast to "nofile" and
|
||||
@@ -2952,8 +2951,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
2. If a <NL> is found and 'fileformats' includes "unix", 'fileformat'
|
||||
is set to "unix". Note that when a <NL> is found without a
|
||||
preceding <CR>, "unix" is preferred over "dos".
|
||||
3. If 'fileformat' has not yet been set, and if 'fileformats'
|
||||
includes "mac", 'fileformat' is set to "mac".
|
||||
3. If 'fileformat' has not yet been set, and if a <CR> is found, and
|
||||
if 'fileformats' includes "mac", 'fileformat' is set to "mac".
|
||||
This means that "mac" is only chosen when:
|
||||
"unix" is not present or no <NL> is found in the file, and
|
||||
"dos" is not present or no <CR><NL> is found in the file.
|
||||
@@ -4534,6 +4533,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
be able to execute Normal mode commands.
|
||||
This is the opposite of the 'keymap' option, where characters are
|
||||
mapped in Insert mode.
|
||||
Also consider setting 'langnoremap' to avoid 'langmap' applies to
|
||||
characters resulting from a mapping.
|
||||
This option cannot be set from a |modeline| or in the |sandbox|, for
|
||||
security reasons.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*pattern.txt* For Vim version 7.4. Last change: 2014 Sep 06
|
||||
*pattern.txt* For Vim version 7.4. Last change: 2015 Mar 16
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -59,6 +59,8 @@ explanations are in chapter 27 |usr_27.txt|.
|
||||
|
||||
*n*
|
||||
n Repeat the latest "/" or "?" [count] times.
|
||||
If the cursor doesn't move the search is repeated with
|
||||
count + 1.
|
||||
|last-pattern| {Vi: no count}
|
||||
|
||||
*N*
|
||||
@@ -1058,7 +1060,10 @@ x A single character, with no special meaning, matches itself
|
||||
*E769*
|
||||
When the ']' is not there Vim will not give an error message but
|
||||
assume no collection is used. Useful to search for '['. However, you
|
||||
do get E769 for internal searching.
|
||||
do get E769 for internal searching. And be aware that in a
|
||||
`:substitute` command the whole command becomes the pattern. E.g.
|
||||
":s/[/x/" searches for "[/x" and replaces it with nothing. It does
|
||||
not search for "[" and replaces it with "x"!
|
||||
|
||||
If the sequence begins with "^", it matches any single character NOT
|
||||
in the collection: "[^xyz]" matches anything but 'x', 'y' and 'z'.
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -693,7 +693,7 @@ It is possible to achieve a poor man's version of duplex printing using the PS
|
||||
utility psselect. This utility has options -e and -o for printing just the
|
||||
even or odd pages of a PS file respectively.
|
||||
|
||||
First generate a PS file with the 'hardcopy' command, then generate a new
|
||||
First generate a PS file with the 'hardcopy' command, then generate new
|
||||
files with all the odd and even numbered pages with: >
|
||||
|
||||
psselect -o test.ps odd.ps
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*quickref.txt* For Vim version 7.4. Last change: 2014 Oct 22
|
||||
*quickref.txt* For Vim version 7.4. Last change: 2014 Nov 19
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -764,6 +764,7 @@ Short explanation of each option: *option-list*
|
||||
'keywordprg' 'kp' program to use for the "K" command
|
||||
'langmap' 'lmap' alphabetic characters for other language mode
|
||||
'langmenu' 'lm' language to be used for the menus
|
||||
'langnoremap' 'lnr' do not apply 'langmap' to mapped characters
|
||||
'laststatus' 'ls' tells when last window has status lines
|
||||
'lazyredraw' 'lz' don't redraw while executing macros
|
||||
'linebreak' 'lbr' wrap long lines at a blank
|
||||
|
||||
@@ -178,14 +178,14 @@ Hurrah for VIM!! It is "at your fingertips" like vi, and has the extensions
|
||||
that vi sorely needs: highlighting for executing commands on blocks, an easily
|
||||
navigable and digestible help screen, and more. (Paul Pax)
|
||||
|
||||
The reason WHY I don't have this amazingly useful macro any more, is that I
|
||||
The reason WHY I don't have this amazingly useful macro anymore, is that I
|
||||
now use VIM - and this is built in!! (Stephen Riehm, Germany)
|
||||
|
||||
I am a user of VIM and I love it. I use it to do all my programming, C,
|
||||
C++, HTML what ever. (Tim Allwine)
|
||||
|
||||
I discovered VIM after years of struggling with the original vi, and I just
|
||||
can't live without it any more. (Emmanuel Mogenet, USA)
|
||||
can't live without it anymore. (Emmanuel Mogenet, USA)
|
||||
|
||||
Emacs has not a bit of chance to survive so long as VIM is around. Besides,
|
||||
it also has the most detailed software documentation I have ever seen---much
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*remote.txt* For Vim version 7.4. Last change: 2008 May 24
|
||||
*remote.txt* For Vim version 7.4. Last change: 2015 Mar 01
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -36,7 +36,8 @@ The following command line arguments are available:
|
||||
The remote Vim is raised. If you don't want
|
||||
this use >
|
||||
vim --remote-send "<C-\><C-N>:n filename<CR>"
|
||||
< --remote-silent [+{cmd}] {file} ... *--remote-silent*
|
||||
<
|
||||
--remote-silent [+{cmd}] {file} ... *--remote-silent*
|
||||
As above, but don't complain if there is no
|
||||
server and the file is edited locally.
|
||||
--remote-wait [+{cmd}] {file} ... *--remote-wait*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*repeat.txt* For Vim version 7.4. Last change: 2014 Oct 29
|
||||
*repeat.txt* For Vim version 7.4. Last change: 2015 Jan 07
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -235,8 +235,8 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
|
||||
command is ignored.
|
||||
{not in Vi}
|
||||
|
||||
*:scrip* *:scriptnames*
|
||||
:scrip[tnames] List all sourced script names, in the order they were
|
||||
*:scr* *:scriptnames*
|
||||
:scr[iptnames] List all sourced script names, in the order they were
|
||||
first sourced. The number is used for the script ID
|
||||
|<SID>|.
|
||||
{not in Vi} {not available when compiled without the
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*syntax.txt* For Vim version 7.4. Last change: 2014 Sep 27
|
||||
*syntax.txt* For Vim version 7.4. Last change: 2015 Mar 20
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -211,7 +211,8 @@ thing. These are then linked to a highlight group that specifies the color.
|
||||
A syntax group name doesn't specify any color or attributes itself.
|
||||
|
||||
The name for a highlight or syntax group must consist of ASCII letters, digits
|
||||
and the underscore. As a regexp: "[a-zA-Z0-9_]*"
|
||||
and the underscore. As a regexp: "[a-zA-Z0-9_]*". However, Vim does not give
|
||||
an error when using other characters.
|
||||
|
||||
To be able to allow each user to pick his favorite set of colors, there must
|
||||
be preferred names for highlight groups that are common for many languages.
|
||||
@@ -1128,6 +1129,16 @@ to standard by placing this in your vimrc file: >
|
||||
:let enforce_freedesktop_standard = 1
|
||||
|
||||
|
||||
DIFF *diff.vim*
|
||||
|
||||
The diff highlighting normally finds translated headers. This can be slow if
|
||||
there are very long lines in the file. To disable translations: >
|
||||
|
||||
:let diff_translations = 0
|
||||
|
||||
Also see |diff-slow|.
|
||||
|
||||
|
||||
DIRCOLORS *dircolors.vim* *ft-dircolors-syntax*
|
||||
|
||||
The dircolors utility highlighting definition has one option. It exists to
|
||||
@@ -4243,7 +4254,7 @@ If the "maxlines={N}" argument is given, the number of lines that are searched
|
||||
for a comment or syncing pattern is restricted to N lines backwards (after
|
||||
adding "minlines"). This is useful if you have few things to sync on and a
|
||||
slow machine. Example: >
|
||||
:syntax sync ccomment maxlines=500
|
||||
:syntax sync maxlines=500 ccomment
|
||||
<
|
||||
*:syn-sync-linebreaks*
|
||||
When using a pattern that matches multiple lines, a change in one line may
|
||||
@@ -4637,6 +4648,8 @@ ctermbg={color-nr} *highlight-ctermbg*
|
||||
Note that for some color terminals these names may result in the wrong
|
||||
colors!
|
||||
|
||||
You can also use "NONE" to remove the color.
|
||||
|
||||
*:hi-normal-cterm*
|
||||
When setting the "ctermfg" or "ctermbg" colors for the Normal group,
|
||||
these will become the colors used for the non-highlighted text.
|
||||
@@ -5065,6 +5078,7 @@ This will set the "w:current_syntax" variable to "foo". The value of
|
||||
restoring "b:current_syntax", since the syntax files do set
|
||||
"b:current_syntax". The value set by the syntax file is assigned to
|
||||
"w:current_syntax".
|
||||
Note: This resets the 'spell', 'spellcapcheck' and 'spellfile' options.
|
||||
|
||||
Once a window has its own syntax, syntax commands executed from other windows
|
||||
on the same buffer (including :syntax clear) have no effect. Conversely,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*tabpage.txt* For Vim version 7.4. Last change: 2012 Aug 08
|
||||
*tabpage.txt* For Vim version 7.4. Last change: 2015 Jan 04
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -61,16 +61,25 @@ In the GUI tab pages line you can use the right mouse button to open menu.
|
||||
:[count]tabe[dit] *:tabe* *:tabedit* *:tabnew*
|
||||
:[count]tabnew
|
||||
Open a new tab page with an empty window, after the current
|
||||
tab page. For [count] see |:tab| below.
|
||||
tab page. If [count] is given the new tab page appears after
|
||||
the tab page [count] otherwise the new tab page will appear
|
||||
after the current one. >
|
||||
:tabnew " opens tabpage after the current one
|
||||
:.tabnew " as above
|
||||
:+tabnew " opens tabpage after the next tab page
|
||||
" note: it is one further than :tabnew
|
||||
:-tabnew " opens tabpage before the current one
|
||||
:0tabnew " opens tabpage before the first one
|
||||
:$tabnew " opens tabpage after the last one
|
||||
|
||||
:[count]tabe[dit] [++opt] [+cmd] {file}
|
||||
:[count]tabnew [++opt] [+cmd] {file}
|
||||
Open a new tab page and edit {file}, like with |:edit|.
|
||||
For [count] see |:tab| below.
|
||||
For [count] see |:tabnew| above.
|
||||
|
||||
:[count]tabf[ind] [++opt] [+cmd] {file} *:tabf* *:tabfind*
|
||||
Open a new tab page and edit {file} in 'path', like with
|
||||
|:find|. For [count] see |:tab| below.
|
||||
|:find|. For [count] see |:tabnew| above.
|
||||
{not available when the |+file_in_path| feature was disabled
|
||||
at compile time}
|
||||
|
||||
@@ -110,12 +119,18 @@ something else.
|
||||
- When 'hidden' is not set, [!] is not used, a buffer has
|
||||
changes, and there is no other window on this buffer.
|
||||
Changes to the buffer are not written and won't get lost, so
|
||||
this is a "safe" command.
|
||||
this is a "safe" command. >
|
||||
:tabclose " close the current tab page
|
||||
|
||||
:{count}tabc[lose][!]
|
||||
:tabc[lose][!] {count}
|
||||
Close tab page {count}. Fails in the same way as `:tabclose`
|
||||
above.
|
||||
|
||||
above. >
|
||||
:-tabclose " close the previous tab page
|
||||
:+tabclose " close the next tab page
|
||||
:1tabclose " close the first tab page
|
||||
:$tabclose " close the last tab page
|
||||
<
|
||||
*:tabo* *:tabonly*
|
||||
:tabo[nly][!] Close all other tab pages.
|
||||
When the 'hidden' option is set, all buffers in closed windows
|
||||
@@ -124,7 +139,17 @@ something else.
|
||||
modified buffers are written. Otherwise, windows that have
|
||||
buffers that are modified are not removed, unless the [!] is
|
||||
given, then they become hidden. But modified buffers are
|
||||
never abandoned, so changes cannot get lost.
|
||||
never abandoned, so changes cannot get lost. >
|
||||
:tabonly " close all tab pages except the current
|
||||
|
||||
:{count}tabo[nly][!]
|
||||
Close all tab pages except the {count}th one. >
|
||||
:.tabonly " one
|
||||
:-tabonly " close all tab pages except the previous
|
||||
" one
|
||||
:+tabonly " close all tab pages except the next one
|
||||
:1tabonly " close all tab pages except the first one
|
||||
:$tabonly " close all tab pages except the last one
|
||||
|
||||
|
||||
SWITCHING TO ANOTHER TAB PAGE:
|
||||
@@ -176,7 +201,15 @@ REORDERING TAB PAGES:
|
||||
:[N]tabm[ove]
|
||||
Move the current tab page to after tab page N. Use zero to
|
||||
make the current tab page the first one. Without N the tab
|
||||
page is made the last one.
|
||||
page is made the last one. >
|
||||
:-tabmove " move the tab page to the left
|
||||
:tabmove " move the tab page to the right
|
||||
:.tabmove " as above
|
||||
:+tabmove " as above
|
||||
:0tabmove " move the tab page to the beginning of the tab
|
||||
" list
|
||||
:$tabmove " move the tab page to the end of the tab list
|
||||
<
|
||||
|
||||
:tabm[ove] +[N]
|
||||
:tabm[ove] -[N]
|
||||
@@ -191,8 +224,10 @@ clarification what +N means in this context see |[range]|.
|
||||
LOOPING OVER TAB PAGES:
|
||||
|
||||
*:tabd* *:tabdo*
|
||||
:tabd[o] {cmd} Execute {cmd} in each tab page.
|
||||
It works like doing this: >
|
||||
:[range]tabd[o] {cmd}
|
||||
Execute {cmd} in each tab page or if [range] is given only in
|
||||
tab pages which tab page number is in the [range]. It works
|
||||
like doing this: >
|
||||
:tabfirst
|
||||
:{cmd}
|
||||
:tabnext
|
||||
@@ -238,8 +273,8 @@ window on the same buffer and then edit another buffer. Thus ":tabnew"
|
||||
triggers:
|
||||
WinLeave leave current window
|
||||
TabLeave leave current tab page
|
||||
TabEnter enter new tab page
|
||||
WinEnter enter window in new tab page
|
||||
TabEnter enter new tab page
|
||||
BufLeave leave current buffer
|
||||
BufEnter enter new empty buffer
|
||||
|
||||
|
||||
@@ -392,6 +392,7 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME*
|
||||
'kp' options.txt /*'kp'*
|
||||
'langmap' options.txt /*'langmap'*
|
||||
'langmenu' options.txt /*'langmenu'*
|
||||
'langnoremap' options.txt /*'langnoremap'*
|
||||
'laststatus' options.txt /*'laststatus'*
|
||||
'lazyredraw' options.txt /*'lazyredraw'*
|
||||
'lbr' options.txt /*'lbr'*
|
||||
@@ -405,6 +406,7 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME*
|
||||
'listchars' options.txt /*'listchars'*
|
||||
'lm' options.txt /*'lm'*
|
||||
'lmap' options.txt /*'lmap'*
|
||||
'lnr' options.txt /*'lnr'*
|
||||
'loadplugins' options.txt /*'loadplugins'*
|
||||
'lpl' options.txt /*'lpl'*
|
||||
'ls' options.txt /*'ls'*
|
||||
@@ -993,6 +995,7 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME*
|
||||
't_ve' term.txt /*'t_ve'*
|
||||
't_vi' term.txt /*'t_vi'*
|
||||
't_vs' term.txt /*'t_vs'*
|
||||
't_xn' term.txt /*'t_xn'*
|
||||
't_xs' term.txt /*'t_xs'*
|
||||
'ta' options.txt /*'ta'*
|
||||
'tabline' options.txt /*'tabline'*
|
||||
@@ -1396,6 +1399,8 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME*
|
||||
.dic spell.txt /*.dic*
|
||||
.exrc starting.txt /*.exrc*
|
||||
.gvimrc gui.txt /*.gvimrc*
|
||||
.netrwbook pi_netrw.txt /*.netrwbook*
|
||||
.netrwhist pi_netrw.txt /*.netrwhist*
|
||||
.vimrc starting.txt /*.vimrc*
|
||||
/ pattern.txt /*\/*
|
||||
/$ pattern.txt /*\/$*
|
||||
@@ -2055,6 +2060,7 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME*
|
||||
:comc map.txt /*:comc*
|
||||
:comclear map.txt /*:comclear*
|
||||
:command map.txt /*:command*
|
||||
:command-addr map.txt /*:command-addr*
|
||||
:command-bang map.txt /*:command-bang*
|
||||
:command-bar map.txt /*:command-bar*
|
||||
:command-buffer map.txt /*:command-buffer*
|
||||
@@ -2723,7 +2729,7 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME*
|
||||
:sbr windows.txt /*:sbr*
|
||||
:sbrewind windows.txt /*:sbrewind*
|
||||
:sbuffer windows.txt /*:sbuffer*
|
||||
:scrip repeat.txt /*:scrip*
|
||||
:scr repeat.txt /*:scr*
|
||||
:scripte repeat.txt /*:scripte*
|
||||
:scriptencoding repeat.txt /*:scriptencoding*
|
||||
:scriptnames repeat.txt /*:scriptnames*
|
||||
@@ -2758,7 +2764,6 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME*
|
||||
:sfirst windows.txt /*:sfirst*
|
||||
:sh various.txt /*:sh*
|
||||
:shell various.txt /*:shell*
|
||||
:si gui_w32.txt /*:si*
|
||||
:sig sign.txt /*:sig*
|
||||
:sign sign.txt /*:sign*
|
||||
:sign-define sign.txt /*:sign-define*
|
||||
@@ -2771,6 +2776,7 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME*
|
||||
:sign-unplace sign.txt /*:sign-unplace*
|
||||
:sil various.txt /*:sil*
|
||||
:silent various.txt /*:silent*
|
||||
:sim gui_w32.txt /*:sim*
|
||||
:simalt gui_w32.txt /*:simalt*
|
||||
:sl various.txt /*:sl*
|
||||
:sla windows.txt /*:sla*
|
||||
@@ -4333,6 +4339,7 @@ E885 sign.txt /*E885*
|
||||
E886 starting.txt /*E886*
|
||||
E887 if_pyth.txt /*E887*
|
||||
E888 pattern.txt /*E888*
|
||||
E889 map.txt /*E889*
|
||||
E89 message.txt /*E89*
|
||||
E90 message.txt /*E90*
|
||||
E91 options.txt /*E91*
|
||||
@@ -5410,9 +5417,12 @@ diff-mode diff.txt /*diff-mode*
|
||||
diff-options diff.txt /*diff-options*
|
||||
diff-original-file diff.txt /*diff-original-file*
|
||||
diff-patchexpr diff.txt /*diff-patchexpr*
|
||||
diff-slow diff.txt /*diff-slow*
|
||||
diff.txt diff.txt /*diff.txt*
|
||||
diff.vim syntax.txt /*diff.vim*
|
||||
diff_filler() eval.txt /*diff_filler()*
|
||||
diff_hlID() eval.txt /*diff_hlID()*
|
||||
diff_translations diff.txt /*diff_translations*
|
||||
digraph digraph.txt /*digraph*
|
||||
digraph-arg change.txt /*digraph-arg*
|
||||
digraph-encoding digraph.txt /*digraph-encoding*
|
||||
@@ -6004,6 +6014,7 @@ 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*
|
||||
g:netrw_ffkeep pi_netrw.txt /*g:netrw_ffkeep*
|
||||
g:netrw_file_cmd pi_netrw.txt /*g:netrw_file_cmd*
|
||||
g:netrw_fname_escape pi_netrw.txt /*g:netrw_fname_escape*
|
||||
g:netrw_ftp pi_netrw.txt /*g:netrw_ftp*
|
||||
g:netrw_ftp_browse_reject pi_netrw.txt /*g:netrw_ftp_browse_reject*
|
||||
@@ -6015,6 +6026,7 @@ g:netrw_ftp_timelist_cmd pi_netrw.txt /*g:netrw_ftp_timelist_cmd*
|
||||
g:netrw_ftpextracmd pi_netrw.txt /*g:netrw_ftpextracmd*
|
||||
g:netrw_ftpmode pi_netrw.txt /*g:netrw_ftpmode*
|
||||
g:netrw_glob_escape pi_netrw.txt /*g:netrw_glob_escape*
|
||||
g:netrw_gx pi_netrw.txt /*g:netrw_gx*
|
||||
g:netrw_hide pi_netrw.txt /*g:netrw_hide*
|
||||
g:netrw_home pi_netrw.txt /*g:netrw_home*
|
||||
g:netrw_http_cmd pi_netrw.txt /*g:netrw_http_cmd*
|
||||
@@ -6022,10 +6034,13 @@ g:netrw_http_put_cmd pi_netrw.txt /*g:netrw_http_put_cmd*
|
||||
g:netrw_http_xcmd pi_netrw.txt /*g:netrw_http_xcmd*
|
||||
g:netrw_ignorenetrc pi_netrw.txt /*g:netrw_ignorenetrc*
|
||||
g:netrw_keepdir pi_netrw.txt /*g:netrw_keepdir*
|
||||
g:netrw_keepj pi_netrw.txt /*g:netrw_keepj*
|
||||
g:netrw_list_cmd pi_netrw.txt /*g:netrw_list_cmd*
|
||||
g:netrw_list_cmd_options pi_netrw.txt /*g:netrw_list_cmd_options*
|
||||
g:netrw_list_hide pi_netrw.txt /*g:netrw_list_hide*
|
||||
g:netrw_liststyle pi_netrw.txt /*g:netrw_liststyle*
|
||||
g:netrw_localcopycmd pi_netrw.txt /*g:netrw_localcopycmd*
|
||||
g:netrw_localcopydircmd pi_netrw.txt /*g:netrw_localcopydircmd*
|
||||
g:netrw_localmkdir pi_netrw.txt /*g:netrw_localmkdir*
|
||||
g:netrw_localmovecmd pi_netrw.txt /*g:netrw_localmovecmd*
|
||||
g:netrw_localrmdir pi_netrw.txt /*g:netrw_localrmdir*
|
||||
@@ -6046,6 +6061,7 @@ g:netrw_rsync_cmd pi_netrw.txt /*g:netrw_rsync_cmd*
|
||||
g:netrw_scp_cmd pi_netrw.txt /*g:netrw_scp_cmd*
|
||||
g:netrw_scpport pi_netrw.txt /*g:netrw_scpport*
|
||||
g:netrw_sepchr pi_netrw.txt /*g:netrw_sepchr*
|
||||
g:netrw_servername pi_netrw.txt /*g:netrw_servername*
|
||||
g:netrw_sftp_cmd pi_netrw.txt /*g:netrw_sftp_cmd*
|
||||
g:netrw_silent pi_netrw.txt /*g:netrw_silent*
|
||||
g:netrw_sort_by pi_netrw.txt /*g:netrw_sort_by*
|
||||
@@ -6186,6 +6202,7 @@ gi insert.txt /*gi*
|
||||
gj motion.txt /*gj*
|
||||
gk motion.txt /*gk*
|
||||
glob() eval.txt /*glob()*
|
||||
glob2regpat() eval.txt /*glob2regpat()*
|
||||
global-ime mbyte.txt /*global-ime*
|
||||
global-local options.txt /*global-local*
|
||||
global-variable eval.txt /*global-variable*
|
||||
@@ -6994,6 +7011,8 @@ netrw-:Hexplore pi_netrw.txt /*netrw-:Hexplore*
|
||||
netrw-:Lexplore pi_netrw.txt /*netrw-:Lexplore*
|
||||
netrw-:MF pi_netrw.txt /*netrw-:MF*
|
||||
netrw-:MT pi_netrw.txt /*netrw-:MT*
|
||||
netrw-:NetrwC pi_netrw.txt /*netrw-:NetrwC*
|
||||
netrw-:NetrwMB pi_netrw.txt /*netrw-:NetrwMB*
|
||||
netrw-:Rexplore pi_netrw.txt /*netrw-:Rexplore*
|
||||
netrw-:Sexplore pi_netrw.txt /*netrw-:Sexplore*
|
||||
netrw-:Texplore pi_netrw.txt /*netrw-:Texplore*
|
||||
@@ -7002,6 +7021,7 @@ netrw-C pi_netrw.txt /*netrw-C*
|
||||
netrw-D pi_netrw.txt /*netrw-D*
|
||||
netrw-O pi_netrw.txt /*netrw-O*
|
||||
netrw-P pi_netrw.txt /*netrw-P*
|
||||
netrw-P18 pi_netrw.txt /*netrw-P18*
|
||||
netrw-R pi_netrw.txt /*netrw-R*
|
||||
netrw-S pi_netrw.txt /*netrw-S*
|
||||
netrw-Tb pi_netrw.txt /*netrw-Tb*
|
||||
@@ -7031,6 +7051,7 @@ netrw-createfile pi_netrw.txt /*netrw-createfile*
|
||||
netrw-credits pi_netrw.txt /*netrw-credits*
|
||||
netrw-ctrl-h pi_netrw.txt /*netrw-ctrl-h*
|
||||
netrw-ctrl-l pi_netrw.txt /*netrw-ctrl-l*
|
||||
netrw-ctrl-r pi_netrw.txt /*netrw-ctrl-r*
|
||||
netrw-ctrl_l pi_netrw.txt /*netrw-ctrl_l*
|
||||
netrw-curdir pi_netrw.txt /*netrw-curdir*
|
||||
netrw-d pi_netrw.txt /*netrw-d*
|
||||
@@ -7057,6 +7078,7 @@ netrw-gf pi_netrw.txt /*netrw-gf*
|
||||
netrw-gh pi_netrw.txt /*netrw-gh*
|
||||
netrw-gitignore pi_netrw.txt /*netrw-gitignore*
|
||||
netrw-gp pi_netrw.txt /*netrw-gp*
|
||||
netrw-grep pi_netrw.txt /*netrw-grep*
|
||||
netrw-gx pi_netrw.txt /*netrw-gx*
|
||||
netrw-handler pi_netrw.txt /*netrw-handler*
|
||||
netrw-help pi_netrw.txt /*netrw-help*
|
||||
@@ -7078,6 +7100,7 @@ netrw-login pi_netrw.txt /*netrw-login*
|
||||
netrw-mB pi_netrw.txt /*netrw-mB*
|
||||
netrw-mF pi_netrw.txt /*netrw-mF*
|
||||
netrw-mT pi_netrw.txt /*netrw-mT*
|
||||
netrw-mX pi_netrw.txt /*netrw-mX*
|
||||
netrw-mb pi_netrw.txt /*netrw-mb*
|
||||
netrw-mc pi_netrw.txt /*netrw-mc*
|
||||
netrw-md pi_netrw.txt /*netrw-md*
|
||||
@@ -7095,6 +7118,7 @@ netrw-mr pi_netrw.txt /*netrw-mr*
|
||||
netrw-ms pi_netrw.txt /*netrw-ms*
|
||||
netrw-mt pi_netrw.txt /*netrw-mt*
|
||||
netrw-mu pi_netrw.txt /*netrw-mu*
|
||||
netrw-mv pi_netrw.txt /*netrw-mv*
|
||||
netrw-mx pi_netrw.txt /*netrw-mx*
|
||||
netrw-mz pi_netrw.txt /*netrw-mz*
|
||||
netrw-netrc pi_netrw.txt /*netrw-netrc*
|
||||
@@ -7114,6 +7138,7 @@ netrw-p13 pi_netrw.txt /*netrw-p13*
|
||||
netrw-p14 pi_netrw.txt /*netrw-p14*
|
||||
netrw-p15 pi_netrw.txt /*netrw-p15*
|
||||
netrw-p16 pi_netrw.txt /*netrw-p16*
|
||||
netrw-p17 pi_netrw.txt /*netrw-p17*
|
||||
netrw-p2 pi_netrw.txt /*netrw-p2*
|
||||
netrw-p3 pi_netrw.txt /*netrw-p3*
|
||||
netrw-p4 pi_netrw.txt /*netrw-p4*
|
||||
@@ -7440,6 +7465,7 @@ printf() eval.txt /*printf()*
|
||||
printf-% eval.txt /*printf-%*
|
||||
printf-E eval.txt /*printf-E*
|
||||
printf-G eval.txt /*printf-G*
|
||||
printf-S eval.txt /*printf-S*
|
||||
printf-X eval.txt /*printf-X*
|
||||
printf-c eval.txt /*printf-c*
|
||||
printf-d eval.txt /*printf-d*
|
||||
@@ -8179,6 +8205,7 @@ t_vb term.txt /*t_vb*
|
||||
t_ve term.txt /*t_ve*
|
||||
t_vi term.txt /*t_vi*
|
||||
t_vs term.txt /*t_vs*
|
||||
t_xn term.txt /*t_xn*
|
||||
t_xs term.txt /*t_xs*
|
||||
tab intro.txt /*tab*
|
||||
tab-page tabpage.txt /*tab-page*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*term.txt* For Vim version 7.4. Last change: 2014 May 13
|
||||
*term.txt* For Vim version 7.4. Last change: 2015 Feb 23
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -224,10 +224,11 @@ The options are listed below. The associated termcap code is always equal to
|
||||
the last two characters of the option name. Only one termcap code is
|
||||
required: Cursor motion, 't_cm'.
|
||||
|
||||
The options 't_da', 't_db', 't_ms', 't_xs' represent flags in the termcap.
|
||||
When the termcap flag is present, the option will be set to "y". But any
|
||||
non-empty string means that the flag is set. An empty string means that the
|
||||
flag is not set. 't_CS' works like this too, but it isn't a termcap flag.
|
||||
The options 't_da', 't_db', 't_ms', 't_xs', 't_xn' represent flags in the
|
||||
termcap. When the termcap flag is present, the option will be set to "y".
|
||||
But any non-empty string means that the flag is set. An empty string means
|
||||
that the flag is not set. 't_CS' works like this too, but it isn't a termcap
|
||||
flag.
|
||||
|
||||
OUTPUT CODES
|
||||
option meaning ~
|
||||
@@ -281,6 +282,9 @@ OUTPUT CODES
|
||||
t_vs cursor very visible *t_vs* *'t_vs'*
|
||||
*t_xs* *'t_xs'*
|
||||
t_xs if non-empty, standout not erased by overwriting (hpterm)
|
||||
*t_xn* *'t_xn'*
|
||||
t_xn if non-empty, writing a character at the last screen cell
|
||||
does not cause scrolling
|
||||
t_ZH italics mode *t_ZH* *'t_ZH'*
|
||||
t_ZR italics end *t_ZR* *'t_ZR'*
|
||||
|
||||
@@ -410,7 +414,7 @@ adjust the various t_ codes. This avoids the problem that the xterm can
|
||||
produce different codes, depending on the mode it is in (8-bit, VT102,
|
||||
VT220, etc.). The result is that codes like <xF1> are no longer needed.
|
||||
Note: This is only done on startup. If the xterm options are changed after
|
||||
Vim has started, the escape sequences may not be recognized any more.
|
||||
Vim has started, the escape sequences may not be recognized anymore.
|
||||
|
||||
*xterm-resize*
|
||||
Window resizing with xterm only works if the allowWindowOps resource is
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*todo.txt* For Vim version 7.4. Last change: 2014 Nov 05
|
||||
*todo.txt* For Vim version 7.4. Last change: 2015 Mar 20
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -35,8 +35,11 @@ not be repeated below, unless there is extra information.
|
||||
-------------------- Known bugs and current work -----------------------
|
||||
|
||||
Regexp problems:
|
||||
- The NFA engine does not implement the time limit passed to
|
||||
nfa_regexec_multi()
|
||||
- The old engine does not find a match for "/\%#=1\(\)\{80}", the new engine
|
||||
matches everywhere.
|
||||
- Using win_linetabsize() can still be slow. Cache the result, store col and
|
||||
vcol. Reset them when moving to another line.
|
||||
- Very slow with a long line and Ruby highlighting. (John Whitley, 2014 Dec 4)
|
||||
- Bug with pattern: '\vblock (\d+)\.\n.*\d+%(\1)@<!\.$'
|
||||
(Lech Lorens, 2014 Feb 3)
|
||||
- Issue 164: freeze on regexp search.
|
||||
@@ -50,13 +53,38 @@ Regexp problems:
|
||||
- Does not work with NFA regexp engine:
|
||||
\%u, \%x, \%o, \%d followed by a composing character
|
||||
- Bug relating to back references. (Ingo Karkat, 2014 Jul 24)
|
||||
- New RE does not give an error for empty group: "\(\)\{2}" (Dominique Pelle,
|
||||
2015 Feb 7)
|
||||
- Using back reference before the capturing group sometimes works with the old
|
||||
engine, can we do this with the new engine? E.g. with
|
||||
"/\%(<\1>\)\@<=.*\%(<\/\(\w\+\)>\)\@=" matching text inside HTML tags.
|
||||
- Strange matching with "\(Hello\n\)\@<=A". (Anas Syed, 2015 Feb 12)
|
||||
- Problem with \v(A)@<=b+\1c. (Issue 334)
|
||||
- Diff highlighting can be very slow. (Issue 309)
|
||||
- Using %> for a virtual column has a check based on 'tabsize'. Better would
|
||||
be to cache the result of win_linetabsize(col), storing both col and vcol,
|
||||
and use them to decide whether win_linetabsize() needs to be called. Reset
|
||||
col and vcol when moving to another line.
|
||||
- this doesn't work: "syntax match ErrorMsg /.\%9l\%>20c\&\%<28c/". Leaving
|
||||
out the \& works. Seems any column check after \& fails.
|
||||
|
||||
Check out neovim bug reports that apply to Vim:
|
||||
https://github.com/neovim/neovim/issues?q=label%3Abug-vim
|
||||
Specifically:
|
||||
https://github.com/neovim/neovim/commit/cf8e175cf54281bcad5e704308e92ebb3e6381d3
|
||||
https://github.com/neovim/neovim/commit/d7038127ca6b356ad33fdec08aa3b23ac6a817af
|
||||
https://github.com/neovim/neovim/commit/77ace65bdce379f2d9b13ee81ab3fc01951f92dc
|
||||
And also:
|
||||
https://github.com/neovim/neovim/pull/2157/commits
|
||||
|
||||
Still using freed memory after using setloclist(). (lcd, 2014 Jul 23)
|
||||
More info Jul 24. Not clear why.
|
||||
|
||||
Updated Irish translation. (Kevin Scannell, 2015 Mar 13)
|
||||
|
||||
Better .ico file for Windows. (Pat Suwalski, 2015 Feb 13)
|
||||
Waiting for response on remark from Edward Fox.
|
||||
|
||||
Patch to make getregtype() return the right size for non-linux systems.
|
||||
(Yasuhiro Matsumoto, 2014 Jul 8)
|
||||
Breaks test_eval. Inefficient, can we only compute y_width when needed?
|
||||
@@ -64,73 +92,121 @@ Breaks test_eval. Inefficient, can we only compute y_width when needed?
|
||||
Problem that a previous silent ":throw" causes a following try/catch not to
|
||||
work. (ZyX, 2013 Sep 28)
|
||||
|
||||
Problem using ":try" inside ":execute". (ZyX, 2013 Sep 15)
|
||||
|
||||
":cd C:\Windows\System32\drivers\etc*" does not work, even though the
|
||||
directory exists. (Sergio Gallelli, 2013 Dec 29)
|
||||
|
||||
Patch by Marcin Szamotulski to add count to :close (2014 Aug 10, update Aug
|
||||
14, Aug 30)
|
||||
Make ":1close" close the first window.
|
||||
Make ":+1close" close the next window.
|
||||
Make ":-1close" close the previous window.
|
||||
Doesn't look right, asked for updates.
|
||||
C indent: should recognize C11 raw strings. (Mark Lodato, 2015 Mar 1)
|
||||
Need to recognize R"string".
|
||||
|
||||
C macro with number highlighted wrong. (Dominique Pelle, 2014 Oct 23)
|
||||
Suggested patch to MingW makefiles. (Michael Soyka, 2015 Mar 11)
|
||||
Feedback from others?
|
||||
|
||||
The entries added by matchaddpos() are returned by getmatches() but can't be
|
||||
set with setmatches(). (lcd47, 2014 Jun 29)
|
||||
Patch for :tabmove not working as documented. (Hirohito Higashi, 2015 Mar 10)
|
||||
https://gist.github.com/h-east/ffabb0cdd589a5f9acd2
|
||||
Updated patch emailed. (Mar 17) Awaiting comments.
|
||||
|
||||
Crash when changing the 'tags' option from a remote command.
|
||||
(Benjamin Fritz, 2015 Mar 18)
|
||||
|
||||
Gvim: when both Tab and CTRL-I are mapped, use CTRL-I not for Tab.
|
||||
|
||||
Patch to add 'langnoremap'. (Christian Brabandt, 2014 Oct 15)
|
||||
Update Oct 20.
|
||||
|
||||
Patch to add append mode to writefile(). (Yasuhiro Matsumoto, 2014 Nov 1)
|
||||
|
||||
Remove restriction in NSIS installer that the end of the path must be "Vim".
|
||||
(Tim Lebedkov, 2014 Sep 24) Again Oct 12. Now on issue 272.
|
||||
|
||||
Fix that on MS-Windows MAX_PATH in bytes causes problems for file names
|
||||
between MAX_PATH and double that for double-byte encodings. (Ken Takata, 2014
|
||||
Oct 15)
|
||||
|
||||
Another problem with MAX_PATH, off-by-one. (Ken Takata, 2014 Oct 21)
|
||||
|
||||
Problem using ":try" inside ":execute". (ZyX, 2013 Sep 15)
|
||||
|
||||
Python: ":py raw_input('prompt')" doesn't work. (Manu Hack)
|
||||
|
||||
'foldexpr' applies to help. (Paul Marshall, 2014 Sep 24)
|
||||
MS-Windows: When editing a file with a leading space, writing it uses the
|
||||
wrong name. (Aram, 2014 Nov 7) Vim 7.4.
|
||||
|
||||
Patch to fix issue 203. (Christian Brabandt, 2014 Oct 8)
|
||||
|
||||
Patch to fix issue 253. (Christian Brabandt, 2014 Oct 8)
|
||||
|
||||
Patch to fix issue 78. (Christian Brabandt, 2014 Oct 8)
|
||||
|
||||
Patch to fix leak in map() with error. (Christian Brabandt, 2014 Oct 11)
|
||||
|
||||
Patch to fix incsearch for "2/pattern/e".
|
||||
|
||||
Change behavior of v:hlsearch? Patch from Christian, 2014 Oct 22.
|
||||
Can't recognize the $ProgramFiles(x86) environment variable. Recognize it
|
||||
specifically? First try with the parens, then without.
|
||||
|
||||
Value returned by virtcol() changes depending on how lines wrap. This is
|
||||
inconsistent with the documentation.
|
||||
|
||||
On MS-Windows running tests with Mercurial has problems when the input files
|
||||
are changed. (Ken Takata, Taro Muraoka, 2014 Sep 25)
|
||||
Update Nov 5.
|
||||
Better greek spell checking. Issue 299.
|
||||
|
||||
When complete() first argument is before where insert started and 'backspace'
|
||||
is Vi compatible, the completion fails. (Hirohito Higashi, 2015 Feb 19)
|
||||
|
||||
Weird encryption problems on Windows. (Ben Fritz, 2015 Feb 13)
|
||||
Goes away when disabling the swap file. (might1, Feb 16)
|
||||
|
||||
Problem caused by patch 7.3.638: window->open does not update window
|
||||
correctly. Issue 91. With patch.
|
||||
|
||||
MS-Windows: Crash opening very long file name starting with "\\".
|
||||
(Christian Brock, 2012 Jun 29)
|
||||
|
||||
Patch to handle directories better for --remote. (xaizek, 2015 Mar 1)
|
||||
|
||||
Cursorline background color not mixed with character highlight.
|
||||
Patch by Yasuhiro Matsumoto, 2014 Dec 3.
|
||||
|
||||
The argument for "-S" is not taken literally, the ":so" command expands
|
||||
wildcards. Add a ":nowild" command modifier? (ZyX, 2015 March 4)
|
||||
|
||||
Problem using diff syntax with cp932 encoding. Idea from Yasuhiro Matsumoto,
|
||||
patch from Ken Takata (2014 Nov 6)
|
||||
|
||||
ml_updatechunk() is slow when retrying for another encoding. (John Little,
|
||||
2014 Sep 11)
|
||||
|
||||
Patch to add counts to zr and zm. (Marcin Szamotulski, 2015 Jan 28)
|
||||
|
||||
Patch to add a different escape sequence for replace mode.
|
||||
(Omar Sandoval, 2014 Nov 30)
|
||||
|
||||
Patch on Issue 166, popup drawing with '$' in 'cpo'.
|
||||
|
||||
When a session file is created and there are "nofile" buffers, these are not
|
||||
filled. Need to trigger BufReadCmd autocommands. Also handle deleting the
|
||||
initial empty buffer better. (ZyX, 2015 March 8)
|
||||
|
||||
Calling setreg() with an empty list doesn't work.
|
||||
Patch by Yasuhiro Matsumoto, 2014 Dec 14.
|
||||
|
||||
Extended file attributes lost on write (backupcopy=no). Issue 306.
|
||||
|
||||
Patch to add an argument to ":ls" for specific kinds of buffers.
|
||||
(Marcin Szamotulski, 2015 Jan 31)
|
||||
|
||||
Crash when using R syntax. (Jakson Alves de Aquino, 2015 Jan 30)
|
||||
Memory freed by ":syn clear" but still referenced, syntax items referenced
|
||||
from two windows? Stopped happening (Feb 5).
|
||||
|
||||
Window height computed incorrectly when Vim is minimized.
|
||||
Patch to fix this. (Ingo Karkat, 2014 Dec 19)
|
||||
|
||||
Patch to fix CTRL-W handling in Insert mode for multi-byte characters.
|
||||
(Yasuhiro Matsumoto, 2015 Jan 29, update with test)
|
||||
|
||||
Patch to allow values greater than 255 for ctermfg/ctermbg on Windows.
|
||||
(Yasuhiro Matsumoto, 2014 Dec 5)
|
||||
|
||||
Patch for an extra argument to matchadd() for conceal. (Christian Brabandt,
|
||||
2015 Feb 17, update Feb 19)
|
||||
|
||||
Mixup of highlighting when there is a match and SpellBad. (ZyX, 2015 Jan 1)
|
||||
|
||||
Patch to add 'belloff' option. (Christian Brabandt, 2015 Jan 31)
|
||||
Update Feb 6.
|
||||
|
||||
Patch for drag&drop reordering of GUI tab pages reordering.
|
||||
(Ken Takata, 2013 Nov 22, second one, also by Masamichi Abe)
|
||||
|
||||
Patch on Issue 72: 'autochdir' causes problems for :vimgrep.
|
||||
|
||||
When 'balloonexpr' returns a list the result has a trailing newline.
|
||||
Just remove one trailing newline. (lcd, 2014 Oct 17)
|
||||
|
||||
Make comments in the test Makefile silent. (Kartik Agaram, 2014 Sep 24)
|
||||
|
||||
Patch to add GUI colors to the terminal, when it supports it. (ZyX, 2013 Jan
|
||||
26, update 2013 Dec 14, another 2014 Nov 22)
|
||||
|
||||
Result of systemlist() does not show whether text ended in line break.
|
||||
(Bjorn Linse, 2014 Nov 27)
|
||||
|
||||
When in 'comments' "n:x" follows after three-part comment directly it repeats
|
||||
any one-character from the previous line. (Kartik Agaram, 2014 Sep 19)
|
||||
|
||||
@@ -141,18 +217,48 @@ lines. (Marco Hinz, 2014 Nov 2)
|
||||
|
||||
Adding "~" to 'cdpath' doesn't work for completion? (Davido, 2013 Aug 19)
|
||||
|
||||
Should be easy to highlight all matches with 'incsearch'. Idea by Itchyny,
|
||||
2015 Feb 6.
|
||||
|
||||
Plugins need to make a lot of effort, lots of mappings, to know what happened
|
||||
before pressing the key that triggers a plugin action. How about keeping the
|
||||
last N pressed keys, so that they do not need to be mapped?
|
||||
|
||||
":q!" should reset modified flag for current buffer, if another buffer is
|
||||
modified no need to abandon it again.
|
||||
Patch from Yasuhiro Matsumoto, 2014 Nov 21.
|
||||
Update from Hirohito Higashi, 2014 Nov 21.
|
||||
With test, Nov 23.
|
||||
|
||||
Wrong scrolling when using incsearch. Patch by Christian Brabandt, 2014 Dec 4.
|
||||
Is this a good solution?
|
||||
|
||||
Can assign to s:type when a function s:type has been defined.
|
||||
Also the other way around: define a function while a variable with that name
|
||||
was already defined.
|
||||
(Yasuhiro Matsumoto, 2014 Nov 3)
|
||||
|
||||
Patch to make closed folds line up. (Charles Campbell, 2014 Sep 12)
|
||||
Remark from Roland Eggner: does it cause crashes? (2014 Dec 12)
|
||||
Updated patch by Roland Eggner, Dec 16
|
||||
Updated patch from Charles, Dec 29.
|
||||
|
||||
Patch to open folds for 'incsearch'. (Christian Brabandt, 2015 Jan 6)
|
||||
|
||||
Patch for building a 32bit Vim with 64bit MingW compiler.
|
||||
(Michael Soyka, 2014 Oct 15)
|
||||
|
||||
Delete old code in os_msdos.c, mch_FullName().
|
||||
|
||||
Patch: On MS-Windows shellescape() may have to triple double quotes.
|
||||
(Ingo Karkat, 2015 Jan 16)
|
||||
|
||||
Redo only remembers the last change. Could use "{count}g." to redo an older
|
||||
change. How does the user know which change? At least have a way to list
|
||||
them: ":repeats".
|
||||
|
||||
Patch for glob(), adding slash to normal files. (Ingo Karkat, 2014 Dec 22)
|
||||
|
||||
Using "." to repeat an Ex command puts that command in history. Probably
|
||||
should not happen. If the command is the result of a mapping it's not put in
|
||||
history either. (Jacob Niehus, 2014 Nov 2)
|
||||
@@ -161,15 +267,18 @@ Patch from Jacob, Nov 2.
|
||||
"hi link" does not respect groups with GUI settings only. (Mark Lodato, 2014
|
||||
Jun 8)
|
||||
|
||||
Patch to switch to the BT regexp engine when the NFA engine uses many states.
|
||||
(Christian Brabandt, 2014 Oct 3)
|
||||
Bug: Autocompleting ":tag/pat" replaces "/pat" with a match but does not
|
||||
insert a space. (Micha Mos, 2014 Nov 7)
|
||||
|
||||
Patch to add the :bvimgrep command. (Christian Brabandt, 2014 Nov 12)
|
||||
Update Dec 6.
|
||||
|
||||
Patch to add argument to :cquit. (Thinca, 2014 Oct 12)
|
||||
|
||||
No error for missing endwhile. (ZyX, 2014 Mar 20)
|
||||
|
||||
start_global_changes() plus end_global_changes() causes problem for
|
||||
clip_unnamed_plus. (Jason Pleau, 2014 Sep 12)
|
||||
The entries added by matchaddpos() are returned by getmatches() but can't be
|
||||
set with setmatches(). (lcd47, 2014 Jun 29)
|
||||
|
||||
Patch to add :arglocal and :arglists. (Marcin Szamotulski, 2014 Aug 6)
|
||||
|
||||
@@ -180,15 +289,13 @@ Spell files use a latin single quote. Unicode also has another single quote:
|
||||
New OpenOffice spell files support this with ICONV. But they are not
|
||||
compatible with Vim spell files. The old files can no longer be downloaded.
|
||||
|
||||
Patch to make FocusGained and FocusLost work in modern terminals. (Hayaki
|
||||
Saito, 2013 Apr 24) Has a problem (email 2015 Jan 7).
|
||||
Update 2015 Jan 10.
|
||||
|
||||
Win32: patch to use 64 bit stat() if possible. (Ken Takata, 2014 May 12)
|
||||
More tests May 14. Update May 29. Update Aug 10.
|
||||
|
||||
The garbage collector may use too much stack. Make set_ref_in_item()
|
||||
iterative instead of recursive. Test program by Marc Weber (2013 Dec 10)
|
||||
Patch by Ben Fritz, 2014 Jun 22.
|
||||
Related: Vim hangs when freeing a lot of objects. Patch by Yasuhiro
|
||||
Matsumoto, 2014 Aug 26.
|
||||
|
||||
Idea: For a window in the middle (has window above and below it), use
|
||||
right-mouse-drag on the status line to move a window up/down without changing
|
||||
its height? It's like dragging the status bar above it at the same time.
|
||||
@@ -198,6 +305,9 @@ What for systems that don't have unsetenv()?
|
||||
|
||||
Patch to add a :domodeline command. (Christian Brabandt, 2014 Oct 21)
|
||||
|
||||
Patch to add TabNew, TabNewEntered and TabClosed autocommand events.
|
||||
(Felipe Morales, 2015 Feb 1)
|
||||
|
||||
This does not give an error: (Andre Sihera, 2014 Mar 21)
|
||||
vim -u NONE 1 2 3 -c 'bufdo if 1 | echo 1'
|
||||
This neither: (ZyX)
|
||||
@@ -275,6 +385,10 @@ Yasuhiro Matsumoto, 2013 May 31.
|
||||
Or should we add a more general mechanism, like a lambda() function?
|
||||
Patch by Yasuhiro Matsumoto, 2014 Sep 16.
|
||||
|
||||
Patch to fix display of listchars on the cursorline. (Nayuri Aohime, 2013)
|
||||
Update suggested by Yasuhiro Matsumoto, 2014 Nov 25:
|
||||
https://gist.github.com/presuku/d3d6b230b9b6dcfc0477
|
||||
|
||||
VMS: Select() doesn't work properly, typing ESC may hang Vim. Use sys$qiow
|
||||
instead. (Samuel Ferencik, 2013 Sep 28)
|
||||
|
||||
@@ -288,18 +402,11 @@ Patch to add v:completed_item. (Shougo Matsu, 2013 Nov 29).
|
||||
|
||||
Patch to get MSVC version in a nicer way. (Ken Takata, 2014 Jul 24)
|
||||
|
||||
Patch to make test 100 work on MS-Windows. (Taro Muraoka, 2013 Dec 12)
|
||||
|
||||
Patch to define macros for hardcoded values. (Elias Diem, 2013 Dec 14)
|
||||
|
||||
Perl: support for Activestate perl 5.18: Issue 170.
|
||||
|
||||
Several syntax file match "^\s*" which may get underlined if that's in the
|
||||
highlight group. Add a "\zs" after it?
|
||||
|
||||
Patch to fix temp directories for Windows, so that it works without tweaking.
|
||||
Issue 28.
|
||||
|
||||
Go through more coverity reports.
|
||||
|
||||
Patch to add ":undorecover", get as much text out of the undo file as
|
||||
@@ -358,9 +465,6 @@ Patch from Christian Brabandt doesn't fix it completely.
|
||||
Patch from Christian Brabandt to preserve upper case marks when wiping out a
|
||||
buffer. (2013 Dec 9)
|
||||
|
||||
Patch for drag&drop reordering of GUI tab pages reordering.
|
||||
(Ken Takata, 2013 Nov 22, second one, also by Masamichi Abe)
|
||||
|
||||
GTK: problem with 'L' in 'guioptions' changing the window width.
|
||||
(Aaron Cornelius, 2012 Feb 6)
|
||||
|
||||
@@ -388,9 +492,6 @@ Works OK for echo, just not for ":call" and ":call call()". (Ted, 2011 Mar
|
||||
Patch by Christian Brabandt, 2013 Mar 23.
|
||||
Not 100% sure this is the right solution.
|
||||
|
||||
Problem caused by patch 7.3.638: window->open does not update window
|
||||
correctly. Issue 91.
|
||||
|
||||
Patch to add {lhs} to :mapclear: clear all maps starting with {lhs}.
|
||||
(Christian Brabandt, 2013 Dec 9)
|
||||
|
||||
@@ -430,6 +531,9 @@ optional. (2013 Jul 12)
|
||||
|
||||
Dialog is too big on Linux too. (David Fishburn, 2013 Sep 2)
|
||||
|
||||
Patch to check whether a buffer is quickfix or a location list.
|
||||
(Yasuhiro Matsumoto, 2014 Dec 9)
|
||||
|
||||
Patch to allow setting w:quickfix_title via setqflist() and setloclist()
|
||||
functions. (Christian Brabandt, 2013 May 8, update May 21)
|
||||
Patch to add getlocstack() / setlocstack(). (Christian Brabandt, 2013 May 14)
|
||||
@@ -438,9 +542,6 @@ Update by Daniel Hahler, 2014 Jul 4, Aug 14, Oct 14, Oct 15.
|
||||
|
||||
Patch to make fold updates much faster. (Christian Brabandt, 2012 Dec)
|
||||
|
||||
MS-Windows: Patch to make tests copy files to avoid changing the fileformat of
|
||||
the files under version control. (Taro Muraoka, 2013 Jul 5)
|
||||
|
||||
Issue 54: document behavior of -complete, also expands arg.
|
||||
|
||||
- Add regex for 'paragraphs' and 'sections': 'parare' and 'sectre'. Combine
|
||||
@@ -449,8 +550,6 @@ Patch by Christian Brabandt, 2013 Apr 20, unfinished.
|
||||
|
||||
Bug: findfile("any", "file:///tmp;") does not work.
|
||||
|
||||
'ff' is wrong for one-line file without EOL. (Issue 77)
|
||||
|
||||
Patch to set antialiasing style on Windows. (Ondrej Balaz, 2013 Mar 14)
|
||||
Needs a different check for CLEARTYPE_QUALITY.
|
||||
|
||||
@@ -514,15 +613,10 @@ Patch to improve equivalence classes in regexp patterns.
|
||||
Patch with suggestions for starting.txt. (Tony Mechelynck, 2012 Oct 24)
|
||||
But use Gnome instead of GTK?
|
||||
|
||||
Patch to make FocusGained and FocusLost work in modern terminals. (Hayaki
|
||||
Saito, 2013 Apr 24)
|
||||
|
||||
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)
|
||||
|
||||
Issue 72: 'autochdir' causes problems for :vimgrep.
|
||||
|
||||
Session file creation: 'autochdir' causes trouble. Keep it off until after
|
||||
loading all files.
|
||||
|
||||
@@ -543,6 +637,14 @@ MS-Windows resizing problems:
|
||||
causes the window to move unnecessarily. (William E. Skeith III, 2012 Jan
|
||||
12) Patch: 2012 Jan 13 Needs more work (2012 Feb 2)
|
||||
|
||||
Patch to use Modern UI 2.0 for the Nsis installer. (Guopeng Wen, 2010 Jul 30)
|
||||
Latest version: 2011 May 18
|
||||
8 Windows install with NSIS: make it possible to do a silent install, see
|
||||
http://nsis.sourceforge.net/Docs/Chapter4.html#4.12
|
||||
Version from Guopeng Wen that does this (2010 Dec 27)
|
||||
Alternative: MSI installer: https://github.com/petrkle/vim-msi/
|
||||
Or the one on Issue 279
|
||||
|
||||
'iminsert' global value set when using ":setlocal iminsert"? (Wu, 2012 Jun 23)
|
||||
|
||||
Patch to append regexp to tag commands to make it possible to select one out
|
||||
@@ -868,9 +970,6 @@ names, shell commands and the like. (Kikuchan, 2010 Oct 14)
|
||||
Assume the system converts between the actual encoding of the filesystem to
|
||||
the system encoding (usually utf-8).
|
||||
|
||||
Patch to add GUI colors to the terminal, when it supports it. (ZyX, 2013 Jan
|
||||
26, update 2013 Dec 14)
|
||||
|
||||
Problem producing tags file when hebrew.frx is present. It has a BOM.
|
||||
Results in E670. (Tony Mechelynck, 2010 May 2)
|
||||
|
||||
@@ -1529,13 +1628,6 @@ with "gvim -nb:localhost:55555:foo". From nc do: '1:editFile!0 "foo"'. Then
|
||||
go to Insert mode and add a few lines. Then backspacing every other time
|
||||
moves the cursor instead of deleting. (Chris Kaiser, 2007 Sep 25)
|
||||
|
||||
Patch to use Modern UI 2.0 for the Nsis installer. (Guopeng Wen, 2010 Jul 30)
|
||||
Latest version: 2011 May 18
|
||||
8 Windows install with NSIS: make it possible to do a silent install, see
|
||||
http://nsis.sourceforge.net/Docs/Chapter4.html#4.12
|
||||
Version from Guopeng Wen that does this (2010 Dec 27)
|
||||
Alternative: MSI installer: https://github.com/petrkle/vim-msi/
|
||||
|
||||
Windows installer should install 32-bit version of right-click handler also on
|
||||
64-bit systems. (Brian Cunningham, 2011 Dec 28)
|
||||
|
||||
@@ -1559,8 +1651,6 @@ Changes for Win32 makefile. (Mike Williams, 2007 Jan 22, Alexei Alexandrov,
|
||||
Win32: Can't complete shell command names. Why is setting xp_context in
|
||||
set_one_cmd_context() inside #ifndef BACKSLASH_IN_FILENAME?
|
||||
|
||||
Win32: Patch for convert_filterW(). (Taro Muraoka, 2007 Mar 2)
|
||||
|
||||
Win32: Patch for cscope external command. (Mike Williams, 2007 Aug 7)
|
||||
|
||||
Win32: XPM support only works with path without spaces. Patch by Mathias
|
||||
@@ -1599,12 +1689,6 @@ Check for this and use iconv? (Edward L. Fox, 2007 Sep 12)
|
||||
Does the conversion in the other direction work when 'fileencodings' is set
|
||||
properly?
|
||||
|
||||
Add a few features to xxd. (Vadim Vygonets, 2013 Nov 11)
|
||||
Patches: 2013 Nov 19
|
||||
1: Add -e: little endian hexdump
|
||||
2: Add -o: add offset to displayed position
|
||||
3: Change displayed file position width to 8 chars
|
||||
|
||||
Cursor displayed in the wrong position when using 'numberwidth'. (James Vega,
|
||||
2007 Jun 21)
|
||||
|
||||
@@ -2049,8 +2133,6 @@ Awaiting updated patches:
|
||||
Search in 'runtimepath'?
|
||||
More docs needed about how to use this.
|
||||
How to get the messages into the .po files?
|
||||
strchars() Like strlen() and strwidth() but counting characters
|
||||
instead of bytes.
|
||||
confirm() add "flags" argument, with 'v' for vertical
|
||||
layout and 'c' for console dialog. (Haegg)
|
||||
Flemming Madsen has a patch for the 'c' flag
|
||||
@@ -4600,7 +4682,6 @@ Searching:
|
||||
should be ignored (like "*/" or "#endif" inside /* */).
|
||||
Also: use "%" to jump from start to end of syntax region and back.
|
||||
Alternative: use matchit.vim
|
||||
8 "/:/e+1" gets stuck on a match at the end of the line. Do we care?
|
||||
8 A pattern like "\([^a]\+\)\+" takes an awful long time. Recognize that
|
||||
the recursive "\+" is meaningless and optimize for it.
|
||||
This one is also very slow on "/* some comment */": "^\/\*\(.*[^/]\)*$".
|
||||
@@ -5027,8 +5108,6 @@ Argument list:
|
||||
|
||||
Registers:
|
||||
8 Don't display empty registers with ":display". (Etienne)
|
||||
8 Make the # register writable, so that it can be restored after jumping
|
||||
around in windows.
|
||||
8 Add put command that overwrites existing text. Should also work for
|
||||
blocks. Useful to move text around in a table. Works like using "R ^R r"
|
||||
for every line.
|
||||
|
||||
@@ -194,7 +194,7 @@ child, you should have the intention to do this for at least one year.
|
||||
|
||||
How do you know that the money will be spent right? First of all you have my
|
||||
personal guarantee as the author of Vim. I trust the people that are working
|
||||
at the centre, I know them personally. Further more, the centre has been
|
||||
at the centre, I know them personally. Furthermore, the centre has been
|
||||
co-sponsored and inspected by World Vision, Save the Children Fund and is now
|
||||
under the supervision of Pacific Academy Outreach Society. The centre is
|
||||
visited about once a year to check the progress (at our own cost). I have
|
||||
|
||||
@@ -532,7 +532,7 @@ MATCHING ANY SINGLE CHARACTER
|
||||
|
||||
The . (dot) character matches any existing character. For example, the
|
||||
pattern "c.m" matches a string whose first character is a c, whose second
|
||||
character is anything, and whose the third character is m. Example:
|
||||
character is anything, and whose third character is m. Example:
|
||||
|
||||
We use a computer that became the cummin winter. ~
|
||||
xxx xxx xxx
|
||||
|
||||
@@ -135,7 +135,7 @@ For the first file the cursor will be positioned on line "num".
|
||||
If "num" is missing, the cursor will be positioned on the last line.
|
||||
.TP
|
||||
+/{pat}
|
||||
For the first file the cursor will be positioned on the
|
||||
For the first file the cursor will be positioned in the line with the
|
||||
first occurrence of {pat}.
|
||||
See ":help search\-pattern" for the available search patterns.
|
||||
.TP
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*windows.txt* For Vim version 7.4. Last change: 2014 Sep 23
|
||||
*windows.txt* For Vim version 7.4. Last change: 2015 Jan 31
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -263,28 +263,57 @@ left of the Vim window.
|
||||
Closing a window
|
||||
----------------
|
||||
|
||||
:q[uit]
|
||||
:{count}q[uit]
|
||||
CTRL-W q *CTRL-W_q*
|
||||
CTRL-W CTRL-Q *CTRL-W_CTRL-Q*
|
||||
:q[uit] Quit current window. When quitting the last window (not
|
||||
counting a help window), exit Vim.
|
||||
Without {count}: Quit the current window. If {count} is
|
||||
given quit the {count} window.
|
||||
|
||||
When quitting the last window (not counting a help window),
|
||||
exit Vim.
|
||||
|
||||
When 'hidden' is set, and there is only one window for the
|
||||
current buffer, it becomes hidden.
|
||||
When 'hidden' is not set, and there is only one window for the
|
||||
current buffer, and the buffer was changed, the command fails.
|
||||
(Note: CTRL-Q does not work on all terminals)
|
||||
current buffer, it becomes hidden. When 'hidden' is not set,
|
||||
and there is only one window for the current buffer, and the
|
||||
buffer was changed, the command fails.
|
||||
|
||||
(Note: CTRL-Q does not work on all terminals).
|
||||
|
||||
If [count] is greater than the last window number the last
|
||||
window will be closed: >
|
||||
:1quit " quit the first window
|
||||
:$quit " quit the last window
|
||||
:9quit " quit the last window
|
||||
" if there are less than 9 windows opened
|
||||
:-quit " quit the previews window
|
||||
:+quit " quit the next window
|
||||
:+2quit " quit the second next window
|
||||
<
|
||||
:q[uit]!
|
||||
:{count}q[uit]!
|
||||
Without {count}: Quit the current window. If {count} is
|
||||
given quit the {count} window.
|
||||
|
||||
:q[uit]! Quit current window. If this was the last window for a buffer,
|
||||
any changes to that buffer are lost. When quitting the last
|
||||
window (not counting help windows), exit Vim. The contents of
|
||||
the buffer are lost, even when 'hidden' is set.
|
||||
If this was the last window for a buffer, any changes to that
|
||||
buffer are lost. When quitting the last window (not counting
|
||||
help windows), exit Vim. The contents of the buffer are lost,
|
||||
even when 'hidden' is set.
|
||||
|
||||
:clo[se][!]
|
||||
:{count}clo[se][!]
|
||||
CTRL-W c *CTRL-W_c* *:clo* *:close*
|
||||
:clo[se][!] Close current window. When the 'hidden' option is set, or
|
||||
when the buffer was changed and the [!] is used, the buffer
|
||||
becomes hidden (unless there is another window editing it).
|
||||
Without {count}: Close the current window. If {count} is
|
||||
given close the {count} window.
|
||||
|
||||
When the 'hidden' option is set, or when the buffer was
|
||||
changed and the [!] is used, the buffer becomes hidden (unless
|
||||
there is another window editing it).
|
||||
|
||||
When there is only one window in the current tab page and
|
||||
there is another tab page, this closes the current tab page.
|
||||
|tab-page|.
|
||||
|
||||
This command fails when: *E444*
|
||||
- There is only one window on the screen.
|
||||
- When 'hidden' is not set, [!] is not used, the buffer has
|
||||
@@ -298,14 +327,19 @@ CTRL-W CTRL-C *CTRL-W_CTRL-C*
|
||||
command.
|
||||
|
||||
*:hide*
|
||||
:hid[e] Quit current window, unless it is the last window on the
|
||||
screen. The buffer becomes hidden (unless there is another
|
||||
window editing it or 'bufhidden' is "unload" or "delete").
|
||||
:hid[e]
|
||||
:{count}hid[e]
|
||||
Quit the current window, unless it is the last window on the
|
||||
screen. For {count} see |:quit| command.
|
||||
|
||||
The buffer becomes hidden (unless there is another window
|
||||
editing it or 'bufhidden' is "unload", "delete" or "wipe").
|
||||
If the window is the last one in the current tab page the tab
|
||||
page is closed. |tab-page|
|
||||
The value of 'hidden' is irrelevant for this command.
|
||||
Changes to the buffer are not written and won't get lost, so
|
||||
this is a "safe" command.
|
||||
page is closed. |tab-page|
|
||||
|
||||
The value of 'hidden' is irrelevant for this command. Changes
|
||||
to the buffer are not written and won't get lost, so this is a
|
||||
"safe" command.
|
||||
|
||||
:hid[e] {cmd} Execute {cmd} with 'hidden' is set. The previous value of
|
||||
'hidden' is restored after {cmd} has been executed.
|
||||
@@ -314,12 +348,16 @@ CTRL-W CTRL-C *CTRL-W_CTRL-C*
|
||||
< This will edit "Makefile", and hide the current buffer if it
|
||||
has any changes.
|
||||
|
||||
:on[ly][!]
|
||||
:{count}on[ly][!]
|
||||
CTRL-W o *CTRL-W_o* *E445*
|
||||
CTRL-W CTRL-O *CTRL-W_CTRL-O* *:on* *:only*
|
||||
:on[ly][!] Make the current window the only one on the screen. All other
|
||||
windows are closed.
|
||||
Make the current window the only one on the screen. All other
|
||||
windows are closed. For {count} see |:quit| command.
|
||||
|
||||
When the 'hidden' option is set, all buffers in closed windows
|
||||
become hidden.
|
||||
|
||||
When 'hidden' is not set, and the 'autowrite' option is set,
|
||||
modified buffers are written. Otherwise, windows that have
|
||||
buffers that are modified are not removed, unless the [!] is
|
||||
@@ -660,8 +698,9 @@ can also get to them with the buffer list commands, like ":bnext".
|
||||
8. Do a command in all buffers or windows *list-repeat*
|
||||
|
||||
*:windo*
|
||||
:windo {cmd} Execute {cmd} in each window.
|
||||
It works like doing this: >
|
||||
:[range]windo {cmd} Execute {cmd} in each window or if [range] is given
|
||||
only in windows for which the window number lies in
|
||||
the [range]. It works like doing this: >
|
||||
CTRL-W t
|
||||
:{cmd}
|
||||
CTRL-W w
|
||||
@@ -679,8 +718,10 @@ can also get to them with the buffer list commands, like ":bnext".
|
||||
Also see |:tabdo|, |:argdo| and |:bufdo|.
|
||||
|
||||
*:bufdo*
|
||||
:bufdo[!] {cmd} Execute {cmd} in each buffer in the buffer list.
|
||||
It works like doing this: >
|
||||
:[range]bufdo[!] {cmd} Execute {cmd} in each buffer in the buffer list or if
|
||||
[range] is given only for buffers for which their
|
||||
buffer numer is in the [range]. It works like doing
|
||||
this: >
|
||||
:bfirst
|
||||
:{cmd}
|
||||
:bnext
|
||||
@@ -957,8 +998,8 @@ list of buffers. |unlisted-buffer|
|
||||
(the term "unlisted" is a bit confusing then...).
|
||||
|
||||
Each buffer has a unique number. That number will not change,
|
||||
so you can always go to a specific buffer with ":buffer N" or
|
||||
"N CTRL-^", where N is the buffer number.
|
||||
thus you can always go to a specific buffer with ":buffer N"
|
||||
or "N CTRL-^", where N is the buffer number.
|
||||
|
||||
Indicators (chars in the same column are mutually exclusive):
|
||||
u an unlisted buffer (only displayed when [!] is used)
|
||||
@@ -992,7 +1033,11 @@ list of buffers. |unlisted-buffer|
|
||||
Actually, the buffer isn't completely deleted, it is removed
|
||||
from the buffer list |unlisted-buffer| and option values,
|
||||
variables and mappings/abbreviations for the buffer are
|
||||
cleared.
|
||||
cleared. Examples: >
|
||||
:.,$-bdelete " delete buffers from the current one to
|
||||
" last but one
|
||||
:%bdelete " delete all buffers
|
||||
<
|
||||
|
||||
:bdelete[!] {bufname} *E93* *E94*
|
||||
Like ":bdelete[!] [N]", but buffer given by name. Note that a
|
||||
@@ -1016,7 +1061,11 @@ list of buffers. |unlisted-buffer|
|
||||
Like |:bdelete|, but really delete the buffer. Everything
|
||||
related to the buffer is lost. All marks in this buffer
|
||||
become invalid, option settings are lost, etc. Don't use this
|
||||
unless you know what you are doing.
|
||||
unless you know what you are doing. Examples: >
|
||||
:.+,$bwipeout " wipe out all buffers after the current
|
||||
" one
|
||||
:%bwipeout " wipe out all buffers
|
||||
<
|
||||
|
||||
:[N]bun[load][!] *:bun* *:bunload* *E515*
|
||||
:bun[load][!] [N]
|
||||
|
||||
@@ -76,6 +76,16 @@ Change the character encoding in the righthand column from ASCII to EBCDIC.
|
||||
This does not change the hexadecimal representation. The option is
|
||||
meaningless in combinations with \-r, \-p or \-i.
|
||||
.TP
|
||||
.IR \-e
|
||||
Switch to little-endian hexdump.
|
||||
This option treats byte groups as words in little-endian byte order.
|
||||
The default grouping of 4 bytes may be changed using
|
||||
.RI "" \-g .
|
||||
This option only applies to hexdump, leaving the ASCII (or EBCDIC)
|
||||
representation unchanged.
|
||||
The command line switches
|
||||
\-r, \-p, \-i do not work with this mode.
|
||||
.TP
|
||||
.IR "\-g bytes " | " \-groupsize bytes"
|
||||
separate the output of every
|
||||
.RI < bytes >
|
||||
@@ -84,7 +94,7 @@ Specify
|
||||
.I \-g 0
|
||||
to suppress grouping.
|
||||
.RI < Bytes "> defaults to " 2
|
||||
in normal mode and \fI1\fP in bits mode.
|
||||
in normal mode, \fI4\fP in little-endian mode and \fI1\fP in bits mode.
|
||||
Grouping does not apply to postscript or include style.
|
||||
.TP
|
||||
.IR \-h " | " \-help
|
||||
@@ -99,6 +109,11 @@ stop after writing
|
||||
.RI < len >
|
||||
octets.
|
||||
.TP
|
||||
.I \-o offset
|
||||
add
|
||||
.RI < offset >
|
||||
to the displayed file position.
|
||||
.TP
|
||||
.IR \-p " | " \-ps " | " \-postscript " | " \-plain
|
||||
output in postscript continuous hexdump style. Also known as plain hexdump
|
||||
style.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim support file to detect file types
|
||||
"
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2014 Nov 05
|
||||
" Last Change: 2015 Mar 13
|
||||
|
||||
" Listen very carefully, I will say this only once
|
||||
if exists("did_load_filetypes")
|
||||
@@ -1052,6 +1052,9 @@ au BufNewFile,BufRead *.ldif setf ldif
|
||||
" Ld loader
|
||||
au BufNewFile,BufRead *.ld setf ld
|
||||
|
||||
" Less
|
||||
au BufNewFile,BufRead *.less setf less
|
||||
|
||||
" Lex
|
||||
au BufNewFile,BufRead *.lex,*.l,*.lxx,*.l++ setf lex
|
||||
|
||||
@@ -1264,8 +1267,8 @@ au BufNewFile,BufRead */etc/modules.conf,*/etc/modules,*/etc/conf.modules setf m
|
||||
" Mplayer config
|
||||
au BufNewFile,BufRead mplayer.conf,*/.mplayer/config setf mplayerconf
|
||||
|
||||
" Moterola S record
|
||||
au BufNewFile,BufRead *.s19,*.s28,*.s37 setf srec
|
||||
" Motorola S record
|
||||
au BufNewFile,BufRead *.s19,*.s28,*.s37,*.mot,*.srec setf srec
|
||||
|
||||
" Mrxvtrc
|
||||
au BufNewFile,BufRead mrxvtrc,.mrxvtrc setf mrxvtrc
|
||||
@@ -1856,7 +1859,7 @@ au BufNewFile,BufRead sgml.catalog* call s:StarSetf('catalog')
|
||||
|
||||
" Shell scripts (sh, ksh, bash, bash2, csh); Allow .profile_foo etc.
|
||||
" Gentoo ebuilds are actually bash scripts
|
||||
au BufNewFile,BufRead .bashrc*,bashrc,bash.bashrc,.bash_profile*,.bash_logout*,*.bash,*.ebuild call SetFileTypeSH("bash")
|
||||
au BufNewFile,BufRead .bashrc*,bashrc,bash.bashrc,.bash_profile*,.bash_logout*,.bash_aliases*,*.bash,*.ebuild call SetFileTypeSH("bash")
|
||||
au BufNewFile,BufRead .kshrc*,*.ksh call SetFileTypeSH("ksh")
|
||||
au BufNewFile,BufRead */etc/profile,.profile*,*.sh,*.env call SetFileTypeSH(getline(1))
|
||||
|
||||
@@ -2026,6 +2029,10 @@ func! s:FTRules()
|
||||
setf conf " Better than hog
|
||||
return
|
||||
endif
|
||||
if path =~ '^/\(etc\|usr/share\)/polkit-1/rules\.d'
|
||||
setf javascript
|
||||
return
|
||||
endif
|
||||
try
|
||||
let config_lines = readfile('/etc/udev/udev.conf')
|
||||
catch /^Vim\%((\a\+)\)\=:E484/
|
||||
@@ -2502,6 +2509,8 @@ au BufNewFile,BufRead */etc/yum.conf setf dosini
|
||||
|
||||
" Zimbu
|
||||
au BufNewFile,BufRead *.zu setf zimbu
|
||||
" Zimbu Templates
|
||||
au BufNewFile,BufRead *.zut setf zimbutempl
|
||||
|
||||
" Zope
|
||||
" dtml (zope dynamic template markup language), pt (zope page template),
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
" Language: J
|
||||
" Maintainer: David Bürgin <676c7473@gmail.com>
|
||||
" URL: https://github.com/glts/vim-j
|
||||
" Last Change: 2014-04-05
|
||||
" Last Change: 2015-01-11
|
||||
|
||||
if exists('b:did_ftplugin')
|
||||
finish
|
||||
@@ -16,39 +16,41 @@ setlocal iskeyword=48-57,A-Z,_,a-z
|
||||
setlocal comments=:NB.
|
||||
setlocal commentstring=NB.\ %s
|
||||
setlocal formatoptions-=t
|
||||
setlocal shiftwidth=2 softtabstop=2 expandtab
|
||||
setlocal shiftwidth=2
|
||||
setlocal softtabstop=2
|
||||
setlocal expandtab
|
||||
setlocal matchpairs=(:)
|
||||
|
||||
let b:undo_ftplugin = 'setlocal matchpairs< expandtab< softtabstop< shiftwidth< formatoptions< commentstring< comments< iskeyword<'
|
||||
|
||||
" Section movement with ]] ][ [[ []. The start/end patterns below are amended
|
||||
" inside the function in order to avoid matching on the current cursor line.
|
||||
let s:sectionstart = '.\{-}\<\%([0-4]\|13\|noun\|adverb\|conjunction\|verb\|monad\|dyad\)\s\+\%(:\s*0\|def\s\+0\|define\)\>.*'
|
||||
let s:sectionstart = '\%(\s*Note\|.\{-}\<\%([0-4]\|13\|noun\|adverb\|conjunction\|verb\|monad\|dyad\)\s\+\%(:\s*0\|def\s\+0\|define\)\)\>.*'
|
||||
let s:sectionend = '\s*)\s*'
|
||||
|
||||
function! s:SearchSection(end, backwards, visualmode) abort
|
||||
if a:visualmode !=# ''
|
||||
normal! gv
|
||||
endif
|
||||
let flags = a:backwards ? 'bsW' : 'sW'
|
||||
let l:flags = a:backwards ? 'bsW' : 'sW'
|
||||
if a:end
|
||||
call search('^' . s:sectionend . (a:backwards ? '\n\_.\{-}\%#' : '$'), flags)
|
||||
call search('^' . s:sectionend . (a:backwards ? '\n\_.\{-}\%#' : '$'), l:flags)
|
||||
else
|
||||
call search('^' . s:sectionstart . (a:backwards ? '\n\_.\{-}\%#' : '$'), flags)
|
||||
call search('^' . s:sectionstart . (a:backwards ? '\n\_.\{-}\%#' : '$'), l:flags)
|
||||
endif
|
||||
endfunction
|
||||
|
||||
noremap <script> <buffer> <silent> ]] :<C-U>call <SID>SearchSection(0, 0, '')<CR>
|
||||
xnoremap <script> <buffer> <silent> ]] :<C-U>call <SID>SearchSection(0, 0, visualmode())<CR>
|
||||
noremap <buffer> <silent> ]] :<C-U>call <SID>SearchSection(0, 0, '')<CR>
|
||||
xnoremap <buffer> <silent> ]] :<C-U>call <SID>SearchSection(0, 0, visualmode())<CR>
|
||||
sunmap <buffer> ]]
|
||||
noremap <script> <buffer> <silent> ][ :<C-U>call <SID>SearchSection(1, 0, '')<CR>
|
||||
xnoremap <script> <buffer> <silent> ][ :<C-U>call <SID>SearchSection(1, 0, visualmode())<CR>
|
||||
noremap <buffer> <silent> ][ :<C-U>call <SID>SearchSection(1, 0, '')<CR>
|
||||
xnoremap <buffer> <silent> ][ :<C-U>call <SID>SearchSection(1, 0, visualmode())<CR>
|
||||
sunmap <buffer> ][
|
||||
noremap <script> <buffer> <silent> [[ :<C-U>call <SID>SearchSection(0, 1, '')<CR>
|
||||
xnoremap <script> <buffer> <silent> [[ :<C-U>call <SID>SearchSection(0, 1, visualmode())<CR>
|
||||
noremap <buffer> <silent> [[ :<C-U>call <SID>SearchSection(0, 1, '')<CR>
|
||||
xnoremap <buffer> <silent> [[ :<C-U>call <SID>SearchSection(0, 1, visualmode())<CR>
|
||||
sunmap <buffer> [[
|
||||
noremap <script> <buffer> <silent> [] :<C-U>call <SID>SearchSection(1, 1, '')<CR>
|
||||
xnoremap <script> <buffer> <silent> [] :<C-U>call <SID>SearchSection(1, 1, visualmode())<CR>
|
||||
noremap <buffer> <silent> [] :<C-U>call <SID>SearchSection(1, 1, '')<CR>
|
||||
xnoremap <buffer> <silent> [] :<C-U>call <SID>SearchSection(1, 1, visualmode())<CR>
|
||||
sunmap <buffer> []
|
||||
|
||||
let b:undo_ftplugin .= ' | silent! execute "unmap <buffer> ]]"'
|
||||
@@ -66,7 +68,7 @@ endif
|
||||
" Enhanced "%" matching (see ":help matchit")
|
||||
if exists('loaded_matchit') && !exists('b:match_words')
|
||||
let b:match_ignorecase = 0
|
||||
let b:match_words = '^.\{-}\<\%([0-4]\|13\|noun\|adverb\|conjunction\|verb\|monad\|dyad\)\s\+\%(\:\s*0\|def\s\+0\|define\)\>:^\s*\:\s*$:^\s*)\s*$'
|
||||
let b:match_words = '^\%(\s*Note\|.\{-}\<\%([0-4]\|13\|noun\|adverb\|conjunction\|verb\|monad\|dyad\)\s\+\%(\:\s*0\|def\s\+0\|define\)\)\>:^\s*\:\s*$:^\s*)\s*$'
|
||||
\ . ',\<\%(for\%(_\a\k*\)\=\|if\|select\|try\|whil\%(e\|st\)\)\.:\<\%(case\|catch[dt]\=\|else\%(if\)\=\|fcase\)\.:\<end\.'
|
||||
let b:undo_ftplugin .= ' | unlet! b:match_ignorecase b:match_words'
|
||||
endif
|
||||
|
||||
20
runtime/ftplugin/less.vim
Normal file
20
runtime/ftplugin/less.vim
Normal file
@@ -0,0 +1,20 @@
|
||||
" Vim filetype plugin
|
||||
" Language: less
|
||||
" Maintainer: Alessandro Vioni <jenoma@gmail.com>
|
||||
" URL: https://github.com/genoma/vim-less
|
||||
" Last Change: 2014 November 24
|
||||
|
||||
" Only do this when not done yet for this buffer
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
let b:undo_ftplugin = "setl cms< def< inc< inex< ofu< sua<"
|
||||
|
||||
setlocal formatoptions-=t formatoptions+=croql
|
||||
|
||||
setlocal comments=:// commentstring=//\ %s
|
||||
|
||||
setlocal omnifunc=csscomplete#CompleteCSS
|
||||
setlocal suffixesadd=.less
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: man
|
||||
" Maintainer: SungHyun Nam <goweol@gmail.com>
|
||||
" Last Change: 2013 Jul 17
|
||||
" Last Change: 2014 Dec 29
|
||||
|
||||
" To make the ":Man" command available before editing a manual page, source
|
||||
" this script from your startup vimrc file.
|
||||
@@ -63,7 +63,9 @@ endtry
|
||||
func <SID>PreGetPage(cnt)
|
||||
if a:cnt == 0
|
||||
let old_isk = &iskeyword
|
||||
setl iskeyword+=(,)
|
||||
if &ft == 'man'
|
||||
setl iskeyword+=(,)
|
||||
endif
|
||||
let str = expand("<cword>")
|
||||
let &l:iskeyword = old_isk
|
||||
let page = substitute(str, '(*\(\k\+\).*', '\1', '')
|
||||
@@ -157,10 +159,10 @@ func <SID>GetPage(...)
|
||||
silent exec "r!/usr/bin/man ".s:GetCmdArg(sect, page)." | col -b"
|
||||
" Remove blank lines from top and bottom.
|
||||
while getline(1) =~ '^\s*$'
|
||||
silent norm ggdd
|
||||
silent keepj norm ggdd
|
||||
endwhile
|
||||
while getline('$') =~ '^\s*$'
|
||||
silent norm Gdd
|
||||
silent keepj norm Gdd
|
||||
endwhile
|
||||
1
|
||||
setl ft=man nomod
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: matlab
|
||||
" Maintainer: Jake Wasserman <jwasserman at gmail dot com>
|
||||
" Last Changed: 2006 Jan 12
|
||||
" Last Changed: 2014 Dec 30
|
||||
|
||||
" Contributors:
|
||||
" Charles Campbell
|
||||
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
@@ -12,10 +15,11 @@ let s:save_cpo = &cpo
|
||||
set cpo-=C
|
||||
|
||||
if exists("loaded_matchit")
|
||||
let s:conditionalEnd = '\(([^()]*\)\@!\<end\>\([^()]*)\)\@!'
|
||||
let b:match_words = '\<if\>\|\<while\>\|\<for\>\|\<switch\>:' .
|
||||
\ s:conditionalEnd . ',\<if\>:\<elseif\>:\<else\>:' .
|
||||
\ s:conditionalEnd
|
||||
let s:conditionalEnd = '\%(([^()]*\)\@!\<end\>\%([^()]*)\)\@!'
|
||||
let b:match_words=
|
||||
\ '\<\%(if\|switch\|for\|while\)\>:\<\%(elseif\|case\|break\|continue\|else\|otherwise\)\>:'.s:conditionalEnd.','.
|
||||
\ '\<function\>:\<return\>:\<endfunction\>'
|
||||
unlet s:conditionalEnd
|
||||
endif
|
||||
|
||||
setlocal suffixesadd=.m
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
" Filename: spec.vim
|
||||
" Maintainer: Igor Gnatenko i.gnatenko.brain@gmail.com
|
||||
" Former Maintainer: Gustavo Niemeyer <niemeyer@conectiva.com> (until March 2014)
|
||||
" Last Change: Sun Mar 2 11:24 MSK 2014 Igor Gnatenko
|
||||
" Last Change: Fri Feb 20 16:01 MSK 2014 Igor Gnatenko
|
||||
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
@@ -18,7 +18,9 @@ if !exists("no_plugin_maps") && !exists("no_spec_maps")
|
||||
endif
|
||||
endif
|
||||
|
||||
noremap <buffer> <unique> <script> <Plug>SpecChangelog :call <SID>SpecChangelog("")<CR>
|
||||
if !hasmapto("call <SID>SpecChangelog(\"\")<CR>")
|
||||
noremap <buffer> <unique> <script> <Plug>SpecChangelog :call <SID>SpecChangelog("")<CR>
|
||||
endif
|
||||
|
||||
if !exists("*s:SpecChangelog")
|
||||
function s:SpecChangelog(format)
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
" Vim indent file
|
||||
" Language: Fortran95 (and Fortran90, Fortran77, F and elf90)
|
||||
" Version: 0.40
|
||||
" Last Change: 2011 Dec. 28
|
||||
" Maintainer: Ajit J. Thakkar <ajit@unb.ca>; <http://www.unb.ca/chem/ajit/>
|
||||
" Language: Fortran 2008 (and earlier versions: 2003, 95, 90, and 77)
|
||||
" Version: 0.41
|
||||
" Last Change: 2015 Jan. 15
|
||||
" Maintainer: Ajit J. Thakkar <ajit@unb.ca>; <http://www2.unb.ca/~ajit/>
|
||||
" Usage: Do :help fortran-indent from Vim
|
||||
" Credits:
|
||||
" Useful suggestions were made by: Albert Oliver Serra.
|
||||
|
||||
" Only load this indent file when no other was loaded.
|
||||
if exists("b:did_indent")
|
||||
@@ -36,8 +38,8 @@ if !exists("b:fortran_fixed_source")
|
||||
else
|
||||
" f90 and f95 allow both fixed and free source form
|
||||
" assume fixed source form unless signs of free source form
|
||||
" are detected in the first five columns of the first 250 lines
|
||||
" Detection becomes more accurate and time-consuming if more lines
|
||||
" are detected in the first five columns of the first s:lmax lines.
|
||||
" Detection becomes more accurate and more time-consuming if more lines
|
||||
" are checked. Increase the limit below if you keep lots of comments at
|
||||
" the very top of each file and you have a fast computer
|
||||
let s:lmax = 500
|
||||
@@ -129,7 +131,7 @@ function FortranGetIndent(lnum)
|
||||
if getline(v:lnum) =~? '^\s*\(\d\+\s\)\=\s*'
|
||||
\. '\(else\|else\s*if\|else\s*where\|case\|'
|
||||
\. 'end\s*\(if\|where\|select\|interface\|'
|
||||
\. 'type\|forall\|associate\|enum\)\)\>'
|
||||
\. 'type\|forall\|associate\|enum\|block\)\)\>'
|
||||
let ind = ind - &sw
|
||||
" Fix indent for case statement immediately after select
|
||||
if prevstat =~? '\<select\s\+\(case\|type\)\>'
|
||||
@@ -141,8 +143,11 @@ function FortranGetIndent(lnum)
|
||||
if prevstat =~ '&\s*$' && prev2stat !~ '&\s*$'
|
||||
let ind = ind + &sw
|
||||
endif
|
||||
if prevstat =~ '&\s*$' && prevstat =~ '\<else\s*if\>'
|
||||
let ind = ind - &sw
|
||||
endif
|
||||
"Line after last continuation line
|
||||
if prevstat !~ '&\s*$' && prev2stat =~ '&\s*$'
|
||||
if prevstat !~ '&\s*$' && prev2stat =~ '&\s*$' && prevstat !~? '\<then\>'
|
||||
let ind = ind - &sw
|
||||
endif
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
" Header: "{{{
|
||||
" Maintainer: Bram Moolenaar
|
||||
" Original Author: Andy Wokula <anwoku@yahoo.de>
|
||||
" Last Change: 2014 Aug 23
|
||||
" Last Change: 2015 Jan 11
|
||||
" Version: 1.0
|
||||
" Description: HTML indent script with cached state for faster indenting on a
|
||||
" range of lines.
|
||||
@@ -245,6 +245,10 @@ call s:AddITags(s:indent_tags, [
|
||||
\ 'header', 'group', 'keygen', 'mark', 'math', 'meter', 'nav', 'output',
|
||||
\ 'progress', 'ruby', 'section', 'svg', 'texture', 'time', 'video',
|
||||
\ 'wbr', 'text'])
|
||||
|
||||
" Tags added for web components:
|
||||
call s:AddITags(s:indent_tags, [
|
||||
\ 'content', 'shadow', 'template'])
|
||||
"}}}
|
||||
|
||||
" Add Block Tags: these contain alien content
|
||||
@@ -287,7 +291,7 @@ func! s:CountITags(text)
|
||||
let s:nextrel = 0 " relative indent steps for next line [unit &sw]:
|
||||
let s:block = 0 " assume starting outside of a block
|
||||
let s:countonly = 1 " don't change state
|
||||
call substitute(a:text, '<\zs/\=\w\+\>\|<!--\|-->', '\=s:CheckTag(submatch(0))', 'g')
|
||||
call substitute(a:text, '<\zs/\=\w\+\(-\w\+\)*\>\|<!--\|-->', '\=s:CheckTag(submatch(0))', 'g')
|
||||
let s:countonly = 0
|
||||
endfunc "}}}
|
||||
|
||||
@@ -299,7 +303,7 @@ func! s:CountTagsAndState(text)
|
||||
let s:nextrel = 0 " relative indent steps for next line [unit &sw]:
|
||||
|
||||
let s:block = b:hi_newstate.block
|
||||
let tmp = substitute(a:text, '<\zs/\=\w\+\>\|<!--\|-->', '\=s:CheckTag(submatch(0))', 'g')
|
||||
let tmp = substitute(a:text, '<\zs/\=\w\+\(-\w\+\)*\>\|<!--\|-->', '\=s:CheckTag(submatch(0))', 'g')
|
||||
if s:block == 3
|
||||
let b:hi_newstate.scripttype = s:GetScriptType(matchstr(tmp, '\C.*<SCRIPT\>\zs[^>]*'))
|
||||
endif
|
||||
@@ -311,6 +315,9 @@ func! s:CheckTag(itag)
|
||||
"{{{
|
||||
" Returns an empty string or "SCRIPT".
|
||||
" a:itag can be "tag" or "/tag" or "<!--" or "-->"
|
||||
if (s:CheckCustomTag(a:itag))
|
||||
return ""
|
||||
endif
|
||||
let ind = s:get_tag(a:itag)
|
||||
if ind == -1
|
||||
" closing tag
|
||||
@@ -365,6 +372,36 @@ func! s:CheckBlockTag(blocktag, ind)
|
||||
return ""
|
||||
endfunc "}}}
|
||||
|
||||
" Used by s:CheckTag().
|
||||
func! s:CheckCustomTag(ctag)
|
||||
"{{{
|
||||
" Returns 1 if ctag is the tag for a custom element, 0 otherwise.
|
||||
" a:ctag can be "tag" or "/tag" or "<!--" or "-->"
|
||||
let pattern = '\%\(\w\+-\)\+\w\+'
|
||||
if match(a:ctag, pattern) == -1
|
||||
return 0
|
||||
endif
|
||||
if matchstr(a:ctag, '\/\ze.\+') == "/"
|
||||
" closing tag
|
||||
if s:block != 0
|
||||
" ignore ctag within a block
|
||||
return 1
|
||||
endif
|
||||
if s:nextrel == 0
|
||||
let s:curind -= 1
|
||||
else
|
||||
let s:nextrel -= 1
|
||||
endif
|
||||
else
|
||||
" opening tag
|
||||
if s:block != 0
|
||||
return 1
|
||||
endif
|
||||
let s:nextrel += 1
|
||||
endif
|
||||
return 1
|
||||
endfunc "}}}
|
||||
|
||||
" Return the <script> type: either "javascript" or ""
|
||||
func! s:GetScriptType(str)
|
||||
"{{{
|
||||
@@ -883,7 +920,7 @@ endfunc "}}}
|
||||
" THE MAIN INDENT FUNCTION. Return the amount of indent for v:lnum.
|
||||
func! HtmlIndent()
|
||||
"{{{
|
||||
if prevnonblank(v:lnum - 1) <= 1
|
||||
if prevnonblank(v:lnum - 1) < 1
|
||||
" First non-blank line has no indent.
|
||||
return 0
|
||||
endif
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
" Language: J
|
||||
" Maintainer: David Bürgin <676c7473@gmail.com>
|
||||
" URL: https://github.com/glts/vim-j
|
||||
" Last Change: 2014-04-05
|
||||
" Last Change: 2015-01-11
|
||||
|
||||
if exists('b:did_indent')
|
||||
finish
|
||||
@@ -26,25 +26,25 @@ if !exists('g:j_indent_definitions')
|
||||
endif
|
||||
|
||||
function GetJIndent() abort
|
||||
let prevlnum = prevnonblank(v:lnum-1)
|
||||
if prevlnum == 0
|
||||
let l:prevlnum = prevnonblank(v:lnum - 1)
|
||||
if l:prevlnum == 0
|
||||
return 0
|
||||
endif
|
||||
let indent = indent(prevlnum)
|
||||
let prevline = getline(prevlnum)
|
||||
if prevline =~# '^\s*\%(case\|catch[dt]\=\|do\|else\%(if\)\=\|fcase\|for\%(_\a\k*\)\=\|if\|select\|try\|whil\%(e\|st\)\)\.\%(\%(\<end\.\)\@!.\)*$'
|
||||
let l:indent = indent(l:prevlnum)
|
||||
let l:prevline = getline(l:prevlnum)
|
||||
if l:prevline =~# '^\s*\%(case\|catch[dt]\=\|do\|else\%(if\)\=\|fcase\|for\%(_\a\k*\)\=\|if\|select\|try\|whil\%(e\|st\)\)\.\%(\%(\<end\.\)\@!.\)*$'
|
||||
" Increase indentation after an initial control word that starts or
|
||||
" continues a block and is not terminated by "end."
|
||||
let indent += shiftwidth()
|
||||
elseif g:j_indent_definitions && (prevline =~# '\<\%([1-4]\|13\|adverb\|conjunction\|verb\|monad\|dyad\)\s\+\%(:\s*0\|def\s\+0\|define\)\>' || prevline =~# '^\s*:\s*$')
|
||||
let l:indent += shiftwidth()
|
||||
elseif g:j_indent_definitions && (l:prevline =~# '\<\%([1-4]\|13\|adverb\|conjunction\|verb\|monad\|dyad\)\s\+\%(:\s*0\|def\s\+0\|define\)\>' || l:prevline =~# '^\s*:\s*$')
|
||||
" Increase indentation in explicit definitions of adverbs, conjunctions,
|
||||
" and verbs
|
||||
let indent += shiftwidth()
|
||||
let l:indent += shiftwidth()
|
||||
endif
|
||||
" Decrease indentation in lines that start with either control words that
|
||||
" continue or end a block, or the special items ")" and ":"
|
||||
if getline(v:lnum) =~# '^\s*\%()\|:\|\%(case\|catch[dt]\=\|do\|else\%(if\)\=\|end\|fcase\)\.\)'
|
||||
let indent -= shiftwidth()
|
||||
let l:indent -= shiftwidth()
|
||||
endif
|
||||
return indent
|
||||
return l:indent
|
||||
endfunction
|
||||
|
||||
13
runtime/indent/less.vim
Normal file
13
runtime/indent/less.vim
Normal file
@@ -0,0 +1,13 @@
|
||||
" Vim indent file
|
||||
" Language: less
|
||||
" Maintainer: Alessandro Vioni <jenoma@gmail.com>
|
||||
" URL: https://github.com/genoma/vim-less
|
||||
" Last Change: 2014 November 24
|
||||
|
||||
if exists("b:did_indent")
|
||||
finish
|
||||
endif
|
||||
|
||||
runtime! indent/css.vim
|
||||
|
||||
" vim:set sw=2:
|
||||
@@ -2,7 +2,7 @@
|
||||
" Language: Lua script
|
||||
" Maintainer: Marcus Aurelius Farias <marcus.cf 'at' bol.com.br>
|
||||
" First Author: Max Ischenko <mfi 'at' ukr.net>
|
||||
" Last Change: 2007 Jul 23
|
||||
" Last Change: 2014 Nov 12
|
||||
|
||||
" Only load this indent file when no other was loaded.
|
||||
if exists("b:did_indent")
|
||||
@@ -54,7 +54,7 @@ function! GetLuaIndent()
|
||||
|
||||
" Subtract a 'shiftwidth' on end, else (and elseif), until and '}'
|
||||
" This is the part that requires 'indentkeys'.
|
||||
let midx = match(getline(v:lnum), '^\s*\%(end\|else\|until\|}\)')
|
||||
let midx = match(getline(v:lnum), '^\s*\%(end\>\|else\>\|until\>\|}\)')
|
||||
if midx != -1 && synIDattr(synID(v:lnum, midx + 1, 1), "name") != "luaComment"
|
||||
let ind = ind - &shiftwidth
|
||||
endif
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
" Author: John Wellesz <John.wellesz (AT) teaser (DOT) fr>
|
||||
" URL: http://www.2072productions.com/vim/indent/php.vim
|
||||
" Home: https://github.com/2072/PHP-Indenting-for-VIm
|
||||
" Last Change: 2014 April 3rd
|
||||
" Version: 1.49
|
||||
" Last Change: 2014 November 26th
|
||||
" Version: 1.57
|
||||
"
|
||||
"
|
||||
" Type :help php-indent for available options
|
||||
@@ -48,7 +48,7 @@ endif
|
||||
let b:did_indent = 1
|
||||
|
||||
|
||||
let php_sync_method = 0
|
||||
let g:php_sync_method = 0
|
||||
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ setlocal nocindent
|
||||
setlocal nolisp
|
||||
|
||||
setlocal indentexpr=GetPhpIndent()
|
||||
setlocal indentkeys=0{,0},0),:,!^F,o,O,e,*<Return>,=?>,=<?,=*/
|
||||
setlocal indentkeys=0{,0},0),0],:,!^F,o,O,e,*<Return>,=?>,=<?,=*/
|
||||
|
||||
|
||||
|
||||
@@ -128,11 +128,14 @@ if exists("*GetPhpIndent")
|
||||
endif
|
||||
|
||||
|
||||
let s:PHP_validVariable = '[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*'
|
||||
let s:notPhpHereDoc = '\%(break\|return\|continue\|exit\|die\|else\)'
|
||||
let s:blockstart = '\%(\%(\%(}\s*\)\=else\%(\s\+\)\=\)\=if\>\|\%(}\s*\)\?else\>\|do\>\|while\>\|switch\>\|case\>\|default\>\|for\%(each\)\=\>\|declare\>\|class\>\|trait\>\|use\>\|interface\>\|abstract\>\|final\>\|try\>\|\%(}\s*\)\=catch\>\|\%(}\s*\)\=finally\>\)'
|
||||
let s:functionDecl = '\<function\>\%(\s\+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*\)\=\s*(.*'
|
||||
let s:functionDecl = '\<function\>\%(\s\+'.s:PHP_validVariable.'\)\=\s*(.*'
|
||||
let s:endline= '\s*\%(//.*\|#.*\|/\*.*\*/\s*\)\=$'
|
||||
let s:terminated = '\%(\%(;\%(\s*\%(?>\|}\)\)\=\|<<<''\=\a\w*''\=$\|^\s*}\)'.s:endline.'\)\|^[^''"`]*[''"`]$'
|
||||
|
||||
|
||||
let s:terminated = '\%(\%(;\%(\s*\%(?>\|}\)\)\=\|<<<''\=\a\w*''\=$\|^\s*}\|^\s*'.s:PHP_validVariable.':\)'.s:endline.'\)\|^[^''"`]*[''"`]$'
|
||||
let s:PHP_startindenttag = '<?\%(.*?>\)\@!\|<script[^>]*>\%(.*<\/script>\)\@!'
|
||||
|
||||
|
||||
@@ -140,7 +143,7 @@ let s:PHP_startindenttag = '<?\%(.*?>\)\@!\|<script[^>]*>\%(.*<\/script>\)\@!'
|
||||
let s:escapeDebugStops = 0
|
||||
function! DebugPrintReturn(scriptLine)
|
||||
|
||||
if ! s:escapeDebugStops
|
||||
if ! s:escapeDebugStops
|
||||
echo "debug:" . a:scriptLine
|
||||
let c = getchar()
|
||||
if c == "\<Del>"
|
||||
@@ -158,8 +161,6 @@ function! GetLastRealCodeLNum(startline) " {{{
|
||||
let lnum = b:GetLastRealCodeLNum_ADD
|
||||
endif
|
||||
|
||||
let old_lnum = lnum
|
||||
|
||||
while lnum > 1
|
||||
let lnum = prevnonblank(lnum)
|
||||
let lastline = getline(lnum)
|
||||
@@ -217,7 +218,7 @@ function! GetLastRealCodeLNum(startline) " {{{
|
||||
let lnum=0
|
||||
endif
|
||||
|
||||
if b:InPHPcode_and_script && !b:InPHPcode
|
||||
if b:InPHPcode_and_script && 1 > b:InPHPcode
|
||||
let b:InPHPcode_and_script = 0
|
||||
endif
|
||||
|
||||
@@ -237,7 +238,7 @@ endfun
|
||||
|
||||
function! Skippmatch() " {{{
|
||||
let synname = synIDattr(synID(line("."), col("."), 0), "name")
|
||||
if synname == "Delimiter" || synname == "phpRegionDelimiter" || synname =~# "^phpParent" || synname == "phpArrayParens" || synname =~# '^php\%(Block\|Brace\)' || synname == "javaScriptBraces" || synname =~# "^phpComment" && b:UserIsTypingComment
|
||||
if synname == "Delimiter" || synname == "phpRegionDelimiter" || synname =~# "^phpParent" || synname == "phpArrayParens" || synname =~# '^php\%(Block\|Brace\)' || synname == "javaScriptBraces" || synname =~# '^php\%(Doc\)\?Comment' && b:UserIsTypingComment
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
@@ -249,7 +250,7 @@ function! FindOpenBracket(lnum, blockStarter) " {{{
|
||||
let line = searchpair('{', '', '}', 'bW', 'Skippmatch()')
|
||||
|
||||
if a:blockStarter == 1
|
||||
while line > 1
|
||||
while line > 1
|
||||
let linec = getline(line)
|
||||
|
||||
if linec =~ s:terminated || linec =~ '^\s*\%(' . s:blockstart . '\)\|'. s:functionDecl . s:endline
|
||||
@@ -310,7 +311,6 @@ let s:defaultORcase = '^\s*\%(default\|case\).*:'
|
||||
|
||||
function! FindTheSwitchIndent (lnum) " {{{
|
||||
|
||||
|
||||
let test = GetLastRealCodeLNum(a:lnum - 1)
|
||||
|
||||
if test <= 1
|
||||
@@ -353,7 +353,7 @@ function! IslinePHP (lnum, tofind) " {{{
|
||||
|
||||
if synname == 'phpStringSingle' || synname == 'phpStringDouble' || synname == 'phpBacktick'
|
||||
if cline !~ '^\s*[''"`]'
|
||||
return ""
|
||||
return "SpecStringEntrails"
|
||||
else
|
||||
return synname
|
||||
end
|
||||
@@ -372,7 +372,7 @@ if ! s:autoresetoptions
|
||||
endif
|
||||
|
||||
function! ResetPhpOptions()
|
||||
if ! b:optionsset && &filetype == "php"
|
||||
if ! b:optionsset && &filetype =~ "php"
|
||||
if b:PHP_autoformatcomment
|
||||
|
||||
setlocal comments=s1:/*,mb:*,ex:*/,://,:#
|
||||
@@ -418,7 +418,7 @@ function! GetPhpIndent()
|
||||
let b:PHP_indentinghuge = 0
|
||||
let b:PHP_CurrentIndentLevel = b:PHP_default_indenting
|
||||
endif
|
||||
let b:PHP_lastindented = v:lnum
|
||||
let real_PHP_lastindented = v:lnum
|
||||
let b:PHP_LastIndentedWasComment=0
|
||||
let b:PHP_InsideMultilineComment=0
|
||||
let b:PHP_indentbeforelast = 0
|
||||
@@ -430,9 +430,12 @@ function! GetPhpIndent()
|
||||
|
||||
elseif v:lnum > b:PHP_lastindented
|
||||
let real_PHP_lastindented = b:PHP_lastindented
|
||||
let b:PHP_lastindented = v:lnum
|
||||
else
|
||||
let real_PHP_lastindented = v:lnum
|
||||
endif
|
||||
|
||||
let b:PHP_lastindented = v:lnum
|
||||
|
||||
|
||||
if !b:InPHPcode_checked " {{{ One time check
|
||||
let b:InPHPcode_checked = 1
|
||||
@@ -443,11 +446,15 @@ function! GetPhpIndent()
|
||||
endif
|
||||
|
||||
if synname!=""
|
||||
if synname != "phpHereDoc" && synname != "phpHereDocDelimiter"
|
||||
if synname == "SpecStringEntrails"
|
||||
let b:InPHPcode = -1 " thumb down
|
||||
let b:UserIsTypingComment = 0
|
||||
let b:InPHPcode_tofind = ""
|
||||
elseif synname != "phpHereDoc" && synname != "phpHereDocDelimiter"
|
||||
let b:InPHPcode = 1
|
||||
let b:InPHPcode_tofind = ""
|
||||
|
||||
if synname =~# "^phpComment"
|
||||
if synname =~# '^php\%(Doc\)\?Comment'
|
||||
let b:UserIsTypingComment = 1
|
||||
else
|
||||
let b:UserIsTypingComment = 0
|
||||
@@ -483,9 +490,16 @@ function! GetPhpIndent()
|
||||
|
||||
if b:InPHPcode_tofind!=""
|
||||
if cline =~? b:InPHPcode_tofind
|
||||
let b:InPHPcode = 1
|
||||
let b:InPHPcode_tofind = ""
|
||||
let b:UserIsTypingComment = 0
|
||||
|
||||
if b:InPHPcode == -1
|
||||
let b:InPHPcode = 1
|
||||
return -1
|
||||
end
|
||||
|
||||
let b:InPHPcode = 1
|
||||
|
||||
if cline =~ '\*/'
|
||||
call cursor(v:lnum, 1)
|
||||
if cline !~ '^\*/'
|
||||
@@ -510,7 +524,7 @@ function! GetPhpIndent()
|
||||
endif
|
||||
endif
|
||||
|
||||
if b:InPHPcode
|
||||
if 1 == b:InPHPcode
|
||||
|
||||
if !b:InPHPcode_and_script && last_line =~ '\%(<?.*\)\@<!?>\%(.*<?\)\@!' && IslinePHP(lnum, '?>')=~"Delimiter"
|
||||
if cline !~? s:PHP_startindenttag
|
||||
@@ -520,8 +534,8 @@ function! GetPhpIndent()
|
||||
let b:InPHPcode_and_script = 1
|
||||
endif
|
||||
|
||||
elseif last_line =~ '^[^''"`]\+[''"`]$' " a string identifier with nothing after it and no other string identifier before
|
||||
let b:InPHPcode = 0
|
||||
elseif last_line =~ '^[^''"`]\+[''"`]$'
|
||||
let b:InPHPcode = -1
|
||||
let b:InPHPcode_tofind = substitute( last_line, '^.*\([''"`]\).*$', '^[^\1]*\1[;,]$', '')
|
||||
elseif last_line =~? '<<<''\=\a\w*''\=$'
|
||||
let b:InPHPcode = 0
|
||||
@@ -538,7 +552,7 @@ function! GetPhpIndent()
|
||||
endif " }}}
|
||||
|
||||
|
||||
if !b:InPHPcode && !b:InPHPcode_and_script
|
||||
if 1 > b:InPHPcode && !b:InPHPcode_and_script
|
||||
return -1
|
||||
endif
|
||||
|
||||
@@ -568,7 +582,7 @@ function! GetPhpIndent()
|
||||
endif
|
||||
endif
|
||||
|
||||
if !b:PHP_InsideMultilineComment && cline =~ '^\s*/\*' && cline !~ '\*/\s*$'
|
||||
if !b:PHP_InsideMultilineComment && cline =~ '^\s*/\*\%(.*\*/\)\@!'
|
||||
if getline(v:lnum + 1) !~ '^\s*\*'
|
||||
return -1
|
||||
endif
|
||||
@@ -669,17 +683,17 @@ function! GetPhpIndent()
|
||||
endwhile
|
||||
|
||||
elseif last_line =~# unstated && cline !~ '^\s*);\='.endline
|
||||
let ind = ind + &sw " we indent one level further when the preceding line is not stated
|
||||
let ind = ind + &sw
|
||||
return ind + addSpecial
|
||||
|
||||
elseif (ind != b:PHP_default_indenting || last_line =~ '^[)\]]' ) && last_line =~ terminated " Added || last_line =~ '^)' on 2007-12-30 (array indenting problem broke other things)
|
||||
elseif (ind != b:PHP_default_indenting || last_line =~ '^[)\]]' ) && last_line =~ terminated
|
||||
let previous_line = last_line
|
||||
let last_line_num = lnum
|
||||
let LastLineClosed = 1
|
||||
|
||||
let isSingleLineBlock = 0
|
||||
while 1
|
||||
if ! isSingleLineBlock && previous_line =~ '^\s*}\|;\s*}'.endline " XXX
|
||||
if ! isSingleLineBlock && previous_line =~ '^\s*}\|;\s*}'.endline
|
||||
|
||||
call cursor(last_line_num, 1)
|
||||
if previous_line !~ '^}'
|
||||
@@ -740,14 +754,19 @@ function! GetPhpIndent()
|
||||
endif
|
||||
endif
|
||||
|
||||
let plinnum = GetLastRealCodeLNum(lnum - 1)
|
||||
if (last_line !~ '^\s*}\%(}}\)\@!')
|
||||
let plinnum = GetLastRealCodeLNum(lnum - 1)
|
||||
else
|
||||
let plinnum = GetLastRealCodeLNum(FindOpenBracket(lnum, 1) - 1)
|
||||
endif
|
||||
|
||||
let AntepenultimateLine = getline(plinnum)
|
||||
|
||||
let last_line = substitute(last_line,"\\(//\\|#\\)\\(\\(\\([^\"']*\\([\"']\\)[^\"']*\\5\\)\\+[^\"']*$\\)\\|\\([^\"']*$\\)\\)",'','')
|
||||
|
||||
|
||||
if ind == b:PHP_default_indenting
|
||||
if last_line =~ terminated
|
||||
if last_line =~ terminated && last_line !~# s:defaultORcase
|
||||
let LastLineClosed = 1
|
||||
endif
|
||||
endif
|
||||
@@ -755,10 +774,10 @@ function! GetPhpIndent()
|
||||
if !LastLineClosed
|
||||
|
||||
|
||||
if last_line =~# '[{(\[]'.endline || last_line =~? '\h\w*\s*(.*,$' && AntepenultimateLine !~ '[,(]'.endline
|
||||
if last_line =~# '[{(\[]'.endline || last_line =~? '\h\w*\s*(.*,$' && AntepenultimateLine !~ '[,(\[]'.endline
|
||||
|
||||
let dontIndent = 0
|
||||
if last_line =~ '\S\+\s*{'.endline && last_line !~ '^\s*\%(' . s:blockstart . '\)\|'. s:functionDecl . s:endline
|
||||
if last_line =~ '\S\+\s*{'.endline && last_line !~ '^\s*)\s*{'.endline && last_line !~ '^\s*\%(' . s:blockstart . '\)\|'. s:functionDecl . s:endline
|
||||
let dontIndent = 1
|
||||
endif
|
||||
|
||||
@@ -774,7 +793,7 @@ function! GetPhpIndent()
|
||||
|
||||
elseif last_line =~ '\S\+\s*),'.endline
|
||||
call cursor(lnum, 1)
|
||||
call search('),'.endline, 'W') " line never begins with ) so no need for 'c' flag
|
||||
call search('),'.endline, 'W')
|
||||
let openedparent = searchpair('(', '', ')', 'bW', 'Skippmatch()')
|
||||
if openedparent != lnum
|
||||
let ind = indent(openedparent)
|
||||
@@ -784,7 +803,7 @@ function! GetPhpIndent()
|
||||
let ind = ind + &sw
|
||||
|
||||
|
||||
elseif AntepenultimateLine =~ '\%(;\%(\s*\%(?>\|}\)\)\=\|<<<''\=\a\w*''\=$\|^\s*}\|{\)'.endline . '\|' . s:defaultORcase
|
||||
elseif AntepenultimateLine =~ '{'.endline || AntepenultimateLine =~ terminated || AntepenultimateLine =~# s:defaultORcase
|
||||
let ind = ind + &sw
|
||||
endif
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim indent file
|
||||
" Language: Vim script
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2014 Sep 19
|
||||
" Last Change: 2014 Dec 12
|
||||
|
||||
" Only load this indent file when no other was loaded.
|
||||
if exists("b:did_indent")
|
||||
@@ -89,7 +89,7 @@ function GetVimIndentIntern()
|
||||
|
||||
" Subtract a 'shiftwidth' on a :endif, :endwhile, :catch, :finally, :endtry,
|
||||
" :endfun, :else and :augroup END.
|
||||
if cur_text =~ '^\s*\(ene\@!\|cat\|fina\|el\|aug\%[roup]\s*!\=\s\+END\)'
|
||||
if cur_text =~ '^\s*\(ene\@!\|cat\|fina\|el\|aug\%[roup]\s*!\=\s\+[eE][nN][dD]\)'
|
||||
let ind = ind - &sw
|
||||
endif
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
" Vim Plugin: Edit the file with an existing Vim if possible
|
||||
" Maintainer: Bram Moolenaar
|
||||
" Last Change: 2013 Feb 24
|
||||
" Last Change: 2014 Dec 06
|
||||
|
||||
" This is a plugin, drop it in your (Unix) ~/.vim/plugin or (Win32)
|
||||
" $VIM/vimfiles/plugin directory. Or make a symbolic link, so that you
|
||||
@@ -112,7 +112,7 @@ func! EditExisting(fname, command)
|
||||
endif
|
||||
|
||||
if a:command != ''
|
||||
exe "normal " . a:command
|
||||
exe "normal! " . a:command
|
||||
endif
|
||||
|
||||
redraw
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" These commands create the option window.
|
||||
"
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2014 Oct 09
|
||||
" Last Change: 2014 Nov 19
|
||||
|
||||
" If there already is an option window, jump to that one.
|
||||
if bufwinnr("option-window") > 0
|
||||
@@ -149,7 +149,7 @@ setlocal ts=15 tw=0 noro buftype=nofile
|
||||
call append(0, '" Each "set" line shows the current value of an option (on the left).')
|
||||
call append(1, '" Hit <CR> on a "set" line to execute it.')
|
||||
call append(2, '" A boolean option will be toggled.')
|
||||
call append(3, '" For other options you can edit the value.')
|
||||
call append(3, '" For other options you can edit the value before hitting <CR>.')
|
||||
call append(4, '" Hit <CR> on a help line to open a help window on this option.')
|
||||
call append(5, '" Hit <CR> on an index line to jump there.')
|
||||
call append(6, '" Hit <Space> on a "set" line to refresh it.')
|
||||
@@ -1194,8 +1194,10 @@ if has("keymap")
|
||||
call <SID>OptionL("kmp")
|
||||
endif
|
||||
if has("langmap")
|
||||
call append("$", "langmap\ttranslate characters for Normal mode")
|
||||
call append("$", "langmap\tlist of characters that are translated in Normal mode")
|
||||
call <SID>OptionG("lmap", &lmap)
|
||||
call append("$", "langnoremap\tdon't apply 'langmap' to mapped characters")
|
||||
call <SID>BinOptionG("lnr", &lnr)
|
||||
endif
|
||||
if has("xim")
|
||||
call append("$", "imdisable\twhen set never use IM; overrules following IM options")
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
" netrwPlugin.vim: Handles file transfer and remote directory listing across a network
|
||||
" PLUGIN SECTION
|
||||
" Date: Jan 22, 2014
|
||||
" Date: Nov 07, 2014
|
||||
" Maintainer: Charles E Campbell <NdrOchip@ScampbellPfamily.AbizM-NOSPAM>
|
||||
" GetLatestVimScripts: 1075 1 :AutoInstall: netrw.vim
|
||||
" Copyright: Copyright (C) 1999-2013 Charles E. Campbell {{{1
|
||||
@@ -20,7 +20,7 @@
|
||||
if &cp || exists("g:loaded_netrwPlugin")
|
||||
finish
|
||||
endif
|
||||
let g:loaded_netrwPlugin = "v152"
|
||||
let g:loaded_netrwPlugin = "v153"
|
||||
if v:version < 702
|
||||
echohl WarningMsg
|
||||
echo "***warning*** you need vim version 7.2 for this version of netrw"
|
||||
@@ -54,15 +54,15 @@ augroup END
|
||||
" Network Browsing Reading Writing: {{{2
|
||||
augroup Network
|
||||
au!
|
||||
au BufReadCmd file://* call netrw#FileUrlRead(expand("<amatch>"))
|
||||
au BufReadCmd ftp://*,rcp://*,scp://*,http://*,https://*,dav://*,davs://*,rsync://*,sftp://* exe "sil doau BufReadPre ".fnameescape(expand("<amatch>"))|call netrw#Nread(2,expand("<amatch>"))|exe "sil doau BufReadPost ".fnameescape(expand("<amatch>"))
|
||||
au FileReadCmd ftp://*,rcp://*,scp://*,http://*,https://*,dav://*,davs://*,rsync://*,sftp://* exe "sil doau FileReadPre ".fnameescape(expand("<amatch>"))|call netrw#Nread(1,expand("<amatch>"))|exe "sil doau FileReadPost ".fnameescape(expand("<amatch>"))
|
||||
au BufWriteCmd ftp://*,rcp://*,scp://*,http://*,dav://*,davs://*,rsync://*,sftp://* exe "sil doau BufWritePre ".fnameescape(expand("<amatch>"))|exe 'Nwrite '.fnameescape(expand("<amatch>"))|exe "sil doau BufWritePost ".fnameescape(expand("<amatch>"))
|
||||
au FileWriteCmd ftp://*,rcp://*,scp://*,http://*,dav://*,davs://*,rsync://*,sftp://* exe "sil doau FileWritePre ".fnameescape(expand("<amatch>"))|exe "'[,']".'Nwrite '.fnameescape(expand("<amatch>"))|exe "sil doau FileWritePost ".fnameescape(expand("<amatch>"))
|
||||
try
|
||||
au SourceCmd ftp://*,rcp://*,scp://*,http://*,https://*,dav://*,davs://*,rsync://*,sftp://* exe 'Nsource '.fnameescape(expand("<amatch>"))
|
||||
catch /^Vim\%((\a\+)\)\=:E216/
|
||||
au SourcePre ftp://*,rcp://*,scp://*,http://*,https://*,dav://*,davs://*,rsync://*,sftp://* exe 'Nsource '.fnameescape(expand("<amatch>"))
|
||||
au BufReadCmd file://* call netrw#FileUrlRead(expand("<amatch>"))
|
||||
au BufReadCmd ftp://*,rcp://*,scp://*,http://*,file://*,https://*,dav://*,davs://*,rsync://*,sftp://* exe "sil doau BufReadPre ".fnameescape(expand("<amatch>"))|call netrw#Nread(2,expand("<amatch>"))|exe "sil doau BufReadPost ".fnameescape(expand("<amatch>"))
|
||||
au FileReadCmd ftp://*,rcp://*,scp://*,http://*,file://*,https://*,dav://*,davs://*,rsync://*,sftp://* exe "sil doau FileReadPre ".fnameescape(expand("<amatch>"))|call netrw#Nread(1,expand("<amatch>"))|exe "sil doau FileReadPost ".fnameescape(expand("<amatch>"))
|
||||
au BufWriteCmd ftp://*,rcp://*,scp://*,http://*,file://*,dav://*,davs://*,rsync://*,sftp://* exe "sil doau BufWritePre ".fnameescape(expand("<amatch>"))|exe 'Nwrite '.fnameescape(expand("<amatch>"))|exe "sil doau BufWritePost ".fnameescape(expand("<amatch>"))
|
||||
au FileWriteCmd ftp://*,rcp://*,scp://*,http://*,file://*,dav://*,davs://*,rsync://*,sftp://* exe "sil doau FileWritePre ".fnameescape(expand("<amatch>"))|exe "'[,']".'Nwrite '.fnameescape(expand("<amatch>"))|exe "sil doau FileWritePost ".fnameescape(expand("<amatch>"))
|
||||
try
|
||||
au SourceCmd ftp://*,rcp://*,scp://*,http://*,file://*,https://*,dav://*,davs://*,rsync://*,sftp://* exe 'Nsource '.fnameescape(expand("<amatch>"))
|
||||
catch /^Vim\%((\a\+)\)\=:E216/
|
||||
au SourcePre ftp://*,rcp://*,scp://*,http://*,file://*,https://*,dav://*,davs://*,rsync://*,sftp://* exe 'Nsource '.fnameescape(expand("<amatch>"))
|
||||
endtry
|
||||
augroup END
|
||||
|
||||
@@ -81,18 +81,26 @@ com! -nargs=* -bar -bang -count=0 -complete=dir Vexplore call netrw#Explore(<cou
|
||||
com! -nargs=* -bar -count=0 -complete=dir Texplore call netrw#Explore(<count>,0,6 ,<q-args>)
|
||||
com! -nargs=* -bar -bang Nexplore call netrw#Explore(-1,0,0,<q-args>)
|
||||
com! -nargs=* -bar -bang Pexplore call netrw#Explore(-2,0,0,<q-args>)
|
||||
com! -nargs=* -bar -complete=dir Lexplore call netrw#Lexplore(<q-args>)
|
||||
com! -nargs=* -bar -bang -count=0 -complete=dir Lexplore call netrw#Lexplore(<count>,<bang>0,<q-args>)
|
||||
|
||||
" Commands: NetrwSettings {{{2
|
||||
com! -nargs=0 NetrwSettings call netrwSettings#NetrwSettings()
|
||||
com! -bang NetrwClean call netrw#Clean(<bang>0)
|
||||
|
||||
" Maps:
|
||||
if !exists("g:netrw_nogx") && maparg('gx','n') == ""
|
||||
if !hasmapto('<Plug>NetrwBrowseX')
|
||||
nmap <unique> gx <Plug>NetrwBrowseX
|
||||
if !exists("g:netrw_nogx")
|
||||
if maparg('gx','n') == ""
|
||||
if !hasmapto('<Plug>NetrwBrowseX')
|
||||
nmap <unique> gx <Plug>NetrwBrowseX
|
||||
endif
|
||||
nno <silent> <Plug>NetrwBrowseX :call netrw#BrowseX(expand((exists("g:netrw_gx")? g:netrw_gx : '<cfile>')),netrw#CheckIfRemote())<cr>
|
||||
endif
|
||||
if maparg('gx','v') == ""
|
||||
if !hasmapto('<Plug>NetrwBrowseXVis')
|
||||
vmap <unique> gx <Plug>NetrwBrowseXVis
|
||||
endif
|
||||
vno <silent> <Plug>NetrwBrowseXVis :<c-u>call netrw#BrowseXVis()<cr>
|
||||
endif
|
||||
nno <silent> <Plug>NetrwBrowseX :call netrw#NetrwBrowseX(expand("<cfile>"),0)<cr>
|
||||
endif
|
||||
|
||||
" ---------------------------------------------------------------------
|
||||
@@ -119,7 +127,7 @@ fun! s:LocalBrowse(dirname)
|
||||
" call Decho("(LocalBrowse) dirname<".a:dirname."> (isdirectory, amiga)")
|
||||
if a:dirname != '' && isdirectory(a:dirname)
|
||||
sil! call netrw#LocalBrowseCheck(a:dirname)
|
||||
if exists("w:netrw_bannercnt")
|
||||
if exists("w:netrw_bannercnt") && line('.') < w:netrw_bannercnt
|
||||
exe w:netrw_bannercnt
|
||||
endif
|
||||
endif
|
||||
@@ -128,7 +136,7 @@ fun! s:LocalBrowse(dirname)
|
||||
" call Decho("(LocalBrowse) dirname<".a:dirname."> ft=".&ft." (isdirectory, not amiga)")
|
||||
" call Dredir("LocalBrowse ft last set: ","verbose set ft")
|
||||
sil! call netrw#LocalBrowseCheck(a:dirname)
|
||||
if exists("w:netrw_bannercnt")
|
||||
if exists("w:netrw_bannercnt") && line('.') < w:netrw_bannercnt
|
||||
exe w:netrw_bannercnt
|
||||
endif
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
" Vim syntax file
|
||||
" Language: AmigaDos
|
||||
" Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Sep 11, 2006
|
||||
" Version: 6
|
||||
" URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
|
||||
" Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Oct 23, 2014
|
||||
" Version: 7
|
||||
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_AMIGA
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
" Vim syntax file
|
||||
" Language: Asterisk config file
|
||||
" Maintainer: brc007
|
||||
" Maintainer: Jean Aunis <jean.aunis@yahoo.fr>
|
||||
" Previous Maintainer: brc007
|
||||
" Updated for 1.2 by Tilghman Lesher (Corydon76)
|
||||
" Last Change: 2006 Mar 20
|
||||
" Last Change: 2015 Feb 27
|
||||
" version 0.4
|
||||
"
|
||||
if version < 600
|
||||
@@ -17,18 +18,19 @@ syn sync fromstart
|
||||
syn keyword asteriskTodo TODO contained
|
||||
syn match asteriskComment ";.*" contains=asteriskTodo
|
||||
syn match asteriskContext "\[.\{-}\]"
|
||||
syn match asteriskExten "^\s*exten\s*=>\?\s*[^,]\+" contains=asteriskPattern
|
||||
syn match asteriskExten "^\s*\zsexten\s*=>\?\s*[^,]\+\ze," contains=asteriskPattern nextgroup=asteriskPriority
|
||||
syn match asteriskExten "^\s*\zssame\s*=>\?\s*\ze" nextgroup=asteriskPriority
|
||||
syn match asteriskExten "^\s*\(register\|channel\|ignorepat\|include\|\(no\)\?load\)\s*=>\?"
|
||||
syn match asteriskPattern "_\(\[[[:alnum:]#*\-]\+\]\|[[:alnum:]#*]\)*\.\?" contained
|
||||
syn match asteriskPattern "[^A-Za-z0-9,]\zs[[:alnum:]#*]\+\ze" contained
|
||||
syn match asteriskApp ",\zs[a-zA-Z]\+\ze$"
|
||||
syn match asteriskApp ",\zs[a-zA-Z]\+\ze("
|
||||
" Digits plus oldlabel (newlabel)
|
||||
syn match asteriskPriority ",\zs[[:digit:]]\+\(+[[:alpha:]][[:alnum:]_]*\)\?\(([[:alpha:]][[:alnum:]_]*)\)\?\ze," contains=asteriskLabel
|
||||
syn match asteriskPriority "\zs[[:digit:]]\+\(+[[:alpha:]][[:alnum:]_]*\)\?\(([[:alpha:]][[:alnum:]_]*)\)\?\ze," contains=asteriskLabel
|
||||
" oldlabel plus digits (newlabel)
|
||||
syn match asteriskPriority ",\zs[[:alpha:]][[:alnum:]_]*+[[:digit:]]\+\(([[:alpha:]][[:alnum:]_]*)\)\?\ze," contains=asteriskLabel
|
||||
syn match asteriskPriority "\zs[[:alpha:]][[:alnum:]_]*+[[:digit:]]\+\(([[:alpha:]][[:alnum:]_]*)\)\?\ze," contains=asteriskLabel
|
||||
" s or n plus digits (newlabel)
|
||||
syn match asteriskPriority ",\zs[sn]\(+[[:digit:]]\+\)\?\(([[:alpha:]][[:alnum:]_]*)\)\?\ze," contains=asteriskLabel
|
||||
syn match asteriskPriority "\zs[sn]\(+[[:digit:]]\+\)\?\(([[:alpha:]][[:alnum:]_]*)\)\?\ze," contains=asteriskLabel
|
||||
syn match asteriskLabel "(\zs[[:alpha:]][[:alnum:]]*\ze)" contained
|
||||
syn match asteriskError "^\s*#\s*[[:alnum:]]*"
|
||||
syn match asteriskInclude "^\s*#\s*\(include\|exec\)\s.*"
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
" Vim syntax file
|
||||
" Language: awk, nawk, gawk, mawk
|
||||
" Maintainer: Antonio Colombo <azc100@gmail.com>
|
||||
" Last Change: 2012 May 18
|
||||
" Last Change: 2014 Oct 21
|
||||
|
||||
" AWK ref. is: Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger
|
||||
" The AWK Programming Language, Addison-Wesley, 1988
|
||||
|
||||
" GAWK ref. is: Arnold D. Robbins
|
||||
" Effective AWK Programming, Third Edition, O'Reilly, 2001
|
||||
" Effective AWK Programming, Fourth Edition, O'Reilly, 2015
|
||||
" (also available with the gawk source distribution)
|
||||
|
||||
" MAWK is a "new awk" meaning it implements AWK ref.
|
||||
" mawk conforms to the Posix 1003.2 (draft 11.3)
|
||||
@@ -33,17 +35,27 @@ set cpo&vim
|
||||
syn keyword awkStatement break continue delete exit
|
||||
syn keyword awkStatement function getline next
|
||||
syn keyword awkStatement print printf return
|
||||
" GAWK ref. p. 117
|
||||
" GAWK ref. Chapter 7
|
||||
syn keyword awkStatement nextfile
|
||||
" AWK ref. p. 42, GAWK ref. p. 142-166
|
||||
syn keyword awkFunction atan2 close cos exp fflush int log rand sin sqrt srand
|
||||
syn keyword awkFunction gsub index length match split sprintf sub
|
||||
syn keyword awkFunction substr system
|
||||
" GAWK ref. p. 142-166
|
||||
syn keyword awkFunction asort gensub mktime strftime strtonum systime
|
||||
"
|
||||
" GAWK ref. Chapter 9, Functions
|
||||
"
|
||||
" Numeric Functions
|
||||
syn keyword awkFunction atan2 cos div exp int log rand sin sqrt srand
|
||||
" String Manipulation Functions
|
||||
syn keyword awkFunction asort asort1 gensub gsub index length match
|
||||
syn keyword awkFunction patsplit split sprintf strtonum sub substr
|
||||
syn keyword awkFunction tolower toupper
|
||||
syn keyword awkFunction and or xor compl lshift rshift
|
||||
syn keyword awkFunction dcgettext bindtextdomain
|
||||
" Input Output Functions
|
||||
syn keyword awkFunction close fflush system
|
||||
" Time Functions
|
||||
syn keyword awkFunction mktime strftime systime
|
||||
" Bit Manipulation Functions
|
||||
syn keyword awkFunction and compl lshift or rshift xor
|
||||
" Getting Type Function
|
||||
syn keyword awkFunction isarray
|
||||
" String-Translation Functions
|
||||
syn keyword awkFunction bindtextdomain dcgettext dcngetext
|
||||
|
||||
syn keyword awkConditional if else
|
||||
syn keyword awkRepeat while for
|
||||
@@ -51,13 +63,16 @@ syn keyword awkRepeat while for
|
||||
syn keyword awkTodo contained TODO
|
||||
|
||||
syn keyword awkPatterns BEGIN END
|
||||
" AWK ref. p. 36
|
||||
syn keyword awkVariables ARGC ARGV FILENAME FNR FS NF NR
|
||||
syn keyword awkVariables OFMT OFS ORS RLENGTH RS RSTART SUBSEP
|
||||
" GAWK ref. p. 120-126
|
||||
syn keyword awkVariables ARGIND BINMODE CONVFMT ENVIRON ERRNO
|
||||
syn keyword awkVariables FIELDWIDTHS IGNORECASE LINT PROCINFO
|
||||
syn keyword awkVariables RT RLENGTH TEXTDOMAIN
|
||||
|
||||
" GAWK ref. Chapter 7
|
||||
" Built-in Variables That Control awk
|
||||
syn keyword awkVariables BINMODE CONVFMT FIELDWIDTHS FPAT FS
|
||||
syn keyword awkVariables IGNORECASE LINT OFMT OFS ORS PREC
|
||||
syn keyword awkVariables ROUNDMODE RS SUBSEP TEXTDOMAIN
|
||||
" Built-in Variables That Convey Information
|
||||
syn keyword awkVariables ARGC ARGV ARGIND ENVIRON ERRNO FILENAME
|
||||
syn keyword awkVariables FNR NF FUNCTAB NR PROCINFO RLENGTH RSTART
|
||||
syn keyword awkVariables RT SYMTAB
|
||||
|
||||
syn keyword awkRepeat do
|
||||
|
||||
@@ -115,15 +130,15 @@ syn case match
|
||||
"syn match awkIdentifier "\<[a-zA-Z_][a-zA-Z0-9_]*\>"
|
||||
|
||||
" Arithmetic operators: +, and - take care of ++, and --
|
||||
"syn match awkOperator "+\|-\|\*\|/\|%\|="
|
||||
"syn match awkOperator "+=\|-=\|\*=\|/=\|%="
|
||||
"syn match awkOperator "^\|^="
|
||||
syn match awkOperator "+\|-\|\*\|/\|%\|="
|
||||
syn match awkOperator "+=\|-=\|\*=\|/=\|%="
|
||||
syn match awkOperator "^\|^="
|
||||
|
||||
" Comparison expressions.
|
||||
"syn match awkExpression "==\|>=\|=>\|<=\|=<\|\!="
|
||||
"syn match awkExpression "\~\|\!\~"
|
||||
"syn match awkExpression "?\|:"
|
||||
"syn keyword awkExpression in
|
||||
syn match awkExpression "==\|>=\|=>\|<=\|=<\|\!="
|
||||
syn match awkExpression "\~\|\!\~"
|
||||
syn match awkExpression "?\|:"
|
||||
syn keyword awkExpression in
|
||||
|
||||
" Boolean Logic (OR, AND, NOT)
|
||||
"syn match awkBoolLogic "||\|&&\|\!"
|
||||
@@ -187,8 +202,8 @@ if version >= 508 || !exists("did_awk_syn_inits")
|
||||
HiLink awkFloat Float
|
||||
|
||||
HiLink awkFileIO Special
|
||||
"HiLink awkOperator Special
|
||||
"HiLink awkExpression Special
|
||||
HiLink awkOperator Special
|
||||
HiLink awkExpression Special
|
||||
HiLink awkBoolLogic Special
|
||||
|
||||
HiLink awkPatterns Special
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim syntax file
|
||||
" Language: C
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2014 Sep 23
|
||||
" Last Change: 2015 Mar 05
|
||||
|
||||
" Quit when a (custom) syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
@@ -47,24 +47,24 @@ if !exists("c_no_cformat")
|
||||
endif
|
||||
|
||||
" cCppString: same as cString, but ends at end of line
|
||||
if s:ft ==# "cpp" && !exists("cpp_no_cpp11")
|
||||
if s:ft ==# "cpp" && !exists("cpp_no_cpp11") && !exists("c_no_cformat")
|
||||
" ISO C++11
|
||||
syn region cString start=+\(L\|u\|u8\|U\|R\|LR\|u8R\|uR\|UR\)\="+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,cFormat,@Spell extend
|
||||
syn region cCppString start=+\(L\|u\|u8\|U\|R\|LR\|u8R\|uR\|UR\)\="+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end='$' contains=cSpecial,cFormat,@Spell
|
||||
elseif s:ft ==# "c" && !exists("c_no_c11")
|
||||
elseif s:ft ==# "c" && !exists("c_no_c11") && !exists("c_no_cformat")
|
||||
" ISO C99
|
||||
syn region cString start=+\%(L\|U\|u8\)\="+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,cFormat,@Spell extend
|
||||
syn region cCppString start=+\%(L\|U\|u8\)\="+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end='$' contains=cSpecial,cFormat,@Spell
|
||||
else
|
||||
" older C or C++
|
||||
syn match cFormat display "%%" contained
|
||||
syn region cString start=+L\="+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,cFormat,@Spell extend
|
||||
syn region cCppString start=+L\="+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end='$' contains=cSpecial,cFormat,@Spell
|
||||
endif
|
||||
|
||||
syn region cCppOut2 contained start="0" end="^\s*\(%:\|#\)\s*\(endif\>\|else\>\|elif\>\)" contains=cSpaceError,cCppSkip
|
||||
syn region cCppSkip contained start="^\s*\(%:\|#\)\s*\(if\>\|ifdef\>\|ifndef\>\)" skip="\\$" end="^\s*\(%:\|#\)\s*endif\>" contains=cSpaceError,cCppSkip
|
||||
|
||||
syn cluster cStringGroup contains=cCppString,cCppOut2,cCppSkip
|
||||
syn cluster cStringGroup contains=cCppString,cCppSkip
|
||||
|
||||
syn match cCharacter "L\='[^\\]'"
|
||||
syn match cCharacter "L'[^']*'" contains=cSpecial
|
||||
@@ -81,7 +81,11 @@ syn match cSpecialCharacter display "L'\\x\x\+'"
|
||||
|
||||
if (s:ft ==# "c" && !exists("c_no_c11")) || (s:ft ==# "cpp" && !exists("cpp_no_cpp11"))
|
||||
" ISO C11 or ISO C++ 11
|
||||
syn region cString start=+\%(U\|u8\=\)"+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,cFormat,@Spell extend
|
||||
if exists("c_no_cformat")
|
||||
syn region cString start=+\%(U\|u8\=\)"+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,@Spell extend
|
||||
else
|
||||
syn region cString start=+\%(U\|u8\=\)"+ skip=+\\\\\|\\"+ end=+"+ contains=cSpecial,cFormat,@Spell extend
|
||||
endif
|
||||
syn match cCharacter "[Uu]'[^\\]'"
|
||||
syn match cCharacter "[Uu]'[^']*'" contains=cSpecial
|
||||
if exists("c_gnu")
|
||||
@@ -331,6 +335,8 @@ if !exists("c_no_ansi") || exists("c_ansi_constants") || exists("c_gnu")
|
||||
" POSIX 2001
|
||||
syn keyword cConstant SIGBUS SIGPOLL SIGPROF SIGSYS SIGURG
|
||||
syn keyword cConstant SIGVTALRM SIGXCPU SIGXFSZ
|
||||
" non-POSIX signals
|
||||
syn keyword cConstant SIGWINCH SIGINFO
|
||||
" Add POSIX errors as well
|
||||
syn keyword cConstant E2BIG EACCES EAGAIN EBADF EBADMSG EBUSY
|
||||
syn keyword cConstant ECANCELED ECHILD EDEADLK EDOM EEXIST EFAULT
|
||||
@@ -388,8 +394,13 @@ endif
|
||||
syn cluster cLabelGroup contains=cUserLabel
|
||||
syn match cUserCont display "^\s*\I\i*\s*:$" contains=@cLabelGroup
|
||||
syn match cUserCont display ";\s*\I\i*\s*:$" contains=@cLabelGroup
|
||||
syn match cUserCont display "^\s*\I\i*\s*:[^:]"me=e-1 contains=@cLabelGroup
|
||||
syn match cUserCont display ";\s*\I\i*\s*:[^:]"me=e-1 contains=@cLabelGroup
|
||||
if s:ft ==# 'cpp'
|
||||
syn match cUserCont display "^\s*\%(class\|struct\|enum\)\@!\I\i*\s*:[^:]"me=e-1 contains=@cLabelGroup
|
||||
syn match cUserCont display ";\s*\%(class\|struct\|enum\)\@!\I\i*\s*:[^:]"me=e-1 contains=@cLabelGroup
|
||||
else
|
||||
syn match cUserCont display "^\s*\I\i*\s*:[^:]"me=e-1 contains=@cLabelGroup
|
||||
syn match cUserCont display ";\s*\I\i*\s*:[^:]"me=e-1 contains=@cLabelGroup
|
||||
endif
|
||||
|
||||
syn match cUserLabel display "\I\i*" contained
|
||||
|
||||
@@ -462,8 +473,7 @@ hi def link cTodo Todo
|
||||
hi def link cBadContinuation Error
|
||||
hi def link cCppOutSkip cCppOutIf2
|
||||
hi def link cCppInElse2 cCppOutIf2
|
||||
hi def link cCppOutIf2 cCppOut2 " Old syntax group for #if 0 body
|
||||
hi def link cCppOut2 cCppOut " Old syntax group for #if of #if 0
|
||||
hi def link cCppOutIf2 cCppOut
|
||||
hi def link cCppOut Comment
|
||||
|
||||
let b:current_syntax = "c"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
" Vim syntax file
|
||||
" Language: COBOL
|
||||
" Maintainer: Tim Pope <vimNOSPAM@tpope.info>
|
||||
" Language: COBOL
|
||||
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
|
||||
" (formerly Davyd Ondrejko <vondraco@columbus.rr.com>)
|
||||
" (formerly Sitaram Chamarty <sitaram@diac.com> and
|
||||
" James Mitchell <james_mitchell@acm.org>)
|
||||
" $Id: cobol.vim,v 1.2 2007/05/05 18:23:43 vimboss Exp $
|
||||
" James Mitchell <james_mitchell@acm.org>)
|
||||
" Last Change: 2015 Feb 13
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
@@ -145,7 +145,7 @@ syn match cobolString /'[^']*\('\|$\)/
|
||||
syn match cobolIndicator "\%7c[D-]" contained
|
||||
|
||||
if exists("cobol_legacy_code")
|
||||
syn region cobolCondFlow contains=ALLBUT,cobolLine start="\<\(IF\|INVALID\|END\|EOP\)\>" skip=/\('\|"\)[^"]\{-}\("\|'\|$\)/ end="\." keepend
|
||||
syn region cobolCondFlow contains=ALLBUT,cobolLine,cobolBadLine start="\<\(IF\|INVALID\|END\|EOP\)\>" skip=/\('\|"\)[^"]\{-}\("\|'\|$\)/ end="\." keepend
|
||||
endif
|
||||
|
||||
" many legacy sources have junk in columns 1-6: must be before others
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
" Vim syntax file
|
||||
" Language: configure.in script: M4 with sh
|
||||
" Maintainer: Christian Hammesr <ch@lathspell.westend.com>
|
||||
" Last Change: 2008 Sep 03
|
||||
" Last Change: 2015 Jan 14
|
||||
" (patch from Yngve Inntjore Levinsen to detect AC_MSG)
|
||||
" (patch from Khym Chanur to add @Spell)
|
||||
|
||||
" Well, I actually even do not know much about m4. This explains why there
|
||||
" is probably very much missing here, yet !
|
||||
" But I missed a good hilighting when editing my GNU autoconf/automake
|
||||
" But I missed good highlighting when editing my GNU autoconf/automake
|
||||
" script, so I wrote this quick and dirty patch.
|
||||
|
||||
|
||||
@@ -20,14 +22,19 @@ endif
|
||||
" define the config syntax
|
||||
syn match configdelimiter "[()\[\];,]"
|
||||
syn match configoperator "[=|&\*\+\<\>]"
|
||||
syn match configcomment "\(dnl.*\)\|\(#.*\)"
|
||||
syn match configcomment "\(dnl.*\)\|\(#.*\)" contains=configDnl,@Spell
|
||||
syn match configfunction "\<[A-Z_][A-Z0-9_]*\>"
|
||||
syn match confignumber "[-+]\=\<\d\+\(\.\d*\)\=\>"
|
||||
syn keyword configDnl dnl contained
|
||||
syn keyword configkeyword if then else fi test for in do done
|
||||
syn keyword configspecial cat rm eval
|
||||
syn region configstring start=+"+ skip=+\\"+ end=+"+
|
||||
syn region configstring start=+'+ skip=+\\'+ end=+'+
|
||||
syn region configstring start=+`+ skip=+\\'+ end=+`+
|
||||
|
||||
" This shortens the script, see syn-ext-match..
|
||||
syn region configstring start=+\z(["'`]\)+ skip=+\\\z1+ end=+\z1+ contains=@Spell
|
||||
|
||||
" Anything inside AC_MSG_TYPE([...]) and AC_MSG_TYPE(...) is a string.
|
||||
syn region configstring matchgroup=configfunction start="AC_MSG_[A-Z]*\ze(\[" matchgroup=configdelimiter end="\])" contains=configdelimiter,@Spell
|
||||
syn region configstring matchgroup=configfunction start="AC_MSG_[A-Z]*\ze([^[]" matchgroup=configdelimiter end=")" contains=configdelimiter,@Spell
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
@@ -43,6 +50,7 @@ if version >= 508 || !exists("did_config_syntax_inits")
|
||||
HiLink configdelimiter Delimiter
|
||||
HiLink configoperator Operator
|
||||
HiLink configcomment Comment
|
||||
HiLink configDnl Comment
|
||||
HiLink configfunction Function
|
||||
HiLink confignumber Number
|
||||
HiLink configkeyword Keyword
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
" Vim syntax file
|
||||
" Language: C++
|
||||
" Current Maintainer: vim-jp (https://github.com/vim-jp/cpp-vim)
|
||||
" Current Maintainer: vim-jp (https://github.com/vim-jp/vim-cpp)
|
||||
" Previous Maintainer: Ken Shan <ccshan@post.harvard.edu>
|
||||
" Last Change: 2014 May 14
|
||||
" Last Change: 2015 Mar 1
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
@@ -32,14 +32,21 @@ syn match cppCast "\<\(const\|static\|dynamic\|reinterpret\)_cast\s*$"
|
||||
syn keyword cppStorageClass mutable
|
||||
syn keyword cppStructure class typename template namespace
|
||||
syn keyword cppBoolean true false
|
||||
syn keyword cppConstant __cplusplus
|
||||
|
||||
" C++ 11 extensions
|
||||
if !exists("cpp_no_cpp11")
|
||||
syn keyword cppType override final
|
||||
syn keyword cppExceptions noexcept
|
||||
syn keyword cppStorageClass constexpr decltype
|
||||
syn keyword cppStorageClass constexpr decltype thread_local
|
||||
syn keyword cppConstant nullptr
|
||||
syn region cppRawString matchgroup=cppRawDelimiter start=+\%(u8\|[uLU]\)\=R"\z([[:alnum:]_{}[\]#<>%:;.?*\+\-/\^&|~!=,"']\{,16}\)(+ end=+)\z1"+ contains=@Spell
|
||||
syn keyword cppConstant ATOMIC_FLAG_INIT ATOMIC_VAR_INIT
|
||||
syn keyword cppConstant ATOMIC_BOOL_LOCK_FREE ATOMIC_CHAR_LOCK_FREE
|
||||
syn keyword cppConstant ATOMIC_CHAR16_T_LOCK_FREE ATOMIC_CHAR32_T_LOCK_FREE
|
||||
syn keyword cppConstant ATOMIC_WCHAR_T_LOCK_FREE ATOMIC_SHORT_LOCK_FREE
|
||||
syn keyword cppConstant ATOMIC_INT_LOCK_FREE ATOMIC_LONG_LOCK_FREE
|
||||
syn keyword cppConstant ATOMIC_LLONG_LOCK_FREE ATOMIC_POINTER_LOCK_FREE
|
||||
syn region cppRawString matchgroup=cppRawDelimiter start=+\%(u8\|[uLU]\)\=R"\z([[:alnum:]_{}[\]#<>%:;.?*\+\-/\^&|~!=,"']\{,16}\)(+ end=+)\z1"+ contains=@Spell
|
||||
endif
|
||||
|
||||
" The minimum and maximum operators in GNU C++
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
" License: This file can be redistribued and/or modified under the same terms
|
||||
" as Vim itself.
|
||||
" Filenames: /tmp/crontab.* used by "crontab -e"
|
||||
" Last Change: 2012-05-16
|
||||
" Last Change: 2015-01-20
|
||||
"
|
||||
" crontab line format:
|
||||
" Minutes Hours Days Months Days_of_Week Commands # comments
|
||||
@@ -13,11 +13,17 @@
|
||||
" 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
|
||||
|
||||
syntax match crontabNick "^\s*@\(reboot\|yearly\|annually\|monthly\|weekly\|daily\|midnight\|hourly\)\>" nextgroup=crontabCmd skipwhite
|
||||
|
||||
syntax match crontabVar "^\s*\k\w*\s*="me=e-1
|
||||
|
||||
syntax case ignore
|
||||
|
||||
syntax match crontabMin "^\s*[-0-9/,.*]\+" nextgroup=crontabHr skipwhite
|
||||
syntax match crontabHr "\s[-0-9/,.*]\+" nextgroup=crontabDay skipwhite contained
|
||||
syntax match crontabDay "\s[-0-9/,.*]\+" nextgroup=crontabMnth skipwhite contained
|
||||
@@ -32,45 +38,41 @@ syntax region crontabCmd start="\S" end="$" skipwhite contained keepend contains
|
||||
syntax match crontabCmnt "^\s*#.*" contains=@Spell
|
||||
syntax match crontabPercent "[^\\]%.*"lc=1 contained
|
||||
|
||||
syntax match crontabNick "^\s*@\(reboot\|yearly\|annually\|monthly\|weekly\|daily\|midnight\|hourly\)\>" nextgroup=crontabCmd skipwhite
|
||||
|
||||
syntax match crontabVar "^\s*\k\w*\s*="me=e-1
|
||||
|
||||
" 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_crontab_syn_inits")
|
||||
if version < 508
|
||||
let did_crontab_syn_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
if version < 508
|
||||
let did_crontab_syn_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
|
||||
HiLink crontabMin Number
|
||||
HiLink crontabHr PreProc
|
||||
HiLink crontabDay Type
|
||||
HiLink crontabMin Number
|
||||
HiLink crontabHr PreProc
|
||||
HiLink crontabDay Type
|
||||
|
||||
HiLink crontabMnth Number
|
||||
HiLink crontabMnth12 Number
|
||||
HiLink crontabMnthS Number
|
||||
HiLink crontabMnthN Number
|
||||
HiLink crontabMnth Number
|
||||
HiLink crontabMnth12 Number
|
||||
HiLink crontabMnthS Number
|
||||
HiLink crontabMnthN Number
|
||||
|
||||
HiLink crontabDow PreProc
|
||||
HiLink crontabDow7 PreProc
|
||||
HiLink crontabDowS PreProc
|
||||
HiLink crontabDowN PreProc
|
||||
HiLink crontabDow PreProc
|
||||
HiLink crontabDow7 PreProc
|
||||
HiLink crontabDowS PreProc
|
||||
HiLink crontabDowN PreProc
|
||||
|
||||
HiLink crontabNick Special
|
||||
HiLink crontabVar Identifier
|
||||
HiLink crontabPercent Special
|
||||
HiLink crontabNick Special
|
||||
HiLink crontabVar Identifier
|
||||
HiLink crontabPercent Special
|
||||
|
||||
" comment out next line for to suppress unix commands coloring.
|
||||
HiLink crontabCmd Statement
|
||||
HiLink crontabCmd Statement
|
||||
|
||||
HiLink crontabCmnt Comment
|
||||
HiLink crontabCmnt Comment
|
||||
|
||||
delcommand HiLink
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "crontab"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
" Vim syntax file
|
||||
" Language: C-shell (csh)
|
||||
" Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Version: 10
|
||||
" Last Change: Sep 11, 2006
|
||||
" URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
|
||||
" Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Version: 11
|
||||
" Last Change: Oct 23, 2014
|
||||
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_CSH
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
" Vim syntax file
|
||||
" Language: DCL (Digital Command Language - vms)
|
||||
" Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Sep 11, 2006
|
||||
" Version: 6
|
||||
" URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
|
||||
" Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Oct 23, 2014
|
||||
" Version: 7
|
||||
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_DCL
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
" Language: Diff (context or unified)
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Translations by Jakson Alves de Aquino.
|
||||
" Last Change: 2013 Oct 06
|
||||
" Last Change: 2015 Feb 03
|
||||
|
||||
" Quit when a (custom) syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
@@ -18,6 +18,9 @@ syn match diffIsA "^File .* is a .* while file .* is a .*"
|
||||
syn match diffNoEOL "^\\ No newline at end of file .*"
|
||||
syn match diffCommon "^Common subdirectories: .*"
|
||||
|
||||
" Disable the translations by setting diff_translations to zero.
|
||||
if !exists("diff_translations") || diff_translations
|
||||
|
||||
" ca
|
||||
syn match diffOnly "^Només a .*"
|
||||
syn match diffIdentical "^Els fitxers .* i .* són idèntics$"
|
||||
@@ -120,13 +123,17 @@ syn match diffNoEOL "^\\ Non hai un salto de liña na fin da liña"
|
||||
syn match diffCommon "^Subdirectorios comúns: .* e .*"
|
||||
|
||||
" he
|
||||
syn match diffOnly "^.*-ב קר אצמנ .*"
|
||||
syn match diffIdentical "^םיהז םניה .*-ו .* םיצבקה$"
|
||||
syn match diffDiffer "^הזמ הז םינוש `.*'-ו `.*' םיצבקה$"
|
||||
syn match diffBDiffer "^הזמ הז םינוש `.*'-ו `.*' םיירניב םיצבק$"
|
||||
syn match diffIsA "^.* .*-ל .* .* תוושהל ןתינ אל$"
|
||||
syn match diffNoEOL "^\\ ץבוקה ףוסב השדח-הרוש ות רסח"
|
||||
syn match diffCommon "^.*-ו .* :תוהז תויקית-תת$"
|
||||
" ^.* are expansive patterns for long lines, so disabled unless we can match
|
||||
" some specific hebrew chars
|
||||
if search('\%u05d5\|\%u05d1', 'nw', '', 100)
|
||||
syn match diffOnly "^.*-ב קר אצמנ .*"
|
||||
syn match diffIdentical "^םיהז םניה .*-ו .* םיצבקה$"
|
||||
syn match diffDiffer "^הזמ הז םינוש `.*'-ו `.*' םיצבקה$"
|
||||
syn match diffBDiffer "^הזמ הז םינוש `.*'-ו `.*' םיירניב םיצבק$"
|
||||
syn match diffIsA "^.* .*-ל .* .* תוושהל ןתינ אל$"
|
||||
syn match diffNoEOL "^\\ ץבוקה ףוסב השד.-הרוש ות רס."
|
||||
syn match diffCommon "^.*-ו .* :תוהז תויקית-תת$"
|
||||
endif
|
||||
|
||||
" hr
|
||||
syn match diffOnly "^Samo u .*"
|
||||
@@ -320,6 +327,8 @@ syn match diffIsA "^檔案 .* 是.*而檔案 .* 是.*"
|
||||
syn match diffNoEOL "^\\ 檔案末沒有 newline 字元"
|
||||
syn match diffCommon "^.* 和 .* 有共同的副目錄$"
|
||||
|
||||
endif
|
||||
|
||||
|
||||
syn match diffRemoved "^-.*"
|
||||
syn match diffRemoved "^<.*"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
" Vim syntax file
|
||||
" Language: Elm Filter rules
|
||||
" Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Sep 11, 2006
|
||||
" Version: 5
|
||||
" URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
|
||||
" Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Oct 23, 2014
|
||||
" Version: 6
|
||||
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_ELMFILT
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
" Vim syntax file
|
||||
" Language: exports
|
||||
" Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Sep 06, 2005
|
||||
" Version: 4
|
||||
" Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Oct 23, 2014
|
||||
" Version: 5
|
||||
" Notes: This file includes both SysV and BSD 'isms
|
||||
" URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
|
||||
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_EXPORTS
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
" Vim syntax file
|
||||
" Language: Fortran 2008 (and earlier versions: 2003, 95, 90, and 77)
|
||||
" Version: 0.94
|
||||
" Last Change: 2012 June 18
|
||||
" Maintainer: Ajit J. Thakkar (ajit AT unb.ca); <http://www.unb.ca/chem/ajit/>
|
||||
" Version: 0.95
|
||||
" Last Change: 2015 Jan. 15
|
||||
" Maintainer: Ajit J. Thakkar <ajit@unb.ca>; <http://www2.unb.ca/~ajit/>
|
||||
" Usage: For instructions, do :help fortran-syntax from Vim
|
||||
" Credits:
|
||||
" Version 0.1 was based on the fortran 77 syntax file by Mario Eusebio and
|
||||
" Preben Guldberg. Useful suggestions were made by: Andrej Panjkov,
|
||||
" Bram Moolenaar, Thomas Olsen, Michael Sternberg, Christian Reile,
|
||||
" Walter Dieudonn<6E>, Alexander Wagner, Roman Bertle, Charles Rendleman,
|
||||
" Andrew Griffiths, Joe Krahn, and Hendrik Merx.
|
||||
" Andrew Griffiths, Joe Krahn, Hendrik Merx, and Matt Thompson.
|
||||
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
@@ -298,6 +298,41 @@ if b:fortran_dialect == "f08"
|
||||
syn keyword fortranIntrinsic bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image
|
||||
syn keyword fortranIO newunit
|
||||
syn keyword fortranType contiguous
|
||||
|
||||
" CUDA fortran
|
||||
syn match fortranTypeCUDA "\<attributes\>"
|
||||
syn keyword fortranTypeCUDA host global device value
|
||||
syn keyword fortranTypeCUDA shared constant pinned texture
|
||||
syn keyword fortranTypeCUDA dim1 dim2 dim3 dim4
|
||||
syn keyword fortranTypeCUDA cudadeviceprop cuda_count_kind cuda_stream_kind
|
||||
syn keyword fortranTypeCUDA cudaEvent cudaFuncAttributes cudaArrayPtr
|
||||
syn keyword fortranTypeCUDA cudaSymbol cudaChannelFormatDesc cudaPitchedPtr
|
||||
syn keyword fortranTypeCUDA cudaExtent cudaMemcpy3DParms
|
||||
syn keyword fortranTypeCUDA cudaFuncCachePreferNone cudaFuncCachePreferShared
|
||||
syn keyword fortranTypeCUDA cudaFuncCachePreferL1 cudaLimitStackSize
|
||||
syn keyword fortranTypeCUDA cudaLimitPrintfSize cudaLimitMallocHeapSize
|
||||
syn keyword fortranTypeCUDA cudaSharedMemBankSizeDefault cudaSharedMemBankSizeFourByte cudaSharedMemBankSizeEightByte
|
||||
syn keyword fortranTypeCUDA cudaEventDefault cudaEventBlockingSync cudaEventDisableTiming
|
||||
syn keyword fortranTypeCUDA cudaMemcpyHostToDevice cudaMemcpyDeviceToHost
|
||||
syn keyword fortranTypeCUDA cudaMemcpyDeviceToDevice
|
||||
syn keyword fortranTypeCUDA cudaErrorNotReady cudaSuccess cudaErrorInvalidValue
|
||||
syn keyword fortranTypeCUDA c_devptr
|
||||
|
||||
syn match fortranStringCUDA "blockidx%[xyz]"
|
||||
syn match fortranStringCUDA "blockdim%[xyz]"
|
||||
syn match fortranStringCUDA "griddim%[xyz]"
|
||||
syn match fortranStringCUDA "threadidx%[xyz]"
|
||||
|
||||
syn keyword fortranIntrinsicCUDA warpsize syncthreads syncthreads_and syncthreads_count syncthreads_or threadfence threadfence_block threadfence_system gpu_time allthreads anythread ballot
|
||||
syn keyword fortranIntrinsicCUDA atomicadd atomicsub atomicmax atomicmin atomicand atomicor atomicxor atomicexch atomicinc atomicdec atomiccas sizeof __shfl __shfl_up __shfl_down __shfl_xor
|
||||
syn keyword fortranIntrinsicCUDA cudaChooseDevice cudaDeviceGetCacheConfig cudaDeviceGetLimit cudaDeviceGetSharedMemConfig cudaDeviceReset cudaDeviceSetCacheConfig cudaDeviceSetLimit cudaDeviceSetSharedMemConfig cudaDeviceSynchronize cudaGetDevice cudaGetDeviceCount cudaGetDeviceProperties cudaSetDevice cudaSetDeviceFlags cudaSetValidDevices
|
||||
syn keyword fortranIntrinsicCUDA cudaThreadExit cudaThreadSynchronize cudaGetLastError cudaGetErrorString cudaPeekAtLastError cudaStreamCreate cudaStreamDestroy cudaStreamQuery cudaStreamSynchronize cudaStreamWaitEvent cudaEventCreate cudaEventCreateWithFlags cudaEventDestroy cudaEventElapsedTime cudaEventQuery cudaEventRecord cudaEventSynchronize
|
||||
syn keyword fortranIntrinsicCUDA cudaFuncGetAttributes cudaFuncSetCacheConfig cudaFuncSetSharedMemConfig cudaSetDoubleForDevice cudaSetDoubleForHost cudaFree cudaFreeArray cudaFreeHost cudaGetSymbolAddress cudaGetSymbolSize
|
||||
syn keyword fortranIntrinsicCUDA cudaHostAlloc cudaHostGetDevicePointer cudaHostGetFlags cudaHostRegister cudaHostUnregister cudaMalloc cudaMallocArray cudaMallocHost cudaMallocPitch cudaMalloc3D cudaMalloc3DArray
|
||||
syn keyword fortranIntrinsicCUDA cudaMemcpy cudaMemcpyArraytoArray cudaMemcpyAsync cudaMemcpyFromArray cudaMemcpyFromSymbol cudaMemcpyFromSymbolAsync cudaMemcpyPeer cudaMemcpyPeerAsync cudaMemcpyToArray cudaMemcpyToSymbol cudaMemcpyToSymbolAsync cudaMemcpy2D cudaMemcpy2DArrayToArray cudaMemcpy2DAsync cudaMemcpy2DFromArray cudaMemcpy2DToArray cudaMemcpy3D cudaMemcpy3DAsync
|
||||
syn keyword fortranIntrinsicCUDA cudaMemGetInfo cudaMemset cudaMemset2D cudaMemset3D cudaDeviceCanAccessPeer cudaDeviceDisablePeerAccess cudaDeviceEnablePeerAccess cudaPointerGetAttributes cudaDriverGetVersion cudaRuntimeGetVersion
|
||||
|
||||
syn region none matchgroup=fortranType start="<<<" end=">>>" contains=ALLBUT,none
|
||||
endif
|
||||
|
||||
syn cluster fortranCommentGroup contains=fortranTodo
|
||||
@@ -453,6 +488,11 @@ else
|
||||
hi! def link fortranConditionalR fortranConditional
|
||||
endif
|
||||
|
||||
" CUDA
|
||||
hi def link fortranIntrinsicCUDA fortranIntrinsic
|
||||
hi def link fortranTypeCUDA fortranType
|
||||
hi def link fortranStringCUDA fortranString
|
||||
|
||||
hi def link fortranFormatSpec Identifier
|
||||
hi def link fortranFloat Float
|
||||
hi def link fortranPreCondit PreCondit
|
||||
|
||||
@@ -1,7 +1,29 @@
|
||||
" Vim syntax file
|
||||
" Language: Intel hex MCS51
|
||||
" Maintainer: Sams Ricahrd <sams@ping.at>
|
||||
" Last Change: 2003 Apr 25
|
||||
" Language: Intel HEX
|
||||
" Maintainer: Markus Heidelberg <markus.heidelberg@web.de>
|
||||
" Previous version: Sams Ricahrd <sams@ping.at>
|
||||
" Last Change: 2015 Feb 24
|
||||
|
||||
" Each record (line) is built as follows:
|
||||
"
|
||||
" field digits states
|
||||
"
|
||||
" +----------+
|
||||
" | start | 1 (':') hexRecStart
|
||||
" +----------+
|
||||
" | count | 2 hexDataByteCount
|
||||
" +----------+
|
||||
" | address | 4 hexNoAddress, hexDataAddress, (hexAddressFieldUnknown)
|
||||
" +----------+
|
||||
" | type | 2 hexRecType, (hexRecTypeUnknown)
|
||||
" +----------+
|
||||
" | data | 0..510 hexDataOdd, hexDataEven, hexExtendedAddress, hexStartAddress, (hexDataFieldUnknown, hexDataUnexpected)
|
||||
" +----------+
|
||||
" | checksum | 2 hexChecksum
|
||||
" +----------+
|
||||
"
|
||||
" States in parentheses in the upper format description indicate that they
|
||||
" should not appear in a valid file.
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
@@ -11,21 +33,39 @@ elseif exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
syn case ignore
|
||||
syn match hexRecStart "^:"
|
||||
|
||||
" storage types
|
||||
syn match hexDataByteCount "^:[0-9a-fA-F]\{2}" contains=hexRecStart nextgroup=hexAddress
|
||||
|
||||
syn match hexChecksum "[0-9a-fA-F]\{2}$"
|
||||
syn match hexAdress "^:[0-9a-fA-F]\{6}" contains=hexDataByteCount
|
||||
syn match hexRecType "^:[0-9a-fA-F]\{8}" contains=hexAdress
|
||||
syn match hexDataByteCount contained "^:[0-9a-fA-F]\{2}" contains=hexStart
|
||||
syn match hexStart contained "^:"
|
||||
syn match hexExtAdrRec "^:02000002[0-9a-fA-F]\{4}" contains=hexSpecRec
|
||||
syn match hexExtLinAdrRec "^:02000004[0-9a-fA-F]\{4}" contains=hexSpecRec
|
||||
syn match hexSpecRec contained "^:0[02]00000[124]" contains=hexStart
|
||||
syn match hexEOF "^:00000001" contains=hexStart
|
||||
syn match hexAddress "[0-9a-fA-F]\{4}" transparent contained nextgroup=hexRecTypeUnknown,hexRecType
|
||||
" The address field groups include the record type field in the last 2
|
||||
" characters, the proper match for highlighting follows below.
|
||||
syn match hexAddressFieldUnknown "^:[0-9a-fA-F]\{8}" contains=hexDataByteCount nextgroup=hexDataFieldUnknown,hexChecksum
|
||||
syn match hexDataAddress "^:[0-9a-fA-F]\{6}00" contains=hexDataByteCount nextgroup=hexDataOdd,hexChecksum
|
||||
syn match hexNoAddress "^:[0-9a-fA-F]\{6}01" contains=hexDataByteCount nextgroup=hexDataUnexpected,hexChecksum
|
||||
syn match hexNoAddress "^:[0-9a-fA-F]\{6}0[24]" contains=hexDataByteCount nextgroup=hexExtendedAddress
|
||||
syn match hexNoAddress "^:[0-9a-fA-F]\{6}0[35]" contains=hexDataByteCount nextgroup=hexStartAddress
|
||||
|
||||
syn case match
|
||||
syn match hexRecTypeUnknown "[0-9a-fA-F]\{2}" contained
|
||||
syn match hexRecType "0[0-5]" contained
|
||||
|
||||
syn match hexDataFieldUnknown "[0-9a-fA-F]\{2}" contained nextgroup=hexDataFieldUnknown,hexChecksum
|
||||
" alternating highlight per byte for easier reading
|
||||
syn match hexDataOdd "[0-9a-fA-F]\{2}" contained nextgroup=hexDataEven,hexChecksum
|
||||
syn match hexDataEven "[0-9a-fA-F]\{2}" contained nextgroup=hexDataOdd,hexChecksum
|
||||
" data bytes which should not exist
|
||||
syn match hexDataUnexpected "[0-9a-fA-F]\{2}" contained nextgroup=hexDataUnexpected,hexChecksum
|
||||
" Data digit pair regex usage also results in only highlighting the checksum
|
||||
" if the number of data characters is even.
|
||||
|
||||
" special data fields
|
||||
syn match hexExtendedAddress "[0-9a-fA-F]\{4}" contained nextgroup=hexDataUnexpected,hexChecksum
|
||||
syn match hexStartAddress "[0-9a-fA-F]\{8}" contained nextgroup=hexDataUnexpected,hexChecksum
|
||||
|
||||
syn match hexChecksum "[0-9a-fA-F]\{2}$" contained
|
||||
|
||||
" Folding Data Records below an Extended Segment/Linear Address Record
|
||||
syn region hexExtAdrBlock start="^:[0-9a-fA-F]\{7}[24]" skip="^:[0-9a-fA-F]\{7}0" end="^:"me=s-1 fold transparent
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
@@ -38,16 +78,21 @@ if version >= 508 || !exists("did_hex_syntax_inits")
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
|
||||
" The default methods for highlighting. Can be overridden later
|
||||
HiLink hexStart SpecialKey
|
||||
HiLink hexDataByteCount Constant
|
||||
HiLink hexAdress Comment
|
||||
HiLink hexRecType WarningMsg
|
||||
HiLink hexChecksum Search
|
||||
HiLink hexExtAdrRec hexAdress
|
||||
HiLink hexEOF hexSpecRec
|
||||
HiLink hexExtLinAdrRec hexAdress
|
||||
HiLink hexSpecRec DiffAdd
|
||||
" The default methods for highlighting. Can be overridden later
|
||||
HiLink hexRecStart hexRecType
|
||||
HiLink hexDataByteCount Constant
|
||||
hi def hexAddressFieldUnknown term=italic cterm=italic gui=italic
|
||||
HiLink hexDataAddress Comment
|
||||
HiLink hexNoAddress DiffAdd
|
||||
HiLink hexRecTypeUnknown hexRecType
|
||||
HiLink hexRecType WarningMsg
|
||||
hi def hexDataFieldUnknown term=italic cterm=italic gui=italic
|
||||
hi def hexDataOdd term=bold cterm=bold gui=bold
|
||||
hi def hexDataEven term=NONE cterm=NONE gui=NONE
|
||||
HiLink hexDataUnexpected Error
|
||||
HiLink hexExtendedAddress hexDataAddress
|
||||
HiLink hexStartAddress hexDataAddress
|
||||
HiLink hexChecksum DiffChange
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
" Language: HTML
|
||||
" Maintainer: Claudio Fleiner <claudio@fleiner.com>
|
||||
" URL: http://www.fleiner.com/vim/syntax/html.vim
|
||||
" Last Change: 2012 Oct 05
|
||||
" Last Change: 2015 Jan 07
|
||||
" included patch from David Felix
|
||||
|
||||
" Please check :help html.vim for some comments and a description of the options
|
||||
|
||||
@@ -168,7 +169,7 @@ 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 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
|
||||
|
||||
@@ -193,7 +194,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
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
" Language: J
|
||||
" Maintainer: David Bürgin <676c7473@gmail.com>
|
||||
" URL: https://github.com/glts/vim-j
|
||||
" Last Change: 2014-10-05
|
||||
" Last Change: 2015-01-11
|
||||
|
||||
if exists('b:current_syntax')
|
||||
finish
|
||||
@@ -23,12 +23,12 @@ syntax match jControl /\<\%(for\|goto\|label\)_\a\k*\./
|
||||
" Standard library names. A few names need to be defined with ":syntax match"
|
||||
" because they would otherwise take precedence over the corresponding jControl
|
||||
" and jDefineExpression items.
|
||||
syntax keyword jStdlibNoun ARGV BINPATH CR CRLF DEL Debug EAV EMPTY FF FHS IF64 IFIOS IFJCDROID IFJHS IFQT IFRASPI IFUNIX IFWIN IFWINCE IFWINE IFWOW64 JB01 JBOXED JCHAR JCMPX JFL JINT JPTR JSIZES JSTR JTYPES JVERSION LF LF2 TAB UNAME UNXLIB andurl dbhelp libjqt
|
||||
syntax keyword jStdlibAdverb define each every fapplylines inv inverse items leaf rows table
|
||||
syntax keyword jStdlibNoun ARGV BINPATH CR CRLF DEL Debug EAV EMPTY FF FHS IF64 IFIOS IFJCDROID IFJHS IFQT IFRASPI IFUNIX IFWIN IFWINCE IFWINE IFWOW64 JB01 JBOXED JCHAR JCMPX JFL JINT JPTR JSIZES JSTR JTYPES JVERSION LF LF2 TAB UNAME UNXLIB dbhelp libjqt
|
||||
syntax keyword jStdlibAdverb define each every fapplylines inv inverse items leaf rows rxapply rxmerge table
|
||||
syntax keyword jStdlibConjunction bind cuts def on
|
||||
syntax keyword jStdlibVerb AND Endian IFDEF Note OR XOR alpha17 alpha27 anddf android_exec_host andunzip apply boxopen boxxopen bx calendar cd cdcb cder cderx cdf charsub chopstring clear coclass cocreate cocurrent codestroy coerase cofind cofindv cofullname coinfo coinsert coname conames conew conl conouns conounsx copath copathnl copathnlx coreset costate cut cutLF cutopen cutpara datatype dbctx dberm dberr dbg dbjmp dblocals dblxq dblxs dbnxt dbq dbr dbret dbrr dbrrx dbrun dbs dbsig dbsq dbss dbst dbstack dbstk dbstop dbstopme dbstopnext dbstops dbtrace dbview deb debc delstring detab dfh dir dircompare dircompares dirfind dirpath dirss dirssrplc dirtree dirused dlb dltb dltbs dquote drop dropafter dropto dtb dtbs echo empty endian erase evtloop exit expand f2utf8 fappend fappends fboxname fc fcopynew fdir ferase fetch fexist fexists fgets file2url fixdotdot fliprgb fmakex foldpara foldtext fpathcreate fpathname fputs fread freadblock freadr freads frename freplace fsize fss fssrplc fstamp fstringreplace ftype fview fwrite fwritenew fwrites getargs getdate getenv getqtbin hfd hostpathsep ic install iospath isatty isotimestamp isutf8 jcwdpath joinstring jpathsep jsystemdefs list ljust load loadd mema memf memr memw nameclass namelist names nc nl pick quote require rjust rplc script scriptd setbreak show sign sminfo smoutput sort split splitnostring splitstring ss startupandroid startupconsole startupide stderr stdin stdout stringreplace symdat symget symset take takeafter taketo timespacex timestamp timex tmoutput toCRLF toHOST toJ todate todayno tolower topara toupper tsdiff tsrep tstamp type ucp ucpcount unxlib usleep utf8 uucp valdate wcsize weekday weeknumber weeksinyear winpathsep
|
||||
syntax keyword jStdlibVerb AND Endian IFDEF OR XOR anddf android_exec_am android_exec_host andunzip apply boxopen boxxopen bx calendar cd cdcb cder cderx cdf charsub chopstring cleartags clear coclass cocreate cocurrent codestroy coerase cofind cofindv cofullname coinfo coinsert compare coname conames conew conl conouns conounsx copath copathnl copathnlx coreset costate cut cutLF cutopen cutpara datatype dbctx dberm dberr dbg dbjmp dblocals dblxq dblxs dbnxt dbq dbr dbret dbrr dbrrx dbrun dbs dbsig dbsq dbss dbst dbstack dbstk dbstop dbstopme dbstopnext dbstops dbtrace dbview deb debc delstring detab dfh dir dircompare dircompares dirfind dirpath dirss dirssrplc dirtree dirused dlb dltb dltbs dquote drop dropafter dropto dtb dtbs echo empty endian erase evtloop exit expand f2utf8 fappend fappends fboxname fc fcompare fcompares fcopynew fdir ferase fetch fexist fexists fgets file2url fixdotdot fliprgb fmakex foldpara foldtext fpathcreate fpathname fputs fread freadblock freadr freads frename freplace fsize fss fssrplc fstamp fstringreplace ftype fview fwrite fwritenew fwrites getalpha getargs getdate getenv getqtbin hfd hostpathsep ic install iospath isatty isotimestamp isutf8 jcwdpath joinstring jpath jpathsep jsystemdefs launch list ljust load loadd loadtags mema memf memr memw nameclass namelist names nc nl pick quote require rjust rplc rxE rxall rxcomp rxcut rxeq rxerror rxfirst rxfree rxfrom rxhandles rxin rxindex rxinfo rxmatch rxmatches rxrplc rxutf8 script scriptd scripts setalpha setbreak shell show sign sminfo smoutput sort split splitnostring splitstring ss startupandroid startupconsole startupide stderr stdin stdout stringreplace symdat symget symset ta tagcp tagopen tagselect take takeafter taketo timespacex timestamp timex tmoutput toCRLF toHOST toJ todate todayno tolower topara toupper tsdiff tsrep tstamp type ucp ucpcount unxlib usleep utf8 uucp valdate wcsize weekday weeknumber weeksinyear winpathsep xedit
|
||||
syntax match jStdlibNoun /\<\%(adverb\|conjunction\|dyad\|monad\|noun\|verb\)\>/
|
||||
syntax match jStdlibVerb /\<\%(assert\|break\|do\)\>\.\@!/
|
||||
syntax match jStdlibVerb /\<\%(Note\|\%(assert\|break\|do\)\.\@!\)\>/
|
||||
|
||||
" Numbers. Matching J numbers is difficult. In fact, the job cannot be done
|
||||
" with regular expressions alone. Below is a sketch of the pattern used. It
|
||||
@@ -75,12 +75,12 @@ syntax match jConjunction /;\.\|\^:\|![.:]/
|
||||
" the next line. The trick is to split the problem into two regions and link
|
||||
" them with "nextgroup=". The fold wrapper provides syntax folding.
|
||||
syntax region jNounDefineFold
|
||||
\ matchgroup=NONE start=/\<\%(\%(0\|noun\)\s\+\%(\:\s*0\|def\s\+0\|define\)\>\)\@=/
|
||||
\ matchgroup=NONE start=/\%(\%(\%(^\s*Note\)\|\<\%(0\|noun\)\s\+\%(\:\s*0\|def\s\+0\|define\)\)\>\)\@=/
|
||||
\ keepend matchgroup=NONE end=/^\s*)\s*$/
|
||||
\ contains=jNounDefineStart
|
||||
\ fold
|
||||
syntax region jNounDefineStart
|
||||
\ matchgroup=jDefineExpression start=/\<\%(0\|noun\)\s\+\%(\:\s*0\|def\s\+0\|define\)\>/
|
||||
\ matchgroup=jDefineExpression start=/\%(\%(^\s*Note\)\|\<\%(0\|noun\)\s\+\%(\:\s*0\|def\s\+0\|define\)\)\>/
|
||||
\ keepend matchgroup=NONE end=/$/
|
||||
\ contains=@jStdlibItems,@jPrimitiveItems,jNumber,jString,jParenGroup,jParen,jComment
|
||||
\ contained oneline skipempty nextgroup=jDefineEnd,jNounDefine
|
||||
@@ -112,7 +112,7 @@ syntax region jParenGroup
|
||||
\ oneline transparent
|
||||
|
||||
syntax keyword jTodo contained TODO FIXME XXX
|
||||
syntax match jComment /NB\..*$/ contains=jTodo,@Spell
|
||||
syntax match jComment /\<NB\..*$/ contains=jTodo,@Spell
|
||||
|
||||
syntax match jSharpBang /\%^#!.*$/
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
" Language: Java
|
||||
" Maintainer: Claudio Fleiner <claudio@fleiner.com>
|
||||
" URL: http://www.fleiner.com/vim/syntax/java.vim
|
||||
" Last Change: 2012 Oct 05
|
||||
" Last Change: 2015 March 01
|
||||
|
||||
" Please check :help java.vim for comments on some of the options available.
|
||||
|
||||
@@ -30,7 +30,7 @@ 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 "\.\.\."
|
||||
|
||||
@@ -63,7 +63,7 @@ syn match javaTypedef "\.\s*\<class\>"ms=s+1
|
||||
syn keyword javaClassDecl enum
|
||||
syn match javaClassDecl "^class\>"
|
||||
syn match javaClassDecl "[^.]\s*\<class\>"ms=s+1
|
||||
syn match javaAnnotation "@\([_$a-zA-Z][_$a-zA-Z0-9]*\.\)*[_$a-zA-Z][_$a-zA-Z0-9]*\>"
|
||||
syn match javaAnnotation "@\([_$a-zA-Z][_$a-zA-Z0-9]*\.\)*[_$a-zA-Z][_$a-zA-Z0-9]*\>\(([^)]*)\)\=" contains=javaString
|
||||
syn match javaClassDecl "@interface\>"
|
||||
syn keyword javaBranch break continue nextgroup=javaUserLabelRef skipwhite
|
||||
syn match javaUserLabelRef "\k\+" contained
|
||||
@@ -121,7 +121,7 @@ if exists("java_space_errors")
|
||||
endif
|
||||
endif
|
||||
|
||||
syn region javaLabelRegion transparent matchgroup=javaLabel start="\<case\>" matchgroup=NONE end=":" contains=javaNumber,javaCharacter
|
||||
syn region javaLabelRegion transparent matchgroup=javaLabel start="\<case\>" matchgroup=NONE end=":" contains=javaNumber,javaCharacter,javaString
|
||||
syn match javaUserLabel "^\s*[_$a-zA-Z][_$a-zA-Z0-9_]*\s*:"he=e-1 contains=javaLabel
|
||||
syn keyword javaLabel default
|
||||
|
||||
@@ -188,10 +188,10 @@ syn region javaString start=+"+ end=+"+ end=+$+ contains=javaSpecialChar,javaS
|
||||
syn match javaCharacter "'[^']*'" contains=javaSpecialChar,javaSpecialCharError
|
||||
syn match javaCharacter "'\\''" contains=javaSpecialChar
|
||||
syn match javaCharacter "'[^\\]'"
|
||||
syn match javaNumber "\<\(0[0-7]*\|0[xX]\x\+\|\d\+\)[lL]\=\>"
|
||||
syn match javaNumber "\(\<\d\+\.\d*\|\.\d\+\)\([eE][-+]\=\d\+\)\=[fFdD]\="
|
||||
syn match javaNumber "\<\d\+[eE][-+]\=\d\+[fFdD]\=\>"
|
||||
syn match javaNumber "\<\d\+\([eE][-+]\=\d\+\)\=[fFdD]\>"
|
||||
syn match javaNumber "\<\(0[bB][0-1]\+\|0[0-7]*\|0[xX]\x\+\|\d\(\d\|_\d\)*\)[lL]\=\>"
|
||||
syn match javaNumber "\(\<\d\(\d\|_\d\)*\.\(\d\(\d\|_\d\)*\)\=\|\.\d\(\d\|_\d\)*\)\([eE][-+]\=\d\(\d\|_\d\)*\)\=[fFdD]\="
|
||||
syn match javaNumber "\<\d\(\d\|_\d\)*[eE][-+]\=\d\(\d\|_\d\)*[fFdD]\=\>"
|
||||
syn match javaNumber "\<\d\(\d\|_\d\)*\([eE][-+]\=\d\(\d\|_\d\)*\)\=[fFdD]\>"
|
||||
|
||||
" unicode characters
|
||||
syn match javaSpecial "\\u\d\{4\}"
|
||||
@@ -200,19 +200,21 @@ syn cluster javaTop add=javaString,javaCharacter,javaNumber,javaSpecial,javaStri
|
||||
|
||||
if exists("java_highlight_functions")
|
||||
if java_highlight_functions == "indent"
|
||||
syn match javaFuncDef "^\(\t\| \{8\}\)[_$a-zA-Z][_$a-zA-Z0-9_. \[\]]*([^-+*/()]*)" contains=javaScopeDecl,javaType,javaStorageClass,@javaClasses
|
||||
syn region javaFuncDef start=+^\(\t\| \{8\}\)[$_a-zA-Z][$_a-zA-Z0-9_. \[\]]*([^-+*/()]*,\s*+ end=+)+ contains=javaScopeDecl,javaType,javaStorageClass,@javaClasses
|
||||
syn match javaFuncDef "^ [$_a-zA-Z][$_a-zA-Z0-9_. \[\]]*([^-+*/()]*)" contains=javaScopeDecl,javaType,javaStorageClass,@javaClasses
|
||||
syn region javaFuncDef start=+^ [$_a-zA-Z][$_a-zA-Z0-9_. \[\]]*([^-+*/()]*,\s*+ end=+)+ contains=javaScopeDecl,javaType,javaStorageClass,@javaClasses
|
||||
syn match javaFuncDef "^\(\t\| \{8\}\)[_$a-zA-Z][_$a-zA-Z0-9_. \[\]<>]*([^-+*/]*)" contains=javaScopeDecl,javaType,javaStorageClass,@javaClasses,javaAnnotation
|
||||
syn region javaFuncDef start=+^\(\t\| \{8\}\)[$_a-zA-Z][$_a-zA-Z0-9_. \[\]<>]*([^-+*/]*,\s*+ end=+)+ contains=javaScopeDecl,javaType,javaStorageClass,@javaClasses,javaAnnotation
|
||||
syn match javaFuncDef "^ [$_a-zA-Z][$_a-zA-Z0-9_. \[\]<>]*([^-+*/]*)" contains=javaScopeDecl,javaType,javaStorageClass,@javaClasses,javaAnnotation
|
||||
syn region javaFuncDef start=+^ [$_a-zA-Z][$_a-zA-Z0-9_. \[\]<>]*([^-+*/]*,\s*+ end=+)+ contains=javaScopeDecl,javaType,javaStorageClass,@javaClasses,javaAnnotation
|
||||
else
|
||||
" This line catches method declarations at any indentation>0, but it assumes
|
||||
" two things:
|
||||
" 1. class names are always capitalized (ie: Button)
|
||||
" 2. method names are never capitalized (except constructors, of course)
|
||||
syn region javaFuncDef start=+^\s\+\(\(public\|protected\|private\|static\|abstract\|final\|native\|synchronized\)\s\+\)*\(\(void\|boolean\|char\|byte\|short\|int\|long\|float\|double\|\([A-Za-z_][A-Za-z0-9_$]*\.\)*[A-Z][A-Za-z0-9_$]*\)\(<[^>]*>\)\=\(\[\]\)*\s\+[a-z][A-Za-z0-9_$]*\|[A-Z][A-Za-z0-9_$]*\)\s*([^0-9]+ end=+)+ contains=javaScopeDecl,javaType,javaStorageClass,javaComment,javaLineComment,@javaClasses
|
||||
"syn region javaFuncDef start=+^\s\+\(\(public\|protected\|private\|static\|abstract\|final\|native\|synchronized\)\s\+\)*\(\(void\|boolean\|char\|byte\|short\|int\|long\|float\|double\|\([A-Za-z_][A-Za-z0-9_$]*\.\)*[A-Z][A-Za-z0-9_$]*\)\(<[^>]*>\)\=\(\[\]\)*\s\+[a-z][A-Za-z0-9_$]*\|[A-Z][A-Za-z0-9_$]*\)\s*([^0-9]+ end=+)+ contains=javaScopeDecl,javaType,javaStorageClass,javaComment,javaLineComment,@javaClasses
|
||||
syn region javaFuncDef start=+^\s\+\(\(public\|protected\|private\|static\|abstract\|final\|native\|synchronized\)\s\+\)*\(<.*>\s\+\)\?\(\(void\|boolean\|char\|byte\|short\|int\|long\|float\|double\|\([A-Za-z_][A-Za-z0-9_$]*\.\)*[A-Z][A-Za-z0-9_$]*\)\(<[^(){}]*>\)\=\(\[\]\)*\s\+[a-z][A-Za-z0-9_$]*\|[A-Z][A-Za-z0-9_$]*\)\s*(+ end=+)+ contains=javaScopeDecl,javaType,javaStorageClass,javaComment,javaLineComment,@javaClasses,javaAnnotation
|
||||
endif
|
||||
syn match javaLambdaDef "[a-zA-Z_][a-zA-Z0-9_]*\s*->"
|
||||
syn match javaBraces "[{}]"
|
||||
syn cluster javaTop add=javaFuncDef,javaBraces
|
||||
syn cluster javaTop add=javaFuncDef,javaBraces,javaLambdaDef
|
||||
endif
|
||||
|
||||
if exists("java_highlight_debug")
|
||||
@@ -266,18 +268,23 @@ if exists("java_mark_braces_in_parens_as_errors")
|
||||
endif
|
||||
|
||||
" catch errors caused by wrong parenthesis
|
||||
syn region javaParenT transparent matchgroup=javaParen start="(" end=")" contains=@javaTop,javaParenT1
|
||||
syn region javaParenT transparent matchgroup=javaParen start="(" end=")" contains=@javaTop,javaParenT1
|
||||
syn region javaParenT1 transparent matchgroup=javaParen1 start="(" end=")" contains=@javaTop,javaParenT2 contained
|
||||
syn region javaParenT2 transparent matchgroup=javaParen2 start="(" end=")" contains=@javaTop,javaParenT contained
|
||||
syn match javaParenError ")"
|
||||
" catch errors caused by wrong square parenthesis
|
||||
syn region javaParenT transparent matchgroup=javaParen start="\[" end="\]" contains=@javaTop,javaParenT1
|
||||
syn region javaParenT transparent matchgroup=javaParen start="\[" end="\]" contains=@javaTop,javaParenT1
|
||||
syn region javaParenT1 transparent matchgroup=javaParen1 start="\[" end="\]" contains=@javaTop,javaParenT2 contained
|
||||
syn region javaParenT2 transparent matchgroup=javaParen2 start="\[" end="\]" contains=@javaTop,javaParenT contained
|
||||
syn match javaParenError "\]"
|
||||
|
||||
JavaHiLink javaParenError javaError
|
||||
|
||||
if exists("java_highlight_functions")
|
||||
syn match javaLambdaDef "([a-zA-Z0-9_<>\[\], \t]*)\s*->"
|
||||
" needs to be defined after the parenthesis error catcher to work
|
||||
endif
|
||||
|
||||
if !exists("java_minlines")
|
||||
let java_minlines = 10
|
||||
endif
|
||||
@@ -288,6 +295,7 @@ if version >= 508 || !exists("did_java_syn_inits")
|
||||
if version < 508
|
||||
let did_java_syn_inits = 1
|
||||
endif
|
||||
JavaHiLink javaLambdaDef Function
|
||||
JavaHiLink javaFuncDef Function
|
||||
JavaHiLink javaVarArg Function
|
||||
JavaHiLink javaBraces Function
|
||||
|
||||
79
runtime/syntax/less.vim
Normal file
79
runtime/syntax/less.vim
Normal file
@@ -0,0 +1,79 @@
|
||||
" Vim syntax file
|
||||
" Language: less
|
||||
" Maintainer: Alessandro Vioni <jenoma@gmail.com>
|
||||
" URL: https://github.com/genoma/vim-less
|
||||
" Last Change: 2014 November 24
|
||||
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
runtime! syntax/css.vim
|
||||
runtime! after/syntax/css.vim
|
||||
|
||||
syn case ignore
|
||||
|
||||
syn cluster lessCssProperties contains=cssFontProp,cssFontDescriptorProp,cssColorProp,cssTextProp,cssBoxProp,cssGeneratedContentProp,cssPagingProp,cssUIProp,cssRenderProp,cssAuralProp,cssTableProp
|
||||
syn cluster lessCssAttributes contains=css.*Attr,lessEndOfLineComment,lessComment,cssValue.*,cssColor,cssURL,lessDefault,cssImportant,cssError,cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape,cssRenderProp
|
||||
|
||||
syn region lessDefinition matchgroup=cssBraces start="{" end="}" contains=TOP
|
||||
|
||||
syn match lessProperty "\%([{};]\s*\|^\)\@<=\%([[:alnum:]-]\|#{[^{}]*}\)\+\s*:" contains=css.*Prop skipwhite nextgroup=lessCssAttribute contained containedin=lessDefinition
|
||||
syn match lessProperty "^\s*\zs\s\%(\%([[:alnum:]-]\|#{[^{}]*}\)\+\s*:\|:[[:alnum:]-]\+\)"hs=s+1 contains=css.*Prop skipwhite nextgroup=lessCssAttribute
|
||||
syn match lessProperty "^\s*\zs\s\%(:\=[[:alnum:]-]\+\s*=\)"hs=s+1 contains=css.*Prop skipwhite nextgroup=lessCssAttribute
|
||||
syn match lessCssAttribute +\%("\%([^"]\|\\"\)*"\|'\%([^']\|\\'\)*'\|#{[^{}]*}\|[^{};]\)*+ contained contains=@lessCssAttributes,lessVariable,lessFunction,lessInterpolation
|
||||
syn match lessDefault "!default\>" contained
|
||||
|
||||
" less variables and media queries
|
||||
syn match lessVariable "@[[:alnum:]_-]\+" nextgroup=lessCssAttribute skipwhite
|
||||
syn match lessMedia "@media" nextgroup=lessCssAttribute skipwhite
|
||||
|
||||
" Less functions
|
||||
syn match lessFunction "\<\%(escape\|e\|unit\)\>(\@=" contained
|
||||
syn match lessFunction "\<\%(ceil\|floor\|percentage\|round\|sqrt\|abs\|sin\|asin\|cos\|acos\|tan\|atan\|pi\|pow\|min\|max\)\>(\@=" contained
|
||||
syn match lessFunction "\<\%(rgb\|rgba\|argb\|argb\|hsl\|hsla\|hsv\|hsva\)\>(\@=" contained
|
||||
syn match lessFunction "\<\%(hue\|saturation\|lightness\|red\|green\|blue\|alpha\|luma\)\>(\@=" contained
|
||||
syn match lessFunction "\<\%(saturate\|desaturate\|lighten\|darken\|fadein\|fadeout\|fade\|spin\|mix\|greyscale\|contrast\)\>(\@=" contained
|
||||
syn match lessFunction "\<\%(multiply\|screen\|overlay\|softlight\|hardlight\|difference\|exclusion\|average\|negation\)\>(\@=" contained
|
||||
|
||||
" Less id class visualization
|
||||
syn match lessIdChar "#[[:alnum:]_-]\@=" nextgroup=lessId,lessClassIdCall
|
||||
syn match lessId "[[:alnum:]_-]\+" contained
|
||||
syn match lessClassIdCall "[[:alnum:]_-]\+()" contained
|
||||
|
||||
syn match lessClassChar "\.[[:alnum:]_-]\@=" nextgroup=lessClass,lessClassCall
|
||||
syn match lessClass "[[:alnum:]_-]\+" contained
|
||||
syn match lessClassCall "[[:alnum:]_-]\+()" contained
|
||||
|
||||
syn match lessAmpersand "&" contains=lessIdChar,lessClassChar
|
||||
|
||||
syn region lessInclude start="@import" end=";\|$" contains=lessComment,cssURL,cssUnicodeEscape,cssMediaType,cssStringQ,cssStringQQ
|
||||
|
||||
syn keyword lessTodo FIXME NOTE TODO OPTIMIZE XXX contained
|
||||
syn region lessComment start="^\z(\s*\)//" end="^\%(\z1 \)\@!" contains=lessTodo,@Spell
|
||||
syn region lessCssComment start="^\z(\s*\)/\*" end="^\%(\z1 \)\@!" contains=lessTodo,@Spell
|
||||
syn match lessEndOfLineComment "//.*" contains=lessComment,lessTodo,@Spell
|
||||
|
||||
hi def link lessEndOfLineComment lessComment
|
||||
hi def link lessCssComment lessComment
|
||||
hi def link lessComment Comment
|
||||
hi def link lessDefault cssImportant
|
||||
hi def link lessVariable Identifier
|
||||
hi def link lessFunction PreProc
|
||||
hi def link lessTodo Todo
|
||||
hi def link lessInclude Include
|
||||
hi def link lessIdChar Special
|
||||
hi def link lessClassChar Special
|
||||
hi def link lessAmpersand Character
|
||||
hi def link lessId Identifier
|
||||
hi def link lessClass Type
|
||||
hi def link lessCssAttribute PreProc
|
||||
hi def link lessClassCall Type
|
||||
hi def link lessClassIdCall Type
|
||||
hi def link lessTagName cssTagName
|
||||
hi def link lessDeprecated cssDeprecated
|
||||
hi def link lessMedia cssMedia
|
||||
|
||||
let b:current_syntax = "less"
|
||||
|
||||
" vim:set sw=2:
|
||||
@@ -1,28 +1,23 @@
|
||||
" Vim syntax file
|
||||
" Language: Lisp
|
||||
" Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Nov 16, 2010
|
||||
" Version: 22
|
||||
" URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
|
||||
" Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Oct 06, 2014
|
||||
" Version: 23
|
||||
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_LISP
|
||||
"
|
||||
" Thanks to F Xavier Noria for a list of 978 Common Lisp symbols
|
||||
" taken from the HyperSpec
|
||||
" Thanks to F Xavier Noria for a list of 978 Common Lisp symbols taken from HyperSpec
|
||||
" Clisp additions courtesy of http://clisp.cvs.sourceforge.net/*checkout*/clisp/clisp/emacs/lisp.vim
|
||||
|
||||
" ---------------------------------------------------------------------
|
||||
" Load Once: {{{1
|
||||
" For vim-version 5.x: Clear all syntax items
|
||||
" For vim-version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
finish
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
if version >= 600
|
||||
setlocal iskeyword=38,42,43,45,47-58,60-62,64-90,97-122,_
|
||||
if exists("g:lisp_isk")
|
||||
exe "setl isk=".g:lisp_isk
|
||||
else
|
||||
set iskeyword=38,42,43,45,47-58,60-62,64-90,97-122,_
|
||||
setl isk=38,42,43,45,47-58,60-62,64-90,97-122,_
|
||||
endif
|
||||
|
||||
if exists("g:lispsyntax_ignorecase") || exists("g:lispsyntax_clisp")
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
" Language: Makefile
|
||||
" Maintainer: Claudio Fleiner <claudio@fleiner.com>
|
||||
" URL: http://www.fleiner.com/vim/syntax/make.vim
|
||||
" Last Change: 2012 Oct 05
|
||||
" Last Change: 2015 Feb 28
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
@@ -43,8 +43,8 @@ syn region makeIdent start="\$(" skip="\\)\|\\\\" end=")" contains=makeStatement
|
||||
syn region makeIdent start="\${" skip="\\}\|\\\\" end="}" contains=makeStatement,makeIdent,makeSString,makeDString
|
||||
syn match makeIdent "\$\$\w*"
|
||||
syn match makeIdent "\$[^({]"
|
||||
syn match makeIdent "^ *\a\w*\s*[:+?!*]="me=e-2
|
||||
syn match makeIdent "^ *\a\w*\s*="me=e-1
|
||||
syn match makeIdent "^ *[^:#= \t]*\s*[:+?!*]="me=e-2
|
||||
syn match makeIdent "^ *[^:#= \t]*\s*="me=e-1
|
||||
syn match makeIdent "%"
|
||||
|
||||
" Makefile.in variables
|
||||
@@ -55,11 +55,11 @@ syn match makeConfig "@[A-Za-z0-9_]\+@"
|
||||
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
|
||||
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,makeComment skipnl nextGroup=makeCommands
|
||||
syn match makeTarget "^[~A-Za-z0-9_./$()%*@-][A-Za-z0-9_./\t $()%*@-]*::\=\s*$" contains=makeIdent,makeSpecTarget,makeComment skipnl nextgroup=makeCommands,makeCommandError
|
||||
|
||||
syn region makeSpecTarget transparent matchgroup=makeSpecTarget start="^\.\(SUFFIXES\|PHONY\|DEFAULT\|PRECIOUS\|IGNORE\|SILENT\|EXPORT_ALL_VARIABLES\|KEEP_STATE\|LIBPATTERNS\|NOTPARALLEL\|DELETE_ON_ERROR\|INTERMEDIATE\|POSIX\|SECONDARY\)\>\s*:\{1,2}[^:=]"rs=e-1 end="[^\\]$" keepend contains=makeIdent,makeSpecTarget,makeNextLine skipnl nextGroup=makeCommands
|
||||
syn match makeSpecTarget "^\.\(SUFFIXES\|PHONY\|DEFAULT\|PRECIOUS\|IGNORE\|SILENT\|EXPORT_ALL_VARIABLES\|KEEP_STATE\|LIBPATTERNS\|NOTPARALLEL\|DELETE_ON_ERROR\|INTERMEDIATE\|POSIX\|SECONDARY\)\>\s*::\=\s*$" contains=makeIdent skipnl nextgroup=makeCommands,makeCommandError
|
||||
syn region makeSpecTarget transparent matchgroup=makeSpecTarget start="^\.\(SUFFIXES\|PHONY\|DEFAULT\|PRECIOUS\|IGNORE\|SILENT\|EXPORT_ALL_VARIABLES\|KEEP_STATE\|LIBPATTERNS\|NOTPARALLEL\|DELETE_ON_ERROR\|INTERMEDIATE\|POSIX\|SECONDARY\)\>\s*:\{1,2}[^:=]"rs=e-1 end="[^\\]$" keepend contains=makeIdent,makeSpecTarget,makeNextLine,makeComment skipnl nextGroup=makeCommands
|
||||
syn match makeSpecTarget "^\.\(SUFFIXES\|PHONY\|DEFAULT\|PRECIOUS\|IGNORE\|SILENT\|EXPORT_ALL_VARIABLES\|KEEP_STATE\|LIBPATTERNS\|NOTPARALLEL\|DELETE_ON_ERROR\|INTERMEDIATE\|POSIX\|SECONDARY\)\>\s*::\=\s*$" contains=makeIdent,makeComment skipnl nextgroup=makeCommands,makeCommandError
|
||||
|
||||
syn match makeCommandError "^\s\+\S.*" contained
|
||||
syn region makeCommands start=";"hs=s+1 start="^\t" end="^[^\t#]"me=e-1,re=e-1 end="^$" contained contains=makeCmdNextLine,makeSpecial,makeComment,makeIdent,makePreCondit,makeDefine,makeDString,makeSString nextgroup=makeCommandError
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
" Vim syntax file
|
||||
" Language: Maple V (based on release 4)
|
||||
" Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Jan 05, 2010
|
||||
" Version: 10
|
||||
" URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
|
||||
" Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Oct 23, 2014
|
||||
" Version: 11
|
||||
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_MAPLE
|
||||
"
|
||||
" Package Function Selection: {{{1
|
||||
" Because there are a lot of packages, and because of the potential for namespace
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
" Vim syntax file
|
||||
" Language: mplayer(1) configuration file
|
||||
" Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||
" Latest Revision: 2007-06-17
|
||||
" Language: mplayer(1) configuration file
|
||||
" Maintainer: Dmitri Vereshchagin <dmitri.vereshchagin@gmail.com>
|
||||
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||
" Latest Revision: 2015-01-24
|
||||
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
@@ -19,7 +20,7 @@ syn region mplayerconfComment display oneline start='#' end='$'
|
||||
|
||||
syn keyword mplayerconfPreProc include
|
||||
|
||||
syn keyword mplayerconfBoolean yes no
|
||||
syn keyword mplayerconfBoolean yes no true false
|
||||
|
||||
syn match mplayerconfNumber '\<\d\+\>'
|
||||
|
||||
@@ -68,7 +69,49 @@ syn keyword mplayerconfOption hardframedrop nomouseinput bandwidth dumpstream
|
||||
\ audio-delay audio-preload endpos ffourcc
|
||||
\ include info noautoexpand noskip o oac of
|
||||
\ ofps ovc skiplimit v vobsubout vobsuboutid
|
||||
\ lameopts lavcopts nuvopts xvidencopts
|
||||
\ lameopts lavcopts nuvopts xvidencopts a52drc
|
||||
\ adapter af-add af-clr af-del af-pre
|
||||
\ allow-dangerous-playlist-parsing ass
|
||||
\ ass-border-color ass-bottom-margin ass-color
|
||||
\ ass-font-scale ass-force-style ass-hinting
|
||||
\ ass-line-spacing ass-styles ass-top-margin
|
||||
\ ass-use-margins ausid bluray-angle
|
||||
\ bluray-device border border-pos-x border-pos-y
|
||||
\ cache-min cache-seek-min capture codecpath
|
||||
\ codecs-file correct-pts crash-debug
|
||||
\ doubleclick-time dvd-speed edl-backward-delay
|
||||
\ edl-start-pts embeddedfonts fafmttag
|
||||
\ field-dominance fontconfig force-avi-aspect
|
||||
\ force-key-frames frameno-file fullscreen gamma
|
||||
\ gui gui-include gui-wid heartbeat-cmd
|
||||
\ heartbeat-interval hr-edl-seek
|
||||
\ http-header-fields idle ignore-start
|
||||
\ key-fifo-size list-properties menu-chroot
|
||||
\ menu-keepdir menu-startup mixer-channel
|
||||
\ monitor-orientation monitorpixelaspect
|
||||
\ mouse-movements msgcharset msgcolor msglevel
|
||||
\ msgmodule name noar nocache noconfig
|
||||
\ noconsolecontrols nocorrect-pts nodouble
|
||||
\ noedl-start-pts noencodedups
|
||||
\ noflip-hebrew-commas nogui noidx noodml
|
||||
\ nostop-xscreensaver nosub noterm-osd
|
||||
\ osd-duration osd-fractions panscanrange
|
||||
\ pausing playing-msg priority profile
|
||||
\ progbar-align psprobe pvr radio referrer
|
||||
\ refreshrate reuse-socket rtc rtc-device
|
||||
\ rtsp-destination rtsp-port
|
||||
\ rtsp-stream-over-http screenh show-profile
|
||||
\ softvol softvol-max sub-paths subfont
|
||||
\ term-osd-esc title tvscan udp-ip udp-master
|
||||
\ udp-port udp-seek-threshold udp-slave
|
||||
\ unrarexec use-filedir-conf use-filename-title
|
||||
\ vf-add vf-clr vf-del vf-pre volstep volume
|
||||
\ zrhdec zrydoff
|
||||
|
||||
syn region mplayerconfString display oneline start=+"+ end=+"+
|
||||
syn region mplayerconfString display oneline start=+'+ end=+'+
|
||||
|
||||
syn region mplayerconfProfile display oneline start='^\s*\[' end='\]'
|
||||
|
||||
hi def link mplayerconfTodo Todo
|
||||
hi def link mplayerconfComment Comment
|
||||
@@ -76,6 +119,8 @@ hi def link mplayerconfPreProc PreProc
|
||||
hi def link mplayerconfBoolean Boolean
|
||||
hi def link mplayerconfNumber Number
|
||||
hi def link mplayerconfOption Keyword
|
||||
hi def link mplayerconfString String
|
||||
hi def link mplayerconfProfile Special
|
||||
|
||||
let b:current_syntax = "mplayerconf"
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Language : Netrw Remote-Directory Listing Syntax
|
||||
" Maintainer : Charles E. Campbell, Jr.
|
||||
" Last change: Mar 07, 2014
|
||||
" Version : 18
|
||||
" Maintainer : Charles E. Campbell
|
||||
" Last change: Oct 06, 2014
|
||||
" Version : 19
|
||||
" ---------------------------------------------------------------------
|
||||
|
||||
" Syntax Clearing: {{{1
|
||||
@@ -16,7 +16,7 @@ endif
|
||||
syn cluster NetrwGroup contains=netrwHide,netrwSortBy,netrwSortSeq,netrwQuickHelp,netrwVersion,netrwCopyTgt
|
||||
syn cluster NetrwTreeGroup contains=netrwDir,netrwSymLink,netrwExe
|
||||
|
||||
syn match netrwPlain "\(\S\+ \)*\S\+" contains=@NoSpell
|
||||
syn match netrwPlain "\(\S\+ \)*\S\+" contains=netrwLink,@NoSpell
|
||||
syn match netrwSpecial "\%(\S\+ \)*\S\+[*|=]\ze\%(\s\{2,}\|$\)" contains=netrwClassify,@NoSpell
|
||||
syn match netrwDir "\.\{1,2}/" contains=netrwClassify,@NoSpell
|
||||
"syn match netrwDir "\%(\S\+ \)*\S\+/" contains=netrwClassify,@NoSpell
|
||||
@@ -24,7 +24,11 @@ syn match netrwDir "\%(\S\+ \)*\S\+/\ze\%(\s\{2,}\|$\)" contains=netrwClassi
|
||||
syn match netrwSizeDate "\<\d\+\s\d\{1,2}/\d\{1,2}/\d\{4}\s" skipwhite contains=netrwDateSep,@NoSpell nextgroup=netrwTime
|
||||
syn match netrwSymLink "\%(\S\+ \)*\S\+@\ze\%(\s\{2,}\|$\)" contains=netrwClassify,@NoSpell
|
||||
syn match netrwExe "\%(\S\+ \)*\S*[^~]\*\ze\%(\s\{2,}\|$\)" contains=netrwClassify,@NoSpell
|
||||
if has("gui_running") && (&enc == 'utf-8' || &enc == 'utf-16' || &enc == 'ucs-4')
|
||||
syn match netrwTreeBar "^\%([-+|│] \)\+" contains=netrwTreeBarSpace nextgroup=@netrwTreeGroup
|
||||
else
|
||||
syn match netrwTreeBar "^\%([-+|] \)\+" contains=netrwTreeBarSpace nextgroup=@netrwTreeGroup
|
||||
endif
|
||||
syn match netrwTreeBarSpace " " contained
|
||||
|
||||
syn match netrwClassify "[*=|@/]\ze\%(\s\{2,}\|$\)" contained
|
||||
@@ -44,10 +48,11 @@ syn match netrwList ".*$" contained contains=netrwComma,@NoSpell
|
||||
syn match netrwComma "," contained
|
||||
syn region netrwQuickHelp matchgroup=Comment start="Quick Help:\s\+" end="$" contains=netrwHelpCmd,netrwQHTopic,@NoSpell keepend contained
|
||||
syn match netrwHelpCmd "\S\+\ze:" contained skipwhite contains=@NoSpell nextgroup=netrwCmdSep
|
||||
syn match netrwQHTopic "-\a\+-" contained skipwhite
|
||||
syn match netrwQHTopic "([a-zA-Z &]\+)" contained skipwhite
|
||||
syn match netrwCmdSep ":" contained nextgroup=netrwCmdNote
|
||||
syn match netrwCmdNote ".\{-}\ze " contained contains=@NoSpell
|
||||
syn match netrwVersion "(netrw.*)" contained contains=@NoSpell
|
||||
syn match netrwLink "-->" contained skipwhite
|
||||
|
||||
" -----------------------------
|
||||
" Special filetype highlighting {{{1
|
||||
@@ -95,6 +100,7 @@ if !exists("did_drchip_netrwlist_syntax")
|
||||
hi default link netrwComma netrwComment
|
||||
hi default link netrwHide netrwComment
|
||||
hi default link netrwMarkFile TabLineSel
|
||||
hi default link netrwLink Special
|
||||
|
||||
" special syntax highlighting (see :he g:netrw_special_syntax)
|
||||
hi default link netrwBak NonText
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
" Vim syntax file
|
||||
" Language: Postfix main.cf configuration
|
||||
" Maintainer: KELEMEN Peter <Peter dot Kelemen at cern dot ch>
|
||||
" Last Update: Hong Xu
|
||||
" Last Change: 2011 May 14
|
||||
" Last Updates: Anton Shestakov, Hong Xu
|
||||
" Last Change: 2015 Feb 10
|
||||
" Version: 0.40
|
||||
" URL: http://cern.ch/fuji/vim/syntax/pfmain.vim
|
||||
" Comment: Based on Postfix 2.9 defaults.
|
||||
" Comment: Based on Postfix 2.12/3.0 postconf.5.html.
|
||||
|
||||
if version < 600
|
||||
syntax clear
|
||||
@@ -41,6 +41,7 @@ syntax keyword pfmainConf address_verify_relayhost
|
||||
syntax keyword pfmainConf address_verify_sender
|
||||
syntax keyword pfmainConf address_verify_sender_dependent_default_transport_maps
|
||||
syntax keyword pfmainConf address_verify_sender_dependent_relayhost_maps
|
||||
syntax keyword pfmainConf address_verify_sender_ttl
|
||||
syntax keyword pfmainConf address_verify_service_name
|
||||
syntax keyword pfmainConf address_verify_transport_maps
|
||||
syntax keyword pfmainConf address_verify_virtual_transport
|
||||
@@ -52,6 +53,7 @@ syntax keyword pfmainConf allow_min_user
|
||||
syntax keyword pfmainConf allow_percent_hack
|
||||
syntax keyword pfmainConf allow_untrusted_routing
|
||||
syntax keyword pfmainConf alternate_config_directories
|
||||
syntax keyword pfmainConf always_add_missing_headers
|
||||
syntax keyword pfmainConf always_bcc
|
||||
syntax keyword pfmainConf anvil_rate_time_unit
|
||||
syntax keyword pfmainConf anvil_status_update_time
|
||||
@@ -61,6 +63,7 @@ syntax keyword pfmainConf application_event_drain_time
|
||||
syntax keyword pfmainConf authorized_flush_users
|
||||
syntax keyword pfmainConf authorized_mailq_users
|
||||
syntax keyword pfmainConf authorized_submit_users
|
||||
syntax keyword pfmainConf authorized_verp_clients
|
||||
syntax keyword pfmainConf backwards_bounce_logfile_compatibility
|
||||
syntax keyword pfmainConf berkeley_db_create_buffer_size
|
||||
syntax keyword pfmainConf berkeley_db_read_buffer_size
|
||||
@@ -81,7 +84,9 @@ syntax keyword pfmainConf command_directory
|
||||
syntax keyword pfmainConf command_execution_directory
|
||||
syntax keyword pfmainConf command_expansion_filter
|
||||
syntax keyword pfmainConf command_time_limit
|
||||
syntax keyword pfmainConf compatibility_level
|
||||
syntax keyword pfmainConf config_directory
|
||||
syntax keyword pfmainConf confirm_delay_cleared
|
||||
syntax keyword pfmainConf connection_cache_protocol_timeout
|
||||
syntax keyword pfmainConf connection_cache_service_name
|
||||
syntax keyword pfmainConf connection_cache_status_update_time
|
||||
@@ -89,14 +94,17 @@ syntax keyword pfmainConf connection_cache_ttl_limit
|
||||
syntax keyword pfmainConf content_filter
|
||||
syntax keyword pfmainConf cyrus_sasl_config_path
|
||||
syntax keyword pfmainConf daemon_directory
|
||||
syntax keyword pfmainConf daemon_table_open_error_is_fatal
|
||||
syntax keyword pfmainConf daemon_timeout
|
||||
syntax keyword pfmainConf data_directory
|
||||
syntax keyword pfmainConf debug_peer_level
|
||||
syntax keyword pfmainConf debug_peer_list
|
||||
syntax keyword pfmainConf debugger_command
|
||||
syntax keyword pfmainConf default_database_type
|
||||
syntax keyword pfmainConf default_delivery_slot_cost
|
||||
syntax keyword pfmainConf default_delivery_slot_discount
|
||||
syntax keyword pfmainConf default_delivery_slot_loan
|
||||
syntax keyword pfmainConf default_delivery_status_filter
|
||||
syntax keyword pfmainConf default_destination_concurrency_failed_cohort_limit
|
||||
syntax keyword pfmainConf default_destination_concurrency_limit
|
||||
syntax keyword pfmainConf default_destination_concurrency_negative_feedback
|
||||
@@ -137,6 +145,7 @@ syntax keyword pfmainConf duplicate_filter_limit
|
||||
syntax keyword pfmainConf empty_address_default_transport_maps_lookup_key
|
||||
syntax keyword pfmainConf empty_address_recipient
|
||||
syntax keyword pfmainConf empty_address_relayhost_maps_lookup_key
|
||||
syntax keyword pfmainConf enable_errors_to
|
||||
syntax keyword pfmainConf enable_long_queue_ids
|
||||
syntax keyword pfmainConf enable_original_recipient
|
||||
syntax keyword pfmainConf error_notice_recipient
|
||||
@@ -144,6 +153,8 @@ syntax keyword pfmainConf error_service_name
|
||||
syntax keyword pfmainConf execution_directory_expansion_filter
|
||||
syntax keyword pfmainConf expand_owner_alias
|
||||
syntax keyword pfmainConf export_environment
|
||||
syntax keyword pfmainConf extract_recipient_limit
|
||||
syntax keyword pfmainConf fallback_relay
|
||||
syntax keyword pfmainConf fallback_transport
|
||||
syntax keyword pfmainConf fallback_transport_maps
|
||||
syntax keyword pfmainConf fast_flush_domains
|
||||
@@ -177,25 +188,33 @@ syntax keyword pfmainConf ipc_idle
|
||||
syntax keyword pfmainConf ipc_timeout
|
||||
syntax keyword pfmainConf ipc_ttl
|
||||
syntax keyword pfmainConf line_length_limit
|
||||
syntax keyword pfmainConf lmdb_map_size
|
||||
syntax keyword pfmainConf lmtp_address_preference
|
||||
syntax keyword pfmainConf lmtp_address_verify_target
|
||||
syntax keyword pfmainConf lmtp_assume_final
|
||||
syntax keyword pfmainConf lmtp_bind_address
|
||||
syntax keyword pfmainConf lmtp_bind_address6
|
||||
syntax keyword pfmainConf lmtp_body_checks
|
||||
syntax keyword pfmainConf lmtp_cache_connection
|
||||
syntax keyword pfmainConf lmtp_cname_overrides_servername
|
||||
syntax keyword pfmainConf lmtp_connect_timeout
|
||||
syntax keyword pfmainConf lmtp_connection_cache_destinations
|
||||
syntax keyword pfmainConf lmtp_connection_cache_on_demand
|
||||
syntax keyword pfmainConf lmtp_connection_cache_time_limit
|
||||
syntax keyword pfmainConf lmtp_connection_reuse_count_limit
|
||||
syntax keyword pfmainConf lmtp_connection_reuse_time_limit
|
||||
syntax keyword pfmainConf lmtp_data_done_timeout
|
||||
syntax keyword pfmainConf lmtp_data_init_timeout
|
||||
syntax keyword pfmainConf lmtp_data_xfer_timeout
|
||||
syntax keyword pfmainConf lmtp_defer_if_no_mx_address_found
|
||||
syntax keyword pfmainConf lmtp_delivery_status_filter
|
||||
syntax keyword pfmainConf lmtp_destination_concurrency_limit
|
||||
syntax keyword pfmainConf lmtp_destination_recipient_limit
|
||||
syntax keyword pfmainConf lmtp_discard_lhlo_keyword_address_maps
|
||||
syntax keyword pfmainConf lmtp_discard_lhlo_keywords
|
||||
syntax keyword pfmainConf lmtp_dns_reply_filter
|
||||
syntax keyword pfmainConf lmtp_dns_resolver_options
|
||||
syntax keyword pfmainConf lmtp_dns_support_level
|
||||
syntax keyword pfmainConf lmtp_enforce_tls
|
||||
syntax keyword pfmainConf lmtp_generic_maps
|
||||
syntax keyword pfmainConf lmtp_header_checks
|
||||
@@ -230,9 +249,11 @@ syntax keyword pfmainConf lmtp_sasl_security_options
|
||||
syntax keyword pfmainConf lmtp_sasl_tls_security_options
|
||||
syntax keyword pfmainConf lmtp_sasl_tls_verified_security_options
|
||||
syntax keyword pfmainConf lmtp_sasl_type
|
||||
syntax keyword pfmainConf lmtp_send_dummy_mail_auth
|
||||
syntax keyword pfmainConf lmtp_send_xforward_command
|
||||
syntax keyword pfmainConf lmtp_sender_dependent_authentication
|
||||
syntax keyword pfmainConf lmtp_skip_5xx_greeting
|
||||
syntax keyword pfmainConf lmtp_skip_quit_response
|
||||
syntax keyword pfmainConf lmtp_starttls_timeout
|
||||
syntax keyword pfmainConf lmtp_tcp_port
|
||||
syntax keyword pfmainConf lmtp_tls_CAfile
|
||||
@@ -248,6 +269,7 @@ syntax keyword pfmainConf lmtp_tls_enforce_peername
|
||||
syntax keyword pfmainConf lmtp_tls_exclude_ciphers
|
||||
syntax keyword pfmainConf lmtp_tls_fingerprint_cert_match
|
||||
syntax keyword pfmainConf lmtp_tls_fingerprint_digest
|
||||
syntax keyword pfmainConf lmtp_tls_force_insecure_host_tlsa_lookup
|
||||
syntax keyword pfmainConf lmtp_tls_key_file
|
||||
syntax keyword pfmainConf lmtp_tls_loglevel
|
||||
syntax keyword pfmainConf lmtp_tls_mandatory_ciphers
|
||||
@@ -262,10 +284,12 @@ syntax keyword pfmainConf lmtp_tls_secure_cert_match
|
||||
syntax keyword pfmainConf lmtp_tls_security_level
|
||||
syntax keyword pfmainConf lmtp_tls_session_cache_database
|
||||
syntax keyword pfmainConf lmtp_tls_session_cache_timeout
|
||||
syntax keyword pfmainConf lmtp_tls_trust_anchor_file
|
||||
syntax keyword pfmainConf lmtp_tls_verify_cert_match
|
||||
syntax keyword pfmainConf lmtp_use_tls
|
||||
syntax keyword pfmainConf lmtp_xforward_timeout
|
||||
syntax keyword pfmainConf local_command_shell
|
||||
syntax keyword pfmainConf local_delivery_status_filter
|
||||
syntax keyword pfmainConf local_destination_concurrency_limit
|
||||
syntax keyword pfmainConf local_destination_recipient_limit
|
||||
syntax keyword pfmainConf local_header_rewrite_clients
|
||||
@@ -287,17 +311,19 @@ syntax keyword pfmainConf mailq_path
|
||||
syntax keyword pfmainConf manpage_directory
|
||||
syntax keyword pfmainConf maps_rbl_domains
|
||||
syntax keyword pfmainConf maps_rbl_reject_code
|
||||
syntax keyword pfmainConf master_service_disable
|
||||
syntax keyword pfmainConf masquerade_classes
|
||||
syntax keyword pfmainConf masquerade_domains
|
||||
syntax keyword pfmainConf masquerade_exceptions
|
||||
syntax keyword pfmainConf master_service_disable
|
||||
syntax keyword pfmainConf max_idle
|
||||
syntax keyword pfmainConf max_use
|
||||
syntax keyword pfmainConf maximal_backoff_time
|
||||
syntax keyword pfmainConf maximal_queue_lifetime
|
||||
syntax keyword pfmainConf message_drop_headers
|
||||
syntax keyword pfmainConf message_reject_characters
|
||||
syntax keyword pfmainConf message_size_limit
|
||||
syntax keyword pfmainConf message_strip_characters
|
||||
syntax keyword pfmainConf meta_directory
|
||||
syntax keyword pfmainConf milter_command_timeout
|
||||
syntax keyword pfmainConf milter_connect_macros
|
||||
syntax keyword pfmainConf milter_connect_timeout
|
||||
@@ -335,10 +361,12 @@ syntax keyword pfmainConf newaliases_path
|
||||
syntax keyword pfmainConf non_fqdn_reject_code
|
||||
syntax keyword pfmainConf non_smtpd_milters
|
||||
syntax keyword pfmainConf notify_classes
|
||||
syntax keyword pfmainConf nullmx_reject_code
|
||||
syntax keyword pfmainConf owner_request_special
|
||||
syntax keyword pfmainConf parent_domain_matches_subdomains
|
||||
syntax keyword pfmainConf permit_mx_backup_networks
|
||||
syntax keyword pfmainConf pickup_service_name
|
||||
syntax keyword pfmainConf pipe_delivery_status_filter
|
||||
syntax keyword pfmainConf plaintext_reject_code
|
||||
syntax keyword pfmainConf postmulti_control_commands
|
||||
syntax keyword pfmainConf postmulti_start_commands
|
||||
@@ -362,7 +390,9 @@ syntax keyword pfmainConf postscreen_dnsbl_action
|
||||
syntax keyword pfmainConf postscreen_dnsbl_reply_map
|
||||
syntax keyword pfmainConf postscreen_dnsbl_sites
|
||||
syntax keyword pfmainConf postscreen_dnsbl_threshold
|
||||
syntax keyword pfmainConf postscreen_dnsbl_timeout
|
||||
syntax keyword pfmainConf postscreen_dnsbl_ttl
|
||||
syntax keyword pfmainConf postscreen_dnsbl_whitelist_threshold
|
||||
syntax keyword pfmainConf postscreen_enforce_tls
|
||||
syntax keyword pfmainConf postscreen_expansion_filter
|
||||
syntax keyword pfmainConf postscreen_forbidden_commands
|
||||
@@ -381,6 +411,8 @@ syntax keyword pfmainConf postscreen_post_queue_limit
|
||||
syntax keyword pfmainConf postscreen_pre_queue_limit
|
||||
syntax keyword pfmainConf postscreen_reject_footer
|
||||
syntax keyword pfmainConf postscreen_tls_security_level
|
||||
syntax keyword pfmainConf postscreen_upstream_proxy_protocol
|
||||
syntax keyword pfmainConf postscreen_upstream_proxy_timeout
|
||||
syntax keyword pfmainConf postscreen_use_tls
|
||||
syntax keyword pfmainConf postscreen_watchdog_timeout
|
||||
syntax keyword pfmainConf postscreen_whitelist_interfaces
|
||||
@@ -395,7 +427,9 @@ syntax keyword pfmainConf proxy_write_maps
|
||||
syntax keyword pfmainConf proxymap_service_name
|
||||
syntax keyword pfmainConf proxywrite_service_name
|
||||
syntax keyword pfmainConf qmgr_clog_warn_time
|
||||
syntax keyword pfmainConf qmgr_daemon_timeout
|
||||
syntax keyword pfmainConf qmgr_fudge_factor
|
||||
syntax keyword pfmainConf qmgr_ipc_timeout
|
||||
syntax keyword pfmainConf qmgr_message_active_limit
|
||||
syntax keyword pfmainConf qmgr_message_recipient_limit
|
||||
syntax keyword pfmainConf qmgr_message_recipient_minimum
|
||||
@@ -435,17 +469,21 @@ syntax keyword pfmainConf resolve_numeric_domain
|
||||
syntax keyword pfmainConf rewrite_service_name
|
||||
syntax keyword pfmainConf sample_directory
|
||||
syntax keyword pfmainConf send_cyrus_sasl_authzid
|
||||
syntax keyword pfmainConf sender_based_routing
|
||||
syntax keyword pfmainConf sender_bcc_maps
|
||||
syntax keyword pfmainConf sender_canonical_classes
|
||||
syntax keyword pfmainConf sender_canonical_maps
|
||||
syntax keyword pfmainConf sender_dependent_default_transport_maps
|
||||
syntax keyword pfmainConf sender_dependent_relayhost_maps
|
||||
syntax keyword pfmainConf sendmail_fix_line_endings
|
||||
syntax keyword pfmainConf sendmail_path
|
||||
syntax keyword pfmainConf service_throttle_time
|
||||
syntax keyword pfmainConf setgid_group
|
||||
syntax keyword pfmainConf shlib_directory
|
||||
syntax keyword pfmainConf show_user_unknown_table_name
|
||||
syntax keyword pfmainConf showq_service_name
|
||||
syntax keyword pfmainConf smtp_address_preference
|
||||
syntax keyword pfmainConf smtp_address_verify_target
|
||||
syntax keyword pfmainConf smtp_always_send_ehlo
|
||||
syntax keyword pfmainConf smtp_bind_address
|
||||
syntax keyword pfmainConf smtp_bind_address6
|
||||
@@ -455,16 +493,20 @@ syntax keyword pfmainConf smtp_connect_timeout
|
||||
syntax keyword pfmainConf smtp_connection_cache_destinations
|
||||
syntax keyword pfmainConf smtp_connection_cache_on_demand
|
||||
syntax keyword pfmainConf smtp_connection_cache_time_limit
|
||||
syntax keyword pfmainConf smtp_connection_reuse_count_limit
|
||||
syntax keyword pfmainConf smtp_connection_reuse_time_limit
|
||||
syntax keyword pfmainConf smtp_data_done_timeout
|
||||
syntax keyword pfmainConf smtp_data_init_timeout
|
||||
syntax keyword pfmainConf smtp_data_xfer_timeout
|
||||
syntax keyword pfmainConf smtp_defer_if_no_mx_address_found
|
||||
syntax keyword pfmainConf smtp_delivery_status_filter
|
||||
syntax keyword pfmainConf smtp_destination_concurrency_limit
|
||||
syntax keyword pfmainConf smtp_destination_recipient_limit
|
||||
syntax keyword pfmainConf smtp_discard_ehlo_keyword_address_maps
|
||||
syntax keyword pfmainConf smtp_discard_ehlo_keywords
|
||||
syntax keyword pfmainConf smtp_dns_reply_filter
|
||||
syntax keyword pfmainConf smtp_dns_resolver_options
|
||||
syntax keyword pfmainConf smtp_dns_support_level
|
||||
syntax keyword pfmainConf smtp_enforce_tls
|
||||
syntax keyword pfmainConf smtp_fallback_relay
|
||||
syntax keyword pfmainConf smtp_generic_maps
|
||||
@@ -479,6 +521,7 @@ syntax keyword pfmainConf smtp_mx_address_limit
|
||||
syntax keyword pfmainConf smtp_mx_session_limit
|
||||
syntax keyword pfmainConf smtp_nested_header_checks
|
||||
syntax keyword pfmainConf smtp_never_send_ehlo
|
||||
syntax keyword pfmainConf smtp_per_record_deadline
|
||||
syntax keyword pfmainConf smtp_pix_workaround_delay_time
|
||||
syntax keyword pfmainConf smtp_pix_workaround_maps
|
||||
syntax keyword pfmainConf smtp_pix_workaround_threshold_time
|
||||
@@ -500,8 +543,10 @@ syntax keyword pfmainConf smtp_sasl_security_options
|
||||
syntax keyword pfmainConf smtp_sasl_tls_security_options
|
||||
syntax keyword pfmainConf smtp_sasl_tls_verified_security_options
|
||||
syntax keyword pfmainConf smtp_sasl_type
|
||||
syntax keyword pfmainConf smtp_send_dummy_mail_auth
|
||||
syntax keyword pfmainConf smtp_send_xforward_command
|
||||
syntax keyword pfmainConf smtp_sender_dependent_authentication
|
||||
syntax keyword pfmainConf smtp_skip_4xx_greeting
|
||||
syntax keyword pfmainConf smtp_skip_5xx_greeting
|
||||
syntax keyword pfmainConf smtp_skip_quit_response
|
||||
syntax keyword pfmainConf smtp_starttls_timeout
|
||||
@@ -519,6 +564,7 @@ syntax keyword pfmainConf smtp_tls_enforce_peername
|
||||
syntax keyword pfmainConf smtp_tls_exclude_ciphers
|
||||
syntax keyword pfmainConf smtp_tls_fingerprint_cert_match
|
||||
syntax keyword pfmainConf smtp_tls_fingerprint_digest
|
||||
syntax keyword pfmainConf smtp_tls_force_insecure_host_tlsa_lookup
|
||||
syntax keyword pfmainConf smtp_tls_key_file
|
||||
syntax keyword pfmainConf smtp_tls_loglevel
|
||||
syntax keyword pfmainConf smtp_tls_mandatory_ciphers
|
||||
@@ -533,7 +579,9 @@ syntax keyword pfmainConf smtp_tls_secure_cert_match
|
||||
syntax keyword pfmainConf smtp_tls_security_level
|
||||
syntax keyword pfmainConf smtp_tls_session_cache_database
|
||||
syntax keyword pfmainConf smtp_tls_session_cache_timeout
|
||||
syntax keyword pfmainConf smtp_tls_trust_anchor_file
|
||||
syntax keyword pfmainConf smtp_tls_verify_cert_match
|
||||
syntax keyword pfmainConf smtp_tls_wrappermode
|
||||
syntax keyword pfmainConf smtp_use_tls
|
||||
syntax keyword pfmainConf smtp_xforward_timeout
|
||||
syntax keyword pfmainConf smtpd_authorized_verp_clients
|
||||
@@ -554,6 +602,7 @@ syntax keyword pfmainConf smtpd_delay_open_until_valid_rcpt
|
||||
syntax keyword pfmainConf smtpd_delay_reject
|
||||
syntax keyword pfmainConf smtpd_discard_ehlo_keyword_address_maps
|
||||
syntax keyword pfmainConf smtpd_discard_ehlo_keywords
|
||||
syntax keyword pfmainConf smtpd_dns_reply_filter
|
||||
syntax keyword pfmainConf smtpd_end_of_data_restrictions
|
||||
syntax keyword pfmainConf smtpd_enforce_tls
|
||||
syntax keyword pfmainConf smtpd_error_sleep_time
|
||||
@@ -565,14 +614,19 @@ syntax keyword pfmainConf smtpd_helo_required
|
||||
syntax keyword pfmainConf smtpd_helo_restrictions
|
||||
syntax keyword pfmainConf smtpd_history_flush_threshold
|
||||
syntax keyword pfmainConf smtpd_junk_command_limit
|
||||
syntax keyword pfmainConf smtpd_log_access_permit_actions
|
||||
syntax keyword pfmainConf smtpd_milters
|
||||
syntax keyword pfmainConf smtpd_noop_commands
|
||||
syntax keyword pfmainConf smtpd_null_access_lookup_key
|
||||
syntax keyword pfmainConf smtpd_peername_lookup
|
||||
syntax keyword pfmainConf smtpd_per_record_deadline
|
||||
syntax keyword pfmainConf smtpd_policy_service_default_action
|
||||
syntax keyword pfmainConf smtpd_policy_service_max_idle
|
||||
syntax keyword pfmainConf smtpd_policy_service_max_ttl
|
||||
syntax keyword pfmainConf smtpd_policy_service_request_limit
|
||||
syntax keyword pfmainConf smtpd_policy_service_retry_delay
|
||||
syntax keyword pfmainConf smtpd_policy_service_timeout
|
||||
syntax keyword pfmainConf smtpd_policy_service_try_limit
|
||||
syntax keyword pfmainConf smtpd_proxy_ehlo
|
||||
syntax keyword pfmainConf smtpd_proxy_filter
|
||||
syntax keyword pfmainConf smtpd_proxy_options
|
||||
@@ -583,13 +637,16 @@ syntax keyword pfmainConf smtpd_recipient_restrictions
|
||||
syntax keyword pfmainConf smtpd_reject_footer
|
||||
syntax keyword pfmainConf smtpd_reject_unlisted_recipient
|
||||
syntax keyword pfmainConf smtpd_reject_unlisted_sender
|
||||
syntax keyword pfmainConf smtpd_relay_restrictions
|
||||
syntax keyword pfmainConf smtpd_restriction_classes
|
||||
syntax keyword pfmainConf smtpd_sasl_application_name
|
||||
syntax keyword pfmainConf smtpd_sasl_auth_enable
|
||||
syntax keyword pfmainConf smtpd_sasl_authenticated_header
|
||||
syntax keyword pfmainConf smtpd_sasl_exceptions_networks
|
||||
syntax keyword pfmainConf smtpd_sasl_local_domain
|
||||
syntax keyword pfmainConf smtpd_sasl_path
|
||||
syntax keyword pfmainConf smtpd_sasl_security_options
|
||||
syntax keyword pfmainConf smtpd_sasl_service
|
||||
syntax keyword pfmainConf smtpd_sasl_tls_security_options
|
||||
syntax keyword pfmainConf smtpd_sasl_type
|
||||
syntax keyword pfmainConf smtpd_sender_login_maps
|
||||
@@ -628,21 +685,21 @@ syntax keyword pfmainConf smtpd_tls_security_level
|
||||
syntax keyword pfmainConf smtpd_tls_session_cache_database
|
||||
syntax keyword pfmainConf smtpd_tls_session_cache_timeout
|
||||
syntax keyword pfmainConf smtpd_tls_wrappermode
|
||||
syntax keyword pfmainConf smtpd_upstream_proxy_protocol
|
||||
syntax keyword pfmainConf smtpd_upstream_proxy_timeout
|
||||
syntax keyword pfmainConf smtpd_use_tls
|
||||
syntax keyword pfmainConf smtputf8_autodetect_classes
|
||||
syntax keyword pfmainConf smtputf8_enable
|
||||
syntax keyword pfmainConf soft_bounce
|
||||
syntax keyword pfmainConf stale_lock_time
|
||||
syntax keyword pfmainConf stress
|
||||
syntax keyword pfmainConf strict_7bit_headers
|
||||
syntax keyword pfmainConf strict_8bitmime
|
||||
syntax keyword pfmainConf strict_8bitmime_body
|
||||
syntax keyword pfmainConf strict_mime_encoding_domain
|
||||
syntax keyword pfmainConf strict_rfc821_envelopes
|
||||
syntax keyword pfmainConf strict_7bit_headers
|
||||
syntax keyword pfmainConf strict_8bitmime
|
||||
syntax keyword pfmainConf strict_8bitmime_body
|
||||
syntax keyword pfmainConf strict_mailbox_ownership
|
||||
syntax keyword pfmainConf strict_mime_encoding_domain
|
||||
syntax keyword pfmainConf strict_rfc821_envelopes
|
||||
syntax keyword pfmainConf strict_smtputf8
|
||||
syntax keyword pfmainConf sun_mailtool_compatibility
|
||||
syntax keyword pfmainConf swap_bangpath
|
||||
syntax keyword pfmainConf syslog_facility
|
||||
@@ -650,11 +707,15 @@ syntax keyword pfmainConf syslog_name
|
||||
syntax keyword pfmainConf tcp_windowsize
|
||||
syntax keyword pfmainConf tls_append_default_CA
|
||||
syntax keyword pfmainConf tls_daemon_random_bytes
|
||||
syntax keyword pfmainConf tls_dane_digest_agility
|
||||
syntax keyword pfmainConf tls_dane_digests
|
||||
syntax keyword pfmainConf tls_dane_trust_anchor_digest_enable
|
||||
syntax keyword pfmainConf tls_disable_workarounds
|
||||
syntax keyword pfmainConf tls_eecdh_strong_curve
|
||||
syntax keyword pfmainConf tls_eecdh_ultra_curve
|
||||
syntax keyword pfmainConf tls_export_cipherlist
|
||||
syntax keyword pfmainConf tls_high_cipherlist
|
||||
syntax keyword pfmainConf tls_legacy_public_key_fingerprints
|
||||
syntax keyword pfmainConf tls_low_cipherlist
|
||||
syntax keyword pfmainConf tls_medium_cipherlist
|
||||
syntax keyword pfmainConf tls_null_cipherlist
|
||||
@@ -664,6 +725,10 @@ syntax keyword pfmainConf tls_random_exchange_name
|
||||
syntax keyword pfmainConf tls_random_prng_update_period
|
||||
syntax keyword pfmainConf tls_random_reseed_period
|
||||
syntax keyword pfmainConf tls_random_source
|
||||
syntax keyword pfmainConf tls_session_ticket_cipher
|
||||
syntax keyword pfmainConf tls_ssl_options
|
||||
syntax keyword pfmainConf tls_wildcard_matches_multiple_labels
|
||||
syntax keyword pfmainConf tlsmgr_service_name
|
||||
syntax keyword pfmainConf tlsproxy_enforce_tls
|
||||
syntax keyword pfmainConf tlsproxy_service_name
|
||||
syntax keyword pfmainConf tlsproxy_tls_CAfile
|
||||
@@ -711,6 +776,7 @@ syntax keyword pfmainConf transport_recipient_limit
|
||||
syntax keyword pfmainConf transport_recipient_refill_delay
|
||||
syntax keyword pfmainConf transport_recipient_refill_limit
|
||||
syntax keyword pfmainConf transport_retry_time
|
||||
syntax keyword pfmainConf transport_time_limit
|
||||
syntax keyword pfmainConf trigger_timeout
|
||||
syntax keyword pfmainConf undisclosed_recipients_header
|
||||
syntax keyword pfmainConf unknown_address_reject_code
|
||||
@@ -731,10 +797,12 @@ syntax keyword pfmainConf unverified_sender_reject_code
|
||||
syntax keyword pfmainConf unverified_sender_reject_reason
|
||||
syntax keyword pfmainConf unverified_sender_tempfail_action
|
||||
syntax keyword pfmainConf verp_delimiter_filter
|
||||
syntax keyword pfmainConf virtual_alias_address_length_limit
|
||||
syntax keyword pfmainConf virtual_alias_domains
|
||||
syntax keyword pfmainConf virtual_alias_expansion_limit
|
||||
syntax keyword pfmainConf virtual_alias_maps
|
||||
syntax keyword pfmainConf virtual_alias_recursion_limit
|
||||
syntax keyword pfmainConf virtual_delivery_status_filter
|
||||
syntax keyword pfmainConf virtual_destination_concurrency_limit
|
||||
syntax keyword pfmainConf virtual_destination_recipient_limit
|
||||
syntax keyword pfmainConf virtual_gid_maps
|
||||
@@ -743,6 +811,7 @@ syntax keyword pfmainConf virtual_mailbox_domains
|
||||
syntax keyword pfmainConf virtual_mailbox_limit
|
||||
syntax keyword pfmainConf virtual_mailbox_lock
|
||||
syntax keyword pfmainConf virtual_mailbox_maps
|
||||
syntax keyword pfmainConf virtual_maps
|
||||
syntax keyword pfmainConf virtual_minimum_uid
|
||||
syntax keyword pfmainConf virtual_transport
|
||||
syntax keyword pfmainConf virtual_uid_maps
|
||||
@@ -765,6 +834,7 @@ syntax match pfmainRef "$\<address_verify_relayhost\>"
|
||||
syntax match pfmainRef "$\<address_verify_sender\>"
|
||||
syntax match pfmainRef "$\<address_verify_sender_dependent_default_transport_maps\>"
|
||||
syntax match pfmainRef "$\<address_verify_sender_dependent_relayhost_maps\>"
|
||||
syntax match pfmainRef "$\<address_verify_sender_ttl\>"
|
||||
syntax match pfmainRef "$\<address_verify_service_name\>"
|
||||
syntax match pfmainRef "$\<address_verify_transport_maps\>"
|
||||
syntax match pfmainRef "$\<address_verify_virtual_transport\>"
|
||||
@@ -776,6 +846,7 @@ syntax match pfmainRef "$\<allow_min_user\>"
|
||||
syntax match pfmainRef "$\<allow_percent_hack\>"
|
||||
syntax match pfmainRef "$\<allow_untrusted_routing\>"
|
||||
syntax match pfmainRef "$\<alternate_config_directories\>"
|
||||
syntax match pfmainRef "$\<always_add_missing_headers\>"
|
||||
syntax match pfmainRef "$\<always_bcc\>"
|
||||
syntax match pfmainRef "$\<anvil_rate_time_unit\>"
|
||||
syntax match pfmainRef "$\<anvil_status_update_time\>"
|
||||
@@ -785,6 +856,7 @@ syntax match pfmainRef "$\<application_event_drain_time\>"
|
||||
syntax match pfmainRef "$\<authorized_flush_users\>"
|
||||
syntax match pfmainRef "$\<authorized_mailq_users\>"
|
||||
syntax match pfmainRef "$\<authorized_submit_users\>"
|
||||
syntax match pfmainRef "$\<authorized_verp_clients\>"
|
||||
syntax match pfmainRef "$\<backwards_bounce_logfile_compatibility\>"
|
||||
syntax match pfmainRef "$\<berkeley_db_create_buffer_size\>"
|
||||
syntax match pfmainRef "$\<berkeley_db_read_buffer_size\>"
|
||||
@@ -805,7 +877,9 @@ syntax match pfmainRef "$\<command_directory\>"
|
||||
syntax match pfmainRef "$\<command_execution_directory\>"
|
||||
syntax match pfmainRef "$\<command_expansion_filter\>"
|
||||
syntax match pfmainRef "$\<command_time_limit\>"
|
||||
syntax match pfmainRef "$\<compatibility_level\>"
|
||||
syntax match pfmainRef "$\<config_directory\>"
|
||||
syntax match pfmainRef "$\<confirm_delay_cleared\>"
|
||||
syntax match pfmainRef "$\<connection_cache_protocol_timeout\>"
|
||||
syntax match pfmainRef "$\<connection_cache_service_name\>"
|
||||
syntax match pfmainRef "$\<connection_cache_status_update_time\>"
|
||||
@@ -813,14 +887,17 @@ syntax match pfmainRef "$\<connection_cache_ttl_limit\>"
|
||||
syntax match pfmainRef "$\<content_filter\>"
|
||||
syntax match pfmainRef "$\<cyrus_sasl_config_path\>"
|
||||
syntax match pfmainRef "$\<daemon_directory\>"
|
||||
syntax match pfmainRef "$\<daemon_table_open_error_is_fatal\>"
|
||||
syntax match pfmainRef "$\<daemon_timeout\>"
|
||||
syntax match pfmainRef "$\<data_directory\>"
|
||||
syntax match pfmainRef "$\<debug_peer_level\>"
|
||||
syntax match pfmainRef "$\<debug_peer_list\>"
|
||||
syntax match pfmainRef "$\<debugger_command\>"
|
||||
syntax match pfmainRef "$\<default_database_type\>"
|
||||
syntax match pfmainRef "$\<default_delivery_slot_cost\>"
|
||||
syntax match pfmainRef "$\<default_delivery_slot_discount\>"
|
||||
syntax match pfmainRef "$\<default_delivery_slot_loan\>"
|
||||
syntax match pfmainRef "$\<default_delivery_status_filter\>"
|
||||
syntax match pfmainRef "$\<default_destination_concurrency_failed_cohort_limit\>"
|
||||
syntax match pfmainRef "$\<default_destination_concurrency_limit\>"
|
||||
syntax match pfmainRef "$\<default_destination_concurrency_negative_feedback\>"
|
||||
@@ -861,6 +938,7 @@ syntax match pfmainRef "$\<duplicate_filter_limit\>"
|
||||
syntax match pfmainRef "$\<empty_address_default_transport_maps_lookup_key\>"
|
||||
syntax match pfmainRef "$\<empty_address_recipient\>"
|
||||
syntax match pfmainRef "$\<empty_address_relayhost_maps_lookup_key\>"
|
||||
syntax match pfmainRef "$\<enable_errors_to\>"
|
||||
syntax match pfmainRef "$\<enable_long_queue_ids\>"
|
||||
syntax match pfmainRef "$\<enable_original_recipient\>"
|
||||
syntax match pfmainRef "$\<error_notice_recipient\>"
|
||||
@@ -868,6 +946,8 @@ syntax match pfmainRef "$\<error_service_name\>"
|
||||
syntax match pfmainRef "$\<execution_directory_expansion_filter\>"
|
||||
syntax match pfmainRef "$\<expand_owner_alias\>"
|
||||
syntax match pfmainRef "$\<export_environment\>"
|
||||
syntax match pfmainRef "$\<extract_recipient_limit\>"
|
||||
syntax match pfmainRef "$\<fallback_relay\>"
|
||||
syntax match pfmainRef "$\<fallback_transport\>"
|
||||
syntax match pfmainRef "$\<fallback_transport_maps\>"
|
||||
syntax match pfmainRef "$\<fast_flush_domains\>"
|
||||
@@ -901,25 +981,33 @@ syntax match pfmainRef "$\<ipc_idle\>"
|
||||
syntax match pfmainRef "$\<ipc_timeout\>"
|
||||
syntax match pfmainRef "$\<ipc_ttl\>"
|
||||
syntax match pfmainRef "$\<line_length_limit\>"
|
||||
syntax match pfmainRef "$\<lmdb_map_size\>"
|
||||
syntax match pfmainRef "$\<lmtp_address_preference\>"
|
||||
syntax match pfmainRef "$\<lmtp_address_verify_target\>"
|
||||
syntax match pfmainRef "$\<lmtp_assume_final\>"
|
||||
syntax match pfmainRef "$\<lmtp_bind_address\>"
|
||||
syntax match pfmainRef "$\<lmtp_bind_address6\>"
|
||||
syntax match pfmainRef "$\<lmtp_body_checks\>"
|
||||
syntax match pfmainRef "$\<lmtp_cache_connection\>"
|
||||
syntax match pfmainRef "$\<lmtp_cname_overrides_servername\>"
|
||||
syntax match pfmainRef "$\<lmtp_connect_timeout\>"
|
||||
syntax match pfmainRef "$\<lmtp_connection_cache_destinations\>"
|
||||
syntax match pfmainRef "$\<lmtp_connection_cache_on_demand\>"
|
||||
syntax match pfmainRef "$\<lmtp_connection_cache_time_limit\>"
|
||||
syntax match pfmainRef "$\<lmtp_connection_reuse_count_limit\>"
|
||||
syntax match pfmainRef "$\<lmtp_connection_reuse_time_limit\>"
|
||||
syntax match pfmainRef "$\<lmtp_data_done_timeout\>"
|
||||
syntax match pfmainRef "$\<lmtp_data_init_timeout\>"
|
||||
syntax match pfmainRef "$\<lmtp_data_xfer_timeout\>"
|
||||
syntax match pfmainRef "$\<lmtp_defer_if_no_mx_address_found\>"
|
||||
syntax match pfmainRef "$\<lmtp_delivery_status_filter\>"
|
||||
syntax match pfmainRef "$\<lmtp_destination_concurrency_limit\>"
|
||||
syntax match pfmainRef "$\<lmtp_destination_recipient_limit\>"
|
||||
syntax match pfmainRef "$\<lmtp_discard_lhlo_keyword_address_maps\>"
|
||||
syntax match pfmainRef "$\<lmtp_discard_lhlo_keywords\>"
|
||||
syntax match pfmainRef "$\<lmtp_dns_reply_filter\>"
|
||||
syntax match pfmainRef "$\<lmtp_dns_resolver_options\>"
|
||||
syntax match pfmainRef "$\<lmtp_dns_support_level\>"
|
||||
syntax match pfmainRef "$\<lmtp_enforce_tls\>"
|
||||
syntax match pfmainRef "$\<lmtp_generic_maps\>"
|
||||
syntax match pfmainRef "$\<lmtp_header_checks\>"
|
||||
@@ -954,9 +1042,11 @@ syntax match pfmainRef "$\<lmtp_sasl_security_options\>"
|
||||
syntax match pfmainRef "$\<lmtp_sasl_tls_security_options\>"
|
||||
syntax match pfmainRef "$\<lmtp_sasl_tls_verified_security_options\>"
|
||||
syntax match pfmainRef "$\<lmtp_sasl_type\>"
|
||||
syntax match pfmainRef "$\<lmtp_send_dummy_mail_auth\>"
|
||||
syntax match pfmainRef "$\<lmtp_send_xforward_command\>"
|
||||
syntax match pfmainRef "$\<lmtp_sender_dependent_authentication\>"
|
||||
syntax match pfmainRef "$\<lmtp_skip_5xx_greeting\>"
|
||||
syntax match pfmainRef "$\<lmtp_skip_quit_response\>"
|
||||
syntax match pfmainRef "$\<lmtp_starttls_timeout\>"
|
||||
syntax match pfmainRef "$\<lmtp_tcp_port\>"
|
||||
syntax match pfmainRef "$\<lmtp_tls_CAfile\>"
|
||||
@@ -972,6 +1062,7 @@ syntax match pfmainRef "$\<lmtp_tls_enforce_peername\>"
|
||||
syntax match pfmainRef "$\<lmtp_tls_exclude_ciphers\>"
|
||||
syntax match pfmainRef "$\<lmtp_tls_fingerprint_cert_match\>"
|
||||
syntax match pfmainRef "$\<lmtp_tls_fingerprint_digest\>"
|
||||
syntax match pfmainRef "$\<lmtp_tls_force_insecure_host_tlsa_lookup\>"
|
||||
syntax match pfmainRef "$\<lmtp_tls_key_file\>"
|
||||
syntax match pfmainRef "$\<lmtp_tls_loglevel\>"
|
||||
syntax match pfmainRef "$\<lmtp_tls_mandatory_ciphers\>"
|
||||
@@ -982,11 +1073,16 @@ syntax match pfmainRef "$\<lmtp_tls_per_site\>"
|
||||
syntax match pfmainRef "$\<lmtp_tls_policy_maps\>"
|
||||
syntax match pfmainRef "$\<lmtp_tls_protocols\>"
|
||||
syntax match pfmainRef "$\<lmtp_tls_scert_verifydepth\>"
|
||||
syntax match pfmainRef "$\<lmtp_tls_secure_cert_match\>"
|
||||
syntax match pfmainRef "$\<lmtp_tls_security_level\>"
|
||||
syntax match pfmainRef "$\<lmtp_tls_session_cache_database\>"
|
||||
syntax match pfmainRef "$\<lmtp_tls_session_cache_timeout\>"
|
||||
syntax match pfmainRef "$\<lmtp_tls_trust_anchor_file\>"
|
||||
syntax match pfmainRef "$\<lmtp_tls_verify_cert_match\>"
|
||||
syntax match pfmainRef "$\<lmtp_use_tls\>"
|
||||
syntax match pfmainRef "$\<lmtp_xforward_timeout\>"
|
||||
syntax match pfmainRef "$\<local_command_shell\>"
|
||||
syntax match pfmainRef "$\<local_delivery_status_filter\>"
|
||||
syntax match pfmainRef "$\<local_destination_concurrency_limit\>"
|
||||
syntax match pfmainRef "$\<local_destination_recipient_limit\>"
|
||||
syntax match pfmainRef "$\<local_header_rewrite_clients\>"
|
||||
@@ -1008,17 +1104,19 @@ syntax match pfmainRef "$\<mailq_path\>"
|
||||
syntax match pfmainRef "$\<manpage_directory\>"
|
||||
syntax match pfmainRef "$\<maps_rbl_domains\>"
|
||||
syntax match pfmainRef "$\<maps_rbl_reject_code\>"
|
||||
syntax match pfmainRef "$\<master_service_disable\>"
|
||||
syntax match pfmainRef "$\<masquerade_classes\>"
|
||||
syntax match pfmainRef "$\<masquerade_domains\>"
|
||||
syntax match pfmainRef "$\<masquerade_exceptions\>"
|
||||
syntax match pfmainRef "$\<master_service_disable\>"
|
||||
syntax match pfmainRef "$\<max_idle\>"
|
||||
syntax match pfmainRef "$\<max_use\>"
|
||||
syntax match pfmainRef "$\<maximal_backoff_time\>"
|
||||
syntax match pfmainRef "$\<maximal_queue_lifetime\>"
|
||||
syntax match pfmainRef "$\<message_drop_headers\>"
|
||||
syntax match pfmainRef "$\<message_reject_characters\>"
|
||||
syntax match pfmainRef "$\<message_size_limit\>"
|
||||
syntax match pfmainRef "$\<message_strip_characters\>"
|
||||
syntax match pfmainRef "$\<meta_directory\>"
|
||||
syntax match pfmainRef "$\<milter_command_timeout\>"
|
||||
syntax match pfmainRef "$\<milter_connect_macros\>"
|
||||
syntax match pfmainRef "$\<milter_connect_timeout\>"
|
||||
@@ -1056,10 +1154,12 @@ syntax match pfmainRef "$\<newaliases_path\>"
|
||||
syntax match pfmainRef "$\<non_fqdn_reject_code\>"
|
||||
syntax match pfmainRef "$\<non_smtpd_milters\>"
|
||||
syntax match pfmainRef "$\<notify_classes\>"
|
||||
syntax match pfmainRef "$\<nullmx_reject_code\>"
|
||||
syntax match pfmainRef "$\<owner_request_special\>"
|
||||
syntax match pfmainRef "$\<parent_domain_matches_subdomains\>"
|
||||
syntax match pfmainRef "$\<permit_mx_backup_networks\>"
|
||||
syntax match pfmainRef "$\<pickup_service_name\>"
|
||||
syntax match pfmainRef "$\<pipe_delivery_status_filter\>"
|
||||
syntax match pfmainRef "$\<plaintext_reject_code\>"
|
||||
syntax match pfmainRef "$\<postmulti_control_commands\>"
|
||||
syntax match pfmainRef "$\<postmulti_start_commands\>"
|
||||
@@ -1083,7 +1183,9 @@ syntax match pfmainRef "$\<postscreen_dnsbl_action\>"
|
||||
syntax match pfmainRef "$\<postscreen_dnsbl_reply_map\>"
|
||||
syntax match pfmainRef "$\<postscreen_dnsbl_sites\>"
|
||||
syntax match pfmainRef "$\<postscreen_dnsbl_threshold\>"
|
||||
syntax match pfmainRef "$\<postscreen_dnsbl_timeout\>"
|
||||
syntax match pfmainRef "$\<postscreen_dnsbl_ttl\>"
|
||||
syntax match pfmainRef "$\<postscreen_dnsbl_whitelist_threshold\>"
|
||||
syntax match pfmainRef "$\<postscreen_enforce_tls\>"
|
||||
syntax match pfmainRef "$\<postscreen_expansion_filter\>"
|
||||
syntax match pfmainRef "$\<postscreen_forbidden_commands\>"
|
||||
@@ -1102,9 +1204,8 @@ syntax match pfmainRef "$\<postscreen_post_queue_limit\>"
|
||||
syntax match pfmainRef "$\<postscreen_pre_queue_limit\>"
|
||||
syntax match pfmainRef "$\<postscreen_reject_footer\>"
|
||||
syntax match pfmainRef "$\<postscreen_tls_security_level\>"
|
||||
syntax match pfmainRef "$\<lmtp_tls_secure_cert_match\>"
|
||||
syntax match pfmainRef "$\<lmtp_tls_security_level\>"
|
||||
syntax match pfmainRef "$\<lmtp_tls_session_cache_database\>"
|
||||
syntax match pfmainRef "$\<postscreen_upstream_proxy_protocol\>"
|
||||
syntax match pfmainRef "$\<postscreen_upstream_proxy_timeout\>"
|
||||
syntax match pfmainRef "$\<postscreen_use_tls\>"
|
||||
syntax match pfmainRef "$\<postscreen_watchdog_timeout\>"
|
||||
syntax match pfmainRef "$\<postscreen_whitelist_interfaces\>"
|
||||
@@ -1119,7 +1220,9 @@ syntax match pfmainRef "$\<proxy_write_maps\>"
|
||||
syntax match pfmainRef "$\<proxymap_service_name\>"
|
||||
syntax match pfmainRef "$\<proxywrite_service_name\>"
|
||||
syntax match pfmainRef "$\<qmgr_clog_warn_time\>"
|
||||
syntax match pfmainRef "$\<qmgr_daemon_timeout\>"
|
||||
syntax match pfmainRef "$\<qmgr_fudge_factor\>"
|
||||
syntax match pfmainRef "$\<qmgr_ipc_timeout\>"
|
||||
syntax match pfmainRef "$\<qmgr_message_active_limit\>"
|
||||
syntax match pfmainRef "$\<qmgr_message_recipient_limit\>"
|
||||
syntax match pfmainRef "$\<qmgr_message_recipient_minimum\>"
|
||||
@@ -1159,17 +1262,21 @@ syntax match pfmainRef "$\<resolve_numeric_domain\>"
|
||||
syntax match pfmainRef "$\<rewrite_service_name\>"
|
||||
syntax match pfmainRef "$\<sample_directory\>"
|
||||
syntax match pfmainRef "$\<send_cyrus_sasl_authzid\>"
|
||||
syntax match pfmainRef "$\<sender_based_routing\>"
|
||||
syntax match pfmainRef "$\<sender_bcc_maps\>"
|
||||
syntax match pfmainRef "$\<sender_canonical_classes\>"
|
||||
syntax match pfmainRef "$\<sender_canonical_maps\>"
|
||||
syntax match pfmainRef "$\<sender_dependent_default_transport_maps\>"
|
||||
syntax match pfmainRef "$\<sender_dependent_relayhost_maps\>"
|
||||
syntax match pfmainRef "$\<sendmail_fix_line_endings\>"
|
||||
syntax match pfmainRef "$\<sendmail_path\>"
|
||||
syntax match pfmainRef "$\<service_throttle_time\>"
|
||||
syntax match pfmainRef "$\<setgid_group\>"
|
||||
syntax match pfmainRef "$\<shlib_directory\>"
|
||||
syntax match pfmainRef "$\<show_user_unknown_table_name\>"
|
||||
syntax match pfmainRef "$\<showq_service_name\>"
|
||||
syntax match pfmainRef "$\<smtp_address_preference\>"
|
||||
syntax match pfmainRef "$\<smtp_address_verify_target\>"
|
||||
syntax match pfmainRef "$\<smtp_always_send_ehlo\>"
|
||||
syntax match pfmainRef "$\<smtp_bind_address\>"
|
||||
syntax match pfmainRef "$\<smtp_bind_address6\>"
|
||||
@@ -1179,16 +1286,20 @@ syntax match pfmainRef "$\<smtp_connect_timeout\>"
|
||||
syntax match pfmainRef "$\<smtp_connection_cache_destinations\>"
|
||||
syntax match pfmainRef "$\<smtp_connection_cache_on_demand\>"
|
||||
syntax match pfmainRef "$\<smtp_connection_cache_time_limit\>"
|
||||
syntax match pfmainRef "$\<smtp_connection_reuse_count_limit\>"
|
||||
syntax match pfmainRef "$\<smtp_connection_reuse_time_limit\>"
|
||||
syntax match pfmainRef "$\<smtp_data_done_timeout\>"
|
||||
syntax match pfmainRef "$\<smtp_data_init_timeout\>"
|
||||
syntax match pfmainRef "$\<smtp_data_xfer_timeout\>"
|
||||
syntax match pfmainRef "$\<smtp_defer_if_no_mx_address_found\>"
|
||||
syntax match pfmainRef "$\<smtp_delivery_status_filter\>"
|
||||
syntax match pfmainRef "$\<smtp_destination_concurrency_limit\>"
|
||||
syntax match pfmainRef "$\<smtp_destination_recipient_limit\>"
|
||||
syntax match pfmainRef "$\<smtp_discard_ehlo_keyword_address_maps\>"
|
||||
syntax match pfmainRef "$\<smtp_discard_ehlo_keywords\>"
|
||||
syntax match pfmainRef "$\<smtp_dns_reply_filter\>"
|
||||
syntax match pfmainRef "$\<smtp_dns_resolver_options\>"
|
||||
syntax match pfmainRef "$\<smtp_dns_support_level\>"
|
||||
syntax match pfmainRef "$\<smtp_enforce_tls\>"
|
||||
syntax match pfmainRef "$\<smtp_fallback_relay\>"
|
||||
syntax match pfmainRef "$\<smtp_generic_maps\>"
|
||||
@@ -1203,6 +1314,7 @@ syntax match pfmainRef "$\<smtp_mx_address_limit\>"
|
||||
syntax match pfmainRef "$\<smtp_mx_session_limit\>"
|
||||
syntax match pfmainRef "$\<smtp_nested_header_checks\>"
|
||||
syntax match pfmainRef "$\<smtp_never_send_ehlo\>"
|
||||
syntax match pfmainRef "$\<smtp_per_record_deadline\>"
|
||||
syntax match pfmainRef "$\<smtp_pix_workaround_delay_time\>"
|
||||
syntax match pfmainRef "$\<smtp_pix_workaround_maps\>"
|
||||
syntax match pfmainRef "$\<smtp_pix_workaround_threshold_time\>"
|
||||
@@ -1224,8 +1336,10 @@ syntax match pfmainRef "$\<smtp_sasl_security_options\>"
|
||||
syntax match pfmainRef "$\<smtp_sasl_tls_security_options\>"
|
||||
syntax match pfmainRef "$\<smtp_sasl_tls_verified_security_options\>"
|
||||
syntax match pfmainRef "$\<smtp_sasl_type\>"
|
||||
syntax match pfmainRef "$\<smtp_send_dummy_mail_auth\>"
|
||||
syntax match pfmainRef "$\<smtp_send_xforward_command\>"
|
||||
syntax match pfmainRef "$\<smtp_sender_dependent_authentication\>"
|
||||
syntax match pfmainRef "$\<smtp_skip_4xx_greeting\>"
|
||||
syntax match pfmainRef "$\<smtp_skip_5xx_greeting\>"
|
||||
syntax match pfmainRef "$\<smtp_skip_quit_response\>"
|
||||
syntax match pfmainRef "$\<smtp_starttls_timeout\>"
|
||||
@@ -1243,6 +1357,7 @@ syntax match pfmainRef "$\<smtp_tls_enforce_peername\>"
|
||||
syntax match pfmainRef "$\<smtp_tls_exclude_ciphers\>"
|
||||
syntax match pfmainRef "$\<smtp_tls_fingerprint_cert_match\>"
|
||||
syntax match pfmainRef "$\<smtp_tls_fingerprint_digest\>"
|
||||
syntax match pfmainRef "$\<smtp_tls_force_insecure_host_tlsa_lookup\>"
|
||||
syntax match pfmainRef "$\<smtp_tls_key_file\>"
|
||||
syntax match pfmainRef "$\<smtp_tls_loglevel\>"
|
||||
syntax match pfmainRef "$\<smtp_tls_mandatory_ciphers\>"
|
||||
@@ -1257,7 +1372,9 @@ syntax match pfmainRef "$\<smtp_tls_secure_cert_match\>"
|
||||
syntax match pfmainRef "$\<smtp_tls_security_level\>"
|
||||
syntax match pfmainRef "$\<smtp_tls_session_cache_database\>"
|
||||
syntax match pfmainRef "$\<smtp_tls_session_cache_timeout\>"
|
||||
syntax match pfmainRef "$\<smtp_tls_trust_anchor_file\>"
|
||||
syntax match pfmainRef "$\<smtp_tls_verify_cert_match\>"
|
||||
syntax match pfmainRef "$\<smtp_tls_wrappermode\>"
|
||||
syntax match pfmainRef "$\<smtp_use_tls\>"
|
||||
syntax match pfmainRef "$\<smtp_xforward_timeout\>"
|
||||
syntax match pfmainRef "$\<smtpd_authorized_verp_clients\>"
|
||||
@@ -1278,6 +1395,7 @@ syntax match pfmainRef "$\<smtpd_delay_open_until_valid_rcpt\>"
|
||||
syntax match pfmainRef "$\<smtpd_delay_reject\>"
|
||||
syntax match pfmainRef "$\<smtpd_discard_ehlo_keyword_address_maps\>"
|
||||
syntax match pfmainRef "$\<smtpd_discard_ehlo_keywords\>"
|
||||
syntax match pfmainRef "$\<smtpd_dns_reply_filter\>"
|
||||
syntax match pfmainRef "$\<smtpd_end_of_data_restrictions\>"
|
||||
syntax match pfmainRef "$\<smtpd_enforce_tls\>"
|
||||
syntax match pfmainRef "$\<smtpd_error_sleep_time\>"
|
||||
@@ -1289,14 +1407,19 @@ syntax match pfmainRef "$\<smtpd_helo_required\>"
|
||||
syntax match pfmainRef "$\<smtpd_helo_restrictions\>"
|
||||
syntax match pfmainRef "$\<smtpd_history_flush_threshold\>"
|
||||
syntax match pfmainRef "$\<smtpd_junk_command_limit\>"
|
||||
syntax match pfmainRef "$\<smtpd_log_access_permit_actions\>"
|
||||
syntax match pfmainRef "$\<smtpd_milters\>"
|
||||
syntax match pfmainRef "$\<smtpd_noop_commands\>"
|
||||
syntax match pfmainRef "$\<smtpd_null_access_lookup_key\>"
|
||||
syntax match pfmainRef "$\<smtpd_peername_lookup\>"
|
||||
syntax match pfmainRef "$\<smtpd_per_record_deadline\>"
|
||||
syntax match pfmainRef "$\<smtpd_policy_service_default_action\>"
|
||||
syntax match pfmainRef "$\<smtpd_policy_service_max_idle\>"
|
||||
syntax match pfmainRef "$\<smtpd_policy_service_max_ttl\>"
|
||||
syntax match pfmainRef "$\<smtpd_policy_service_request_limit\>"
|
||||
syntax match pfmainRef "$\<smtpd_policy_service_retry_delay\>"
|
||||
syntax match pfmainRef "$\<smtpd_policy_service_timeout\>"
|
||||
syntax match pfmainRef "$\<smtpd_policy_service_try_limit\>"
|
||||
syntax match pfmainRef "$\<smtpd_proxy_ehlo\>"
|
||||
syntax match pfmainRef "$\<smtpd_proxy_filter\>"
|
||||
syntax match pfmainRef "$\<smtpd_proxy_options\>"
|
||||
@@ -1307,13 +1430,16 @@ syntax match pfmainRef "$\<smtpd_recipient_restrictions\>"
|
||||
syntax match pfmainRef "$\<smtpd_reject_footer\>"
|
||||
syntax match pfmainRef "$\<smtpd_reject_unlisted_recipient\>"
|
||||
syntax match pfmainRef "$\<smtpd_reject_unlisted_sender\>"
|
||||
syntax match pfmainRef "$\<smtpd_relay_restrictions\>"
|
||||
syntax match pfmainRef "$\<smtpd_restriction_classes\>"
|
||||
syntax match pfmainRef "$\<smtpd_sasl_application_name\>"
|
||||
syntax match pfmainRef "$\<smtpd_sasl_auth_enable\>"
|
||||
syntax match pfmainRef "$\<smtpd_sasl_authenticated_header\>"
|
||||
syntax match pfmainRef "$\<smtpd_sasl_exceptions_networks\>"
|
||||
syntax match pfmainRef "$\<smtpd_sasl_local_domain\>"
|
||||
syntax match pfmainRef "$\<smtpd_sasl_path\>"
|
||||
syntax match pfmainRef "$\<smtpd_sasl_security_options\>"
|
||||
syntax match pfmainRef "$\<smtpd_sasl_service\>"
|
||||
syntax match pfmainRef "$\<smtpd_sasl_tls_security_options\>"
|
||||
syntax match pfmainRef "$\<smtpd_sasl_type\>"
|
||||
syntax match pfmainRef "$\<smtpd_sender_login_maps\>"
|
||||
@@ -1352,21 +1478,21 @@ syntax match pfmainRef "$\<smtpd_tls_security_level\>"
|
||||
syntax match pfmainRef "$\<smtpd_tls_session_cache_database\>"
|
||||
syntax match pfmainRef "$\<smtpd_tls_session_cache_timeout\>"
|
||||
syntax match pfmainRef "$\<smtpd_tls_wrappermode\>"
|
||||
syntax match pfmainRef "$\<smtpd_upstream_proxy_protocol\>"
|
||||
syntax match pfmainRef "$\<smtpd_upstream_proxy_timeout\>"
|
||||
syntax match pfmainRef "$\<smtpd_use_tls\>"
|
||||
syntax match pfmainRef "$\<smtputf8_autodetect_classes\>"
|
||||
syntax match pfmainRef "$\<smtputf8_enable\>"
|
||||
syntax match pfmainRef "$\<soft_bounce\>"
|
||||
syntax match pfmainRef "$\<stale_lock_time\>"
|
||||
syntax match pfmainRef "$\<stress\>"
|
||||
syntax match pfmainRef "$\<strict_7bit_headers\>"
|
||||
syntax match pfmainRef "$\<strict_8bitmime\>"
|
||||
syntax match pfmainRef "$\<strict_8bitmime_body\>"
|
||||
syntax match pfmainRef "$\<strict_mime_encoding_domain\>"
|
||||
syntax match pfmainRef "$\<strict_rfc821_envelopes\>"
|
||||
syntax match pfmainRef "$\<strict_7bit_headers\>"
|
||||
syntax match pfmainRef "$\<strict_8bitmime\>"
|
||||
syntax match pfmainRef "$\<strict_8bitmime_body\>"
|
||||
syntax match pfmainRef "$\<strict_mailbox_ownership\>"
|
||||
syntax match pfmainRef "$\<strict_mime_encoding_domain\>"
|
||||
syntax match pfmainRef "$\<strict_rfc821_envelopes\>"
|
||||
syntax match pfmainRef "$\<strict_smtputf8\>"
|
||||
syntax match pfmainRef "$\<sun_mailtool_compatibility\>"
|
||||
syntax match pfmainRef "$\<swap_bangpath\>"
|
||||
syntax match pfmainRef "$\<syslog_facility\>"
|
||||
@@ -1374,11 +1500,15 @@ syntax match pfmainRef "$\<syslog_name\>"
|
||||
syntax match pfmainRef "$\<tcp_windowsize\>"
|
||||
syntax match pfmainRef "$\<tls_append_default_CA\>"
|
||||
syntax match pfmainRef "$\<tls_daemon_random_bytes\>"
|
||||
syntax match pfmainRef "$\<tls_dane_digest_agility\>"
|
||||
syntax match pfmainRef "$\<tls_dane_digests\>"
|
||||
syntax match pfmainRef "$\<tls_dane_trust_anchor_digest_enable\>"
|
||||
syntax match pfmainRef "$\<tls_disable_workarounds\>"
|
||||
syntax match pfmainRef "$\<tls_eecdh_strong_curve\>"
|
||||
syntax match pfmainRef "$\<tls_eecdh_ultra_curve\>"
|
||||
syntax match pfmainRef "$\<tls_export_cipherlist\>"
|
||||
syntax match pfmainRef "$\<tls_high_cipherlist\>"
|
||||
syntax match pfmainRef "$\<tls_legacy_public_key_fingerprints\>"
|
||||
syntax match pfmainRef "$\<tls_low_cipherlist\>"
|
||||
syntax match pfmainRef "$\<tls_medium_cipherlist\>"
|
||||
syntax match pfmainRef "$\<tls_null_cipherlist\>"
|
||||
@@ -1388,6 +1518,10 @@ syntax match pfmainRef "$\<tls_random_exchange_name\>"
|
||||
syntax match pfmainRef "$\<tls_random_prng_update_period\>"
|
||||
syntax match pfmainRef "$\<tls_random_reseed_period\>"
|
||||
syntax match pfmainRef "$\<tls_random_source\>"
|
||||
syntax match pfmainRef "$\<tls_session_ticket_cipher\>"
|
||||
syntax match pfmainRef "$\<tls_ssl_options\>"
|
||||
syntax match pfmainRef "$\<tls_wildcard_matches_multiple_labels\>"
|
||||
syntax match pfmainRef "$\<tlsmgr_service_name\>"
|
||||
syntax match pfmainRef "$\<tlsproxy_enforce_tls\>"
|
||||
syntax match pfmainRef "$\<tlsproxy_service_name\>"
|
||||
syntax match pfmainRef "$\<tlsproxy_tls_CAfile\>"
|
||||
@@ -1435,6 +1569,7 @@ syntax match pfmainRef "$\<transport_recipient_limit\>"
|
||||
syntax match pfmainRef "$\<transport_recipient_refill_delay\>"
|
||||
syntax match pfmainRef "$\<transport_recipient_refill_limit\>"
|
||||
syntax match pfmainRef "$\<transport_retry_time\>"
|
||||
syntax match pfmainRef "$\<transport_time_limit\>"
|
||||
syntax match pfmainRef "$\<trigger_timeout\>"
|
||||
syntax match pfmainRef "$\<undisclosed_recipients_header\>"
|
||||
syntax match pfmainRef "$\<unknown_address_reject_code\>"
|
||||
@@ -1455,10 +1590,12 @@ syntax match pfmainRef "$\<unverified_sender_reject_code\>"
|
||||
syntax match pfmainRef "$\<unverified_sender_reject_reason\>"
|
||||
syntax match pfmainRef "$\<unverified_sender_tempfail_action\>"
|
||||
syntax match pfmainRef "$\<verp_delimiter_filter\>"
|
||||
syntax match pfmainRef "$\<virtual_alias_address_length_limit\>"
|
||||
syntax match pfmainRef "$\<virtual_alias_domains\>"
|
||||
syntax match pfmainRef "$\<virtual_alias_expansion_limit\>"
|
||||
syntax match pfmainRef "$\<virtual_alias_maps\>"
|
||||
syntax match pfmainRef "$\<virtual_alias_recursion_limit\>"
|
||||
syntax match pfmainRef "$\<virtual_delivery_status_filter\>"
|
||||
syntax match pfmainRef "$\<virtual_destination_concurrency_limit\>"
|
||||
syntax match pfmainRef "$\<virtual_destination_recipient_limit\>"
|
||||
syntax match pfmainRef "$\<virtual_gid_maps\>"
|
||||
@@ -1467,39 +1604,62 @@ syntax match pfmainRef "$\<virtual_mailbox_domains\>"
|
||||
syntax match pfmainRef "$\<virtual_mailbox_limit\>"
|
||||
syntax match pfmainRef "$\<virtual_mailbox_lock\>"
|
||||
syntax match pfmainRef "$\<virtual_mailbox_maps\>"
|
||||
syntax match pfmainRef "$\<virtual_maps\>"
|
||||
syntax match pfmainRef "$\<virtual_minimum_uid\>"
|
||||
syntax match pfmainRef "$\<virtual_transport\>"
|
||||
syntax match pfmainRef "$\<virtual_uid_maps\>"
|
||||
|
||||
syntax keyword pfmainWord accept
|
||||
syntax keyword pfmainWord all
|
||||
syntax keyword pfmainWord always
|
||||
syntax keyword pfmainWord check_address_map
|
||||
syntax keyword pfmainWord check_ccert_access
|
||||
syntax keyword pfmainWord check_client_a_access
|
||||
syntax keyword pfmainWord check_client_access
|
||||
syntax keyword pfmainWord check_client_mx_access
|
||||
syntax keyword pfmainWord check_client_ns_access
|
||||
syntax keyword pfmainWord check_etrn_access
|
||||
syntax keyword pfmainWord check_helo_a_access
|
||||
syntax keyword pfmainWord check_helo_access
|
||||
syntax keyword pfmainWord check_helo_mx_access
|
||||
syntax keyword pfmainWord check_helo_ns_access
|
||||
syntax keyword pfmainWord check_policy_service
|
||||
syntax keyword pfmainWord check_recipient_a_access
|
||||
syntax keyword pfmainWord check_recipient_access
|
||||
syntax keyword pfmainWord check_recipient_maps
|
||||
syntax keyword pfmainWord check_recipient_mx_access
|
||||
syntax keyword pfmainWord check_recipient_ns_access
|
||||
syntax keyword pfmainWord check_relay_domains
|
||||
syntax keyword pfmainWord check_reverse_client_hostname_a_access
|
||||
syntax keyword pfmainWord check_reverse_client_hostname_access
|
||||
syntax keyword pfmainWord check_reverse_client_hostname_mx_access
|
||||
syntax keyword pfmainWord check_reverse_client_hostname_ns_access
|
||||
syntax keyword pfmainWord check_sasl_access
|
||||
syntax keyword pfmainWord check_sender_a_access
|
||||
syntax keyword pfmainWord check_sender_access
|
||||
syntax keyword pfmainWord check_sender_mx_access
|
||||
syntax keyword pfmainWord check_sender_ns_access
|
||||
syntax keyword pfmainWord class
|
||||
syntax keyword pfmainWord client_address
|
||||
syntax keyword pfmainWord client_port
|
||||
syntax keyword pfmainWord dane
|
||||
syntax keyword pfmainWord dane-only
|
||||
syntax keyword pfmainWord defer
|
||||
syntax keyword pfmainWord defer_if_permit
|
||||
syntax keyword pfmainWord defer_if_reject
|
||||
syntax keyword pfmainWord defer_unauth_destination
|
||||
syntax keyword pfmainWord disabled
|
||||
syntax keyword pfmainWord dns
|
||||
syntax keyword pfmainWord dnssec
|
||||
syntax keyword pfmainWord drop
|
||||
syntax keyword pfmainWord dunno
|
||||
syntax keyword pfmainWord enabled
|
||||
syntax keyword pfmainWord encrypt
|
||||
syntax keyword pfmainWord enforce
|
||||
syntax keyword pfmainWord envelope_recipient
|
||||
syntax keyword pfmainWord envelope_sender
|
||||
syntax keyword pfmainWord export
|
||||
syntax keyword pfmainWord fingerprint
|
||||
syntax keyword pfmainWord header_recipient
|
||||
syntax keyword pfmainWord header_sender
|
||||
syntax keyword pfmainWord high
|
||||
@@ -1509,22 +1669,37 @@ syntax keyword pfmainWord ipv4
|
||||
syntax keyword pfmainWord ipv6
|
||||
syntax keyword pfmainWord localtime
|
||||
syntax keyword pfmainWord low
|
||||
syntax keyword pfmainWord may
|
||||
syntax keyword pfmainWord maybe
|
||||
syntax keyword pfmainWord medium
|
||||
syntax keyword pfmainWord native
|
||||
syntax keyword pfmainWord never
|
||||
syntax keyword pfmainWord no_address_mappings
|
||||
syntax keyword pfmainWord no_header_body_checks
|
||||
syntax keyword pfmainWord no_header_reply
|
||||
syntax keyword pfmainWord no_milters
|
||||
syntax keyword pfmainWord no_unknown_recipient_checks
|
||||
syntax keyword pfmainWord none
|
||||
syntax keyword pfmainWord null
|
||||
syntax keyword pfmainWord off
|
||||
syntax keyword pfmainWord on
|
||||
syntax keyword pfmainWord permit
|
||||
syntax keyword pfmainWord permit_auth_destination
|
||||
syntax keyword pfmainWord permit_dnswl_client
|
||||
syntax keyword pfmainWord permit_inet_interfaces
|
||||
syntax keyword pfmainWord permit_mx_backup
|
||||
syntax keyword pfmainWord permit_mynetworks
|
||||
syntax keyword pfmainWord permit_naked_ip_address
|
||||
syntax keyword pfmainWord permit_rhswl_client
|
||||
syntax keyword pfmainWord permit_sasl_authenticated
|
||||
syntax keyword pfmainWord permit_tls_all_clientcerts
|
||||
syntax keyword pfmainWord permit_tls_clientcerts
|
||||
syntax keyword pfmainWord quarantine
|
||||
syntax keyword pfmainWord reject
|
||||
syntax keyword pfmainWord reject_authenticated_sender_login_mismatch
|
||||
syntax keyword pfmainWord reject_invalid_helo_hostname
|
||||
syntax keyword pfmainWord reject_invalid_hostname
|
||||
syntax keyword pfmainWord reject_known_sender_login_mismatch
|
||||
syntax keyword pfmainWord reject_maps_rbl
|
||||
syntax keyword pfmainWord reject_multi_recipient_bounce
|
||||
syntax keyword pfmainWord reject_non_fqdn_helo_hostname
|
||||
@@ -1537,10 +1712,12 @@ syntax keyword pfmainWord reject_rbl_client
|
||||
syntax keyword pfmainWord reject_rhsbl_client
|
||||
syntax keyword pfmainWord reject_rhsbl_helo
|
||||
syntax keyword pfmainWord reject_rhsbl_recipient
|
||||
syntax keyword pfmainWord reject_rhsbl_reverse_client
|
||||
syntax keyword pfmainWord reject_rhsbl_sender
|
||||
syntax keyword pfmainWord reject_sender_login_mismatch
|
||||
syntax keyword pfmainWord reject_unauth_destination
|
||||
syntax keyword pfmainWord reject_unauth_pipelining
|
||||
syntax keyword pfmainWord reject_unauthenticated_sender_login_mismatch
|
||||
syntax keyword pfmainWord reject_unknown_address
|
||||
syntax keyword pfmainWord reject_unknown_client
|
||||
syntax keyword pfmainWord reject_unknown_client_hostname
|
||||
@@ -1554,11 +1731,15 @@ syntax keyword pfmainWord reject_unlisted_recipient
|
||||
syntax keyword pfmainWord reject_unlisted_sender
|
||||
syntax keyword pfmainWord reject_unverified_recipient
|
||||
syntax keyword pfmainWord reject_unverified_sender
|
||||
syntax keyword pfmainWord secure
|
||||
syntax keyword pfmainWord server_name
|
||||
syntax keyword pfmainWord sleep
|
||||
syntax keyword pfmainWord smtpd_access_maps
|
||||
syntax keyword pfmainWord server_name
|
||||
syntax keyword pfmainWord speed_adjust
|
||||
syntax keyword pfmainWord strong
|
||||
syntax keyword pfmainWord subnet
|
||||
syntax keyword pfmainWord tempfail
|
||||
syntax keyword pfmainWord ultra
|
||||
syntax keyword pfmainWord warn_if_reject
|
||||
syntax keyword pfmainWord CRYPTOPRO_TLSEXT_BUG
|
||||
syntax keyword pfmainWord DONT_INSERT_EMPTY_FRAGMENTS
|
||||
@@ -1574,7 +1755,7 @@ syntax keyword pfmainWord TLS_BLOCK_PADDING_BUG
|
||||
syntax keyword pfmainWord TLS_D5_BUG
|
||||
syntax keyword pfmainWord TLS_ROLLBACK_BUG
|
||||
|
||||
syntax keyword pfmainDict btree cidr environ hash nis pcre proxy regexp sdbm sdbm static tcp unix
|
||||
syntax keyword pfmainDict btree cidr environ hash nis pcre proxy regexp sdbm static tcp unix
|
||||
syntax keyword pfmainQueueDir incoming active deferred corrupt hold
|
||||
syntax keyword pfmainTransport smtp lmtp unix local relay uucp virtual
|
||||
syntax keyword pfmainLock fcntl flock dotlock
|
||||
@@ -1588,26 +1769,50 @@ syntax match pfmainVariable "\$\w\+" contains=pfmainRef
|
||||
|
||||
syntax match pfmainSpecial "\<alias\>"
|
||||
syntax match pfmainSpecial "\<canonical\>"
|
||||
syntax match pfmainSpecial "\<forward\>"
|
||||
syntax match pfmainSpecial "\<generic\>"
|
||||
syntax match pfmainSpecial "\<include\>"
|
||||
syntax match pfmainSpecial "\<virtual\>"
|
||||
|
||||
syntax match pfmainSpecial "\<delay_dotcrlf\>"
|
||||
syntax match pfmainSpecial "\<disable_esmtp\>"
|
||||
|
||||
syntax match pfmainSpecial "\<res_defnames\>"
|
||||
syntax match pfmainSpecial "\<res_dnsrch\>"
|
||||
|
||||
syntax match pfmainSpecial "\<command\>"
|
||||
syntax match pfmainSpecial "\<file\>"
|
||||
syntax match pfmainSpecial "\<forward\>"
|
||||
|
||||
syntax match pfmainSpecial "\<forward_secrecy\>"
|
||||
syntax match pfmainSpecial "\<mutual_auth\>"
|
||||
syntax match pfmainSpecial "\<noactive\>"
|
||||
syntax match pfmainSpecial "\<noanonymous\>"
|
||||
syntax match pfmainSpecial "\<nodictionary\>"
|
||||
syntax match pfmainSpecial "\<noplaintext\>"
|
||||
|
||||
syntax match pfmainSpecial "\<bounce\>"
|
||||
syntax match pfmainSpecial "\<2bounce\>"
|
||||
syntax match pfmainSpecial "\<data\>"
|
||||
syntax match pfmainSpecial "\<delay\>"
|
||||
syntax match pfmainSpecial "\<policy\>"
|
||||
syntax match pfmainSpecial "\<protocol\>"
|
||||
syntax match pfmainSpecial "\<resource\>"
|
||||
syntax match pfmainSpecial "\<software\>"
|
||||
|
||||
syntax match pfmainSpecial "\<bounce\>"
|
||||
syntax match pfmainSpecial "\<cleanup\>"
|
||||
syntax match pfmainSpecial "\<cyrus\>"
|
||||
syntax match pfmainSpecial "\<defer\>"
|
||||
syntax match pfmainSpecial "\<error\>"
|
||||
syntax match pfmainSpecial "\<flush\>"
|
||||
syntax match pfmainSpecial "\<notify\>"
|
||||
syntax match pfmainSpecial "\<pickup\>"
|
||||
syntax match pfmainSpecial "\<postdrop\>"
|
||||
syntax match pfmainSpecial "\<qmgr\>"
|
||||
syntax match pfmainSpecial "\<qmqpd\>"
|
||||
syntax match pfmainSpecial "\<rewrite\>"
|
||||
syntax match pfmainSpecial "\<scache\>"
|
||||
syntax match pfmainSpecial "\<sendmail\>"
|
||||
syntax match pfmainSpecial "\<showq\>"
|
||||
syntax match pfmainSpecial "\<smtpd\>"
|
||||
syntax match pfmainSpecial "\<trace\>"
|
||||
syntax match pfmainSpecial "\<verify\>"
|
||||
|
||||
|
||||
@@ -3,12 +3,11 @@
|
||||
" Maintainer: Jakson Aquino <jalvesaq@gmail.com>
|
||||
" Former Maintainers: Vaidotas Zemlys <zemlys@gmail.com>
|
||||
" Tom Payne <tom@tompayne.org>
|
||||
" Last Change: Wed Jul 09, 2014 10:29PM
|
||||
" Last Change: Wed Dec 31, 2014 12:36AM
|
||||
" Filenames: *.R *.r *.Rhistory *.Rt
|
||||
"
|
||||
" NOTE: The highlighting of R functions is defined in the
|
||||
" r-plugin/functions.vim, which is part of vim-r-plugin2:
|
||||
" http://www.vim.org/scripts/script.php?script_id=2628
|
||||
"
|
||||
" NOTE: The highlighting of R functions is defined in
|
||||
" runtime files created by a filetype plugin, if installed.
|
||||
"
|
||||
" CONFIGURATION:
|
||||
" syntax folding can be turned on by
|
||||
@@ -37,9 +36,9 @@ syn match rComment contains=@Spell,rCommentTodo "#.*"
|
||||
syn match rOKeyword contained "@\(param\|return\|name\|rdname\|examples\|include\|docType\)"
|
||||
syn match rOKeyword contained "@\(S3method\|TODO\|aliases\|alias\|assignee\|author\|callGraphDepth\|callGraph\)"
|
||||
syn match rOKeyword contained "@\(callGraphPrimitives\|concept\|exportClass\|exportMethod\|exportPattern\|export\|formals\)"
|
||||
syn match rOKeyword contained "@\(format\|importClassesFrom\|importFrom\|importMethodsFrom\|import\|keywords\)"
|
||||
syn match rOKeyword contained "@\(format\|importClassesFrom\|importFrom\|importMethodsFrom\|import\|keywords\|useDynLib\)"
|
||||
syn match rOKeyword contained "@\(method\|noRd\|note\|references\|seealso\|setClass\|slot\|source\|title\|usage\)"
|
||||
syn match rOKeyword contained "@\(family\|template\|templateVar\|description\|details\|inheritsParams\)"
|
||||
syn match rOKeyword contained "@\(family\|template\|templateVar\|description\|details\|inheritParams\)"
|
||||
syn match rOComment contains=@Spell,rOKeyword "#'.*"
|
||||
|
||||
|
||||
@@ -79,12 +78,12 @@ syn keyword rRepeat for in repeat while
|
||||
syn keyword rConstant T F LETTERS letters month.abb month.name pi
|
||||
syn keyword rConstant R.version.string
|
||||
|
||||
syn keyword rNumber NA_integer_ NA_real_ NA_complex_ NA_character_
|
||||
syn keyword rNumber NA_integer_ NA_real_ NA_complex_ NA_character_
|
||||
|
||||
" Constants
|
||||
syn keyword rConstant NULL
|
||||
syn keyword rBoolean FALSE TRUE
|
||||
syn keyword rNumber NA Inf NaN
|
||||
syn keyword rNumber NA Inf NaN
|
||||
|
||||
" integer
|
||||
syn match rInteger "\<\d\+L"
|
||||
@@ -93,7 +92,7 @@ syn match rInteger "\<\d\+[Ee]+\=\d\+L"
|
||||
|
||||
" number with no fractional part or exponent
|
||||
syn match rNumber "\<\d\+\>"
|
||||
" hexadecimal number
|
||||
" hexadecimal number
|
||||
syn match rNumber "\<0x\([0-9]\|[a-f]\|[A-F]\)\+"
|
||||
|
||||
" floating point number with integer and fractional parts and optional exponent
|
||||
@@ -111,17 +110,19 @@ syn match rComplex "\<\d\+\.\d*\([Ee][-+]\=\d\+\)\=i"
|
||||
syn match rComplex "\<\.\d\+\([Ee][-+]\=\d\+\)\=i"
|
||||
syn match rComplex "\<\d\+[Ee][-+]\=\d\+i"
|
||||
|
||||
syn match rAssign '='
|
||||
syn match rOperator "&"
|
||||
syn match rOperator '-'
|
||||
syn match rOperator '\*'
|
||||
syn match rOperator '+'
|
||||
syn match rOperator '='
|
||||
if &filetype != "rmd" && &filetype != "rrst"
|
||||
syn match rOperator "[|!<>^~/:]"
|
||||
else
|
||||
syn match rOperator "[|!<>^~`/:]"
|
||||
endif
|
||||
syn match rOperator "%\{2}\|%\S\{-}%"
|
||||
syn match rOperator '\([!><]\)\@<=='
|
||||
syn match rOperator '=='
|
||||
syn match rOpError '\*\{3}'
|
||||
syn match rOpError '//'
|
||||
syn match rOpError '&&&'
|
||||
@@ -129,8 +130,8 @@ syn match rOpError '|||'
|
||||
syn match rOpError '<<'
|
||||
syn match rOpError '>>'
|
||||
|
||||
syn match rArrow "<\{1,2}-"
|
||||
syn match rArrow "->\{1,2}"
|
||||
syn match rAssign "<\{1,2}-"
|
||||
syn match rAssign "->\{1,2}"
|
||||
|
||||
" Special
|
||||
syn match rDelimiter "[,;:]"
|
||||
@@ -151,9 +152,14 @@ syn match rBraceError "[)}]" contained
|
||||
syn match rCurlyError "[)\]]" contained
|
||||
syn match rParenError "[\]}]" contained
|
||||
|
||||
" Source list of R functions. The list is produced by the Vim-R-plugin
|
||||
" http://www.vim.org/scripts/script.php?script_id=2628
|
||||
runtime r-plugin/functions.vim
|
||||
" Source list of R functions produced by a filetype plugin (if installed)
|
||||
if has("nvim")
|
||||
" Nvim-R
|
||||
runtime R/functions.vim
|
||||
else
|
||||
" Vim-R-plugin
|
||||
runtime r-plugin/functions.vim
|
||||
endif
|
||||
|
||||
syn match rDollar display contained "\$"
|
||||
syn match rDollar display contained "@"
|
||||
@@ -171,7 +177,7 @@ if &filetype == "rhelp"
|
||||
endif
|
||||
|
||||
" Type
|
||||
syn keyword rType array category character complex double function integer list logical matrix numeric vector data.frame
|
||||
syn keyword rType array category character complex double function integer list logical matrix numeric vector data.frame
|
||||
|
||||
" Name of object with spaces
|
||||
if &filetype != "rmd" && &filetype != "rrst"
|
||||
@@ -179,13 +185,19 @@ if &filetype != "rmd" && &filetype != "rrst"
|
||||
endif
|
||||
|
||||
if &filetype == "rhelp"
|
||||
syn match rhPreProc "^#ifdef.*"
|
||||
syn match rhPreProc "^#endif.*"
|
||||
syn match rhPreProc "^#ifdef.*"
|
||||
syn match rhPreProc "^#endif.*"
|
||||
syn match rhSection "\\dontrun\>"
|
||||
endif
|
||||
|
||||
if exists("r_syn_minlines")
|
||||
exe "syn sync minlines=" . r_syn_minlines
|
||||
else
|
||||
syn sync minlines=40
|
||||
endif
|
||||
|
||||
" Define the default highlighting.
|
||||
hi def link rArrow Statement
|
||||
hi def link rAssign Statement
|
||||
hi def link rBoolean Boolean
|
||||
hi def link rBraceError Error
|
||||
hi def link rComment Comment
|
||||
@@ -204,7 +216,7 @@ hi def link rHelpIdent Identifier
|
||||
hi def link rhPreProc PreProc
|
||||
hi def link rhSection PreCondit
|
||||
hi def link rInteger Number
|
||||
hi def link rLstElmt Normal
|
||||
hi def link rLstElmt Normal
|
||||
hi def link rNameWSpace Normal
|
||||
hi def link rNumber Number
|
||||
hi def link rOperator Operator
|
||||
|
||||
@@ -1,15 +1,11 @@
|
||||
" Vim syntax file
|
||||
" Language: rpcgen
|
||||
" Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Sep 06, 2005
|
||||
" Version: 8
|
||||
" URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
|
||||
" Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Jan 13, 2015
|
||||
" Version: 10
|
||||
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_RPCGEN
|
||||
|
||||
" 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")
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
" Language: shell (sh) Korn shell (ksh) bash (sh)
|
||||
" Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Previous Maintainer: Lennart Schultz <Lennart.Schultz@ecmwf.int>
|
||||
" Last Change: Mar 20, 2014
|
||||
" Version: 132
|
||||
" URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
|
||||
" For options and settings, please use: :help ft-sh-syntax
|
||||
" Last Change: Jan 08, 2015
|
||||
" Version: 134
|
||||
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_SH
|
||||
" For options and settings, please use: :help ft-sh-syntax
|
||||
" This file includes many ideas from ?ric Brunet (eric.brunet@ens.fr)
|
||||
|
||||
" For version 5.x: Clear all syntax items {{{1
|
||||
@@ -17,7 +17,7 @@ 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
|
||||
" syntax is dicey, so the following code permits the user to prevent/override
|
||||
" 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
|
||||
@@ -104,7 +104,7 @@ syn cluster shErrorList contains=shDoError,shIfError,shInError,shCaseError,shEsa
|
||||
if exists("b:is_kornshell")
|
||||
syn cluster ErrorList add=shDTestError
|
||||
endif
|
||||
syn cluster shArithParenList contains=shArithmetic,shCaseEsac,shDeref,shDerefSimple,shEcho,shEscape,shNumber,shOperator,shPosnParm,shExSingleQuote,shExDoubleQuote,shRedir,shSingleQuote,shDoubleQuote,shStatement,shVariable,shAlias,shTest,shCtrlSeq,shSpecial,shParen,bashSpecialVariables,bashStatement
|
||||
syn cluster shArithParenList contains=shArithmetic,shCaseEsac,shComment,shDeref,shDerefSimple,shDo,shEcho,shEscape,shIf,shFor,shNumber,shOperator,shPosnParm,shExSingleQuote,shExDoubleQuote,shRedir,shSingleQuote,shDoubleQuote,shStatement,shVariable,shAlias,shTest,shCtrlSeq,shSpecial,shParen,bashSpecialVariables,bashStatement
|
||||
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
|
||||
@@ -127,7 +127,7 @@ syn cluster shHereList contains=shBeginHere,shHerePayload
|
||||
syn cluster shHereListDQ contains=shBeginHere,@shDblQuoteList,shHerePayload
|
||||
syn cluster shIdList contains=shCommandSub,shWrapLineOperator,shSetOption,shDeref,shDerefSimple,shRedir,shExSingleQuote,shExDoubleQuote,shSingleQuote,shDoubleQuote,shExpr,shCtrlSeq,shStringSpecial,shAtExpr
|
||||
syn cluster shIfList contains=@shLoopList,shDblBrace,shDblParen,shFunctionKey,shFunctionOne,shFunctionTwo
|
||||
syn cluster shLoopList contains=@shCaseList,shTestOpr,shExpr,shDblBrace,shConditional,shCaseEsac,shTest,@shErrorList,shSet,shOption
|
||||
syn cluster shLoopList contains=@shCaseList,shIf,shFor,shForPP,shTestOpr,shExpr,shDblBrace,shConditional,shCaseEsac,shTest,@shErrorList,shSet,shOption
|
||||
syn cluster shSubShList contains=@shCommandSubList,shCaseEsac,shColon,shCommandSub,shComment,shDo,shEcho,shExpr,shFor,shIf,shRedir,shSetList,shSource,shStatement,shVariable,shCtrlSeq,shOperator
|
||||
syn cluster shTestList contains=shCharClass,shComment,shCommandSub,shDeref,shDerefSimple,shExDoubleQuote,shDoubleQuote,shExpr,shNumber,shOperator,shExSingleQuote,shSingleQuote,shTestOpr,shTest,shCtrlSeq
|
||||
" Echo: {{{1
|
||||
@@ -151,18 +151,18 @@ endif
|
||||
" Error Codes: {{{1
|
||||
" ============
|
||||
if !exists("g:sh_no_error")
|
||||
syn match shDoError "\<done\>"
|
||||
syn match shIfError "\<fi\>"
|
||||
syn match shInError "\<in\>"
|
||||
syn match shCaseError ";;"
|
||||
syn match shEsacError "\<esac\>"
|
||||
syn match shCurlyError "}"
|
||||
syn match shParenError ")"
|
||||
syn match shOK '\.\(done\|fi\|in\|esac\)'
|
||||
syn match shDoError "\<done\>"
|
||||
syn match shIfError "\<fi\>"
|
||||
syn match shInError "\<in\>"
|
||||
syn match shCaseError ";;"
|
||||
syn match shEsacError "\<esac\>"
|
||||
syn match shCurlyError "}"
|
||||
syn match shParenError ")"
|
||||
syn match shOK '\.\(done\|fi\|in\|esac\)'
|
||||
if exists("b:is_kornshell")
|
||||
syn match shDTestError "]]"
|
||||
syn match shDTestError "]]"
|
||||
endif
|
||||
syn match shTestError "]"
|
||||
syn match shTestError "]"
|
||||
endif
|
||||
|
||||
" Options: {{{1
|
||||
@@ -197,9 +197,10 @@ syn region shTest transparent matchgroup=shStatement start="\<test\s" skip=+\\\\
|
||||
syn match shTestOpr contained "<=\|>=\|!=\|==\|-.\>\|-\(nt\|ot\|ef\|eq\|ne\|lt\|le\|gt\|ge\)\>\|[!<>]"
|
||||
syn match shTestOpr contained '=' skipwhite nextgroup=shTestDoubleQuote,shTestSingleQuote,shTestPattern
|
||||
syn match shTestPattern contained '\w\+'
|
||||
syn match shTestDoubleQuote contained '\%(\%(\\\\\)*\\\)\@<!"[^"]*"'
|
||||
syn region shTestDoubleQuote contained start='"' skip='\\"' end='"' contains=shBQpairs
|
||||
syn match shTestSingleQuote contained '\\.'
|
||||
syn match shTestSingleQuote contained "'[^']*'"
|
||||
syn match shBQpairs contained '\\\\'
|
||||
if exists("b:is_kornshell") || exists("b:is_bash")
|
||||
syn region shDblBrace matchgroup=Delimiter start="\[\[" skip=+\\\\\|\\$+ end="\]\]" contains=@shTestList
|
||||
syn region shDblParen matchgroup=Delimiter start="((" skip=+\\\\\|\\$+ end="))" contains=@shTestList
|
||||
@@ -216,11 +217,11 @@ if s:sh_fold_ifdofor
|
||||
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\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 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\ze\_s\s*\%(((\)\@!" end="\<in\>" end="\<do\>"me=e-2 contains=@shLoopList,shDblParen skipwhite nextgroup=shCurlyIn
|
||||
syn match shForPP '\<for\>\ze\_s*(('
|
||||
endif
|
||||
syn region shForPP matchgroup=shLoop start='\<for\>\_s*((' end='))' contains=shTestOpr
|
||||
if exists("b:is_kornshell") || exists("b:is_bash")
|
||||
syn cluster shCaseList add=shRepeat
|
||||
syn cluster shFunctionList add=shRepeat
|
||||
@@ -280,7 +281,7 @@ 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
|
||||
syn region shCmdParenRegion matchgroup=shCmdSubRegion start="(\ze[^(]" skip='\\\\\|\\.' end=")" contains=@shCommandSubList
|
||||
|
||||
if exists("b:is_bash")
|
||||
syn cluster shCommandSubList add=bashSpecialVariables,bashStatement
|
||||
@@ -321,12 +322,12 @@ elseif !exists("g:sh_no_error")
|
||||
endif
|
||||
syn region shSingleQuote matchgroup=shQuote start=+'+ end=+'+ contains=@Spell
|
||||
syn region shDoubleQuote matchgroup=shQuote start=+\%(\%(\\\\\)*\\\)\@<!"+ skip=+\\"+ end=+"+ contains=@shDblQuoteList,shStringSpecial,@Spell
|
||||
"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,shComment
|
||||
syn match shSpecial "[^\\]\zs\%(\\\\\)*\\[\\"'`$()#]" nextgroup=shMoreSpecial
|
||||
syn match shSpecial "^\%(\\\\\)*\\[\\"'`$()#]" nextgroup=shComment
|
||||
syn match shMoreSpecial "\%(\\\\\)*\\[\\"'`$()#]" contained nextgroup=shMoreSpecial
|
||||
syn match shSpecial "[^\\]\zs\%(\\\\\)*\\[\\"'`$()#]" nextgroup=shMoreSpecial,shComment
|
||||
syn match shSpecial "^\%(\\\\\)*\\[\\"'`$()#]" nextgroup=shComment
|
||||
syn match shMoreSpecial "\%(\\\\\)*\\[\\"'`$()#]" nextgroup=shMoreSpecial contained
|
||||
|
||||
" Comments: {{{1
|
||||
"==========
|
||||
@@ -363,9 +364,9 @@ elseif s:sh_fold_heredoc
|
||||
syn region shHereDoc matchgroup=shRedir19 fold start="<<\\\z([^ \t|]*\)" matchgroup=shRedir19 end="^\z1\s*$"
|
||||
|
||||
else
|
||||
syn region shHereDoc matchgroup=shRedir20 start="<<\s*\\\=\z([^ \t|]*\)" matchgroup=shRedir20 end="^\z1\s*$" contains=@shDblQuoteList
|
||||
syn region shHereDoc matchgroup=shRedir20 start="<<\s*\\\=\z([^ \t|]*\)" matchgroup=shRedir20 end="^\z1\s*$" contains=@shDblQuoteList
|
||||
syn region shHereDoc matchgroup=shRedir21 start="<<\s*\"\z([^ \t|]*\)\"" matchgroup=shRedir21 end="^\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir22 start="<<-\s*\z([^ \t|]*\)" matchgroup=shRedir22 end="^\s*\z1\s*$" contains=@shDblQuoteList
|
||||
syn region shHereDoc matchgroup=shRedir22 start="<<-\s*\z([^ \t|]*\)" matchgroup=shRedir22 end="^\s*\z1\s*$" contains=@shDblQuoteList
|
||||
syn region shHereDoc matchgroup=shRedir23 start="<<-\s*'\z([^ \t|]*\)'" matchgroup=shRedir23 end="^\s*\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir24 start="<<\s*'\z([^ \t|]*\)'" matchgroup=shRedir24 end="^\z1\s*$"
|
||||
syn region shHereDoc matchgroup=shRedir25 start="<<-\s*\"\z([^ \t|]*\)\"" matchgroup=shRedir25 end="^\s*\z1\s*$"
|
||||
@@ -450,21 +451,21 @@ syn match shDerefSpecial contained "\({[#!]\)\@<=[[:alnum:]*@_]\+" nextgroup=@s
|
||||
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
|
||||
syn region shDerefVarArray contained matchgroup=shDeref start="\[" end="]" contains=@shCommandSubList nextgroup=shDerefOp,shDerefOpError
|
||||
|
||||
" Special ${parameter OPERATOR word} handling: {{{1
|
||||
" sh ksh bash : ${parameter:-word} word is default value
|
||||
" sh ksh bash : ${parameter:=word} assign word as default value
|
||||
" sh ksh bash : ${parameter:?word} display word if parameter is null
|
||||
" sh ksh bash : ${parameter:+word} use word if parameter is not null, otherwise nothing
|
||||
" ksh bash : ${parameter#pattern} remove small left pattern
|
||||
" ksh bash : ${parameter##pattern} remove large left pattern
|
||||
" ksh bash : ${parameter%pattern} remove small right pattern
|
||||
" ksh bash : ${parameter%%pattern} remove large right pattern
|
||||
" bash : ${parameter^pattern} Case modification
|
||||
" bash : ${parameter^^pattern} Case modification
|
||||
" bash : ${parameter,pattern} Case modification
|
||||
" bash : ${parameter,,pattern} Case modification
|
||||
" sh ksh bash : ${parameter:-word} word is default value
|
||||
" sh ksh bash : ${parameter:=word} assign word as default value
|
||||
" sh ksh bash : ${parameter:?word} display word if parameter is null
|
||||
" sh ksh bash : ${parameter:+word} use word if parameter is not null, otherwise nothing
|
||||
" ksh bash : ${parameter#pattern} remove small left pattern
|
||||
" ksh bash : ${parameter##pattern} remove large left pattern
|
||||
" ksh bash : ${parameter%pattern} remove small right pattern
|
||||
" ksh bash : ${parameter%%pattern} remove large right pattern
|
||||
" bash : ${parameter^pattern} Case modification
|
||||
" bash : ${parameter^^pattern} Case modification
|
||||
" bash : ${parameter,pattern} Case modification
|
||||
" bash : ${parameter,,pattern} Case modification
|
||||
syn cluster shDerefPatternList contains=shDerefPattern,shDerefString
|
||||
if !exists("g:sh_no_error")
|
||||
syn match shDerefOpError contained ":[[:punct:]]"
|
||||
@@ -576,7 +577,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 shForPP shLoop
|
||||
hi def link shEmbeddedEcho shString
|
||||
hi def link shEscape shCommandSub
|
||||
hi def link shExDoubleQuote shDoubleQuote
|
||||
@@ -598,12 +599,12 @@ hi def link shSetOption shOption
|
||||
hi def link shSingleQuote shString
|
||||
hi def link shSource shOperator
|
||||
hi def link shStringSpecial shSpecial
|
||||
hi def link shStringSpecial Unique
|
||||
hi def link shSubShRegion shOperator
|
||||
hi def link shTestOpr shConditional
|
||||
hi def link shTestPattern shString
|
||||
hi def link shTestDoubleQuote shString
|
||||
hi def link shTestSingleQuote shString
|
||||
hi def link shBQpairs shString
|
||||
hi def link shVariable shSetList
|
||||
hi def link shWrapLineOperator shOperator
|
||||
|
||||
|
||||
@@ -1,15 +1,11 @@
|
||||
" Vim syntax file
|
||||
" Language: sendmail
|
||||
" Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Sep 06, 2005
|
||||
" Version: 4
|
||||
" URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
|
||||
" Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Jan 13, 2015
|
||||
" Version: 6
|
||||
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_SM
|
||||
|
||||
" 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")
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
|
||||
96
runtime/syntax/srec.vim
Normal file
96
runtime/syntax/srec.vim
Normal file
@@ -0,0 +1,96 @@
|
||||
" Vim syntax file
|
||||
" Language: Motorola S-Record
|
||||
" Maintainer: Markus Heidelberg <markus.heidelberg@web.de>
|
||||
" Last Change: 2015 Feb 24
|
||||
|
||||
" Each record (line) is built as follows:
|
||||
"
|
||||
" field digits states
|
||||
"
|
||||
" +----------+
|
||||
" | start | 1 ('S') srecRecStart
|
||||
" +----------+
|
||||
" | type | 1 srecRecType, (srecRecTypeUnknown)
|
||||
" +----------+
|
||||
" | count | 2 srecByteCount
|
||||
" +----------+
|
||||
" | address | 4/6/8 srecNoAddress, srecDataAddress, srecRecCount, srecStartAddress, (srecAddressFieldUnknown)
|
||||
" +----------+
|
||||
" | data | 0..504/502/500 srecDataOdd, srecDataEven, (srecDataUnexpected)
|
||||
" +----------+
|
||||
" | checksum | 2 srecChecksum
|
||||
" +----------+
|
||||
"
|
||||
" States in parentheses in the upper format description indicate that they
|
||||
" should not appear in a valid file.
|
||||
|
||||
" 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 match srecRecStart "^S"
|
||||
|
||||
syn match srecRecTypeUnknown "^S." contains=srecRecStart
|
||||
syn match srecRecType "^S[0-35-9]" contains=srecRecStart
|
||||
|
||||
syn match srecByteCount "^S.[0-9a-fA-F]\{2}" contains=srecRecTypeUnknown nextgroup=srecAddressFieldUnknown,srecChecksum
|
||||
syn match srecByteCount "^S[0-35-9][0-9a-fA-F]\{2}" contains=srecRecType
|
||||
|
||||
syn match srecAddressFieldUnknown "[0-9a-fA-F]\{2}" contained nextgroup=srecAddressFieldUnknown,srecChecksum
|
||||
|
||||
syn match srecNoAddress "^S0[0-9a-fA-F]\{6}" contains=srecByteCount nextgroup=srecDataOdd,srecChecksum
|
||||
syn match srecDataAddress "^S1[0-9a-fA-F]\{6}" contains=srecByteCount nextgroup=srecDataOdd,srecChecksum
|
||||
syn match srecDataAddress "^S2[0-9a-fA-F]\{8}" contains=srecByteCount nextgroup=srecDataOdd,srecChecksum
|
||||
syn match srecDataAddress "^S3[0-9a-fA-F]\{10}" contains=srecByteCount nextgroup=srecDataOdd,srecChecksum
|
||||
syn match srecRecCount "^S5[0-9a-fA-F]\{6}" contains=srecByteCount nextgroup=srecDataUnexpected,srecChecksum
|
||||
syn match srecRecCount "^S6[0-9a-fA-F]\{8}" contains=srecByteCount nextgroup=srecDataUnexpected,srecChecksum
|
||||
syn match srecStartAddress "^S7[0-9a-fA-F]\{10}" contains=srecByteCount nextgroup=srecDataUnexpected,srecChecksum
|
||||
syn match srecStartAddress "^S8[0-9a-fA-F]\{8}" contains=srecByteCount nextgroup=srecDataUnexpected,srecChecksum
|
||||
syn match srecStartAddress "^S9[0-9a-fA-F]\{6}" contains=srecByteCount nextgroup=srecDataUnexpected,srecChecksum
|
||||
|
||||
" alternating highlight per byte for easier reading
|
||||
syn match srecDataOdd "[0-9a-fA-F]\{2}" contained nextgroup=srecDataEven,srecChecksum
|
||||
syn match srecDataEven "[0-9a-fA-F]\{2}" contained nextgroup=srecDataOdd,srecChecksum
|
||||
" data bytes which should not exist
|
||||
syn match srecDataUnexpected "[0-9a-fA-F]\{2}" contained nextgroup=srecDataUnexpected,srecChecksum
|
||||
" Data digit pair regex usage also results in only highlighting the checksum
|
||||
" if the number of data characters is even.
|
||||
|
||||
syn match srecChecksum "[0-9a-fA-F]\{2}$" contained
|
||||
|
||||
" 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_srec_syntax_inits")
|
||||
if version < 508
|
||||
let did_srec_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 srecRecStart srecRecType
|
||||
HiLink srecRecTypeUnknown srecRecType
|
||||
HiLink srecRecType WarningMsg
|
||||
HiLink srecByteCount Constant
|
||||
hi def srecAddressFieldUnknown term=italic cterm=italic gui=italic
|
||||
HiLink srecNoAddress DiffAdd
|
||||
HiLink srecDataAddress Comment
|
||||
HiLink srecRecCount srecNoAddress
|
||||
HiLink srecStartAddress srecDataAddress
|
||||
hi def srecDataOdd term=bold cterm=bold gui=bold
|
||||
hi def srecDataEven term=NONE cterm=NONE gui=NONE
|
||||
HiLink srecDataUnexpected Error
|
||||
HiLink srecChecksum DiffChange
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
|
||||
let b:current_syntax = "srec"
|
||||
|
||||
" vim: ts=8
|
||||
@@ -1,9 +1,8 @@
|
||||
" Vim syntax file
|
||||
" This is a GENERATED FILE. Please always refer to source file at the URI below.
|
||||
" Language: strace output
|
||||
" Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz>
|
||||
" Last Change: 2002-10-10
|
||||
" URL: http://trific.ath.cx/Ftp/vim/syntax/strace.vim
|
||||
" Maintainer: David Necas (Yeti) <yeti@physics.muni.cz>
|
||||
" Last Change: 2015-01-16
|
||||
|
||||
" Setup
|
||||
if version >= 600
|
||||
@@ -17,7 +16,7 @@ endif
|
||||
syn case match
|
||||
|
||||
" Parse the line
|
||||
syn match straceSpecialChar "\\\d\d\d\|\\." contained
|
||||
syn match straceSpecialChar "\\\o\{1,3}\|\\." contained
|
||||
syn region straceString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=straceSpecialChar oneline
|
||||
syn match straceNumber "\W[+-]\=\(\d\+\)\=\.\=\d\+\([eE][+-]\=\d\+\)\="lc=1
|
||||
syn match straceNumber "\W0x\x\+"lc=1
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
" Language: tags
|
||||
" Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchip@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Sep 06, 2005
|
||||
" Version: 3
|
||||
" URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
|
||||
" Maintainer: Charles E. Campbell <NdrOchip@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Oct 23, 2014
|
||||
" Version: 4
|
||||
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_TAGS
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
" Vim syntax file
|
||||
" Language: TeX
|
||||
" Maintainer: Charles E. Campbell <NdrchipO@ScampbellPfamily.AbizM>
|
||||
" Last Change: Sep 09, 2014
|
||||
" Version: 82
|
||||
" Last Change: Nov 18, 2014
|
||||
" Version: 83
|
||||
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_TEX
|
||||
"
|
||||
" Notes: {{{1
|
||||
@@ -64,6 +64,8 @@ if version >= 508 || !exists("did_tex_syntax_inits")
|
||||
endif
|
||||
if exists("g:tex_no_error") && g:tex_no_error
|
||||
let s:tex_no_error= 1
|
||||
else
|
||||
let s:tex_no_error= 0
|
||||
endif
|
||||
|
||||
" by default, enable all region-based highlighting
|
||||
@@ -76,7 +78,6 @@ if exists("g:tex_fast")
|
||||
else
|
||||
let s:tex_fast= g:tex_fast
|
||||
endif
|
||||
let s:tex_no_error= 1
|
||||
else
|
||||
let s:tex_fast= "bcmMprsSvV"
|
||||
endif
|
||||
@@ -141,7 +142,7 @@ endif
|
||||
" Clusters: {{{1
|
||||
" --------
|
||||
syn cluster texCmdGroup contains=texCmdBody,texComment,texDefParm,texDelimiter,texDocType,texInput,texLength,texLigature,texMathDelim,texMathOper,texNewCmd,texNewEnv,texRefZone,texSection,texBeginEnd,texBeginEndName,texSpecialChar,texStatement,texString,texTypeSize,texTypeStyle
|
||||
if !exists("s:tex_no_error")
|
||||
if !exists("s:tex_no_error") || !s:tex_no_error
|
||||
syn cluster texCmdGroup add=texMathError
|
||||
endif
|
||||
syn cluster texEnvGroup contains=texMatcher,texMathDelim,texSpecialChar,texStatement
|
||||
@@ -157,13 +158,13 @@ else
|
||||
endif
|
||||
syn cluster texPreambleMatchGroup contains=texAccent,texBadMath,texComment,texDefCmd,texDelimiter,texDocType,texInput,texLength,texLigature,texMatcher,texNewCmd,texNewEnv,texOnlyMath,texParen,texRefZone,texSection,texSpecialChar,texStatement,texString,texTypeSize,texTypeStyle,texZone,texInputFile,texOption,texMathZoneZ
|
||||
syn cluster texRefGroup contains=texMatcher,texComment,texDelimiter
|
||||
if !exists("tex_no_math")
|
||||
if !exists("g:tex_no_math")
|
||||
syn cluster texMathZones contains=texMathZoneV,texMathZoneW,texMathZoneX,texMathZoneY,texMathZoneZ
|
||||
syn cluster texMatchGroup add=@texMathZones
|
||||
syn cluster texMathDelimGroup contains=texMathDelimBad,texMathDelimKey,texMathDelimSet1,texMathDelimSet2
|
||||
syn cluster texMathMatchGroup contains=@texMathZones,texComment,texDefCmd,texDelimiter,texDocType,texInput,texLength,texLigature,texMathDelim,texMathMatcher,texMathOper,texNewCmd,texNewEnv,texRefZone,texSection,texSpecialChar,texStatement,texString,texTypeSize,texTypeStyle,texZone
|
||||
syn cluster texMathZoneGroup contains=texComment,texDelimiter,texLength,texMathDelim,texMathMatcher,texMathOper,texMathSymbol,texMathText,texRefZone,texSpecialChar,texStatement,texTypeSize,texTypeStyle
|
||||
if !exists("s:tex_no_error")
|
||||
if !exists("s:tex_no_error") || !s:tex_no_error
|
||||
syn cluster texMathMatchGroup add=texMathError
|
||||
syn cluster texMathZoneGroup add=texMathError
|
||||
endif
|
||||
@@ -185,7 +186,7 @@ endif
|
||||
|
||||
" Try to flag {} and () mismatches: {{{1
|
||||
if s:tex_fast =~ 'm'
|
||||
if !exists("s:tex_no_error")
|
||||
if !exists("s:tex_no_error") || !s:tex_no_error
|
||||
syn region texMatcher matchgroup=Delimiter start="{" skip="\\\\\|\\[{}]" end="}" contains=@texMatchGroup,texError
|
||||
syn region texMatcher matchgroup=Delimiter start="\[" end="]" contains=@texMatchGroup,texError,@NoSpell
|
||||
else
|
||||
@@ -198,12 +199,12 @@ if s:tex_fast =~ 'm'
|
||||
syn region texParen start="(" end=")" contains=@texMatchGroup
|
||||
endif
|
||||
endif
|
||||
if !exists("s:tex_no_error")
|
||||
if !exists("s:tex_no_error") || !s:tex_no_error
|
||||
syn match texError "[}\])]"
|
||||
endif
|
||||
if s:tex_fast =~ 'M'
|
||||
if !exists("tex_no_math")
|
||||
if !exists("s:tex_no_error")
|
||||
if !exists("g:tex_no_math")
|
||||
if !exists("s:tex_no_error") || !s:tex_no_error
|
||||
syn match texMathError "}" contained
|
||||
endif
|
||||
syn region texMathMatcher matchgroup=Delimiter start="{" skip="\\\\\|\\}" end="}" end="%stopzone\>" contained contains=@texMathMatchGroup
|
||||
@@ -217,7 +218,7 @@ if exists("g:tex_tex") || b:tex_stylish
|
||||
syn match texStatement "\\[a-zA-Z@]\+"
|
||||
else
|
||||
syn match texStatement "\\\a\+"
|
||||
if !exists("s:tex_no_error")
|
||||
if !exists("s:tex_no_error") || !s:tex_no_error
|
||||
syn match texError "\\\a*@[a-zA-Z@]*"
|
||||
endif
|
||||
endif
|
||||
@@ -358,6 +359,7 @@ if s:tex_fast =~ 'p'
|
||||
syn region texSubParaZone matchgroup=texSection start='\\subparagraph\>' end='\ze\s*\\\%(\%(sub\)\=paragraph\>\|\%(sub\)*section\>\|chapter\>\|part\>\|end\s*{\s*document\s*}\)' contains=@texFoldGroup,@Spell
|
||||
syn region texTitle matchgroup=texSection start='\\\%(author\|title\)\>\s*{' end='}' contains=@texFoldGroup,@Spell
|
||||
syn region texAbstract matchgroup=texSection start='\\begin\s*{\s*abstract\s*}' end='\\end\s*{\s*abstract\s*}' contains=@texFoldGroup,@Spell
|
||||
syn region texSpellZone matchgroup=texSpellZone start="%spellzone_start" end="%spellzone_end" contains=@Spell
|
||||
endif
|
||||
else
|
||||
if g:tex_fold_enabled && has("folding")
|
||||
@@ -397,14 +399,14 @@ if s:tex_fast =~ 'b'
|
||||
endif
|
||||
|
||||
" Bad Math (mismatched): {{{1
|
||||
if !exists("g:tex_no_math") && !exists("s:tex_no_error")
|
||||
if !exists("g:tex_no_math") && (!exists("s:tex_no_error") || !s:tex_no_error)
|
||||
syn match texBadMath "\\end\s*{\s*\(array\|gathered\|bBpvV]matrix\|split\|subequations\|smallmatrix\|xxalignat\)\s*}"
|
||||
syn match texBadMath "\\end\s*{\s*\(align\|alignat\|displaymath\|displaymath\|eqnarray\|equation\|flalign\|gather\|math\|multline\|xalignat\)\*\=\s*}"
|
||||
syn match texBadMath "\\[\])]"
|
||||
endif
|
||||
|
||||
" Math Zones: {{{1
|
||||
if !exists("tex_no_math")
|
||||
if !exists("g:tex_no_math")
|
||||
" TexNewMathZone: function creates a mathzone with the given suffix and mathzone name. {{{2
|
||||
" Starred forms are created if starform is true. Starred
|
||||
" forms have syntax group and synchronization groups with a
|
||||
@@ -541,7 +543,7 @@ else
|
||||
syn match texSpecialChar "\\[SP@]\A"me=e-1
|
||||
endif
|
||||
syn match texSpecialChar "\\\\"
|
||||
if !exists("tex_no_math")
|
||||
if !exists("g:tex_no_math")
|
||||
syn match texOnlyMath "[_^]"
|
||||
endif
|
||||
syn match texSpecialChar "\^\^[0-9a-f]\{2}\|\^\^\S"
|
||||
@@ -574,12 +576,14 @@ else
|
||||
syn match texComment "%.*$" contains=@texCommentGroup
|
||||
if s:tex_fast =~ 'c'
|
||||
syn region texComment start="^\zs\s*%.*\_s*%" skip="^\s*%" end='^\ze\s*[^%]' fold
|
||||
syn region texNoSpell contained fold matchgroup=texComment start="%\s*nospell\s*{" end="%\s*nospell\s*}" contains=@texFoldGroup,@NoSpell
|
||||
syn region texNoSpell contained matchgroup=texComment start="%\s*nospell\s*{" end="%\s*nospell\s*}" fold contains=@texFoldGroup,@NoSpell
|
||||
syn region texSpellZone matchgroup=texComment start="%\s*spellzone_start" end="%\s*spellzone_end" fold contains=@Spell,@texFoldGroup
|
||||
endif
|
||||
else
|
||||
syn match texComment "%.*$" contains=@texCommentGroup
|
||||
syn match texComment "%.*$" contains=@texCommentGroup
|
||||
if s:tex_fast =~ 'c'
|
||||
syn region texNoSpell contained matchgroup=texComment start="%\s*nospell\s*{" end="%\s*nospell\s*}" contains=@texFoldGroup,@NoSpell
|
||||
syn region texNoSpell contained matchgroup=texComment start="%\s*nospell\s*{" end="%\s*nospell\s*}" contains=@texFoldGroup,@NoSpell
|
||||
syn region texSpellZone matchgroup=texComment start="%\s*spellzone_start" end="%\s*spellzone_end" contains=@Spell,@texFoldGroup
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
@@ -663,7 +667,7 @@ syn match texLength "\<\d\+\([.,]\d\+\)\=\s*\(true\)\=\s*\(bp\|cc\|cm\|dd\|em\
|
||||
syn match texString "\(``\|''\|,,\)"
|
||||
|
||||
" makeatletter -- makeatother sections
|
||||
if !exists("s:tex_no_error")
|
||||
if !exists("s:tex_no_error") || !s:tex_no_error
|
||||
if s:tex_fast =~ 'S'
|
||||
syn region texStyle matchgroup=texStatement start='\\makeatletter' end='\\makeatother' contains=@texStyleGroup contained
|
||||
endif
|
||||
@@ -794,8 +798,8 @@ if has("conceal") && &enc == 'utf-8'
|
||||
\ ['left(' , '('],
|
||||
\ ['left\[' , '['],
|
||||
\ ['left\\{' , '{'],
|
||||
\ ['leftarrow' , '⟵'],
|
||||
\ ['Leftarrow' , '⟸'],
|
||||
\ ['leftarrow' , '←'],
|
||||
\ ['Leftarrow' , '⇐'],
|
||||
\ ['leftarrowtail' , '↢'],
|
||||
\ ['leftharpoondown', '↽'],
|
||||
\ ['leftharpoonup' , '↼'],
|
||||
@@ -881,8 +885,8 @@ if has("conceal") && &enc == 'utf-8'
|
||||
\ ['right)' , ')'],
|
||||
\ ['right]' , ']'],
|
||||
\ ['right\\}' , '}'],
|
||||
\ ['rightarrow' , '⟶'],
|
||||
\ ['Rightarrow' , '⟹'],
|
||||
\ ['rightarrow' , '→'],
|
||||
\ ['Rightarrow' , '⇒'],
|
||||
\ ['rightarrowtail' , '↣'],
|
||||
\ ['rightleftharpoons', '⇌'],
|
||||
\ ['rightsquigarrow', '↝'],
|
||||
@@ -995,6 +999,7 @@ if has("conceal") && &enc == 'utf-8'
|
||||
syn match texMathSymbol '\\hat{W}' contained conceal cchar=Ŵ
|
||||
syn match texMathSymbol '\\hat{y}' contained conceal cchar=ŷ
|
||||
syn match texMathSymbol '\\hat{Y}' contained conceal cchar=Ŷ
|
||||
" syn match texMathSymbol '\\bar{a}' contained conceal cchar=a̅
|
||||
endif
|
||||
|
||||
" Greek {{{2
|
||||
@@ -1011,7 +1016,7 @@ if has("conceal") && &enc == 'utf-8'
|
||||
call s:Greek('texGreek','\\zeta\>' ,'ζ')
|
||||
call s:Greek('texGreek','\\eta\>' ,'η')
|
||||
call s:Greek('texGreek','\\theta\>' ,'θ')
|
||||
call s:Greek('texGreek','\\vartheta\>' ,'ϑ')
|
||||
call s:Greek('texGreek','\\vartheta\>' ,'ϑ')
|
||||
call s:Greek('texGreek','\\kappa\>' ,'κ')
|
||||
call s:Greek('texGreek','\\lambda\>' ,'λ')
|
||||
call s:Greek('texGreek','\\mu\>' ,'μ')
|
||||
@@ -1022,11 +1027,11 @@ if has("conceal") && &enc == 'utf-8'
|
||||
call s:Greek('texGreek','\\rho\>' ,'ρ')
|
||||
call s:Greek('texGreek','\\varrho\>' ,'ϱ')
|
||||
call s:Greek('texGreek','\\sigma\>' ,'σ')
|
||||
call s:Greek('texGreek','\\varsigma\>' ,'ς')
|
||||
call s:Greek('texGreek','\\varsigma\>' ,'ς')
|
||||
call s:Greek('texGreek','\\tau\>' ,'τ')
|
||||
call s:Greek('texGreek','\\upsilon\>' ,'υ')
|
||||
call s:Greek('texGreek','\\phi\>' ,'φ')
|
||||
call s:Greek('texGreek','\\varphi\>' ,'ϕ')
|
||||
call s:Greek('texGreek','\\phi\>' ,'ϕ')
|
||||
call s:Greek('texGreek','\\varphi\>' ,'φ')
|
||||
call s:Greek('texGreek','\\chi\>' ,'χ')
|
||||
call s:Greek('texGreek','\\psi\>' ,'ψ')
|
||||
call s:Greek('texGreek','\\omega\>' ,'ω')
|
||||
@@ -1245,7 +1250,7 @@ syn sync match texSyncStop groupthere NONE "%stopzone\>"
|
||||
" (one can't tell if a "$$" starts or stops a math zone by itself)
|
||||
" The following grouptheres coupled with minlines above
|
||||
" help improve the odds of good syncing.
|
||||
if !exists("tex_no_math")
|
||||
if !exists("g:tex_no_math")
|
||||
syn sync match texSyncMathZoneA groupthere NONE "\\end{abstract}"
|
||||
syn sync match texSyncMathZoneA groupthere NONE "\\end{center}"
|
||||
syn sync match texSyncMathZoneA groupthere NONE "\\end{description}"
|
||||
@@ -1285,7 +1290,7 @@ if did_tex_syntax_inits == 1
|
||||
HiLink texInputFileOpt texCmdArgs
|
||||
HiLink texInputCurlies texDelimiter
|
||||
HiLink texLigature texSpecialChar
|
||||
if !exists("tex_no_math")
|
||||
if !exists("g:tex_no_math")
|
||||
HiLink texMathDelimSet1 texMathDelim
|
||||
HiLink texMathDelimSet2 texMathDelim
|
||||
HiLink texMathDelimKey texMathDelim
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
" Vim syntax file
|
||||
" Language: Innovation Data Processing upstream.dat file
|
||||
" Maintainer: Rob Owens <rowens@fdrinnovation.com>
|
||||
" Latest Revision: 2013-06-17
|
||||
" Latest Revision: 2013-11-27
|
||||
|
||||
" Quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
" Parameters:
|
||||
syn keyword upstreamdat_Parameter ACCEPTPCREMOTE
|
||||
syn keyword upstreamdat_Parameter ACCEPTREMOTE
|
||||
syn keyword upstreamdat_Parameter ACTION
|
||||
@@ -291,6 +292,14 @@ syn keyword upstreamdat_Parameter XFERECORDSIZE
|
||||
syn keyword upstreamdat_Parameter XFERRECSEP
|
||||
syn keyword upstreamdat_Parameter XFERRECUSECR
|
||||
|
||||
" File Specs:
|
||||
syn match upstreamdat_Filespec /file spec\c \d\{1,3}.*/
|
||||
|
||||
" Comments:
|
||||
syn match upstreamdat_Comment /^#.*/
|
||||
|
||||
hi def link upstreamdat_Parameter Type
|
||||
"hi def link upstreamdat_Filespec Underlined
|
||||
hi def link upstreamdat_Comment Comment
|
||||
|
||||
let b:current_syntax = "upstreamdat"
|
||||
|
||||
310
runtime/syntax/upstreamrpt.vim
Normal file
310
runtime/syntax/upstreamrpt.vim
Normal file
@@ -0,0 +1,310 @@
|
||||
" Vim syntax file
|
||||
" Language: Innovation Data Processing upstream.rpt file
|
||||
" Maintainer: Rob Owens <rowens@fdrinnovation.com>
|
||||
" Latest Revision: 2014-03-13
|
||||
|
||||
" Quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
setlocal foldmethod=syntax
|
||||
|
||||
" Parameters:
|
||||
syn keyword upstreamdat_Parameter ACCEPTPCREMOTE
|
||||
syn keyword upstreamdat_Parameter ACCEPTREMOTE
|
||||
syn keyword upstreamdat_Parameter ACTION
|
||||
syn keyword upstreamdat_Parameter ACTIVATEONENTRY
|
||||
syn keyword upstreamdat_Parameter ARCHIVEBIT
|
||||
syn keyword upstreamdat_Parameter ARCHIVEBIT
|
||||
syn keyword upstreamdat_Parameter ASCTOEBC
|
||||
syn keyword upstreamdat_Parameter ASRBACKUP
|
||||
syn keyword upstreamdat_Parameter ATTENDED
|
||||
syn keyword upstreamdat_Parameter AUTHORITATIVE
|
||||
syn keyword upstreamdat_Parameter AUTHORITATIVERESTORE
|
||||
syn keyword upstreamdat_Parameter AUTHORITATIVERESTORE
|
||||
syn keyword upstreamdat_Parameter BACKUPPROFILE
|
||||
syn keyword upstreamdat_Parameter BACKUPPROFILE2
|
||||
syn keyword upstreamdat_Parameter BACKUPREPARSEFILES
|
||||
syn keyword upstreamdat_Parameter BACKUPREPARSEFILES
|
||||
syn keyword upstreamdat_Parameter BACKUPVERIFY
|
||||
syn keyword upstreamdat_Parameter BLANKTRUNC
|
||||
syn keyword upstreamdat_Parameter CALCDASDSIZE
|
||||
syn keyword upstreamdat_Parameter CHANGEDIRATTRIBS
|
||||
syn keyword upstreamdat_Parameter CHANGEDIRATTRIBS
|
||||
syn keyword upstreamdat_Parameter COMPRESSLEVEL
|
||||
syn keyword upstreamdat_Parameter CONTROLFILE
|
||||
syn keyword upstreamdat_Parameter DASDOVERRIDE
|
||||
syn keyword upstreamdat_Parameter DATELIMIT
|
||||
syn keyword upstreamdat_Parameter DATELIMIT
|
||||
syn keyword upstreamdat_Parameter DAYSOLD
|
||||
syn keyword upstreamdat_Parameter DAYSOLD
|
||||
syn keyword upstreamdat_Parameter DELETED
|
||||
syn keyword upstreamdat_Parameter DELETED
|
||||
syn keyword upstreamdat_Parameter DELETEPROMPTS
|
||||
syn keyword upstreamdat_Parameter DELETEPROMPTS
|
||||
syn keyword upstreamdat_Parameter DESTINATION
|
||||
syn keyword upstreamdat_Parameter DESTINATION
|
||||
syn keyword upstreamdat_Parameter DIRDELETE
|
||||
syn keyword upstreamdat_Parameter DIRECTORVMC
|
||||
syn keyword upstreamdat_Parameter DIRONLYRESTOREOK
|
||||
syn keyword upstreamdat_Parameter DIRSONLY
|
||||
syn keyword upstreamdat_Parameter DIRSONLY
|
||||
syn keyword upstreamdat_Parameter DISASTERRECOVERY
|
||||
syn keyword upstreamdat_Parameter DISPLAY
|
||||
syn keyword upstreamdat_Parameter DRIVEALIAS
|
||||
syn keyword upstreamdat_Parameter DRIVEALIAS
|
||||
syn keyword upstreamdat_Parameter DUALCOPY
|
||||
syn keyword upstreamdat_Parameter DUPDAYS
|
||||
syn keyword upstreamdat_Parameter DUPLICATE
|
||||
syn keyword upstreamdat_Parameter EBCTOASC
|
||||
syn keyword upstreamdat_Parameter ENCRYPT
|
||||
syn keyword upstreamdat_Parameter ENCRYPTLEVEL
|
||||
syn keyword upstreamdat_Parameter EXCLUDELISTNAME
|
||||
syn keyword upstreamdat_Parameter FAILBACKUPONERROR
|
||||
syn keyword upstreamdat_Parameter FAILBACKUPONERROR
|
||||
syn keyword upstreamdat_Parameter FAILIFNOFILES
|
||||
syn keyword upstreamdat_Parameter FAILIFNOFILES
|
||||
syn keyword upstreamdat_Parameter FAILIFSKIP
|
||||
syn keyword upstreamdat_Parameter FAILJOB
|
||||
syn keyword upstreamdat_Parameter FAILRESTOREONERROR
|
||||
syn keyword upstreamdat_Parameter FAILRESTOREONERROR
|
||||
syn keyword upstreamdat_Parameter FILEDATE
|
||||
syn keyword upstreamdat_Parameter FILEDATE
|
||||
syn keyword upstreamdat_Parameter FILEDELETE
|
||||
syn keyword upstreamdat_Parameter FILEDELETE
|
||||
syn keyword upstreamdat_Parameter FILES
|
||||
syn keyword upstreamdat_Parameter FILES
|
||||
syn keyword upstreamdat_Parameter FILESOPENFORUPDAT
|
||||
syn keyword upstreamdat_Parameter FILESOPENFORUPDAT
|
||||
syn keyword upstreamdat_Parameter FILETRANSFER
|
||||
syn keyword upstreamdat_Parameter GETREMOTEFILES
|
||||
syn keyword upstreamdat_Parameter HARDLINKDB
|
||||
syn keyword upstreamdat_Parameter HARDLINKS
|
||||
syn keyword upstreamdat_Parameter HARDLINKS
|
||||
syn keyword upstreamdat_Parameter HIDDENFILES
|
||||
syn keyword upstreamdat_Parameter HIDDENFILES
|
||||
syn keyword upstreamdat_Parameter HOLDTAPE
|
||||
syn keyword upstreamdat_Parameter HOLDUSERDIRS
|
||||
syn keyword upstreamdat_Parameter HOSTFILENAME
|
||||
syn keyword upstreamdat_Parameter HOSTRECORD
|
||||
syn keyword upstreamdat_Parameter HOSTSORT
|
||||
syn keyword upstreamdat_Parameter IGNOREPLUGINSFORRESTORE
|
||||
syn keyword upstreamdat_Parameter INCRDB
|
||||
syn keyword upstreamdat_Parameter INCRDBARCHIVEBIT
|
||||
syn keyword upstreamdat_Parameter INCRDBDELETEDFILES
|
||||
syn keyword upstreamdat_Parameter INCREMENTAL
|
||||
syn keyword upstreamdat_Parameter INCREMENTAL
|
||||
syn keyword upstreamdat_Parameter INQOPTIONS
|
||||
syn keyword upstreamdat_Parameter INSTALLWIN2KAGENT
|
||||
syn keyword upstreamdat_Parameter INSTALLWIN2KAGENT
|
||||
syn keyword upstreamdat_Parameter JOBOPTIONS
|
||||
syn keyword upstreamdat_Parameter JOBRETURNCODEMAP
|
||||
syn keyword upstreamdat_Parameter JOBWAITTIMELIMIT
|
||||
syn keyword upstreamdat_Parameter KEEPALIVE
|
||||
syn keyword upstreamdat_Parameter LANINTERFACE
|
||||
syn keyword upstreamdat_Parameter LANWSNAME
|
||||
syn keyword upstreamdat_Parameter LANWSPASSWORD
|
||||
syn keyword upstreamdat_Parameter LASTACCESS
|
||||
syn keyword upstreamdat_Parameter LASTACCESS
|
||||
syn keyword upstreamdat_Parameter LATESTDATE
|
||||
syn keyword upstreamdat_Parameter LATESTDATE
|
||||
syn keyword upstreamdat_Parameter LATESTTIME
|
||||
syn keyword upstreamdat_Parameter LATESTTIME
|
||||
syn keyword upstreamdat_Parameter LATESTVERSION
|
||||
syn keyword upstreamdat_Parameter LINEBLOCK
|
||||
syn keyword upstreamdat_Parameter LINETRUNC
|
||||
syn keyword upstreamdat_Parameter LISTENFORREMOTE
|
||||
syn keyword upstreamdat_Parameter LOCALBACKUP
|
||||
syn keyword upstreamdat_Parameter LOCALBACKUPDIR
|
||||
syn keyword upstreamdat_Parameter LOCALBACKUPMAX
|
||||
syn keyword upstreamdat_Parameter LOCALBACKUPMAXFILESIZE
|
||||
syn keyword upstreamdat_Parameter LOCALBACKUPMAXSIZE
|
||||
syn keyword upstreamdat_Parameter LOCALEXCLUDEFILE
|
||||
syn keyword upstreamdat_Parameter LOCALPARAMETERS
|
||||
syn keyword upstreamdat_Parameter LOCALPASSWORD
|
||||
syn keyword upstreamdat_Parameter LOCALRESTORE
|
||||
syn keyword upstreamdat_Parameter LOCALUSER
|
||||
syn keyword upstreamdat_Parameter LOFS
|
||||
syn keyword upstreamdat_Parameter LOGNONFATAL
|
||||
syn keyword upstreamdat_Parameter MAXBACKUPFILESFAIL
|
||||
syn keyword upstreamdat_Parameter MAXBACKUPTIME
|
||||
syn keyword upstreamdat_Parameter MAXDUPS
|
||||
syn keyword upstreamdat_Parameter MAXFILENAMESIZE
|
||||
syn keyword upstreamdat_Parameter MAXKFILESIZE
|
||||
syn keyword upstreamdat_Parameter MAXLOGDAYS
|
||||
syn keyword upstreamdat_Parameter MAXRESTOREFILESFAIL
|
||||
syn keyword upstreamdat_Parameter MAXRESTORETIME
|
||||
syn keyword upstreamdat_Parameter MAXRETRY
|
||||
syn keyword upstreamdat_Parameter MAXRPTDAYS
|
||||
syn keyword upstreamdat_Parameter MERGE
|
||||
syn keyword upstreamdat_Parameter MIGRBITS
|
||||
syn keyword upstreamdat_Parameter MIGRBITS
|
||||
syn keyword upstreamdat_Parameter MINCOMPRESSSIZE
|
||||
syn keyword upstreamdat_Parameter MINIMIZE
|
||||
syn keyword upstreamdat_Parameter MODIFYFILE
|
||||
syn keyword upstreamdat_Parameter MOUNTPOINTS
|
||||
syn keyword upstreamdat_Parameter MOUNTPOINTS
|
||||
syn keyword upstreamdat_Parameter NDS
|
||||
syn keyword upstreamdat_Parameter NDS
|
||||
syn keyword upstreamdat_Parameter NEWFILECOMPARE
|
||||
syn keyword upstreamdat_Parameter NFSBELOW
|
||||
syn keyword upstreamdat_Parameter NODATAOK
|
||||
syn keyword upstreamdat_Parameter NODIRFORINCREMENTAL
|
||||
syn keyword upstreamdat_Parameter NODIRFORINCREMENTAL
|
||||
syn keyword upstreamdat_Parameter NONFILEDATABITMAP
|
||||
syn keyword upstreamdat_Parameter NONFILEDATABITMAP
|
||||
syn keyword upstreamdat_Parameter NOPOINTRESTORE
|
||||
syn keyword upstreamdat_Parameter NOSPECINHERITANCE
|
||||
syn keyword upstreamdat_Parameter NOTIFYEVENTS
|
||||
syn keyword upstreamdat_Parameter NOTIFYFAILUREATTACHMENT
|
||||
syn keyword upstreamdat_Parameter NOTIFYSUCCESSATTACHMENT
|
||||
syn keyword upstreamdat_Parameter NOTIFYTARGETS
|
||||
syn keyword upstreamdat_Parameter NOUIDGIDNAMES
|
||||
syn keyword upstreamdat_Parameter NOUIDGIDNAMES
|
||||
syn keyword upstreamdat_Parameter NOVELLMIGRATE
|
||||
syn keyword upstreamdat_Parameter NOVELLMIGRATE
|
||||
syn keyword upstreamdat_Parameter NOVELLMIGRATEADDEXT
|
||||
syn keyword upstreamdat_Parameter NOVELLMIGRATEADDEXT
|
||||
syn keyword upstreamdat_Parameter NOVELLPROFILE
|
||||
syn keyword upstreamdat_Parameter NOVELLRECALL
|
||||
syn keyword upstreamdat_Parameter NTFSADDPERMISSION
|
||||
syn keyword upstreamdat_Parameter NTFSADDPERMISSION
|
||||
syn keyword upstreamdat_Parameter NTREGRESTORE
|
||||
syn keyword upstreamdat_Parameter OSTYPE
|
||||
syn keyword upstreamdat_Parameter OUTPORT
|
||||
syn keyword upstreamdat_Parameter PACKFLUSHAFTERFILE
|
||||
syn keyword upstreamdat_Parameter PACKRECSIZE
|
||||
syn keyword upstreamdat_Parameter PARAMETER
|
||||
syn keyword upstreamdat_Parameter PASSWORD
|
||||
syn keyword upstreamdat_Parameter PATHNAME
|
||||
syn keyword upstreamdat_Parameter PATHNAME
|
||||
syn keyword upstreamdat_Parameter PERFORMBITMAP
|
||||
syn keyword upstreamdat_Parameter PERFORMNUMRECORDS
|
||||
syn keyword upstreamdat_Parameter PERFORMRECORDSIZE
|
||||
syn keyword upstreamdat_Parameter PLUGIN
|
||||
syn keyword upstreamdat_Parameter PLUGIN
|
||||
syn keyword upstreamdat_Parameter PLUGINPARAMETERS
|
||||
syn keyword upstreamdat_Parameter PLUGINPARAMETERS
|
||||
syn keyword upstreamdat_Parameter POSTJOB
|
||||
syn keyword upstreamdat_Parameter PREJOB
|
||||
syn keyword upstreamdat_Parameter PRTYCLASS
|
||||
syn keyword upstreamdat_Parameter PRTYLEVEL
|
||||
syn keyword upstreamdat_Parameter RECALLCLEANUP
|
||||
syn keyword upstreamdat_Parameter RECALLOFFLINEFILES
|
||||
syn keyword upstreamdat_Parameter RECALLOFFLINEFILES
|
||||
syn keyword upstreamdat_Parameter RECORDSIZE
|
||||
syn keyword upstreamdat_Parameter REMOTEADDR
|
||||
syn keyword upstreamdat_Parameter REMOTEAPPLPREF
|
||||
syn keyword upstreamdat_Parameter REMOTEAPPLRETRY
|
||||
syn keyword upstreamdat_Parameter REMOTECONNECTTYPE
|
||||
syn keyword upstreamdat_Parameter REMOTEFLAGS
|
||||
syn keyword upstreamdat_Parameter REMOTEIPADAPTER
|
||||
syn keyword upstreamdat_Parameter REMOTELOCALPARAMETERS
|
||||
syn keyword upstreamdat_Parameter REMOTELOGMODE
|
||||
syn keyword upstreamdat_Parameter REMOTELUNAME
|
||||
syn keyword upstreamdat_Parameter REMOTEMAXRETRIES
|
||||
syn keyword upstreamdat_Parameter REMOTEMODENAME
|
||||
syn keyword upstreamdat_Parameter REMOTEPARAMETERFILE
|
||||
syn keyword upstreamdat_Parameter REMOTEPORT
|
||||
syn keyword upstreamdat_Parameter REMOTEREQUEST
|
||||
syn keyword upstreamdat_Parameter REMOTERESTART
|
||||
syn keyword upstreamdat_Parameter REMOTEROUTE
|
||||
syn keyword upstreamdat_Parameter REMOTETARGETNAME
|
||||
syn keyword upstreamdat_Parameter REMOTETCP
|
||||
syn keyword upstreamdat_Parameter REMOTETIMEOUT
|
||||
syn keyword upstreamdat_Parameter REMOTETMAXRETRY
|
||||
syn keyword upstreamdat_Parameter REMOTETPN
|
||||
syn keyword upstreamdat_Parameter REMOTEUSAPPL
|
||||
syn keyword upstreamdat_Parameter REMOTEVERIFY
|
||||
syn keyword upstreamdat_Parameter REMOTEWTOCOMP
|
||||
syn keyword upstreamdat_Parameter REPORTNAME
|
||||
syn keyword upstreamdat_Parameter REPORTOPTIONS
|
||||
syn keyword upstreamdat_Parameter RESTARTLASTFILE
|
||||
syn keyword upstreamdat_Parameter RESTART
|
||||
syn keyword upstreamdat_Parameter RESTARTTYPE
|
||||
syn keyword upstreamdat_Parameter RESTARTVERSIONDATE
|
||||
syn keyword upstreamdat_Parameter RESTOREARCHIVEBIT
|
||||
syn keyword upstreamdat_Parameter RESTORECHECKPOINT
|
||||
syn keyword upstreamdat_Parameter RESTOREDATELIMIT
|
||||
syn keyword upstreamdat_Parameter RESTOREDATELIMIT
|
||||
syn keyword upstreamdat_Parameter RESTOREFILEFAIL
|
||||
syn keyword upstreamdat_Parameter RESTOREMOUNTPOINTS
|
||||
syn keyword upstreamdat_Parameter RESTOREMOUNTPOINTS
|
||||
syn keyword upstreamdat_Parameter RESTORESEGMENTS
|
||||
syn keyword upstreamdat_Parameter RESTORESEGMENTS
|
||||
syn keyword upstreamdat_Parameter RESTORETODIFFFS
|
||||
syn keyword upstreamdat_Parameter RETAIN
|
||||
syn keyword upstreamdat_Parameter RETAIN
|
||||
syn keyword upstreamdat_Parameter ROOTENTRY
|
||||
syn keyword upstreamdat_Parameter ROOTENTRY
|
||||
syn keyword upstreamdat_Parameter SAN
|
||||
syn keyword upstreamdat_Parameter SCHEDULENAME
|
||||
syn keyword upstreamdat_Parameter SEGMENTEDFILESIZE
|
||||
syn keyword upstreamdat_Parameter SEGMENTEDFILESIZE
|
||||
syn keyword upstreamdat_Parameter SEGMENTSIZE
|
||||
syn keyword upstreamdat_Parameter SEGMENTSIZE
|
||||
syn keyword upstreamdat_Parameter SENDHOSTDETAILS
|
||||
syn keyword upstreamdat_Parameter SINGLEFS
|
||||
syn keyword upstreamdat_Parameter SIZETRC
|
||||
syn keyword upstreamdat_Parameter SKIP
|
||||
syn keyword upstreamdat_Parameter SKIPBACKUPSCAN
|
||||
syn keyword upstreamdat_Parameter SKIPOLD
|
||||
syn keyword upstreamdat_Parameter SKIPOLD
|
||||
syn keyword upstreamdat_Parameter SMSTARGETSERVICENAME
|
||||
syn keyword upstreamdat_Parameter SMSTSA
|
||||
syn keyword upstreamdat_Parameter SOLO
|
||||
syn keyword upstreamdat_Parameter SORTBACKUP
|
||||
syn keyword upstreamdat_Parameter SOSDISK
|
||||
syn keyword upstreamdat_Parameter SOSDISK
|
||||
syn keyword upstreamdat_Parameter SOSTIMESTAMP
|
||||
syn keyword upstreamdat_Parameter SOSTIMESTAMP
|
||||
syn keyword upstreamdat_Parameter SOSTIMESTAMPPATH
|
||||
syn keyword upstreamdat_Parameter SOSTIMESTAMPPATH
|
||||
syn keyword upstreamdat_Parameter SPECNUMBER
|
||||
syn keyword upstreamdat_Parameter SPECNUMBER
|
||||
syn keyword upstreamdat_Parameter SPECTYPE
|
||||
syn keyword upstreamdat_Parameter SPECTYPE
|
||||
syn keyword upstreamdat_Parameter STARTTIME
|
||||
syn keyword upstreamdat_Parameter STORAGETYPE
|
||||
syn keyword upstreamdat_Parameter SUBDIRECTORIES
|
||||
syn keyword upstreamdat_Parameter SUBDIRECTORIES
|
||||
syn keyword upstreamdat_Parameter SWITCHTOTAPEMB
|
||||
syn keyword upstreamdat_Parameter TCPADDRESS
|
||||
syn keyword upstreamdat_Parameter TCPTIMEOUT
|
||||
syn keyword upstreamdat_Parameter TIMEOVERRIDE
|
||||
syn keyword upstreamdat_Parameter TRACE
|
||||
syn keyword upstreamdat_Parameter TRANSLATE
|
||||
syn keyword upstreamdat_Parameter ULTRACOMP
|
||||
syn keyword upstreamdat_Parameter ULTREG
|
||||
syn keyword upstreamdat_Parameter ULTUPD
|
||||
syn keyword upstreamdat_Parameter UNCMACHINEALIAS
|
||||
syn keyword upstreamdat_Parameter UNCMACHINEALIAS
|
||||
syn keyword upstreamdat_Parameter USEALEBRA
|
||||
syn keyword upstreamdat_Parameter USECONTROLFILE
|
||||
syn keyword upstreamdat_Parameter USEGID
|
||||
syn keyword upstreamdat_Parameter USERID
|
||||
syn keyword upstreamdat_Parameter USEUID
|
||||
syn keyword upstreamdat_Parameter USNOUIDGIDERRORS
|
||||
syn keyword upstreamdat_Parameter UTF8
|
||||
syn keyword upstreamdat_Parameter VAULTNUMBER
|
||||
syn keyword upstreamdat_Parameter VERSIONDATE
|
||||
syn keyword upstreamdat_Parameter WRITESPARSE
|
||||
syn keyword upstreamdat_Parameter XFERECORDSIZE
|
||||
syn keyword upstreamdat_Parameter XFERRECSEP
|
||||
syn keyword upstreamdat_Parameter XFERRECUSECR
|
||||
|
||||
" File Specs:
|
||||
syn match upstreamdat_Filespec /file spec\c \d\{1,3}.*/
|
||||
|
||||
" Comments:
|
||||
syn match upstreamdat_Comment /^#.*/
|
||||
|
||||
" List Of Parameters:
|
||||
syn region upstreamdat_Parms start="Current Parameters:" end="End Of Parameters" transparent fold
|
||||
|
||||
hi def link upstreamdat_Parameter Type
|
||||
"hi def link upstreamdat_Filespec Underlined
|
||||
hi def link upstreamdat_Comment Comment
|
||||
|
||||
let b:current_syntax = "upstreamdat"
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim syntax file
|
||||
" Language: Innovation Data Processing USW2KAgt.log file
|
||||
" Maintainer: Rob Owens <rowens@fdrinnovation.com>
|
||||
" Latest Revision: 2013-09-19
|
||||
" Latest Revision: 2014-04-01
|
||||
|
||||
" Quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
@@ -17,8 +17,12 @@ syn match usw2kagtlog_MsgI /Msg #\(Agt\|PC\|Srv\)\d\{4,5}I/ nextgroup=usw2kagtlo
|
||||
syn match usw2kagtlog_MsgW /Msg #\(Agt\|PC\|Srv\)\d\{4,5}W/ nextgroup=usw2kagtlog_Process skipwhite
|
||||
" Processes:
|
||||
syn region usw2kagtlog_Process start="(" end=")" contained
|
||||
syn region usw2kagtlog_Process start="Starting the processing for a \zs\"" end="\ze client request"
|
||||
syn region usw2kagtlog_Process start="Ending the processing for a \zs\"" end="\ze client request"
|
||||
"syn region usw2kagtlog_Process start="Starting the processing for a \zs\"" end="\ze client request"
|
||||
"syn region usw2kagtlog_Process start="Ending the processing for a \zs\"" end="\ze client request"
|
||||
"syn region usw2kagtlog_Process start="Starting the processing for a \zs\"" end="\ze client\s\{0,1}\r\{0,1}\s\{1,9}request"
|
||||
"syn region usw2kagtlog_Process start="Ending the processing for a \zs\"" end="\ze client\s\{0,1}\r\{0,1}\s\{1,9}request"
|
||||
syn region usw2kagtlog_Process start="Starting the processing for a \zs\"" end="\ze client"
|
||||
syn region usw2kagtlog_Process start="Ending the processing for a \zs\"" end="\ze client"
|
||||
" IP Address:
|
||||
syn match usw2kagtlog_IPaddr / \d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}/
|
||||
" Profile:
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
" Language: Valgrind Memory Debugger Output
|
||||
" Maintainer: Roger Luethi <rl@hellgate.ch>
|
||||
" Program URL: http://devel-home.kde.org/~sewardj/
|
||||
" Last Change: 2014 Oct 02
|
||||
" Last Change: 2015 Jan 27
|
||||
" Included improvement by Dominique Pelle
|
||||
"
|
||||
" Notes: mostly based on strace.vim and xml.vim
|
||||
"
|
||||
@@ -15,6 +16,9 @@ endif
|
||||
let s:keepcpo= &cpo
|
||||
set cpo&vim
|
||||
|
||||
" Lines can be long with demangled c++ functions.
|
||||
setlocal synmaxcol=8000
|
||||
|
||||
syn case match
|
||||
syn sync minlines=50
|
||||
|
||||
@@ -29,8 +33,8 @@ syn region valgrindRegion
|
||||
\ contains=valgrindPidChunk,valgrindLine
|
||||
|
||||
syn region valgrindPidChunk
|
||||
\ start=+\(^==\)\@<=+
|
||||
\ end=+\(==\)\@=+
|
||||
\ start=+^==\zs+
|
||||
\ end=+\ze==+
|
||||
\ contained
|
||||
\ contains=valgrindPid0,valgrindPid1,valgrindPid2,valgrindPid3,valgrindPid4,valgrindPid5,valgrindPid6,valgrindPid7,valgrindPid8,valgrindPid9
|
||||
\ keepend
|
||||
@@ -64,10 +68,11 @@ syn match valgrindSummary ".*SUMMARY:" contained
|
||||
syn match valgrindLoc "\s\+\(by\|at\|Address\).*$" contained
|
||||
\ contains=valgrindAt,valgrindAddr,valgrindFunc,valgrindBin,valgrindSrc
|
||||
syn match valgrindAt "at\s\@=" contained
|
||||
syn match valgrindAddr "\(\W\)\@<=0x\x\+" contained
|
||||
syn match valgrindFunc "\(: \)\@<=\w\+" contained
|
||||
syn match valgrindBin "\((\(with\|\)in \)\@<=\S\+\()\)\@=" contained
|
||||
syn match valgrindSrc "\((\)\@<=[^)]*:\d\+\()\)\@=" contained
|
||||
syn match valgrindAddr "\W\zs0x\x\+" contained
|
||||
|
||||
syn match valgrindFunc ": \zs\h[a-zA-Z0-9_:\[\]()<>&*+\-,=%!|^ ]*\ze([^)]*)$" contained
|
||||
syn match valgrindBin "(\(with\)\=in \zs\S\+)\@=" contained
|
||||
syn match valgrindSrc "(\zs[^)]*:\d\+)\@=" contained
|
||||
|
||||
" Define the default highlighting
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
" Vim syntax file
|
||||
" Language: Vim 7.4 script
|
||||
" Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Mar 20, 2014
|
||||
" Version: 7.4-27
|
||||
" Last Change: Jan 13, 2015
|
||||
" Version: 7.4-28
|
||||
" Automatically generated keyword lists: {{{1
|
||||
|
||||
" Quit when a syntax file was already loaded {{{2
|
||||
@@ -14,26 +14,27 @@ set cpo&vim
|
||||
|
||||
" vimTodo: contains common special-notices for comments {{{2
|
||||
" Use the vimCommentGroup cluster to add your own.
|
||||
syn keyword vimTodo contained COMBAK FIXME TODO XXX
|
||||
syn cluster vimCommentGroup contains=vimTodo,@Spell
|
||||
|
||||
" regular vim commands {{{2
|
||||
syn keyword vimCommand contained a arga[dd] ar[gs] bd[elete] bN[ext] breakd[el] bufdo cabc[lear] cat[ch] cex[pr] c[hange] cla[st] cnew[er] cNf[ile] con cp[revious] cuna[bbrev] del deletep delm[arks] diffp[atch] dig[raphs] do e echon endf endw[hile] f[ile] fin[d] folddoc[losed] fu[nction] gvim helpt[ags] iabc[lear] intro k l lan lc[d] lefta[bove] lg[etfile] lla[st] lnew[er] lNf[ile] lockv[ar] ls lvimgrepa[dd] mat[ch] mk[exrc] mo n n[ext] o ownsyntax perld[o] pre[serve] promptf[ind] ptl[ast] ptr[ewind] py3do qa[ll] r[ead] redr[aw] retu[rn] rub[y] rv[iminfo] sba[ll] sbN[ext] scripte[ncoding] setf[iletype] sh[ell] sim[alt] sm[ap] sni[ff] sor[t] spelli[nfo] spr[evious] start st[op] sunmenu syn ta tabf[ind] tabnew tabr[ewind] tcld[o] tj[ump] tN tr tu[nmenu] undoj[oin] uns[ilent] ve[rsion] vimgrepa[dd] vs[plit] winc[md] wN[ext] ws[verb] x[it] xnoremenu
|
||||
syn keyword vimCommand contained ab argd[elete] argu[ment] bel[owright] bo[tright] breakl[ist] b[uffer] cad cb[uffer] cf[ile] changes cl[ist] cn[ext] col[der] conf[irm] cq[uit] cw[indow] delc[ommand] deletl delp diffpu[t] dir doau ea e[dit] endfo[r] ene[w] files fini[sh] foldd[oopen] g h hi if is[earch] keepa la lan[guage] lch[dir] lex[pr] lgr[ep] lli[st] lne[xt] lo lol[der] lt[ag] lw[indow] menut mks[ession] mod[e] nbc[lose] nmapc[lear] ol[dfiles] p po[p] prev[ious] promptr[epl] ptn pts[elect] pydo q[uit] rec[over] redraws[tatus] rew[ind] rubyd[o] sal[l] sbf[irst] sbp[revious] scrip[tnames] setg[lobal] si sl sme sno[magic] so[urce] spellr[epall] sre[wind] startg[replace] stopi[nsert] sus[pend] sync tab tabfir[st] tabn[ext] tabs tclf[ile] tl[ast] tn[ext] tr[ewind] u undol[ist] up[date] vert[ical] vi[sual] w windo wp[revious] wundo xmapc[lear] xunme
|
||||
syn keyword vimCommand contained abc[lear] argdo as[cii] bf[irst] bp[revious] br[ewind] buffers caddb[uffer] cc cfir[st] chd[ir] clo[se] cN[ext] colo[rscheme] con[tinue] cr[ewind] d delel deletp dep diffs[plit] di[splay] dp earlier el[se] endfun ex filet fir[st] foldo[pen] go[to] ha[rdcopy] hid[e] ij[ump] isp[lit] keepalt lad la[st] lcl[ose] lf[ile] lgrepa[dd] lmak[e] lN[ext] loadk lop[en] lua ma menut[ranslate] mksp[ell] m[ove] nb[key] noa omapc[lear] pc[lose] popu p[rint] ps[earch] ptN pu[t] pyf[ile] quita[ll] red reg[isters] ri[ght] rubyf[ile] san[dbox] sbl[ast] sbr[ewind] scs setl[ocal] sig sla[st] smenu snoreme spe spellu[ndo] st star[tinsert] sts[elect] sv[iew] syncbind tabc[lose] tabl[ast] tabN[ext] ta[g] te[aroff] tm tN[ext] try un unh[ide] v vi viu[sage] wa[ll] winp[os] wq wv[iminfo] xme xunmenu
|
||||
syn keyword vimCommand contained abo[veleft] arge[dit] au bl[ast] br bro[wse] bun[load] cad[dexpr] ccl[ose] cgetb[uffer] che[ckpath] cmapc[lear] cnf com cope[n] cs de delep delf di difft[his] dj[ump] dr[op] ec elsei[f] endf[unction] exi[t] filetype fix[del] for gr[ep] h[elp] his[tory] il[ist] iuna[bbrev] keepj[umps] laddb[uffer] lat lcs lfir[st] lh[elpgrep] lmapc[lear] lnf loadkeymap lpf[ile] luado mak[e] mes mkv mz nbs[tart] noautocmd on[ly] pe popu[p] pro pta[g] ptn[ext] pw[d] py[thon] r redi[r] res[ize] rightb[elow] rundo sa[rgument] sbm[odified] sb[uffer] scscope sf[ind] sign sl[eep] sn[ext] snoremenu spelld[ump] spellw[rong] sta[g] startr[eplace] sun[hide] sw[apname] syntime tabd[o] tabm[ove] tabo[nly] tags tf[irst] tm[enu] to[pleft] ts[elect] una[bbreviate] unl ve vie[w] vmapc[lear] wh[ile] win[size] wqa[ll] x xmenu xwininfo
|
||||
syn keyword vimCommand contained al[l] argg[lobal] bad[d] bm[odified] brea[k] bu bw[ipeout] caddf[ile] cd cgete[xpr] checkt[ime] cn cNf comc[lear] co[py] cscope debug d[elete] delf[unction] diffg[et] diffu[pdate] dl ds[earch] echoe[rr] em[enu] en[dif] exu[sage] fin fo[ld] fu grepa[dd] helpf[ind] i imapc[lear] j[oin] kee[pmarks] lad[dexpr] later lcscope lgetb[uffer] l[ist] lN lNf lo[adview] lp[revious] luafile ma[rk] messages mkvie[w] mzf[ile] ne noh[lsearch] o[pen] ped[it] pp[op] profd[el] ptf[irst] ptN[ext] py python3 re red[o] ret[ab] ru ru[ntime] sav[eas] sbn[ext] scrip se[t] sfir[st] sil[ent] sm[agic] sN[ext] so spe[llgood] sp[lit] star stj[ump] sunme sy t tabe[dit] tabN tabp[revious] tc[l] th[row] tn tp[revious] tu u[ndo] unlo[ckvar] verb[ose] vim[grep] vne[w] win wn[ext] w[rite] xa[ll] xnoreme y[ank]
|
||||
syn keyword vimCommand contained ar argl[ocal] ba[ll] bn[ext] breaka[dd] buf c cal[l] ce[nter] cg[etfile] cl cN cnf[ile] comp[iler] cpf[ile] cstag debugg[reedy] deletel dell diffo[ff] dig dli[st] dsp[lit] echom[sg] en endt[ry] f fina[lly] foldc[lose] fun gui helpg[rep] ia in ju[mps] keepp[atterns] laddf[ile] lb[uffer] le[ft] lgete[xpr] ll lne lnf[ile] loc[kmarks] lr[ewind] lv[imgrep] marks mk mkv[imrc] mz[scheme] new nu[mber] opt[ions] pe[rl] pr prof[ile] ptj[ump] ptp[revious] py3 q
|
||||
syn match vimCommand contained "\<z[-+^.=]\="
|
||||
syn keyword vimCommand contained a arga[dd] ar[gs] bd[elete] bN[ext] breakl[ist] b[uffer] cad cb[uffer] cf[ile] changes cl[ist] cn[ext] col[der] conf[irm] cq[uit] cw[indow] delc[ommand] deletl delp diffpu[t] dir doau ea e[dit] endfo[r] ene[w] files fini[sh] foldd[oopen] g h helpt[ags] iabc[lear] intro k l lan lc[d] lefta[bove] lg[etfile] lla[st] lnew[er] lNf[ile] lockv[ar] ls lvimgrepa[dd] mat[ch] mk[exrc] mo n n[ext] nu[mber] opt[ions] pe[rl] pr prof[ile] ptj[ump] ptp[revious] py3 q r[ead] redr[aw] retu[rn] rub[y] rv[iminfo] sba[ll] sbN[ext] scripte[ncoding] setf[iletype] sh[ell] sim[alt] sm[ap] sni[ff] sor[t] spelli[nfo] spr[evious] start st[op] sunmenu syn ta tabf[ind] tabnew tabr[ewind] tcld[o] tj[ump] tN tr tu[nmenu] undoj[oin] uns[ilent] ve[rsion] vimgrepa[dd] vs[plit] winc[md] wN[ext] ws[verb] x[it] xnoremenu
|
||||
syn keyword vimCommand contained ab argd[elete] argu[ment] bel[owright] bo[tright] br[ewind] buffers caddb[uffer] cc cfir[st] chd[ir] clo[se] cN[ext] colo[rscheme] con[tinue] cr[ewind] d delel deletp dep diffs[plit] di[splay] dp earlier el[se] endfun ex filet fir[st] foldo[pen] go[to] ha[rdcopy] hi if is[earch] keepa la lan[guage] lch[dir] lex[pr] lgr[ep] lli[st] lne[xt] lo lol[der] lt[ag] lw[indow] menut mks[ession] mod[e] nbc[lose] nmapc[lear] o ownsyntax perld[o] pre[serve] promptf[ind] ptl[ast] ptr[ewind] py3do qa[ll] rec[over] redraws[tatus] rew[ind] rubyd[o] sal[l] sbf[irst] sbp[revious] scrip[tnames] setg[lobal] si sl sme sno[magic] so[urce] spellr[epall] sre[wind] startg[replace] stopi[nsert] sus[pend] sync tab tabfir[st] tabn[ext] tabs tclf[ile] tl[ast] tn[ext] tr[ewind] u undol[ist] up[date] vert[ical] vi[sual] w windo wp[revious] wundo xmapc[lear] xunme
|
||||
syn keyword vimCommand contained abc[lear] argdo as[cii] bf[irst] bp[revious] bro[wse] bun[load] cad[dexpr] ccl[ose] cgetb[uffer] che[ckpath] cmapc[lear] cnf com cope[n] cs de delep delf di difft[his] dj[ump] dr[op] ec elsei[f] endf[unction] exi[t] filetype fix[del] for gr[ep] h[elp] hid[e] ij[ump] isp[lit] keepalt lad la[st] lcl[ose] lf[ile] lgrepa[dd] lmak[e] lN[ext] loadk lop[en] lua ma menut[ranslate] mksp[ell] m[ove] nb[key] noa ol[dfiles] p po[p] prev[ious] promptr[epl] ptn pts[elect] pydo q[uit] red reg[isters] ri[ght] rubyf[ile] san[dbox] sbl[ast] sbr[ewind] scs setl[ocal] sig sla[st] smenu snoreme spe spellu[ndo] st star[tinsert] sts[elect] sv[iew] syncbind tabc[lose] tabl[ast] tabN[ext] ta[g] te[aroff] tm tN[ext] try un unh[ide] v vi viu[sage] wa[ll] winp[os] wq wv[iminfo] xme xunmenu
|
||||
syn keyword vimCommand contained abo[veleft] arge[dit] au bl[ast] brea[k] bu bw[ipeout] caddf[ile] cd cgete[xpr] checkt[ime] cn cNf comc[lear] co[py] cscope debug d[elete] delf[unction] diffg[et] diffu[pdate] dl ds[earch] echoe[rr] em[enu] en[dif] exu[sage] fin fo[ld] fu grepa[dd] helpc[lose] his[tory] il[ist] iuna[bbrev] keepj[umps] laddb[uffer] lat lcs lfir[st] lh[elpgrep] lmapc[lear] lnf loadkeymap lpf[ile] luado mak[e] mes mkv mz nbs[tart] noautocmd omapc[lear] pc[lose] popu p[rint] ps[earch] ptN pu[t] pyf[ile] quita[ll] redi[r] res[ize] rightb[elow] rundo sa[rgument] sbm[odified] sb[uffer] scscope sf[ind] sign sl[eep] sn[ext] snoremenu spelld[ump] spellw[rong] sta[g] startr[eplace] sun[hide] sw[apname] syntime tabd[o] tabm[ove] tabo[nly] tags tf[irst] tm[enu] to[pleft] ts[elect] una[bbreviate] unl ve vie[w] vmapc[lear] wh[ile] win[size] wqa[ll] x xmenu xwininfo
|
||||
syn keyword vimCommand contained al[l] argg[lobal] bad[d] bm[odified] breaka[dd] buf c cal[l] ce[nter] cg[etfile] cl cN cnf[ile] comp[iler] cpf[ile] cstag debugg[reedy] deletel dell diffo[ff] dig dli[st] dsp[lit] echom[sg] en endt[ry] f fina[lly] foldc[lose] fun gui helpf[ind] i imapc[lear] j[oin] kee[pmarks] lad[dexpr] later lcscope lgetb[uffer] l[ist] lN lNf lo[adview] lp[revious] luafile ma[rk] messages mkvie[w] mzf[ile] ne noh[lsearch] on[ly] pe popu[p] pro pta[g] ptn[ext] pw[d] py[thon] r red[o] ret[ab] ru ru[ntime] sav[eas] sbn[ext] scrip se[t] sfir[st] sil[ent] sm[agic] sN[ext] so spe[llgood] sp[lit] star stj[ump] sunme sy t tabe[dit] tabN tabp[revious] tc[l] th[row] tn tp[revious] tu u[ndo] unlo[ckvar] verb[ose] vim[grep] vne[w] win wn[ext] w[rite] xa[ll] xnoreme y[ank]
|
||||
syn keyword vimCommand contained ar argl[ocal] ba[ll] bn[ext] breakd[el] bufdo cabc[lear] cat[ch] cex[pr] c[hange] cla[st] cnew[er] cNf[ile] con cp[revious] cuna[bbrev] del deletep delm[arks] diffp[atch] dig[raphs] do e echon endf endw[hile] f[ile] fin[d] folddoc[losed] fu[nction] gvim helpg[rep] ia in ju[mps] keepp[atterns] laddf[ile] lb[uffer] le[ft] lgete[xpr] ll lne lnf[ile] loc[kmarks] lr[ewind] lv[imgrep] marks mk mkv[imrc] mz[scheme] new noswap[file] o[pen] ped[it] pp[op] profd[el] ptf[irst] ptN[ext] py python3 re
|
||||
syn match vimCommand contained "\<z[-+^.=]\=\>"
|
||||
syn keyword vimStdPlugin contained DiffOrig Man N[ext] P[rint] S TOhtml XMLent XMLns
|
||||
|
||||
" vimOptions are caught only when contained in a vimSet {{{2
|
||||
syn keyword vimOption contained acd ambiwidth arabicshape autowriteall backupdir bdlay binary breakat bufhidden cd ci cinw co commentstring confirm cpoptions cscoperelative csre cursorcolumn delcombine diffopt ea efm ep et fdc fdo ffs filetype fo foldlevelstart formatexpr ft gfw gtt guipty hh hkmap ic imaf iminsert includeexpr inf isident key langmap lines lmap ma matchtime mco ml modeline mousefocus mousetime nrformats ofu para pdev pi previewwindow printmbfont qe relativenumber rightleftcmd ru sbr scrolloff selection shellcmdflag shellxescape showbreak si smartcase softtabstop spelllang sps sta su swb synmaxcol tagbsearch tbi termencoding thesaurus titlestring tpm ttm ttytype undodir ut vfile vop wcm whichwrap wildignore winaltkeys winminwidth wmnu write
|
||||
syn keyword vimOption contained ai ambw ari aw backupext beval biosk brk buflisted cdpath cin cinwords cocu compatible consk cpt cscopetag cst cursorline dex digraph ead ei equalalways eventignore fde fdt fic fillchars foldclose foldmarker formatlistpat gcr ghr guicursor guitablabel hi hkmapp icon imak ims incsearch infercase isk keymap langmenu linespace loadplugins macatsui maxcombine mef mls modelines mousehide mp nu omnifunc paragraphs penc pm printdevice printoptions quoteescape remap rl ruf sc scrollopt selectmode shellpipe shellxquote showcmd sidescroll smartindent sol spellsuggest sr stal sua swf syntax taglength tbidi terse tildeop tl tr tty tw undofile vb vi wa wd wi wildignorecase window winwidth wmw writeany
|
||||
syn keyword vimOption contained akm anti arshape awa backupskip bex bioskey browsedir buftype cedit cindent clipboard cole complete conskey crb cscopetagorder csto cwh dg dip eadirection ek equalprg ex fdi fen fileencoding fk foldcolumn foldmethod formatoptions gd go guifont guitabtooltip hid hkp iconstring imc imsearch inde insertmode iskeyword keymodel laststatus lisp lpl magic maxfuncdepth menuitems mm modifiable mousem mps number opendevice paste pex pmbcs printencoding prompt rdt report rlc ruler scb scs sessionoptions shellquote shiftround showfulltag sidescrolloff smarttab sp spf srr startofline suffixes switchbuf ta tagrelative tbis textauto timeout tm ts ttybuiltin tx undolevels vbs viewdir wak weirdinvert wic wildmenu winfixheight wiv wop writebackup
|
||||
syn keyword vimOption contained al antialias autochdir background balloondelay bexpr bk bs casemap cf cink cmdheight colorcolumn completefunc copyindent cryptmethod cscopeverbose csverb debug dict dir eb enc errorbells expandtab fdl fenc fileencodings fkmap foldenable foldminlines formatprg gdefault gp guifontset helpfile hidden hl ignorecase imcmdline imsf indentexpr is isp keywordprg lazyredraw lispwords ls makeef maxmapdepth mfd mmd modified mousemodel msm numberwidth operatorfunc pastetoggle pexpr pmbfn printexpr pt re restorescreen rnu rulerformat scr sect sft shellredir shiftwidth showmatch siso smc spc spl ss statusline suffixesadd sws tabline tags tbs textmode timeoutlen to tsl ttyfast uc undoreload vdir viewoptions warn wfh wig wildmode winfixwidth wiw wrap writedelay
|
||||
syn keyword vimOption contained aleph ar autoindent backspace ballooneval bg bkc bsdir cb cfu cinkeys cmdwinheight columns completeopt cot cscopepathcomp cspc cuc deco dictionary directory ed encoding errorfile exrc fdls fencs fileformat flp foldexpr foldnestmax fp gfm grepformat guifontwide helpheight highlight hlg im imd imstatusfunc indentkeys isf isprint km lbr list lsp makeprg maxmem mh mmp more mouses mzq nuw opfunc patchexpr pfn popt printfont pumheight readonly revins ro runtimepath scroll sections sh shellslash shm showmode sj smd spell splitbelow ssl stl sw sxe tabpagemax tagstack tenc textwidth title toolbar tsr ttym udf updatecount ve viminfo wb wfw wildchar wildoptions winheight wm wrapmargin ws
|
||||
syn keyword vimOption contained allowrevins arab autoread backup balloonexpr bh bl bsk cc ch cino cmp com concealcursor cp cscopeprg csprg cul def diff display edcompatible endofline errorformat fcl fdm fex fileformats fml foldignore foldopen fs gfn grepprg guiheadroom helplang history hls imactivatefunc imdisable inc indk isfname joinspaces kmp lcs listchars lw mat maxmempattern mis mmt mouse mouseshape mzquantum odev osfiletype patchmode ph preserveindent printheader pvh redrawtime ri rs sb scrollbind secure shcf shelltemp shortmess showtabline slm sn spellcapcheck splitright ssop stmp swapfile sxq tabstop tal term tf titlelen toolbariconsize ttimeout ttymouse udir updatetime verbose virtualedit wc wh wildcharm wim winminheight wmh wrapscan ww
|
||||
syn keyword vimOption contained altkeymap arabic autowrite backupcopy bdir bin bomb bt ccv charconvert cinoptions cms comments conceallevel cpo cscopequickfix csqf cursorbind define diffexpr dy ef eol esckeys fcs fdn ff fileignorecase fmr foldlevel foldtext fsync gfs gtl guioptions hf hk hlsearch imactivatekey imi include inex isi js kp linebreak lm lz matchpairs maxmemtot mkspellmem mod mousef mouset nf oft pa path pheader previewheight printmbcharset pvw regexpengine rightleft rtp sbo scrolljump sel shell shelltype shortname shq sm so spellfile spr st sts swapsync syn tag tb termbidi tgst titleold top ttimeoutlen ttyscroll ul ur verbosefile visualbell
|
||||
syn keyword vimOption contained acd ambiwidth arabicshape autowriteall backupdir bdlay binary breakat bs casemap cf cink cmdheight colorcolumn completefunc copyindent cryptmethod cscopeverbose csverb debug dict dir eb enc errorbells expandtab fdl fenc fileencodings fkmap foldenable foldminlines formatprg gdefault gp guifontset helpfile hidden hl ignorecase imcmdline imsf indentexpr is isp keywordprg laststatus lisp loadplugins macatsui maxcombine mef mls modelines mousehide mp nu omnifunc paragraphs penc pm printdevice printoptions quoteescape remap rightleftcmd rtp sbo scrolljump sel shell shelltype shortname shq sm so spellfile spr st sts swapsync syn tag tb termbidi tgst titleold top ttimeoutlen ttyscroll ul ur verbosefile visualbell wcm wi wildmenu winfixwidth wm wrapscan
|
||||
syn keyword vimOption contained ai ambw ari aw backupext beval biosk breakindent bsdir cb cfu cinkeys cmdwinheight columns completeopt cot cscopepathcomp cspc cuc deco dictionary directory ed encoding errorfile exrc fdls fencs fileformat flp foldexpr foldnestmax fp gfm grepformat guifontwide helpheight highlight hlg im imd imstatusfunc indentkeys isf isprint km lazyredraw lispwords lpl magic maxfuncdepth menuitems mm modifiable mousem mps number opendevice paste pex pmbcs printencoding prompt rdt renderoptions rl ru sbr scrolloff selection shellcmdflag shellxescape showbreak si smartcase softtabstop spelllang sps sta su swb synmaxcol tagbsearch tbi termencoding thesaurus titlestring tpm ttm ttytype undodir ut vfile vop wd wic wildmode winheight wmh write
|
||||
syn keyword vimOption contained akm anti arshape awa backupskip bex bioskey breakindentopt bsk cc ch cino cmp com concealcursor cp cscopeprg csprg cul def diff display edcompatible endofline errorformat fcl fdm fex fileformats fml foldignore foldopen fs gfn grepprg guiheadroom helplang history hls imactivatefunc imdisable inc indk isfname joinspaces kmp lbr list ls makeef maxmapdepth mfd mmd modified mousemodel msm numberwidth operatorfunc pastetoggle pexpr pmbfn printexpr pt re report rlc ruf sc scrollopt selectmode shellpipe shellxquote showcmd sidescroll smartindent sol spellsuggest sr stal sua swf syntax taglength tbidi terse tildeop tl tr tty tw undofile vb vi wa weirdinvert wig wildoptions winminheight wmnu writeany
|
||||
syn keyword vimOption contained al antialias autochdir background balloondelay bexpr bk bri bt ccv charconvert cinoptions cms comments conceallevel cpo cscopequickfix csqf cursorbind define diffexpr dy ef eol esckeys fcs fdn ff fileignorecase fmr foldlevel foldtext fsync gfs gtl guioptions hf hk hlsearch imactivatekey imi include inex isi js kp lcs listchars lsp makeprg maxmem mh mmp more mouses mzq nuw opfunc patchexpr pfn popt printfont pumheight readonly restorescreen rnu ruler scb scs sessionoptions shellquote shiftround showfulltag sidescrolloff smarttab sp spf srr startofline suffixes switchbuf ta tagrelative tbis textauto timeout tm ts ttybuiltin tx undolevels vbs viewdir wak wfh wildchar wim winminwidth wmw writebackup
|
||||
syn keyword vimOption contained aleph ar autoindent backspace ballooneval bg bkc briopt bufhidden cd ci cinw co commentstring confirm cpoptions cscoperelative csre cursorcolumn delcombine diffopt ea efm ep et fdc fdo ffs filetype fo foldlevelstart formatexpr ft gfw gtt guipty hh hkmap ic imaf iminsert includeexpr inf isident key langmap linebreak lm lw mat maxmempattern mis mmt mouse mouseshape mzquantum odev osfiletype patchmode ph preserveindent printheader pvh redrawtime revins ro rulerformat scr sect sft shellredir shiftwidth showmatch siso smc spc spl ss statusline suffixesadd sws tabline tags tbs textmode timeoutlen to tsl ttyfast uc undoreload vdir viewoptions warn wfw wildcharm winaltkeys winwidth wop writedelay
|
||||
syn keyword vimOption contained allowrevins arab autoread backup balloonexpr bh bl brk buflisted cdpath cin cinwords cocu compatible consk cpt cscopetag cst cursorline dex digraph ead ei equalalways eventignore fde fdt fic fillchars foldclose foldmarker formatlistpat gcr ghr guicursor guitablabel hi hkmapp icon imak ims incsearch infercase isk keymap langmenu lines lmap lz matchpairs maxmemtot mkspellmem mod mousef mouset nf oft pa path pheader previewheight printmbcharset pvw regexpengine ri rop runtimepath scroll sections sh shellslash shm showmode sj smd spell splitbelow ssl stl sw sxe tabpagemax tagstack tenc textwidth title toolbar tsr ttym udf updatecount ve viminfo wb wh wildignore window wiv wrap ws
|
||||
syn keyword vimOption contained altkeymap arabic autowrite backupcopy bdir bin bomb browsedir buftype cedit cindent clipboard cole complete conskey crb cscopetagorder csto cwh dg dip eadirection ek equalprg ex fdi fen fileencoding fk foldcolumn foldmethod formatoptions gd go guifont guitabtooltip hid hkp iconstring imc imsearch inde insertmode iskeyword keymodel langnoremap linespace lnr ma matchtime mco ml modeline mousefocus mousetime nrformats ofu para pdev pi previewwindow printmbfont qe relativenumber rightleft rs sb scrollbind secure shcf shelltemp shortmess showtabline slm sn spellcapcheck splitright ssop stmp swapfile sxq tabstop tal term tf titlelen toolbariconsize ttimeout ttymouse udir updatetime verbose virtualedit wc whichwrap wildignorecase winfixheight wiw wrapmargin ww
|
||||
|
||||
" vimOptions: These are the turn-off setting variants {{{2
|
||||
syn keyword vimOption contained noacd noallowrevins noantialias noarabic noarshape noautoread noaw noballooneval nobinary nobk nobuflisted nocin noconfirm nocopyindent nocscoperelative nocsre nocuc nocursorcolumn nodelcombine nodigraph noed noendofline noerrorbells noex nofen nofk nogd nohid nohkmap nohkp nohlsearch noicon noim noimcmdline noimdisable noinf noinsertmode nojoinspaces nolazyredraw nolinebreak nolist nolpl noma nomagic noml nomodeline nomodified nomousef nomousehide nonumber noopendevice nopi nopreviewwindow nopvw norelativenumber norestorescreen nori norl noro noru nosb noscb noscs nosft noshelltemp noshortname noshowfulltag noshowmode nosm nosmartindent nosmd nosol nosplitbelow nospr nossl nostartofline noswapfile nota notagrelative notbi notbs noterse notextmode notgst notimeout noto notr nottybuiltin notx noundofile novisualbell nowarn noweirdinvert nowfw nowildignorecase nowinfixheight nowiv nowrap nowrite nowritebackup
|
||||
@@ -62,7 +63,7 @@ syn keyword vimErrSetting contained hardtabs ht w1200 w300 w9600
|
||||
|
||||
" AutoCmd Events {{{2
|
||||
syn case ignore
|
||||
syn keyword vimAutoEvent contained BufAdd BufCreate BufDelete BufEnter BufFilePost BufFilePre BufHidden BufLeave BufNew BufNewFile BufRead BufReadCmd BufReadPost BufReadPre BufUnload BufWinEnter BufWinLeave BufWipeout BufWrite BufWriteCmd BufWritePost BufWritePre Cmd-event CmdwinEnter CmdwinLeave ColorScheme CompleteDone CursorHold CursorHoldI CursorMoved CursorMovedI EncodingChanged FileAppendCmd FileAppendPost FileAppendPre FileChangedRO FileChangedShell FileChangedShellPost FileEncoding FileReadCmd FileReadPost FileReadPre FileType FileWriteCmd FileWritePost FileWritePre FilterReadPost FilterReadPre FilterWritePost FilterWritePre FocusGained FocusLost FuncUndefined GUIEnter GUIFailed InsertChange InsertCharPre InsertEnter InsertLeave MenuPopup QuickFixCmdPost QuickFixCmdPre QuitPre RemoteReply SessionLoadPost ShellCmdPost ShellFilterPost SourceCmd SourcePre SpellFileMissing StdinReadPost StdinReadPre SwapExists Syntax TabEnter TabLeave TermChanged TermResponse TextChanged TextChangedI User UserGettingBored VimEnter VimLeave VimLeavePre VimResized WinEnter WinLeave
|
||||
syn keyword vimAutoEvent contained BufAdd BufCreate BufDelete BufEnter BufFilePost BufFilePre BufHidden BufLeave BufNew BufNewFile BufRead BufReadCmd BufReadPost BufReadPre BufUnload BufWinEnter BufWinLeave BufWipeout BufWrite BufWriteCmd BufWritePost BufWritePre Cmd-event CmdUndefined CmdwinEnter CmdwinLeave ColorScheme CompleteDone CursorHold CursorHoldI CursorMoved CursorMovedI EncodingChanged FileAppendCmd FileAppendPost FileAppendPre FileChangedRO FileChangedShell FileChangedShellPost FileEncoding FileReadCmd FileReadPost FileReadPre FileType FileWriteCmd FileWritePost FileWritePre FilterReadPost FilterReadPre FilterWritePost FilterWritePre FocusGained FocusLost FuncUndefined GUIEnter GUIFailed InsertChange InsertCharPre InsertEnter InsertLeave MenuPopup QuickFixCmdPost QuickFixCmdPre QuitPre RemoteReply SessionLoadPost ShellCmdPost ShellFilterPost SourceCmd SourcePre SpellFileMissing StdinReadPost StdinReadPre SwapExists Syntax TabEnter TabLeave TermChanged TermResponse TextChanged TextChangedI User UserGettingBored VimEnter VimLeave VimLeavePre VimResized WinEnter WinLeave
|
||||
|
||||
" Highlight commonly used Groupnames {{{2
|
||||
syn keyword vimGroup contained Comment Constant String Character Number Boolean Float Identifier Function Statement Conditional Repeat Label Operator Keyword Exception PreProc Include Define Macro PreCondit Type StorageClass Structure Typedef Special SpecialChar Tag Delimiter SpecialComment Debug Underlined Ignore Error Todo
|
||||
@@ -73,9 +74,9 @@ syn match vimHLGroup contained "Conceal"
|
||||
syn case match
|
||||
|
||||
" Function Names {{{2
|
||||
syn keyword vimFuncName contained abs and argidx atan browsedir bufloaded bufwinnr byteidxcomp 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 invert items len line localtime luaeval mapcheck matcharg matchlist min mzeval or prevnonblank py3eval readfile remote_expr remote_read rename reverse screenchar search searchpairpos serverlist setcmdpos setloclist setpos setreg settabwinvar sha256 shiftwidth sin sort spellbadword split str2float strchars strftime string strpart strtrans submatch synconcealed synIDattr synstack tabpagebuflist tabpagewinnr taglist tanh tolower tr type undotree virtcol wildmenumode wincol winline winrestcmd winsaveview writefile
|
||||
syn keyword vimFuncName contained acos append argv atan2 bufexists bufname byte2line 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 isdirectory join libcall line2byte log map match matchdelete matchstr mkdir nextnonblank pathshorten printf pyeval reltime remote_foreground remote_send repeat round screencol searchdecl searchpos setbufvar setline setmatches setqflist settabvar setwinvar shellescape simplify sinh soundfold spellsuggest sqrt str2nr strdisplaywidth stridx strlen strridx strwidth substitute synID synIDtrans system tabpagenr tagfiles tan tempname toupper trunc undofile values visualmode winbufnr winheight winnr winrestview winwidth xor
|
||||
syn keyword vimFuncName contained add argc asin browse buflisted bufnr byteidx 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 islocked keys libcallnr lispindent log10 maparg matchadd matchend max mode nr2char pow pumvisible range reltimestr remote_peek remove resolve screenattr screenrow searchpair server2client
|
||||
syn keyword vimFuncName contained abs and argidx asin browse buflisted bufnr byteidx ceil cindent complete confirm cosh cursor did_filetype empty eventhandler exists expr8 filereadable finddir floor fnamemodify foldlevel foreground get getchar getcmdpos getcwd getfsize getline getpid getreg gettabwinvar getwinvar has hasmapto histget hlID indent inputdialog inputsave invert items len line localtime luaeval mapcheck matchaddpos matchend max mode nr2char pow pumvisible range reltimestr remote_peek remove resolve screenattr screenrow searchpair server2client setcmdpos setmatches setreg setwinvar shiftwidth sin sort spellbadword split str2float strchars strftime string strpart strtrans submatch synconcealed synIDattr synstack systemlist tabpagenr tagfiles tan tempname toupper trunc undofile uniq virtcol wildmenumode wincol winline winrestcmd winsaveview writefile
|
||||
syn keyword vimFuncName contained acos append arglistid atan browsedir bufloaded bufwinnr byteidxcomp changenr clearmatches complete_add copy count deepcopy diff_filler escape executable exp extend filewritable findfile fmod foldclosed foldtext function getbufline getcharmod getcmdtype getfontname getftime getloclist getpos getregtype getwinposx glob has_key histadd histnr hostname index inputlist inputsecret isdirectory join libcall line2byte log map match matcharg matchlist min mzeval or prevnonblank py3eval readfile remote_expr remote_read rename reverse screenchar search searchpairpos serverlist setline setpos settabvar sha256 simplify sinh soundfold spellsuggest sqrt str2nr strdisplaywidth stridx strlen strridx strwidth substitute synID synIDtrans system tabpagebuflist tabpagewinnr taglist tanh tolower tr type undotree values visualmode winbufnr winheight winnr winrestview winwidth xor
|
||||
syn keyword vimFuncName contained add argc argv atan2 bufexists bufname byte2line call char2nr col complete_check cos cscope_connection delete diff_hlID eval exepath expand feedkeys filter float2nr fnameescape foldclosedend foldtextresult garbagecollect getbufvar getcmdline getcurpos getfperm getftype getmatches getqflist gettabvar getwinposy globpath haslocaldir histdel hlexists iconv input inputrestore insert islocked keys libcallnr lispindent log10 maparg matchadd matchdelete matchstr mkdir nextnonblank pathshorten printf pyeval reltime remote_foreground remote_send repeat round screencol searchdecl searchpos setbufvar setloclist setqflist settabwinvar shellescape
|
||||
|
||||
"--- syntax here and above generated by mkvimvim ---
|
||||
" Special Vim Highlighting (not automatic) {{{1
|
||||
@@ -99,14 +100,14 @@ endif
|
||||
syn match vimNumber "\<\d\+\%(\.\d\+\%([eE][+-]\=\d\+\)\=\)\=" skipwhite nextgroup=vimGlobal,vimSubst,vimCommand
|
||||
syn match vimNumber "-\d\+\%(\.\d\+\%([eE][+-]\=\d\+\)\=\)\=" skipwhite nextgroup=vimGlobal,vimSubst,vimCommand
|
||||
syn match vimNumber "\<0[xX]\x\+"
|
||||
syn match vimNumber "#\x\{6}"
|
||||
syn match vimNumber "\%(^\|[^a-zA-Z]\)\zs#\x\{6}"
|
||||
|
||||
" All vimCommands are contained by vimIsCommands. {{{2
|
||||
syn match vimCmdSep "[:|]\+" skipwhite nextgroup=vimAddress,vimAutoCmd,vimCommand,vimExtCmd,vimFilter,vimLet,vimMap,vimMark,vimSet,vimSyntax,vimUserCmd
|
||||
syn match vimCmdSep "[:|]\+" skipwhite nextgroup=vimAddress,vimAutoCmd,vimIsCommand,vimExtCmd,vimFilter,vimLet,vimMap,vimMark,vimSet,vimSyntax,vimUserCmd
|
||||
syn match vimIsCommand "\<\h\w*\>" contains=vimCommand
|
||||
syn match vimVar contained "\<\h[a-zA-Z0-9#_]*\>"
|
||||
syn match vimVar "\<[bwglsav]:\h[a-zA-Z0-9#_]*\>"
|
||||
syn match vimFBVar contained "\<[bwglsav]:\h[a-zA-Z0-9#_]*\>"
|
||||
syn match vimVar "\<[bwglsav]:\K\k*\>"
|
||||
syn match vimVar contained "\<\K\k*\>"
|
||||
syn match vimFBVar contained "\<[bwglsav]:\K\k*\>"
|
||||
syn keyword vimCommand contained in
|
||||
|
||||
" Insertions And Appends: insert append {{{2
|
||||
@@ -134,26 +135,25 @@ syn keyword vimFTOption contained detect indent off on plugin
|
||||
|
||||
" Augroup : vimAugroupError removed because long augroups caused sync'ing problems. {{{2
|
||||
" ======= : Trade-off: Increasing synclines with slower editing vs augroup END error checking.
|
||||
syn cluster vimAugroupList contains=vimIsCommand,vimCommand,vimUserCmd,vimExecute,vimNotFunc,vimFuncName,vimFunction,vimFunctionError,vimLineComment,vimSpecFile,vimOper,vimNumber,vimOperParen,vimComment,vimString,vimSubst,vimMark,vimRegister,vimAddress,vimFilter,vimCmplxRepeat,vimComment,vimLet,vimSet,vimAutoCmd,vimRegion,vimSynLine,vimNotation,vimCtrlChar,vimFuncVar,vimContinue
|
||||
syn cluster vimAugroupList contains=vimAugroup,vimIsCommand,vimCommand,vimUserCmd,vimExecute,vimNotFunc,vimFuncName,vimFunction,vimFunctionError,vimLineComment,vimMap,vimSpecFile,vimOper,vimNumber,vimOperParen,vimComment,vimString,vimSubst,vimMark,vimRegister,vimAddress,vimFilter,vimCmplxRepeat,vimComment,vimLet,vimSet,vimAutoCmd,vimRegion,vimSynLine,vimNotation,vimCtrlChar,vimFuncVar,vimContinue
|
||||
if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'a'
|
||||
syn region vimAugroup fold start="\<aug\%[roup]\>\s\+\h\w*" end="\<aug\%[roup]\>\s\+[eE][nN][dD]\>" contains=vimAugroupKey,vimAutoCmd,@vimAugroupList keepend
|
||||
syn region vimAugroup fold matchgroup=vimAugroupKey start="\<aug\%[roup]\>\ze\s\+\K\k*" end="\<aug\%[roup]\>\ze\s\+[eE][nN][dD]\>" contains=vimAutoCmd,@vimAugroupList
|
||||
else
|
||||
syn region vimAugroup start="\<aug\%[roup]\>\s\+\h\w*" end="\<aug\%[roup]\>\s\+[eE][nN][dD]\>" contains=vimAugroupKey,vimAutoCmd,@vimAugroupList keepend
|
||||
syn region vimAugroup matchgroup=vimAugroupKey start="\<aug\%[roup]\>\ze\s\+\K\k*" end="\<aug\%[roup]\>\ze\s\+[eE][nN][dD]\>" contains=vimAutoCmd,@vimAugroupList
|
||||
endif
|
||||
syn match vimAugroup "aug\%[roup]!" contains=vimAugroupKey
|
||||
if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_noaugrouperror")
|
||||
syn match vimAugroupError "\<aug\%[roup]\>\s\+[eE][nN][dD]\>"
|
||||
endif
|
||||
syn keyword vimAugroupKey contained aug[roup]
|
||||
"syn keyword vimAugroupKey contained aug[roup]
|
||||
|
||||
" Operators: {{{2
|
||||
" =========
|
||||
" COMBAK: vimOperParen used to have "oneline"
|
||||
syn cluster vimOperGroup contains=vimEnvvar,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 matchgroup=vimParenSep start="(" end=")" contains=@vimOperGroup
|
||||
syn region vimOperParen matchgroup=vimSep start="{" end="}" contains=@vimOperGroup nextgroup=vimVar,vimFuncVar
|
||||
syn region vimOperParen oneline matchgroup=vimParenSep start="(" end=")" contains=@vimOperGroup
|
||||
syn region vimOperParen oneline matchgroup=vimSep start="{" end="}" contains=@vimOperGroup nextgroup=vimVar,vimFuncVar
|
||||
if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_noopererror")
|
||||
syn match vimOperError ")"
|
||||
endif
|
||||
@@ -161,7 +161,7 @@ endif
|
||||
" Functions : Tag is provided for those who wish to highlight tagged functions {{{2
|
||||
" =========
|
||||
syn cluster vimFuncList contains=vimCommand,vimFunctionError,vimFuncKey,Tag,vimFuncSID
|
||||
syn cluster vimFuncBodyList contains=vimAbb,vimAddress,vimAugroupKey,vimAutoCmd,vimCmplxRepeat,vimComment,vimComment,vimContinue,vimCtrlChar,vimEcho,vimEchoHL,vimExecute,vimIf,vimIsCommand,vimFBVar,vimFunc,vimFunction,vimFuncVar,vimHighlight,vimIsCommand,vimLet,vimLineComment,vimMap,vimMark,vimNorm,vimNotation,vimNotFunc,vimNumber,vimOper,vimOperParen,vimRegion,vimRegister,vimSet,vimSpecFile,vimString,vimSubst,vimSynLine,vimUnmap,vimUserCommand
|
||||
syn cluster vimFuncBodyList contains=vimAbb,vimAddress,vimAugroupKey,vimAutoCmd,vimCmplxRepeat,vimComment,vimComment,vimContinue,vimCtrlChar,vimEcho,vimEchoHL,vimExecute,vimIf,vimIsCommand,vimFBVar,vimFunc,vimFunction,vimFuncVar,vimGlobal,vimHighlight,vimIsCommand,vimLet,vimLineComment,vimMap,vimMark,vimNorm,vimNotation,vimNotFunc,vimNumber,vimOper,vimOperParen,vimRegion,vimRegister,vimSet,vimSpecFile,vimString,vimSubst,vimSynLine,vimUnmap,vimUserCommand
|
||||
syn match vimFunction "\<fu\%[nction]!\=\s\+\%(<[sS][iI][dD]>\|[sSgGbBwWtTlL]:\)\=\%(\i\|[#.]\|{.\{-1,}}\)*\ze\s*(" contains=@vimFuncList nextgroup=vimFuncBody
|
||||
|
||||
if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'f'
|
||||
@@ -169,7 +169,7 @@ if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'f'
|
||||
else
|
||||
syn region vimFuncBody contained start="\ze(" matchgroup=vimCommand end="\<\(endf\>\|endfu\%[nction]\>\)" contains=@vimFuncBodyList
|
||||
endif
|
||||
syn match vimFuncVar contained "a:\(\h\w*\|\d\+\)"
|
||||
syn match vimFuncVar contained "a:\(\K\k*\|\d\+\)"
|
||||
syn match vimFuncSID contained "\c<sid>\|\<s:"
|
||||
syn keyword vimFuncKey contained fu[nction]
|
||||
syn match vimFuncBlank contained "\s\+"
|
||||
@@ -326,9 +326,9 @@ syn keyword vimMap mapc[lear] smapc[lear]
|
||||
syn keyword vimUnmap cu[nmap] iu[nmap] lu[nmap] nun[map] ou[nmap] sunm[ap] unm[ap] unm[ap] vu[nmap] xu[nmap] skipwhite nextgroup=vimMapBang,vimMapMod,vimMapLhs
|
||||
syn match vimMapLhs contained "\S\+" contains=vimNotation,vimCtrlChar skipwhite nextgroup=vimMapRhs
|
||||
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 vimMapMod contained "\c<\(buffer\|expr\|\(local\)\=leader\|nowait\|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=vimNotation,vimCtrlChar,vimContinue skipnl nextgroup=vimMapRhsExtend
|
||||
syn match vimMapRhsExtend contained "^\s*\\.*$" contains=vimContinue
|
||||
syn case ignore
|
||||
syn keyword vimMapModKey contained buffer expr leader localleader plug script sid silent unique
|
||||
syn case match
|
||||
@@ -348,7 +348,7 @@ syn match vimMenuBang "!" contained skipwhite nextgroup=@vimMenuList
|
||||
" Angle-Bracket Notation (tnx to Michael Geddes) {{{2
|
||||
" ======================
|
||||
syn case ignore
|
||||
syn match vimNotation "\(\\\|<lt>\)\=<\([scamd]-\)\{0,4}x\=\(f\d\{1,2}\|[^ \t:]\|cr\|lf\|linefeed\|return\|k\=del\%[ete]\|bs\|backspace\|tab\|esc\|right\|left\|help\|undo\|insert\|ins\|k\=home\|k\=end\|kplus\|kminus\|kdivide\|kmultiply\|kenter\|kpoint\|space\|k\=\(page\)\=\(\|down\|up\|k\d\>\)\)>" contains=vimBracket
|
||||
syn match vimNotation "\(\\\|<lt>\)\=<\([scamd]-\)\{0,4}x\=\(f\d\{1,2}\|[^ \t:]\|cr\|lf\|linefeed\|return\|k\=del\%[ete]\|bs\|backspace\|tab\|esc\|right\|left\|help\|undo\|insert\|ins\|k\=home\|k\=end\|kplus\|kminus\|kdivide\|kmultiply\|kenter\|kpoint\|space\|k\=\(page\)\=\(\|down\|up\|k[0-9]\)\)>" contains=vimBracket
|
||||
syn match vimNotation "\(\\\|<lt>\)\=<\([scam2-4]-\)\{0,4}\(right\|left\|middle\)\(mouse\)\=\(drag\|release\)\=>" contains=vimBracket
|
||||
syn match vimNotation "\(\\\|<lt>\)\=<\(bslash\|plug\|sid\|space\|bar\|nop\|nul\|lt\)>" contains=vimBracket
|
||||
syn match vimNotation '\(\\\|<lt>\)\=<C-R>[0-9a-z"%#:.\-=]'he=e-1 contains=vimBracket
|
||||
@@ -360,8 +360,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
|
||||
@@ -407,7 +407,7 @@ syn keyword vimSynType contained clear skipwhite nextgroup=vimGroupList
|
||||
|
||||
" Syntax: cluster {{{2
|
||||
syn keyword vimSynType contained cluster skipwhite nextgroup=vimClusterName
|
||||
syn region vimClusterName contained matchgroup=vimGroupName start="\h\w*" skip="\\\\\|\\|" matchgroup=vimSep end="$\||" contains=vimGroupAdd,vimGroupRem,vimSynContains,vimSynError
|
||||
syn region vimClusterName contained matchgroup=vimGroupName start="\k\+" skip="\\\\\|\\|" matchgroup=vimSep end="$\||" contains=vimGroupAdd,vimGroupRem,vimSynContains,vimSynError
|
||||
syn match vimGroupAdd contained "add=" nextgroup=vimGroupList
|
||||
syn match vimGroupRem contained "remove=" nextgroup=vimGroupList
|
||||
syn cluster vimFuncBodyList add=vimSynType,vimGroupAdd,vimGroupRem
|
||||
@@ -419,17 +419,17 @@ syn cluster vimFuncBodyList add=vimSynType
|
||||
" Syntax: keyword {{{2
|
||||
syn cluster vimSynKeyGroup contains=vimSynNextgroup,vimSynKeyOpt,vimSynKeyContainedin
|
||||
syn keyword vimSynType contained keyword skipwhite nextgroup=vimSynKeyRegion
|
||||
syn region vimSynKeyRegion contained oneline keepend matchgroup=vimGroupName start="\h\w*" skip="\\\\\|\\|" matchgroup=vimSep end="|\|$" contains=@vimSynKeyGroup
|
||||
syn region vimSynKeyRegion contained oneline keepend matchgroup=vimGroupName start="\k\+" skip="\\\\\|\\|" matchgroup=vimSep end="|\|$" contains=@vimSynKeyGroup
|
||||
syn match vimSynKeyOpt contained "\<\(conceal\|contained\|transparent\|skipempty\|skipwhite\|skipnl\)\>"
|
||||
syn cluster vimFuncBodyList add=vimSynType
|
||||
|
||||
" Syntax: match {{{2
|
||||
syn cluster vimSynMtchGroup contains=vimMtchComment,vimSynContains,vimSynError,vimSynMtchOpt,vimSynNextgroup,vimSynRegPat,vimNotation
|
||||
syn keyword vimSynType contained match skipwhite nextgroup=vimSynMatchRegion
|
||||
syn region vimSynMatchRegion contained keepend matchgroup=vimGroupName start="\h\w*" matchgroup=vimSep end="|\|$" contains=@vimSynMtchGroup
|
||||
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
|
||||
@@ -441,7 +441,7 @@ syn keyword vimSynType contained enable list manual off on reset
|
||||
syn cluster vimSynRegPatGroup contains=vimPatSep,vimNotPatSep,vimSynPatRange,vimSynNotPatRange,vimSubstSubstr,vimPatRegion,vimPatSepErr,vimNotation
|
||||
syn cluster vimSynRegGroup contains=vimSynContains,vimSynNextgroup,vimSynRegOpt,vimSynReg,vimSynMtchGrp
|
||||
syn keyword vimSynType contained region skipwhite nextgroup=vimSynRegion
|
||||
syn region vimSynRegion contained keepend matchgroup=vimGroupName start="\h\w*" skip="\\\\\|\\|" end="|\|$" contains=@vimSynRegGroup
|
||||
syn region vimSynRegion contained keepend matchgroup=vimGroupName start="\k\+" skip="\\\\\|\\|" end="|\|$" contains=@vimSynRegGroup
|
||||
syn match vimSynRegOpt contained "\<\(conceal\(ends\)\=\|transparent\|contained\|excludenl\|skipempty\|skipwhite\|display\|keepend\|oneline\|extend\|skipnl\|fold\)\>"
|
||||
syn match vimSynReg contained "\(start\|skip\|end\)="he=e-1 nextgroup=vimSynRegPat
|
||||
syn match vimSynMtchGrp contained "matchgroup=" nextgroup=vimGroup,vimHLGroup
|
||||
@@ -467,9 +467,9 @@ syn keyword vimSyncRegion contained region skipwhite nextgroup=vimSynReg
|
||||
syn match vimSyncLinebreak contained "\<linebreaks=" skipwhite nextgroup=vimNumber
|
||||
syn keyword vimSyncLinecont contained linecont skipwhite nextgroup=vimSynRegPat
|
||||
syn match vimSyncLines contained "\(min\|max\)\=lines=" nextgroup=vimNumber
|
||||
syn match vimSyncGroupName contained "\h\w*" skipwhite nextgroup=vimSyncKey
|
||||
syn match vimSyncGroupName contained "\k\+" skipwhite nextgroup=vimSyncKey
|
||||
syn match vimSyncKey contained "\<groupthere\|grouphere\>" skipwhite nextgroup=vimSyncGroup
|
||||
syn match vimSyncGroup contained "\h\w*" skipwhite nextgroup=vimSynRegPat,vimSyncNone
|
||||
syn match vimSyncGroup contained "\k\+" skipwhite nextgroup=vimSynRegPat,vimSyncNone
|
||||
syn keyword vimSyncNone contained NONE
|
||||
|
||||
" Additional IsCommand, here by reasons of precedence {{{2
|
||||
@@ -510,18 +510,17 @@ 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=vimHiNmbr,vimHiCtermColor,vimFgBgAttrib,vimHiCtermError
|
||||
syn match vimHiCtermFgBg contained "\ccterm[fb]g="he=e-1 nextgroup=vimNumber,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="\(\<hi\%[ghlight]\s\+\)\@<=\(\(def\%[ault]\s\+\)\=link\>\|\<def\>\)" end="$" contains=vimHiGroup,vimGroup,vimHLGroup,vimNotation
|
||||
syn region vimHiLink contained oneline matchgroup=vimCommand start="\<\(def\%[ault]\s\+\)\=link\>\|\<def\>" end="$" contains=vimHiGroup,vimGroup,vimHLGroup,vimNotation
|
||||
syn cluster vimFuncBodyList add=vimHiLink
|
||||
|
||||
" Control Characters {{{2
|
||||
@@ -656,14 +655,20 @@ if g:vimsyn_embed =~ 'P' && (has("python") || has("python3")) && filereadable(s:
|
||||
if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'P'
|
||||
syn region vimPythonRegion fold matchgroup=vimScriptDelim start=+py\%[thon]3\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimPythonScript
|
||||
syn region vimPythonRegion fold matchgroup=vimScriptDelim start=+py\%[thon]3\=\s*<<\s*$+ end=+\.$+ contains=@vimPythonScript
|
||||
syn region vimPythonRegion fold matchgroup=vimScriptDelim start=+Py\%[thon]2or3\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimPythonScript
|
||||
syn region vimPythonRegion fold matchgroup=vimScriptDelim start=+Py\%[thon]2or3\=\s*<<\s*$+ end=+\.$+ contains=@vimPythonScript
|
||||
else
|
||||
syn region vimPythonRegion matchgroup=vimScriptDelim start=+py\%[thon]3\=\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimPythonScript
|
||||
syn region vimPythonRegion matchgroup=vimScriptDelim start=+py\%[thon]3\=\s*<<\s*$+ end=+\.$+ contains=@vimPythonScript
|
||||
syn region vimPythonRegion matchgroup=vimScriptDelim start=+Py\%[thon]2or3\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimPythonScript
|
||||
syn region vimPythonRegion matchgroup=vimScriptDelim start=+Py\%[thon]2or3\=\s*<<\s*$+ end=+\.$+ contains=@vimPythonScript
|
||||
endif
|
||||
syn cluster vimFuncBodyList add=vimPythonRegion
|
||||
else
|
||||
syn region vimEmbedError start=+py\%[thon]3\=\s*<<\s*\z(.*\)$+ end=+^\z1$+
|
||||
syn region vimEmbedError start=+py\%[thon]3\=\s*<<\s*$+ end=+\.$+
|
||||
syn region vimEmbedError start=+Py\%[thon]2or3\=\s*<<\s*\z(.*\)$+ end=+^\z1$+
|
||||
syn region vimEmbedError start=+Py\%[thon]2or3\=\s*<<\s*$+ end=+\.$+
|
||||
endif
|
||||
unlet s:pythonpath
|
||||
|
||||
@@ -752,6 +757,8 @@ syn sync match vimAugroupSyncA groupthere NONE "\<aug\%[roup]\>\s\+[eE][nN][dD]"
|
||||
" Highlighting Settings {{{2
|
||||
" ====================
|
||||
|
||||
hi def link vimSubst1 vimSubst
|
||||
hi def link vimBehaveModel vimBehave
|
||||
|
||||
if !exists("g:vimsyn_noerror")
|
||||
hi def link vimBehaveError vimError
|
||||
@@ -774,43 +781,22 @@ endif
|
||||
hi def link vimAbb vimCommand
|
||||
hi def link vimAddress vimMark
|
||||
hi def link vimAugroupKey vimCommand
|
||||
hi def link vimAuHighlight vimHighlight
|
||||
hi def link vimAutoCmdOpt vimOption
|
||||
hi def link vimAutoCmd vimCommand
|
||||
hi def link vimAutoEvent Type
|
||||
hi def link vimAutoSet vimCommand
|
||||
hi def link vimBehaveModel vimBehave
|
||||
hi def link vimBehave vimCommand
|
||||
hi def link vimBracket Delimiter
|
||||
hi def link vimCmplxRepeat SpecialChar
|
||||
hi def link vimCommand Statement
|
||||
hi def link vimComment Comment
|
||||
hi def link vimCommentString vimString
|
||||
hi def link vimCommentTitle PreProc
|
||||
hi def link vimCondHL vimCommand
|
||||
hi def link vimContinue Special
|
||||
hi def link vimCtrlChar SpecialChar
|
||||
hi def link vimEchoHLNone vimGroup
|
||||
hi def link vimEchoHL vimCommand
|
||||
hi def link vimElseIfErr Error
|
||||
hi def link vimElseif vimCondHL
|
||||
hi def link vimEnvvar PreProc
|
||||
hi def link vimError Error
|
||||
hi def link vimFBVar vimVar
|
||||
hi def link vimFgBgAttrib vimHiAttrib
|
||||
hi def link vimFold Folded
|
||||
hi def link vimFTCmd vimCommand
|
||||
hi def link vimFTOption vimSynType
|
||||
hi def link vimFuncKey vimCommand
|
||||
hi def link vimFuncName Function
|
||||
hi def link vimFuncSID Special
|
||||
hi def link vimFuncVar Identifier
|
||||
hi def link vimGroupAdd vimSynOption
|
||||
hi def link vimGroupName vimGroup
|
||||
hi def link vimGroupRem vimSynOption
|
||||
hi def link vimGroupSpecial Special
|
||||
hi def link vimGroup Type
|
||||
hi def link vimHiAttrib PreProc
|
||||
hi def link vimHiClear vimHighlight
|
||||
hi def link vimHiCtermFgBg vimHiTerm
|
||||
hi def link vimHiCTerm vimHiTerm
|
||||
@@ -820,94 +806,111 @@ hi def link vimHiGuiFgBg vimHiTerm
|
||||
hi def link vimHiGuiFont vimHiTerm
|
||||
hi def link vimHiGuiRgb vimNumber
|
||||
hi def link vimHiGui vimHiTerm
|
||||
hi def link vimHiNmbr Number
|
||||
hi def link vimHiStartStop vimHiTerm
|
||||
hi def link vimHiTerm Type
|
||||
hi def link vimHLGroup vimGroup
|
||||
hi def link vimHLMod PreProc
|
||||
hi def link vimInsert vimString
|
||||
hi def link vimKeyCode vimSpecFile
|
||||
hi def link vimKeyword Statement
|
||||
hi def link vimLet vimCommand
|
||||
hi def link vimLineComment vimComment
|
||||
hi def link vimMapBang vimCommand
|
||||
hi def link vimMapModKey vimFuncSID
|
||||
hi def link vimMapMod vimBracket
|
||||
hi def link vimMap vimCommand
|
||||
hi def link vimMark Number
|
||||
hi def link vimMarkNumber vimNumber
|
||||
hi def link vimMenuMod vimMapMod
|
||||
hi def link vimMenuNameMore vimMenuName
|
||||
hi def link vimMenuName PreProc
|
||||
hi def link vimMtchComment vimComment
|
||||
hi def link vimNorm vimCommand
|
||||
hi def link vimNotation Special
|
||||
hi def link vimNotFunc vimCommand
|
||||
hi def link vimNotPatSep vimString
|
||||
hi def link vimNumber Number
|
||||
hi def link vimOperError Error
|
||||
hi def link vimOper Operator
|
||||
hi def link vimOption PreProc
|
||||
hi def link vimParenSep Delimiter
|
||||
hi def link vimPatSepErr vimPatSep
|
||||
hi def link vimPatSepR vimPatSep
|
||||
hi def link vimPatSep SpecialChar
|
||||
hi def link vimPatSepZone vimString
|
||||
hi def link vimPatSepZ vimPatSep
|
||||
hi def link vimPattern Type
|
||||
hi def link vimPlainMark vimMark
|
||||
hi def link vimPlainRegister vimRegister
|
||||
hi def link vimRegister SpecialChar
|
||||
hi def link vimScriptDelim Comment
|
||||
hi def link vimSearchDelim Statement
|
||||
hi def link vimSearch vimString
|
||||
hi def link vimSep Delimiter
|
||||
hi def link vimSetMod vimOption
|
||||
hi def link vimSetSep Statement
|
||||
hi def link vimSetString vimString
|
||||
hi def link vimSpecFile Identifier
|
||||
hi def link vimSpecFileMod vimSpecFile
|
||||
hi def link vimSpecial Type
|
||||
hi def link vimStatement Statement
|
||||
hi def link vimStringCont vimString
|
||||
hi def link vimString String
|
||||
hi def link vimSubst1 vimSubst
|
||||
hi def link vimSubstDelim Delimiter
|
||||
hi def link vimSubstFlags Special
|
||||
hi def link vimSubstSubstr SpecialChar
|
||||
hi def link vimSubstTwoBS vimString
|
||||
hi def link vimSubst vimCommand
|
||||
hi def link vimSynCaseError Error
|
||||
hi def link vimSynCase Type
|
||||
hi def link vimSyncC Type
|
||||
hi def link vimSyncError Error
|
||||
hi def link vimSyncGroupName vimGroupName
|
||||
hi def link vimSyncGroup vimGroupName
|
||||
hi def link vimSyncKey Type
|
||||
hi def link vimSyncNone Type
|
||||
hi def link vimSynContains vimSynOption
|
||||
hi def link vimSynError Error
|
||||
hi def link vimSynKeyContainedin vimSynContains
|
||||
hi def link vimSynKeyOpt vimSynOption
|
||||
hi def link vimSynMtchGrp vimSynOption
|
||||
hi def link vimSynMtchOpt vimSynOption
|
||||
hi def link vimSynNextgroup vimSynOption
|
||||
hi def link vimSynNotPatRange vimSynRegPat
|
||||
hi def link vimSynOption Special
|
||||
hi def link vimSynPatRange vimString
|
||||
hi def link vimSynRegOpt vimSynOption
|
||||
hi def link vimSynRegPat vimString
|
||||
hi def link vimSynReg Type
|
||||
hi def link vimSyntax vimCommand
|
||||
hi def link vimSynType vimSpecial
|
||||
hi def link vimTodo Todo
|
||||
hi def link vimUnmap vimMap
|
||||
hi def link vimUserAttrbCmpltFunc Special
|
||||
hi def link vimUserAttrbCmplt vimSpecial
|
||||
hi def link vimUserAttrbKey vimOption
|
||||
hi def link vimUserAttrb vimSpecial
|
||||
hi def link vimUserCmdError Error
|
||||
hi def link vimUserCommand vimCommand
|
||||
|
||||
hi def link vimAutoEvent Type
|
||||
hi def link vimBracket Delimiter
|
||||
hi def link vimCmplxRepeat SpecialChar
|
||||
hi def link vimCommand Statement
|
||||
hi def link vimComment Comment
|
||||
hi def link vimCommentTitle PreProc
|
||||
hi def link vimContinue Special
|
||||
hi def link vimCtrlChar SpecialChar
|
||||
hi def link vimElseIfErr Error
|
||||
hi def link vimEnvvar PreProc
|
||||
hi def link vimError Error
|
||||
hi def link vimFold Folded
|
||||
hi def link vimFuncName Function
|
||||
hi def link vimFuncSID Special
|
||||
hi def link vimFuncVar Identifier
|
||||
hi def link vimGroupSpecial Special
|
||||
hi def link vimGroup Type
|
||||
hi def link vimHiAttrib PreProc
|
||||
hi def link vimHiTerm Type
|
||||
hi def link vimHLMod PreProc
|
||||
hi def link vimKeyword Statement
|
||||
hi def link vimMark Number
|
||||
hi def link vimMenuName PreProc
|
||||
hi def link vimNotation Special
|
||||
hi def link vimNumber Number
|
||||
hi def link vimOperError Error
|
||||
hi def link vimOper Operator
|
||||
hi def link vimOption PreProc
|
||||
hi def link vimParenSep Delimiter
|
||||
hi def link vimPatSep SpecialChar
|
||||
hi def link vimPattern Type
|
||||
hi def link vimRegister SpecialChar
|
||||
hi def link vimScriptDelim Comment
|
||||
hi def link vimSearchDelim Statement
|
||||
hi def link vimSep Delimiter
|
||||
hi def link vimSetSep Statement
|
||||
hi def link vimSpecFile Identifier
|
||||
hi def link vimSpecial Type
|
||||
hi def link vimStatement Statement
|
||||
hi def link vimString String
|
||||
hi def link vimSubstDelim Delimiter
|
||||
hi def link vimSubstFlags Special
|
||||
hi def link vimSubstSubstr SpecialChar
|
||||
hi def link vimSynCaseError Error
|
||||
hi def link vimSynCase Type
|
||||
hi def link vimSyncC Type
|
||||
hi def link vimSyncError Error
|
||||
hi def link vimSyncKey Type
|
||||
hi def link vimSyncNone Type
|
||||
hi def link vimSynError Error
|
||||
hi def link vimSynOption Special
|
||||
hi def link vimSynReg Type
|
||||
hi def link vimTodo Todo
|
||||
hi def link vimUserAttrbCmpltFunc Special
|
||||
hi def link vimUserCmdError Error
|
||||
hi def link vimUserFunc Normal
|
||||
hi def link vimVar Identifier
|
||||
hi def link vimWarn WarningMsg
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
" Vim syntax file
|
||||
" Language: xmath (a simulation tool)
|
||||
" Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Sep 11, 2006
|
||||
" Version: 6
|
||||
" URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
|
||||
" Version: 7
|
||||
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_XMATH
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
" Vim syntax file
|
||||
" Language: bin using xxd
|
||||
" Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Sep 06, 2005
|
||||
" Version: 7
|
||||
" Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Oct 23, 2014
|
||||
" Version: 8
|
||||
" Notes: use :help xxd to see how to invoke it
|
||||
" URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
|
||||
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_XXD
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
" Vim syntax file
|
||||
" Language: Yacc
|
||||
" Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Mar 20, 2014
|
||||
" Version: 11
|
||||
" Last Change: Jan 14, 2015
|
||||
" Version: 12
|
||||
" URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
|
||||
"
|
||||
" Options: {{{1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" Vim syntax file
|
||||
" Language: Zimbu
|
||||
" Maintainer: Bram Moolenaar
|
||||
" Last Change: 2012 Jun 01
|
||||
" Last Change: 2014 Nov 23
|
||||
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
@@ -12,7 +12,10 @@ syn include @Ccode syntax/c.vim
|
||||
syn keyword zimbuTodo TODO FIXME XXX contained
|
||||
syn match zimbuNoBar "|" contained
|
||||
syn match zimbuParam "|[^| ]\+|" contained contains=zimbuNoBar
|
||||
syn match zimbuComment "#.*$" contains=zimbuTodo,zimbuParam,@Spell
|
||||
syn match zimbuNoBacktick "`" contained
|
||||
syn match zimbuCode "`[^`]\+`" contained contains=zimbuNoBacktick
|
||||
syn match zimbuComment "#.*$" contains=zimbuTodo,zimbuParam,zimbuCode,@Spell
|
||||
syn match zimbuComment "/\*.\{-}\*/" contains=zimbuTodo,zimbuParam,zimbuCode,@Spell
|
||||
|
||||
syn match zimbuChar "'\\\=.'"
|
||||
|
||||
@@ -28,27 +31,32 @@ syn keyword zimbuBasicType fixed1 fixed2 fixed3 fixed4 fixed5 fixed6
|
||||
syn keyword zimbuBasicType fixed7 fixed8 fixed9 fixed10 fixed11 fixed12
|
||||
syn keyword zimbuBasicType fixed13 fixed14 fixed15
|
||||
|
||||
syn keyword zimbuCompType string stringval cstring varstring
|
||||
syn keyword zimbuCompType bytes varbytes
|
||||
syn keyword zimbuCompType tuple array list dict multiDict set multiSet
|
||||
syn keyword zimbuCompType string varString
|
||||
syn keyword zimbuCompType byteString varByteString
|
||||
syn keyword zimbuCompType tuple array list dict dictList set callback
|
||||
syn keyword zimbuCompType sortedList multiDict multiDictList multiSet
|
||||
syn keyword zimbuCompType complex complex32 complex64 complex80 complex128
|
||||
syn keyword zimbuCompType proc func def thread evalThread lock cond pipe
|
||||
|
||||
syn keyword zimbuType VAR ANY USE GET
|
||||
syn keyword zimbuType VAR dyn type USE GET
|
||||
syn match zimbuType "IO.File"
|
||||
syn match zimbuType "IO.Stat"
|
||||
|
||||
syn keyword zimbuStatement IF ELSE ELSEIF WHILE REPEAT FOR IN TO STEP
|
||||
syn keyword zimbuStatement IF ELSE ELSEIF IFNIL WHILE REPEAT FOR IN TO STEP
|
||||
syn keyword zimbuStatement DO UNTIL SWITCH WITH
|
||||
syn keyword zimbuStatement TRY CATCH FINALLY
|
||||
syn keyword zimbuStatement GENERATE_IF GENERATE_ELSE GENERATE_ELSEIF
|
||||
syn keyword zimbuStatement GENERATE_ERROR
|
||||
syn keyword zimbuStatement BUILD_IF BUILD_ELSE BUILD_ELSEIF
|
||||
syn keyword zimbuStatement CASE DEFAULT FINAL ABSTRACT VIRTUAL DEFINE REPLACE
|
||||
syn keyword zimbuStatement IMPLEMENTS EXTENDS PARENT LOCAL
|
||||
syn keyword zimbuStatement PART ALIAS CONNECT WRAP
|
||||
syn keyword zimbuStatement PART ALIAS TYPE CONNECT WRAP
|
||||
syn keyword zimbuStatement BREAK CONTINUE PROCEED
|
||||
syn keyword zimbuStatement RETURN EXIT THROW
|
||||
syn keyword zimbuStatement RETURN EXIT THROW DEFER
|
||||
syn keyword zimbuStatement IMPORT AS OPTIONS MAIN
|
||||
syn keyword zimbuStatement INTERFACE MODULE ENUM BITS SHARED
|
||||
syn keyword zimbuStatement INTERFACE PIECE INCLUDE MODULE ENUM BITS
|
||||
syn keyword zimbuStatement SHARED STATIC
|
||||
syn keyword zimbuStatement LAMBDA
|
||||
syn match zimbuStatement "\<\(FUNC\|PROC\|DEF\)\>"
|
||||
syn match zimbuStatement "\<CLASS\>"
|
||||
syn match zimbuStatement "}"
|
||||
@@ -61,10 +69,13 @@ syn match zimbuAttribute "@default\>"
|
||||
syn match zimbuAttribute "@define\>"
|
||||
syn match zimbuAttribute "@replace\>"
|
||||
syn match zimbuAttribute "@final\>"
|
||||
syn match zimbuAttribute "@primitive\>"
|
||||
syn match zimbuAttribute "@notOnExit\>"
|
||||
|
||||
syn match zimbuAttribute "@private\>"
|
||||
syn match zimbuAttribute "@protected\>"
|
||||
syn match zimbuAttribute "@public\>"
|
||||
syn match zimbuAttribute "@local\>"
|
||||
syn match zimbuAttribute "@file\>"
|
||||
syn match zimbuAttribute "@directory\>"
|
||||
syn match zimbuAttribute "@read=private\>"
|
||||
@@ -78,15 +89,22 @@ syn match zimbuAttribute "@items=public\>"
|
||||
syn match zimbuAttribute "@items=file\>"
|
||||
syn match zimbuAttribute "@items=directory\>"
|
||||
|
||||
syn keyword zimbuMethod NEW EQUAL COPY COMPARE SIZE GET SET
|
||||
syn keyword zimbuMethod NEW EQUAL COPY COMPARE SIZE GET SET INIT EARLYINIT
|
||||
|
||||
syn keyword zimbuOperator IS ISNOT ISA ISNOTA
|
||||
|
||||
syn keyword zimbuModule ARG CHECK E IO PROTO SYS HTTP ZC ZWT TIME THREAD
|
||||
syn keyword zimbuModule ARG CHECK E GC IO LOG PROTO SYS HTTP ZC ZWT T TIME THREAD
|
||||
|
||||
syn match zimbuString +"\([^"\\]\|\\.\)*\("\|$\)+
|
||||
syn match zimbuImport "\.\zsPROTO"
|
||||
syn match zimbuImport "\.\zsCHEADER"
|
||||
|
||||
"syn match zimbuString +"\([^"\\]\|\\.\)*\("\|$\)+ contains=zimbuStringExpr
|
||||
syn region zimbuString start=+"+ skip=+[^"\\]\|\\.+ end=+"\|$+ contains=zimbuStringExpr
|
||||
syn match zimbuString +R"\([^"]\|""\)*\("\|$\)+
|
||||
syn region zimbuString start=+'''+ end=+'''+
|
||||
syn region zimbuLongString start=+''"+ end=+"''+
|
||||
syn match zimbuStringExpr +\\([^)]*)+hs=s+2,he=e-1 contained contains=zimbuString,zimbuParenPairOuter
|
||||
syn region zimbuParenPairOuter start=+(+ms=s+1 end=+)+me=e-1 contained contains=zimbuString,zimbuParenPair
|
||||
syn region zimbuParenPair start=+(+ end=+)+ contained contains=zimbuString,zimbuParenPair
|
||||
|
||||
syn keyword zimbuFixed TRUE FALSE NIL THIS THISTYPE FAIL OK
|
||||
syn keyword zimbuError NULL
|
||||
@@ -97,12 +115,18 @@ syn match zimbuSpaceError display excludenl "\S\s\+$"ms=s+1
|
||||
syn match zimbuSpaceError display " \+\t"
|
||||
syn match zimbuSpaceError display "\t\+ "
|
||||
|
||||
syn match zimbuUses contained "uses([a-zA-Z_ ,]*)"
|
||||
syn match zimbuUses contained "\<uses([a-zA-Z_ ,]*)"
|
||||
syn match zimbuBlockgc contained "blockgc"
|
||||
syn match zimbuBlockComment contained " #.*"
|
||||
|
||||
syn region zimbuCregion matchgroup=zimbuCblock start="^>>>" end="^<<<.*" contains=@Ccode,zimbuUses,zimbuBlockComment keepend
|
||||
syn region zimbuCregion matchgroup=zimbuCblock start="^>>>" end="^<<<.*" contains=@Ccode,zimbuUses,zimbuBlockgc,zimbuBlockComment keepend
|
||||
|
||||
syn sync minlines=2000
|
||||
" Assume long strings and C regions don't take more than 200 lines.
|
||||
syn sync minlines=200
|
||||
|
||||
" When we find the start of a long string, without a # or " before it, we are
|
||||
" sure to be inside a long string.
|
||||
syn sync match zimbuLongStringSync grouphere zimbuLongString +^[^"#]*''\"+
|
||||
|
||||
hi def link zimbuBasicType Type
|
||||
hi def link zimbuCompType Type
|
||||
@@ -111,17 +135,23 @@ hi def link zimbuStatement Statement
|
||||
hi def link zimbuOperator Statement
|
||||
hi def link zimbuMethod PreProc
|
||||
hi def link zimbuModule PreProc
|
||||
hi def link zimbuImport PreProc
|
||||
hi def link zimbuUses PreProc
|
||||
hi def link zimbuBlockgc PreProc
|
||||
hi def link zimbuAttribute PreProc
|
||||
hi def link zimbuString Constant
|
||||
hi def link zimbuLongString Special
|
||||
hi def link zimbuChar Constant
|
||||
hi def link zimbuFixed Constant
|
||||
hi def link zimbuComment Comment
|
||||
hi def link zimbuCommentStart zimbuComment
|
||||
hi def link zimbuBlockComment Comment
|
||||
hi def link zimbuCblock Comment
|
||||
hi def link zimbuTodo Todo
|
||||
hi def link zimbuParam Constant
|
||||
hi def link zimbuCode Statement
|
||||
hi def link zimbuNoBar Ignore
|
||||
hi def link zimbuNoBacktick Ignore
|
||||
hi def link zimbuSpaceError Error
|
||||
hi def link zimbuError Error
|
||||
|
||||
|
||||
976
runtime/tutor/tutor.uk.utf-8
Normal file
976
runtime/tutor/tutor.uk.utf-8
Normal file
@@ -0,0 +1,976 @@
|
||||
===============================================================================
|
||||
= Ласкаво простимо в уроки VIM =
|
||||
===============================================================================
|
||||
|
||||
Vim дуже потужний редактор, що має багато команд. Всі команди неможливо
|
||||
помістити в підручнику на зразок цього, але цих уроків достатньо, щоб
|
||||
ви навчились з легкістю користуватись Vim як універсальним редактором.
|
||||
|
||||
УВАГА:
|
||||
Уроки цього підручника вимагають зміни тексту. Зробіть копію файлу, щоб
|
||||
практикуватись на ньому.
|
||||
|
||||
Важливо пам'ятати, що цей підручник має на меті навчання на практиці.
|
||||
Це означає що ви маєте застосовувати команди щоб вивчити їх. Просто
|
||||
прочитавши текст, ви забудете команди.
|
||||
|
||||
Кнопки на клавіатурі, будемо позначати квадратними дужками: [кнопка].
|
||||
|
||||
А зараз переконайтесь, що включена англійська розкладка і не затиснутий
|
||||
Caps Lock, і натисніть кнопку j щоб переміститись до першого уроку.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 1.1: ПЕРЕМІЩЕННЯ КУРСОРА
|
||||
|
||||
|
||||
** Щоб переміщати курсор використовуйте кнопки [h],[j],[k],[l],
|
||||
як вказано на схемі:
|
||||
^
|
||||
[k]
|
||||
<[h] [l]>
|
||||
[j]
|
||||
v
|
||||
|
||||
Таке розміщення спочатку може видатись трохи дивним. Як наприклад те, що
|
||||
кнопка [l] переміщує курсор вправо. Але клавіші розміщені так, щоб
|
||||
мінімізувати кількість рухів. Найчастіша дія яку користувач робить з
|
||||
текстовим файлом - це читає його. А при читанні прокручують текст вниз.
|
||||
Тому вниз прокручує [j] - вона знаходиться якраз під вказівним пальцем
|
||||
правої руки.
|
||||
|
||||
Курсор можна переміщувати і класичним способом (курсорними клавішами), але
|
||||
зручніше буде, якщо ви опануєте спосіб Vim. (Особливо якщо ви вже вмієте
|
||||
набирати всліпу).
|
||||
|
||||
1. Попереміщуйте курсор по екрану, поки не призвичаїтесь.
|
||||
|
||||
2. Перемістіться до наступного уроку.
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 1.2: Вихід з Vim
|
||||
|
||||
|
||||
Увага! Перед тим як виконувати цей урок прочитайте його повністю.
|
||||
|
||||
1. Натисніть [ESC] (щоб впевнитись що ви в звичайному режимі).
|
||||
|
||||
2. Наберіть: :q! [ENTER].
|
||||
Це завершує роботу, відкидаючи всі зміни які ви здійснили.
|
||||
|
||||
3. Коли ви побачите привітання терміналу введіть команду яку ви використали
|
||||
щоб відкрити цей підручник. Скоріш за все це було: vim tutor.txt [ENTER]
|
||||
|
||||
4. Якщо ви запам'ятали кроки з 1 по 3, виконайте їх, і переходьте до
|
||||
наступного уроку.
|
||||
|
||||
Зауваження: Команда :q! [ENTER] завершує роботу і відкидає всі зміни. Через
|
||||
кілька уроків ви навчитесь зберігати зміни в файл.
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 1.3:РЕДАГУВАННЯ ТЕКСТУ. ВИДАЛЕННЯ.
|
||||
|
||||
|
||||
** Натисніть [x] щоб видалити символ під курсором. **
|
||||
|
||||
1. Перемістіть курсор до лінії нижче, яка позначена так: --->.
|
||||
|
||||
2. Щоб виправити помилки перемістіть курсор так, щоб він став над
|
||||
символом який треба видалити.
|
||||
|
||||
3. Натисніть [x] щоб видалити непотрібний символ.
|
||||
|
||||
4. Повторіть кроки з другого по четвертий, поки речення не стане правильним.
|
||||
|
||||
---> Ккоровва перрестрибнуууууула ччерезз мііісяццць.
|
||||
|
||||
5. Тепер, коли речення правильне, можна перейти до уроку 1.4.
|
||||
|
||||
Зауваження: Протягом навчання не старайтесь запам'ятати все.
|
||||
Вчіться практикою.
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 1.4: РЕДАГУВАННЯ ТЕКСТУ. ВСТАВКА
|
||||
|
||||
|
||||
** Натисніть [i] щоб вставити текст. **
|
||||
|
||||
1. Перемістіть курсор на перший рядок позначений: --->.
|
||||
|
||||
2. Перемістіть курсор на символ, ПІСЛЯ якого потрібно вставити текст.
|
||||
|
||||
3. Натисніть [i] і наберіть необхідні вставки.
|
||||
|
||||
4. Коли всі помилки виправлені натисніть [ESC] щоб повернутись в звичайний
|
||||
режим.
|
||||
|
||||
---> З прав текст.
|
||||
---> З цього рядка пропав деякий текст.
|
||||
|
||||
5. Коли призвичаїтесь вставляти текст - переходьте до уроку 1.5.
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 1.5: РЕДАГУВАННЯ ТЕКСТУ. ДОДАВАННЯ.
|
||||
|
||||
|
||||
** Натисніть [A] щоб додати текст. **
|
||||
|
||||
Увага! Тут і далі, коли мають наувазі клавішу з буквою в верхньому
|
||||
регістрі, то це означає що її натискають з затиснутою [SHIFT].
|
||||
|
||||
1. Перемістіть курсор до першої лінії внизу позначеної --->.
|
||||
Не має значення над яким символом знаходиться курсор.
|
||||
|
||||
2. Натисніть [A] і введіть необхідне доповнення.
|
||||
|
||||
3. Коли додавання завершене натисніть [ESC] щоб повернутись в
|
||||
звичайний режим.
|
||||
|
||||
4. Перемістіть курсор до другої лінії позначеної ---> і повторіть
|
||||
кроки 2 і 3 щоб виправити речення.
|
||||
|
||||
---> З цього рядка пропущ
|
||||
З цього рядка пропущений текст.
|
||||
---> З цього рядка також
|
||||
З цього рядка також пропущений текст.
|
||||
|
||||
5. Після виконання вправ, переходьте до наступного уроку.
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 1.6: РЕДАГУВАННЯ ФАЙЛУ
|
||||
|
||||
** Використайте :wq щоб зберегти файл і вийти.**
|
||||
|
||||
Увага! Перед виконанням уроку прочитайте його повністю.
|
||||
|
||||
1. Вийдіть з цього підручника як ви робили в уроці 1.2: :q![ENTER]
|
||||
Або якщо ви маєте доступ до іншого терміналу виконуйте наступні
|
||||
дії в ньому.
|
||||
|
||||
2. В терміналі наберіть команду: vim НазваФайлу [ENTER]
|
||||
'vim' - команда для запуску редактора, НазваФайлу - файл який будемо
|
||||
редагувати. Якщо ввести неіснуючий файл, то він створиться
|
||||
|
||||
3. Відредагуйте текст, як навчились у попередніх уроках.
|
||||
|
||||
4. Щоб зберегти зміни у файлі, і вийти з Vim наберіть: :wq [ENTER]
|
||||
|
||||
5. Якщо ви вийшли з підручника на першому кроці, то зайдіть в нього
|
||||
знову і переходьте до підсумку.
|
||||
|
||||
6. Після прочитання і засвоєння попередніх кроків виконайте їх.
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ПІДСУМОК УРОКУ 1
|
||||
|
||||
|
||||
1. Курсор керується курсорними клавішами, або клавішами [h][j][k][l]
|
||||
[h] (вліво) [j] (вниз) [k] (вверх) [l] (вправо)
|
||||
|
||||
2. Щоб запустити Vim з терміналу наберіть: vim Назва файлу [ENTER]
|
||||
|
||||
3. Щоб вийти з Vim наберіть: [ESC] :q! [ENTER] щоб відкинути всі зміни.
|
||||
або наберіть: [ESC] :wq [ENTER] щоб зберегти всі зміни.
|
||||
|
||||
4. Щоб видалити символ під курсором натисніть [x].
|
||||
|
||||
5. Щоб вставити, чи доповнити текст наберіть:
|
||||
[i] текст що вставляєтсья [ESC] вставиться перед курсором
|
||||
[A] текст до додається [ESC] додасть текст до рядка
|
||||
|
||||
Зауваження: Натискання [ESC] перенесе вас в звичайний режим, чи відмінить
|
||||
не до кінця введену команду.
|
||||
|
||||
Тепер переходьте до уроку 2.
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 2.1: КОМАНДИ ВИДАЛЕННЯ
|
||||
|
||||
|
||||
** Введіть dw щоб видалити слово. **
|
||||
|
||||
1. Натисніть [ESC], щоб переконатись що ви в звичайному режимі.
|
||||
|
||||
2. Перемістіть курсор до лінії нижче позначеної --->.
|
||||
|
||||
3. Перемістіть курсор до початку слова що має бути видалене.
|
||||
|
||||
4. Введіть dw щоб слово пропало.
|
||||
|
||||
Зауваження: Буква d з'явиться в останньому рядку екрану, якщо ви її натиснули.
|
||||
Vim чекає введення наступного символа. Якщо з'явилось щось інше
|
||||
значить ви щось не так ввели. Натисніть [ESC] і почніть спочатку.
|
||||
|
||||
---> Є деякі слова весело, які не потрібні папір в цьому реченні.
|
||||
|
||||
5. Повторюйте кроки 3 і 4 поки речення не стане правильне, а тоді переходьте
|
||||
до уроку 2.2.
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 2.2: БІЛЬШЕ КОМАНД ВИДАЛЕННЯ
|
||||
|
||||
|
||||
** Наберіть d$ щоб видалити символи від курсора до кінця рядка. **
|
||||
|
||||
1. Натисніть [ESC] щоб переконатись що ви в звичайному режимі.
|
||||
|
||||
2. Перемістіть курсор до лінії нижче, що позначена --->.
|
||||
|
||||
3. Перемістіть курсор до кінця правильного рядка (ПІСЛЯ першої крапки).
|
||||
|
||||
4. Введіть d$ щоб видалити все до кінця рядка.
|
||||
|
||||
---> Хтось надрукував кінець цього рядка двічі. кінець цього рядка двічі.
|
||||
|
||||
|
||||
5. Перейдіть до уроку 2.3 щоб розібратись в цьому детальніше.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 2.3:ОПЕРАТОРИ І ПЕРЕМІЩЕННЯ
|
||||
|
||||
|
||||
Багато команд що змінюють текст утворені з оператора і переміщення.
|
||||
Формат команди видалення з оператором d подано нижче:
|
||||
|
||||
d переміщення
|
||||
|
||||
Де:
|
||||
d - оператор видалення.
|
||||
переміщення - з чим працює оператор (описано нижче).
|
||||
|
||||
Короткий список переміщень:
|
||||
w - до початку наступного слова, НЕ ВКЛЮЧАЮЧИ його перший символ.
|
||||
e - до кінця поточного слова, ВКЛЮЧАЮЧИ останній символ.
|
||||
$ - до кінця рядка, ВКЛЮЧАЮЧИ останній символ.
|
||||
|
||||
Тому введення de видалить символи від курсора, до кінця слова.
|
||||
|
||||
Зауваження: Натискання тільки переміщення в звичайному режимі відповідно
|
||||
переміщує курсор.
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 2.4: ВИКОРИСТАННЯ ЛІЧИЛЬНИКА ДЛЯ ПЕРЕМІЩЕННЯ
|
||||
|
||||
|
||||
** Введення числа перед переміщенням повторює його стільки раз. **
|
||||
|
||||
1. Перемістіть курсор до початку рядка позначеного --->
|
||||
|
||||
2. Введіть 2w щоб перемістити курсор на два слова вперед.
|
||||
|
||||
3. Введіть 3e щоб перемістити курсор в кінець третього слова.
|
||||
|
||||
4. Введіть 0 (нуль) щоб переміститись на початок рядка.
|
||||
|
||||
5. Повторіть кроки 2 і 3 з різними числами.
|
||||
|
||||
---> А це просто рядок зі словами, серед яких можна рухати курсором.
|
||||
|
||||
6. Переходьте до уроку 2.5.
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 2.5: БАГАТОРАЗОВЕ ВИДАЛЕННЯ
|
||||
|
||||
|
||||
** Введення числа з оператором повторює його стільки ж разів. **
|
||||
|
||||
В комбінації з оператором видалення, і переміщення з лічильника можна
|
||||
видаляти потрібне число елементів.
|
||||
Для цього введіть
|
||||
d число переміщення
|
||||
|
||||
1. Перемістіться до першого слова в ВЕРХНЬОМУ РЕГІСТРІ в рядку
|
||||
позначеному --->.
|
||||
|
||||
2. Введіть d2w щоб видалити два слова.
|
||||
|
||||
3. Повторіть кроки 1 і 2 з різними числами, щоб видалити все зайве.
|
||||
|
||||
---> цей ABC DE рядок FGHI JK LMN OP слів Q RS TUV почищений.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 2.6: ОПЕРАЦІЇ З РЯДКАМИ
|
||||
|
||||
|
||||
** Введіть dd щоб видалити весь рядок. **
|
||||
|
||||
Через те, що видалення всього рядка є доволі частою дією розробники Vi
|
||||
вирішили що для цієї операції потрібна проста команда, як dd.
|
||||
|
||||
1. Перемістіть курсор до другого рядка в вірші нижче.
|
||||
2. Введіть dd щоб видалити рядок.
|
||||
3. Потім перемістіться до четвертого рядка.
|
||||
4. Введіть 2dd щоб видалити два рядки.
|
||||
|
||||
---> 1) Троянди червоні,
|
||||
---> 2) Багнюка весела,
|
||||
---> 3) Волошки голубі,
|
||||
---> 4) В мене є машина,
|
||||
---> 5) Годинник каже час,
|
||||
---> 6) Цукерки солодкі,
|
||||
---> 7) Дарую тобі.
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 2.7: ВІДКИНУТИ ЗМІНИ
|
||||
|
||||
|
||||
** Натисніть u щоб скасувати останні команди, U щоб виправити ввесь рядок. **
|
||||
|
||||
1. Перемістіть курсор до рядка нижче позначеного ---> на місце першої помилки.
|
||||
2. Натисніть x щоб видалити непотрібний символ.
|
||||
3. Потім натисніть u щоб відмінити виправлення.
|
||||
4. Цього разу виправте всі помилки в рядку використовуючи команду x .
|
||||
5. Після цього введіть U, і відкиньте всі зміни в цілому рядку.
|
||||
6. Натисніть u кілька разів, щоб відмінити U і попередні команди.
|
||||
7. Тепер натисніть CTRL-R кілька разів, щоб повторити відмінені команди
|
||||
(відмінити відміну).
|
||||
|
||||
---> Вииправте помилки наа цьоому рядку і вііідмініть їх.
|
||||
|
||||
8. Тепер можна переходити до підсумків другого уроку.
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ПІДСУМОК УРОКУ 2
|
||||
|
||||
|
||||
1. Щоб видалити все від курсора аж до початку наступного слова введіть: dw
|
||||
2. Щоб видалити від курсора до кінця рядка: d$
|
||||
3. Щоб видалити увесь рядок: dd
|
||||
|
||||
4. Щоб повторити переміщення, поставте перед ним число повторів: 2w
|
||||
5. Формат команди зміни:
|
||||
оператор [число] переміщення
|
||||
де:
|
||||
оператор - що робити, як наприклад d для видалення
|
||||
[число] - кількість повторів
|
||||
переміщення - куди переміститись перед виконанням оператора, як
|
||||
як наприклад w (слово), $ (кінець рядка), і т.і.
|
||||
|
||||
6. Щоб переміститись до початку рядка використовуйте нуль: 0
|
||||
|
||||
7. Щоб відмінити попередню дію введіть: u (u в нижньому регістрі)
|
||||
Щоб відмінити всі зміни рядка введіть: U (U в верхньому регістрі)
|
||||
Щоб скасувати відміну натисніть: CTRL-R
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 3.1: КОМАНДА PUT
|
||||
|
||||
|
||||
** Введіть p щоб вставити перед тим видалений текст після курсору. **
|
||||
|
||||
1. Перемістіть курсор до першої ---> лінії внизу.
|
||||
|
||||
2. Введіть dd щоб видалити рядок і зберегти його в регістрі Vim.
|
||||
|
||||
3. Перемістіть курсор до рядка в), НАД тим місцем де має бути видалений рядок.
|
||||
|
||||
4. Натисніть p щоб вставити рядок під курсором.
|
||||
|
||||
5. Повторіть кроки від 2 до 4 щоб вставити всі рядки в правильному порядку.
|
||||
|
||||
---> г) всіх до кузні іззива.
|
||||
---> б) а в коваля серце тепле,
|
||||
---> в) а він клепче та й співа,
|
||||
---> а) А в тій кузні коваль клепле,
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 3.2: Команда заміни
|
||||
|
||||
|
||||
** Наберіть rx щоб замінити символ під курсором на x . **
|
||||
|
||||
1. Перемістіть курсор до першого рядка нижче, позначеного --->.
|
||||
|
||||
2. Помістіть курсор над першою помилкою.
|
||||
|
||||
3. Наберіть r а потім символ який має стояти там.
|
||||
|
||||
4. Повторіть кроки з 2 по 3 поки перший рядок не стане еквівалентним другому.
|
||||
|
||||
---> Коли ця лігія набираламт. хтось наьтснкв геправмльні унопкм!
|
||||
---> Коли ця лінія набиралась, хтось натиснув неправильні кнопки!
|
||||
|
||||
5. Зараз переходьте до уроку 3.3.
|
||||
|
||||
Примітка: Ви маєте вчитись діями, а не простим заучуванням, пам'ятаєте?
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 3.3: ОПЕРАТОР ЗАМІНИ
|
||||
|
||||
|
||||
** Щоб зробити заміну до кінця слова введіть ce . **
|
||||
|
||||
1. Перемістіть курсор до першого рядка позначеного --->.
|
||||
|
||||
2. Помістіть курсор над у в слові рукра.
|
||||
|
||||
3. Введіть ce і правильне закінчення слова (ядок в цьому випадку).
|
||||
|
||||
4. Натисніть [ESC] і переходьте до наступного символа, який потрібно замінити.
|
||||
|
||||
5. Повторюйте кроки 3 і 4 поки перше речення не стане таким самим як і друге.
|
||||
|
||||
---> Цей рукра має кілька слів що потретамув заміни за допоцкщшг оператора.
|
||||
---> Цей рядок має кілька слів що потребують заміни за допомогою оператора.
|
||||
|
||||
Зауважте що ce видаляє слово, і поміщає вас в режим вставки.
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 3.4: БІЛЬШЕ ЗМІН З c
|
||||
|
||||
|
||||
** Оператор заміни використовується з тими ж переміщеннями що і видалення. **
|
||||
|
||||
1. Оператор заміни працює в такий же спосіб що і видалення. Формат:
|
||||
|
||||
c [число] переміщення
|
||||
|
||||
2. Переміщення ті ж самі, такі як w (слово) і $ (кінець рядка).
|
||||
|
||||
3. Перемістіться до першого рядка позначеного --->.
|
||||
|
||||
4. Перемістіть курсор до першої помилки.
|
||||
|
||||
5. Наберіть c$ і решту рядка, щоб він став таким як другий і натисніть [ESC].
|
||||
|
||||
---> Кінець цього рядка потребує якихось дій щоб стати таким як кінець другого.
|
||||
---> Кінець цього рядка можна виправити за допомогою команди c$.
|
||||
|
||||
Примітка: Можна використовувати кнопку Backspace щоб виправляти опечатки при
|
||||
наборі.
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ПІДСУМОК УРОКУ 3
|
||||
|
||||
|
||||
1. Щоб вставити текст який був видалений наберіть p . Це вставляє
|
||||
видалений текст ПІСЛЯ курсора (якщо був видалений рядок, вставка
|
||||
продовжиться з рядка під курсором).
|
||||
|
||||
2. Щоб замінити символ під курсором наберіть r і необхідний символ.
|
||||
|
||||
3. Оператор заміни дозволяє робити заміну тексту від курсору, до потрібного
|
||||
переміщення. Наприклад щоб замінити все від курсора до кінця слова
|
||||
вводять ce . Щоб замінити закінчення рядка тиснуть c$ .
|
||||
|
||||
4. Формат заміни:
|
||||
|
||||
c [число] переміщення
|
||||
|
||||
Почнемо наступний урок.
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 4.1: ПОЗИЦІЯ КУРСОРА І СТАТУС ФАЙЛУ
|
||||
|
||||
** Введіть CTRL-G щоб побачити вашу позицію в файлі, і його статус.
|
||||
Введіть G щоб переміститись на потрібний рядок файлу. **
|
||||
|
||||
ПРИМІТКА: Прочитайте увесь урок перед виконанням будь-яких кроків!!
|
||||
|
||||
1. Затисніть кнопку Ctrl і натисніть g . Це називається CTRL-G.
|
||||
Внизу з'явиться повідомлення з назвою файлу, і позицією в файлі.
|
||||
Запам'ятайте номер рядка для кроку 3.
|
||||
|
||||
ПРИМІТКА: Ви бачите позицію курсора в нижньому правому кутку екрану.
|
||||
Це трапляється коли включена опція 'ruler' (читайте :help 'ruler' )
|
||||
|
||||
2. Натисніть G щоб переміститись до кінця файлу.
|
||||
Наберіть gg щоб переміститись до початку файлу.
|
||||
|
||||
3. Наберіть номер рядка де ви були а потім G. Це перенесе вас до потрібного
|
||||
рядка.
|
||||
|
||||
4. Якщо ви запам'ятали три попередні кроки, то виконуйте.
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 4.2: КОМАНДА ПОШУКУ
|
||||
|
||||
|
||||
** Введіть / (слеш) і фразу, щоб шукати її в тексті. **
|
||||
|
||||
1. В звичайному режимі введіть символ / . Зауважте що він і курсор
|
||||
з'являються в низу екрану, як і з командою : .
|
||||
|
||||
2. Тепер введіть 'очепятка' <ENTER>. Це буде словом яке ви шукатимете.
|
||||
|
||||
3. Щоб здійснити пошук цієї фрази ще раз введіть n .
|
||||
Щоб шукати в протилежному напрямку введіть N .
|
||||
|
||||
4. Щоб шукати фразу в зворотньому напрямку використайте ? замість / .
|
||||
|
||||
5. Щоб переміститись назад до того місця звідки прийшли натисніть CTRL-O.
|
||||
Повторіть щоб повернутись ще далі. (Це як кнопка назад в браузері)
|
||||
CTRL-I переміщує вперед.
|
||||
|
||||
---> "очепятка" не є способом написати опечатка; очепятка це опечатка.
|
||||
Примітка: Коли пошук досягає кінця файлу він продовжує з початку, хіба що
|
||||
опція 'wrapscan' була виключена.
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 4.3: ПОШУК ПАРНИХ ДУЖОК
|
||||
|
||||
|
||||
** Введіть % щоб знайти парну ),], чи } . **
|
||||
|
||||
1. Помістіть курсор над будь-якою (, [, чи { в рядку нижче позначеному --->.
|
||||
|
||||
2. Тепер введіть символ % .
|
||||
|
||||
3. Курсор переміститься до відповідної дужки.
|
||||
|
||||
4. Введіть % щоб перемістити курсор до іншої парної дужки.
|
||||
|
||||
5. Спробуйте з іншими дужками, і подивіться що вийде.
|
||||
|
||||
---> Це ( тестовий рядок ( з такими [ такими ] і такими { дужками } в ньому. ))
|
||||
|
||||
|
||||
Примітка: Це корисно при відлагоджуванні програми з неправильними дужками.
|
||||
І взагалі в кожному тексті дужки мають стояти правильно!
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 4.4: КОМАНДА ЗАМІНИ
|
||||
|
||||
|
||||
** Наберіть :s/старе/нове/g щоб замінити 'старе' на 'нове'. **
|
||||
|
||||
1. Перемістіть курсор до лінії нижче позначеної --->.
|
||||
|
||||
2. Введіть :s/(біп)/блять [ENTER] . Зауважте що ця команда змінює тільки перше
|
||||
входження (біп) в рядку.
|
||||
|
||||
3. Потім наберіть :s/(біп)/блять/g . Додавання g вказує що заміни
|
||||
робляться у всьому рядку глобально.
|
||||
|
||||
---> люди не лю(біп), коли в слові "лю(біп)" "(біп)" заміняють на "(бiп)".
|
||||
|
||||
4. Щоб замінити кожне входження послідовності символів між двома рядками
|
||||
наберіть :#,#s/старе/нове/g де #,# діапазон рядків в яких робиться
|
||||
заміна.
|
||||
Введіть :%s/старе/нове/g щоб змінити кожне входження у цілому файлі.
|
||||
Введіть :%s/старе/нове/gc щоб замінити, кожне входження у файлі з
|
||||
підтвердженням кожної заміни.
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ПІДСУМОК УРОКУ 4
|
||||
|
||||
|
||||
1. CTRL-G виводить вашу позицію в файлі і назву файлу.
|
||||
G переміщує в кінець файлу.
|
||||
число G переміщує до рядка з вказаним номером.
|
||||
gg переміщує до першого рядка.
|
||||
|
||||
2. Ввід / і послідовності символів шукає послідовність ПІСЛЯ курсора.
|
||||
Ввід ? і послідовності символів шукає послідовність ПЕРЕД курсором.
|
||||
|
||||
Після пошуку введіть n щоб знайти наступне входження в тому ж напрямку
|
||||
або N щоб шукати в протилежному напрямку.
|
||||
CTRL-O відносить вас до старішої позиції, CTRL-I до новішої позиції.
|
||||
|
||||
3. Ввід % коли курсор знаходиться над дужкою (,),[,],{, чи } переносить
|
||||
курсор до протилежної дужки.
|
||||
|
||||
4. Щоб замінити перше входження старого слова на нове :s/старе/нове
|
||||
Щоб замінити всі старі слова рядка на нові :s/старе/нове/g
|
||||
Щоб замінити фрази між двома рядками :#,#s/старе/нове/g
|
||||
Щоб замінити всі входження в файлі :%s/старе/нове/g
|
||||
Щоб щоразу підтверджувати заміну додайте 'c' :%s/старе/нове/gc
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 5.1: ЯК ВИКОНАТИ ЗОВНІШНЮ КОМАНДУ
|
||||
|
||||
|
||||
** Введіть :! і зовнішню команду, щоб виконати ту команду. **
|
||||
|
||||
1. Введіть відому команду : щоб встановити курсор в низу екрану.
|
||||
Це дозволяє вводити команди командного рядка.
|
||||
|
||||
2. Тепер введіть ! (символ знаку оклику) . Це дозволить вам виконати
|
||||
будь-яку зовнішню команду.
|
||||
|
||||
3. Як приклад введіть :!ls [ENTER]. Це покаже список файлів каталогу, так
|
||||
так ніби ви знаходитесь в оболонці терміналу. Або використайте :!dir
|
||||
якщо ви раптом знаходитесь в Windows.
|
||||
|
||||
Примітка: Можна запускати будь-яку зовнішню команду таким способом, навіть з
|
||||
аргументами.
|
||||
|
||||
Примітка: Всі команди що починаються з : мають закінчуватись натисканням
|
||||
[ENTER]. Більше на цьому не наголошуватиметься.
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 5.2: ЩЕ ПРО ЗАПИС ФАЙЛІВ
|
||||
|
||||
|
||||
** Щоб зберегти змінений текст, введіть :w НАЗВА_ФАЙЛУ **
|
||||
|
||||
1. Введіть :!dir чи :!ls щоб переглянути вміст вашої директорії.
|
||||
Вам вже казали що після цього тиснуть [ENTER].
|
||||
|
||||
2. Виберіть ім'я файлу яке ще не використовується, наприклад TEST.
|
||||
(Взагалі то це не обов'язково, якщо вміст обраного файлу не
|
||||
є цінним)
|
||||
|
||||
3. Тепер введіть: :w TEST (де TEST це назва яку ви обрали.)
|
||||
|
||||
4. Це зберігає увесь файл (підручник Vim ) під ім'ям TEST.
|
||||
Щоб перевірити знову наберіть :!ls щоб побачити зміни в каталозі.
|
||||
|
||||
Примітка: Якщо ви вийдете з Vim і запустите його знову командою vim TEST,
|
||||
файл що ви відкриєте буде точною копією цього, коли ви його зберегли.
|
||||
|
||||
5. Зараз видаліть файл ввівши (Unix): :!rm TEST
|
||||
чи (MS-DOS): :!del TEST
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 5.3: ВИБІР ТЕКСТУ ДЛЯ ЗАПИСУ
|
||||
|
||||
|
||||
** Щоб зберегти частину файлу, наберіть v переміщення :w НАЗВА_ФАЙЛУ **
|
||||
|
||||
1. Перемістіть курсор до цього рядка.
|
||||
|
||||
2. Натисніть v і перемістіть курсор на п'ять пунктів нижче. Зауважте, що
|
||||
текст виділяється.
|
||||
|
||||
3. Натисніть символ : . Внизу екрану з'являються символи :'<,'> .
|
||||
|
||||
4. Введіть w TEST , де TEST назва файлу що ще не використовується.
|
||||
Переконайтесь що ви бачите :'<,'>w TEST перед тим як натиснути [ENTER].
|
||||
|
||||
5. Vim запише вибрані рядки в файл TEST. Використайте :!dir чи !ls
|
||||
щоб побачити це. Поки що не видаляйте його! Ми використаємо TEST в
|
||||
наступному уроці.
|
||||
|
||||
Зауваження: Натискання v починає режим візуального виділення. Ви можете
|
||||
переміщувати курсор щоб змінити розмір вибраної частини.
|
||||
Потім можна використати оператор щоб зробити щось з текстом.
|
||||
Наприклад d видалить текст.
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 5.4: ОТРИМАННЯ І ЗЛИТТЯ ФАЙЛІВ
|
||||
|
||||
|
||||
** Щоб вставити вміст файлу введіть :r НАЗВА_ФАЙЛУ **
|
||||
|
||||
1. Помістіть курсор десь над цим рядком.
|
||||
|
||||
Зауваження: Після виконання кроку 2 ви побачите текст з уроку 5.3. Тоді
|
||||
перемістіться вниз, щоб побачити вміст цього уроку знову.
|
||||
|
||||
2. Тоді отримайте вміст вашого файлу TEST використавши команду :r TEST ,
|
||||
де TEST назва файлу що ви використали.
|
||||
Файл що ви отримуєте поміщується під рядком курсора.
|
||||
|
||||
3. Щоб перевірити що файл вставлено, прокрутіть текст назад, і переконаєтесь
|
||||
що тепер є дві копії урок 5.3, the original and the file version.
|
||||
|
||||
Примітка: Також ви можете вставляти вивід зовнішньої програми. Наприклад
|
||||
:r !ls читає вивід команди ls і вставляє його під курсором.
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Підсумок 5 уроку
|
||||
|
||||
|
||||
1. :!команда виконує зовнішню команду.
|
||||
|
||||
2. :w НАЗВА_ФАЙЛУ записує поточний файл на диск під назвою НАЗВА_ФАЙЛУ.
|
||||
|
||||
3. v переміщення :w НАЗВА_ФАЙЛУ зберігає візуально виділену частину тексту
|
||||
в файл НАЗВА_ФАЙЛУ.
|
||||
|
||||
4. :r НАЗВА_ФАЙЛУ отримує з диску файл НАЗВА_ФАЙЛУ і вставляє його під
|
||||
курсором.
|
||||
|
||||
5. :r !ls читає вивід команди ls і вставляє її під поточною позицією курсора
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 6.1: КОМАНДА ВСТАВКИ
|
||||
|
||||
|
||||
** Введіть o щоб вставити новий рядок під курсором. **
|
||||
|
||||
1. Перемістіть курсор на рядок нижче, позначений --->.
|
||||
|
||||
2. Натисніть o щоб вставити новий рядок ПІД курсором та перейти в
|
||||
режим вставки.
|
||||
|
||||
3. Тепер введіть текст і натисніть [ESC] щоб вийти з режиму вставки.
|
||||
|
||||
---> Після натискання o курсор ставиться на наступний рядок в режимі вставки.
|
||||
|
||||
4. Щоб вставити рядок НАД ABOVE курсором пишуть O в верхньому регістрі,
|
||||
замість o. Спробуйте на рядку нижче.
|
||||
|
||||
---> Щоб вставити рядок над цим введіть O .
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 6.2: КОМАНДА ДОПИСУВАННЯ
|
||||
|
||||
|
||||
** Натисніть a щоб вставити текст після курсору. **
|
||||
|
||||
1. Перемістіть курсор до початку рядка внизу позначеного --->.
|
||||
|
||||
2. Тисніть e поки курсор не буде в кінці ря .
|
||||
|
||||
3. Натисніть a (маленьке) щоб додати текст ПІСЛЯ курсору.
|
||||
|
||||
4. Допишіть слова як рядок внизу. Натисніть [ESC] щоб вийти з режиму
|
||||
вставки.
|
||||
|
||||
5. Використайте e щоб переміститись до наступного неповного слова та
|
||||
to move to the next incomplete word and repeat steps 3 and 4.
|
||||
|
||||
---> Цей ря дозволить вам попрактикува в дописува тексту до рядка.
|
||||
---> Цей рядок дозволить вам попрактикуватись в дописуванні тексту до рядка.
|
||||
|
||||
Примітка: a, i і A переходять в один і той же режим вставки, єдиною різницею
|
||||
є тільки те, де вставляються символи.
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 6.3: ІНШИЙ СПОСІБ ЗАМІНИ
|
||||
|
||||
|
||||
** Введіть велику R щоб замінити більш ніж один символ. **
|
||||
|
||||
1. Перемістіть курсор до першого рядка внизу позначеного --->.
|
||||
Перемістіть курсор до першого xxx .
|
||||
|
||||
2. Тепер натисніть R і введіть номер під ним з другого рядка, так що він
|
||||
замінює xxx .
|
||||
|
||||
3. Натисніть [ESC] щоб покинути режим заміни. Зауважте, що решта рядка
|
||||
залишається незмінною.
|
||||
|
||||
4. Повторіть кроки від 1 до 3 щоб замінити всі xxx на числа з другого рядка.
|
||||
|
||||
---> Додавання 123 до xxx дає xxx.
|
||||
---> Додавання 123 до 456 дає 579.
|
||||
|
||||
Зауваження: Режим заміни подібний до режиму вставки, тільки кожен введений
|
||||
символ видаляє символ який стояв на його місці.
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 6.4: КОПІЮВАННЯ І ВСТАВКА
|
||||
|
||||
|
||||
** Використайте оператор y щоб копіювати текст і p щоб його вставити **
|
||||
|
||||
1. Перейдіть до рядка нижче позначеного ---> і покладіть курсор після "а)".
|
||||
|
||||
2. Перейдіть в візуальний режим за допомогою клавіші v і перемістіть курсор
|
||||
якраз перед словом "один".
|
||||
|
||||
3. Введіть y щоб копіювати (yank) виділений текст.
|
||||
|
||||
4. Перемістіть курсор до кінця наступного рядка: j$
|
||||
|
||||
5. Натисніть p щоб вставити (put) текст. Тоді введіть : два [ESC] .
|
||||
|
||||
6. так само додайте третій рядочок.
|
||||
|
||||
---> а) це рядок номер один
|
||||
б)
|
||||
|
||||
Зауваження: також можна використовувати y як оператор;
|
||||
yw копіює одне слово.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 6.5: ВСТАНОВЛЕННЯ ОПЦІЙ
|
||||
|
||||
|
||||
** Встановити опцію так що пошук чи заміна буде ігнорувати регістр **
|
||||
|
||||
1. Знайдіть слово 'ігнорувати' ввівши : /ігнорувати
|
||||
Повторіть кілька разів натискаючи n .
|
||||
|
||||
2. Встановіть опцію ігнорування регістру 'ic' (Ignore case) ввівши: :set ic
|
||||
|
||||
3. Тепер пошукайте 'ігнорувати' знову ввівши n
|
||||
Зауважте що Ігнорувати та ІГНОРУВАТИ тепер також знаходяться.
|
||||
|
||||
4. Ввімкніть 'hlsearch' (підсвітку пошуку) і 'incsearch' (інтерактивність)
|
||||
командою :set hls is .
|
||||
|
||||
5. Тепер пошукайте щось знову і зауважте зміни: /ігнорувати [ENTER]
|
||||
|
||||
6. Щоб вимкнути ігнорування регістру напишіть: :set noic
|
||||
|
||||
Примітка: Щоб вимкнути підсвітку співпадінь введіть: :nohlsearch
|
||||
Примітка: Якщо ви хочете не брати до уваги регістр тільки під час одного пошуку
|
||||
використайте ключ \c. Наприклад: /ігнорувати\c [ENTER]
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ПІДСУМОК УРОКУ 6
|
||||
|
||||
1. Введіть о щоб додати рядок ПІД курсором і почати режим вставки.
|
||||
Введіть 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
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 7.1: ОТРИМАННЯ ДОПОМОГИ
|
||||
|
||||
|
||||
** Використання вбудованої довідкової системи **
|
||||
|
||||
Vim має всеосяжну систему довідки. Щоб ознайомитись з нею спробуйте один з
|
||||
таких способів:
|
||||
- натисніть кнопку [HELP] (якщо така є)
|
||||
- натисніть [F1]
|
||||
- наберіть :help
|
||||
|
||||
Прочитайте текст в вікні допомоги, щоб вияснити як вона працює.
|
||||
Натисніть CTRL-W двічі щоб змінити вікно
|
||||
Наберіть :q щоб закрити вікно довідки.
|
||||
|
||||
Можна знайти довідку майже на будь-яку тему додаючи аргумент після команди
|
||||
":help" . Спробуйте одну з наступних (не забувайте натискати [ENTER]):
|
||||
|
||||
:help w
|
||||
:help c_CTRL-D
|
||||
:help insert-index
|
||||
:help user-manual
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 7.2: СТВОРЕННЯ СКРИПТА АВТОЗАПУСКУ
|
||||
|
||||
|
||||
** Ввімкнення додаткових функцій Vim **
|
||||
|
||||
Vim має набагато більше функцій ніж Vi, але більшість з них відключені за
|
||||
замовчуванням. Щоб почати використання додаткових функцій потрібно створити
|
||||
файл "vimrc".
|
||||
|
||||
1. Почніть редагування файлу "vimrc" . Це залежить від вашої системи:
|
||||
:e ~/.vimrc для Unix
|
||||
:e $VIM/_vimrc для MS-Windows
|
||||
|
||||
2. Тепер прочитайте приклад вмісту "vimrc" :
|
||||
:r $VIMRUNTIME/vimrc_example.vim
|
||||
|
||||
3. Збережіть файл:
|
||||
:w
|
||||
|
||||
Наступного разу коли ви запустите Vim він буде використовувати підсвітку
|
||||
синтаксису. Можна додати всі ваші улюблені налаштування в цей файл. Для більш
|
||||
детальної інформації введіть :help vimrc-intro
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Урок 7.3: АВТОДОПОВНЕННЯ
|
||||
|
||||
|
||||
** Автодоповнення за допомогою 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 .
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ПІДСУМОК УРОКУ 7
|
||||
|
||||
|
||||
1. Введіть :help або натисніть [F1] щоб відкрити вікно довідки.
|
||||
|
||||
2. Введіть :help тема щоб знайти довідку про тему .
|
||||
|
||||
3. Введіть CTRL-W CTRL-W щоб змінити вікно.
|
||||
|
||||
4. Наберіть :q щоб закрити вікно
|
||||
|
||||
5. Створіть скрипт vimrc щоб змінювати ваші налаштування при запуску.
|
||||
|
||||
6. При наборі команди що починається з двокрапки : натисніть CTRL-D
|
||||
щоб побачити можливі доповнення. Натисніть [TAB] щоб побачити одне з
|
||||
доповнень.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Це завершує уроки Vim . Вони були націлені щоб дати вам короткий вступ в
|
||||
редактор Vim, достатній для того щоб використовувати редактор комфортно.
|
||||
Ці уроки зовсім далеко від повних, бо Vim має набагато більше команд. Можна
|
||||
прочитати інструкцію користувача : ":help user-manual".
|
||||
|
||||
Для подальшого читання і вивчення рекомендується така книжка:
|
||||
Vim - Vi Improved - by Steve Oualline
|
||||
Publisher: New Riders
|
||||
Особливо корисна для початківців.
|
||||
Там багато прикладів і ілюстрацій.
|
||||
Дивіться http://iccf-holland.org/click5.html
|
||||
|
||||
Ці уроки були написані Майклом С. Пірсом та Робертом Уаром.
|
||||
|
||||
Модифіковано для Vim Бремом Муленаром.
|
||||
|
||||
|
||||
Переклад на українську Буник Т.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
@@ -316,7 +316,7 @@ directory where you want the object files and executables to go and run
|
||||
the `configure' script. `configure' automatically checks for the
|
||||
source code in the directory that `configure' is in and in `..'.
|
||||
|
||||
If you have to use a `make' that does not supports the `VPATH'
|
||||
If you have to use a `make' that does not support the `VPATH'
|
||||
variable, you have to compile the package for one architecture at a time
|
||||
in the source code directory. After you have installed the package for
|
||||
one architecture, use `make distclean' before reconfiguring for another
|
||||
|
||||
@@ -366,7 +366,11 @@ endif
|
||||
endif
|
||||
CC := $(CROSS_COMPILE)gcc
|
||||
CXX := $(CROSS_COMPILE)g++
|
||||
ifeq ($(UNDER_CYGWIN),yes)
|
||||
WINDRES := $(CROSS_COMPILE)windres
|
||||
else
|
||||
WINDRES := windres
|
||||
endif
|
||||
WINDRES_CC = $(CC)
|
||||
|
||||
#>>>>> end of choices
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Makefile for Vim on OpenVMS
|
||||
#
|
||||
# Maintainer: Zoltan Arpadffy <arpadffy@polarhome.com>
|
||||
# Last change: 2014 Feb 24
|
||||
# Last change: 2014 Aug 10
|
||||
#
|
||||
# This has script been tested on VMS 6.2 to 8.2 on DEC Alpha, VAX and IA64
|
||||
# with MMS and MMK
|
||||
@@ -309,7 +309,7 @@ ALL_CFLAGS_VER = /def=($(MODEL_DEF)$(DEFS)$(DEBUG_DEF)$(PERL_DEF)$(PYTHON_DEF) -
|
||||
ALL_LIBS = $(LIBS) $(GUI_LIB_DIR) $(GUI_LIB) \
|
||||
$(PERL_LIB) $(PYTHON_LIB) $(TCL_LIB) $(SNIFF_LIB) $(RUBY_LIB)
|
||||
|
||||
SRC = blowfish.c buffer.c charset.c diff.c digraph.c edit.c eval.c ex_cmds.c ex_cmds2.c \
|
||||
SRC = blowfish.c buffer.c charset.c crypt.c, crypt_zip.c diff.c digraph.c edit.c eval.c ex_cmds.c ex_cmds2.c \
|
||||
ex_docmd.c ex_eval.c ex_getln.c if_xcmdsrv.c fileio.c fold.c getchar.c \
|
||||
hardcopy.c hashtab.c main.c mark.c menu.c mbyte.c memfile.c memline.c message.c misc1.c \
|
||||
misc2.c move.c normal.c ops.c option.c popupmnu.c quickfix.c regexp.c search.c sha256.c\
|
||||
@@ -318,7 +318,7 @@ SRC = blowfish.c buffer.c charset.c diff.c digraph.c edit.c eval.c ex_cmds.c ex_
|
||||
$(GUI_SRC) $(PERL_SRC) $(PYTHON_SRC) $(TCL_SRC) $(SNIFF_SRC) \
|
||||
$(RUBY_SRC) $(HANGULIN_SRC) $(MZSCH_SRC)
|
||||
|
||||
OBJ = blowfish.obj buffer.obj charset.obj diff.obj digraph.obj edit.obj eval.obj \
|
||||
OBJ = blowfish.obj buffer.obj charset.obj crypt.obj, crypt_zip.obj diff.obj digraph.obj edit.obj eval.obj \
|
||||
ex_cmds.obj ex_cmds2.obj ex_docmd.obj ex_eval.obj ex_getln.obj \
|
||||
if_xcmdsrv.obj fileio.obj fold.obj getchar.obj hardcopy.obj hashtab.obj main.obj mark.obj \
|
||||
menu.obj memfile.obj memline.obj message.obj misc1.obj misc2.obj \
|
||||
|
||||
@@ -1890,10 +1890,13 @@ unittest unittests: $(UNITTEST_TARGETS)
|
||||
done
|
||||
|
||||
# Run individual test, assuming that Vim was already compiled.
|
||||
test1 test2 test3 test4 test5 test6 test7 test8 test9 \
|
||||
test1 \
|
||||
test_argument_count \
|
||||
test_autoformat_join \
|
||||
test_breakindent \
|
||||
test_changelist \
|
||||
test_close_count \
|
||||
test_command_count \
|
||||
test_eval \
|
||||
test_insertcount \
|
||||
test_listlbr \
|
||||
@@ -1904,6 +1907,7 @@ test1 test2 test3 test4 test5 test6 test7 test8 test9 \
|
||||
test_signs \
|
||||
test_utf8 \
|
||||
test_writefile \
|
||||
test2 test3 test4 test5 test6 test7 test8 test9 \
|
||||
test10 test11 test12 test13 test14 test15 test16 test17 test18 test19 \
|
||||
test20 test21 test22 test23 test24 test25 test26 test27 test28 test29 \
|
||||
test30 test31 test32 test33 test34 test35 test36 test37 test38 test39 \
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user