mirror of
https://github.com/zoriya/vim.git
synced 2026-01-08 07:22:11 +00:00
Compare commits
172 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
069dd08d8d | ||
|
|
ea98f8b4d6 | ||
|
|
1510f996c5 | ||
|
|
4c6b3b20dd | ||
|
|
7927836733 | ||
|
|
40ce3a4e1f | ||
|
|
77354e78a8 | ||
|
|
3cbac309f7 | ||
|
|
5b14f89164 | ||
|
|
bbc1a592a0 | ||
|
|
d82a2a990b | ||
|
|
f9bde2b152 | ||
|
|
d39a751280 | ||
|
|
ec45c4a6df | ||
|
|
ba172f2eab | ||
|
|
0a63dedf99 | ||
|
|
d5f6933d5c | ||
|
|
05b20fb14e | ||
|
|
9bc174b69d | ||
|
|
d94682ffb4 | ||
|
|
50ab994ab3 | ||
|
|
7c94ce910f | ||
|
|
83d1b19015 | ||
|
|
29d54df5cd | ||
|
|
5a5f45917d | ||
|
|
695baeefe1 | ||
|
|
de1502f2b4 | ||
|
|
f630387827 | ||
|
|
da6365774d | ||
|
|
d87c36ea5e | ||
|
|
478c46e50f | ||
|
|
1e7813a187 | ||
|
|
7d2757a472 | ||
|
|
0e462411ca | ||
|
|
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 |
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
|
||||
|
||||
@@ -110,6 +110,3 @@ MAIN AUTHOR
|
||||
Send any other comments, patches, flowers and suggestions to:
|
||||
|
||||
Bram Moolenaar E-mail: Bram@vim.org
|
||||
Finsterruetihof 1
|
||||
8134 Adliswil
|
||||
Switzerland
|
||||
|
||||
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 Dec 01
|
||||
" Last Change: 2015 Apr 02
|
||||
"
|
||||
" OPTIONS:
|
||||
"
|
||||
@@ -141,71 +141,80 @@ function! phpcomplete#CompletePHP(findstart, base) " {{{
|
||||
if a:base != ""
|
||||
let context = substitute(context, '\s*[$a-zA-Z_0-9\x7f-\xff]*$', '', '')
|
||||
end
|
||||
else
|
||||
let context = ''
|
||||
end
|
||||
|
||||
let [current_namespace, imports] = phpcomplete#GetCurrentNameSpace(getline(0, line('.')))
|
||||
try
|
||||
let winheight = winheight(0)
|
||||
let winnr = winnr()
|
||||
|
||||
if context =~? '^use\s'
|
||||
return phpcomplete#CompleteUse(a:base)
|
||||
endif
|
||||
let [current_namespace, imports] = phpcomplete#GetCurrentNameSpace(getline(0, line('.')))
|
||||
|
||||
if context =~ '\(->\|::\)$'
|
||||
" {{{
|
||||
" Get name of the class
|
||||
let classname = phpcomplete#GetClassName(line('.'), context, current_namespace, imports)
|
||||
if context =~? '^use\s' || context ==? 'use'
|
||||
return phpcomplete#CompleteUse(a:base)
|
||||
endif
|
||||
|
||||
" Get location of class definition, we have to iterate through all
|
||||
if classname != ''
|
||||
if classname =~ '\'
|
||||
" split the last \ segment as a classname, everything else is the namespace
|
||||
let classname_parts = split(classname, '\')
|
||||
let namespace = join(classname_parts[0:-2], '\')
|
||||
let classname = classname_parts[-1]
|
||||
if context =~ '\(->\|::\)$'
|
||||
" {{{
|
||||
" Get name of the class
|
||||
let classname = phpcomplete#GetClassName(line('.'), context, current_namespace, imports)
|
||||
|
||||
" Get location of class definition, we have to iterate through all
|
||||
if classname != ''
|
||||
if classname =~ '\'
|
||||
" split the last \ segment as a classname, everything else is the namespace
|
||||
let classname_parts = split(classname, '\')
|
||||
let namespace = join(classname_parts[0:-2], '\')
|
||||
let classname = classname_parts[-1]
|
||||
else
|
||||
let namespace = '\'
|
||||
endif
|
||||
let classlocation = phpcomplete#GetClassLocation(classname, namespace)
|
||||
else
|
||||
let namespace = '\'
|
||||
let classlocation = ''
|
||||
endif
|
||||
let classlocation = phpcomplete#GetClassLocation(classname, namespace)
|
||||
|
||||
if classlocation != ''
|
||||
if classlocation == 'VIMPHP_BUILTINOBJECT' && has_key(g:php_builtin_classes, tolower(classname))
|
||||
return phpcomplete#CompleteBuiltInClass(context, classname, a:base)
|
||||
endif
|
||||
|
||||
if filereadable(classlocation)
|
||||
let classfile = readfile(classlocation)
|
||||
let classcontent = ''
|
||||
let classcontent .= "\n".phpcomplete#GetClassContents(classlocation, classname)
|
||||
let sccontent = split(classcontent, "\n")
|
||||
let visibility = expand('%:p') == fnamemodify(classlocation, ':p') ? 'private' : 'public'
|
||||
|
||||
return phpcomplete#CompleteUserClass(context, a:base, sccontent, visibility)
|
||||
endif
|
||||
endif
|
||||
|
||||
return phpcomplete#CompleteUnknownClass(a:base, context)
|
||||
" }}}
|
||||
elseif context =~? 'implements'
|
||||
return phpcomplete#CompleteClassName(a:base, ['i'], current_namespace, imports)
|
||||
elseif context =~? 'extends\s\+.\+$' && a:base == ''
|
||||
return ['implements']
|
||||
elseif context =~? 'extends'
|
||||
let kinds = context =~? 'class\s' ? ['c'] : ['i']
|
||||
return phpcomplete#CompleteClassName(a:base, kinds, current_namespace, imports)
|
||||
elseif context =~? 'class [a-zA-Z_\x7f-\xff\\][a-zA-Z_0-9\x7f-\xff\\]*'
|
||||
" special case when you've typed the class keyword and the name too, only extends and implements allowed there
|
||||
return filter(['extends', 'implements'], 'stridx(v:val, a:base) == 0')
|
||||
elseif context =~? 'new'
|
||||
return phpcomplete#CompleteClassName(a:base, ['c'], current_namespace, imports)
|
||||
endif
|
||||
|
||||
if a:base =~ '^\$'
|
||||
return phpcomplete#CompleteVariable(a:base)
|
||||
else
|
||||
let classlocation = ''
|
||||
return phpcomplete#CompleteGeneral(a:base, current_namespace, imports)
|
||||
endif
|
||||
|
||||
if classlocation != ''
|
||||
if classlocation == 'VIMPHP_BUILTINOBJECT' && has_key(g:php_builtin_classes, tolower(classname))
|
||||
return phpcomplete#CompleteBuiltInClass(context, classname, a:base)
|
||||
endif
|
||||
|
||||
if filereadable(classlocation)
|
||||
let classfile = readfile(classlocation)
|
||||
let classcontent = ''
|
||||
let classcontent .= "\n".phpcomplete#GetClassContents(classlocation, classname)
|
||||
let sccontent = split(classcontent, "\n")
|
||||
let visibility = expand('%:p') == fnamemodify(classlocation, ':p') ? 'private' : 'public'
|
||||
|
||||
return phpcomplete#CompleteUserClass(context, a:base, sccontent, visibility)
|
||||
endif
|
||||
endif
|
||||
|
||||
return phpcomplete#CompleteUnknownClass(a:base, context)
|
||||
" }}}
|
||||
elseif context =~? 'implements'
|
||||
return phpcomplete#CompleteClassName(a:base, ['i'], current_namespace, imports)
|
||||
elseif context =~? 'extends\s\+.\+$'
|
||||
return ['implements']
|
||||
elseif context =~? 'extends'
|
||||
let kinds = context =~? 'class\s' ? ['c'] : ['i']
|
||||
return phpcomplete#CompleteClassName(a:base, kinds, current_namespace, imports)
|
||||
elseif context =~? 'class [a-zA-Z_\x7f-\xff\\][a-zA-Z_0-9\x7f-\xff\\]*'
|
||||
" special case when you've typed the class keyword and the name too, only extends and implements allowed there
|
||||
return filter(['extends', 'implements'], 'stridx(v:val, a:base) == 0')
|
||||
elseif context =~? 'new'
|
||||
return phpcomplete#CompleteClassName(a:base, ['c'], current_namespace, imports)
|
||||
endif
|
||||
|
||||
if a:base =~ '^\$'
|
||||
return phpcomplete#CompleteVariable(a:base)
|
||||
else
|
||||
return phpcomplete#CompleteGeneral(a:base, current_namespace, imports)
|
||||
endif
|
||||
finally
|
||||
silent! exec winnr.'resize '.winheight
|
||||
endtry
|
||||
endfunction
|
||||
" }}}
|
||||
|
||||
@@ -244,12 +253,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 +282,10 @@ function! phpcomplete#CompleteUse(base) " {{{
|
||||
endfor
|
||||
endif
|
||||
|
||||
for comp in res
|
||||
let comp.word = substitute(comp.word, '^\\', '', '')
|
||||
endfor
|
||||
|
||||
return res
|
||||
endfunction
|
||||
" }}}
|
||||
@@ -326,6 +340,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 +435,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 +456,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 +480,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 +528,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 +559,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 +588,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 +808,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 +885,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
|
||||
@@ -1475,21 +1532,19 @@ function! phpcomplete#GetClassName(start_line, context, current_namespace, impor
|
||||
return ''
|
||||
endif
|
||||
|
||||
if line =~? '\v^\s*(abstract\s+|final\s+)*\s*class'
|
||||
let class_name = matchstr(line, '\c\s*class\s*\zs'.class_name_pattern.'\ze')
|
||||
if line =~? '\v^\s*(abstract\s+|final\s+)*\s*class\s'
|
||||
let class_name = matchstr(line, '\cclass\s\+\zs'.class_name_pattern.'\ze')
|
||||
let extended_class = matchstr(line, '\cclass\s\+'.class_name_pattern.'\s\+extends\s\+\zs'.class_name_pattern.'\ze')
|
||||
|
||||
let classname_candidate = a:context =~? 'parent::' ? extended_class : class_name
|
||||
else
|
||||
let i += 1
|
||||
continue
|
||||
if classname_candidate != ''
|
||||
let [classname_candidate, class_candidate_namespace] = phpcomplete#GetCallChainReturnType(classname_candidate, class_candidate_namespace, class_candidate_imports, methodstack)
|
||||
" return absolute classname, without leading \
|
||||
return (class_candidate_namespace == '\' || class_candidate_namespace == '') ? classname_candidate : class_candidate_namespace.'\'.classname_candidate
|
||||
endif
|
||||
endif
|
||||
|
||||
if classname_candidate != ''
|
||||
let [classname_candidate, class_candidate_namespace] = phpcomplete#GetCallChainReturnType(classname_candidate, class_candidate_namespace, class_candidate_imports, methodstack)
|
||||
" return absolute classname, without leading \
|
||||
return (class_candidate_namespace == '\' || class_candidate_namespace == '') ? classname_candidate : class_candidate_namespace.'\'.classname_candidate
|
||||
endif
|
||||
let i += 1
|
||||
endwhile
|
||||
elseif a:context =~? '(\s*new\s\+'.class_name_pattern.'\s*)->'
|
||||
let classname_candidate = matchstr(a:context, '\cnew\s\+\zs'.class_name_pattern.'\ze')
|
||||
@@ -1602,26 +1657,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)
|
||||
@@ -1641,13 +1696,14 @@ 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
|
||||
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*'.variable_name_pattern)
|
||||
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
|
||||
@@ -1689,6 +1745,7 @@ function! phpcomplete#GetClassName(start_line, context, current_namespace, impor
|
||||
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
|
||||
@@ -1819,7 +1876,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
|
||||
@@ -1831,7 +1888,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
|
||||
@@ -1981,7 +2040,7 @@ function! phpcomplete#GetClassContentsStructure(file_path, file_lines, class_nam
|
||||
|
||||
silent! below 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('.')
|
||||
@@ -1994,8 +2053,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'
|
||||
@@ -2008,21 +2107,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
|
||||
@@ -2270,19 +2375,40 @@ endfunction!
|
||||
" }}}
|
||||
|
||||
function! phpcomplete#GetCurrentNameSpace(file_lines) " {{{
|
||||
let original_window = winnr()
|
||||
|
||||
silent! below 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
|
||||
|
||||
@@ -2303,11 +2429,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
|
||||
@@ -2343,7 +2469,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
|
||||
@@ -2386,7 +2512,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 @@
|
||||
*autocmd.txt* For Vim version 7.4. Last change: 2014 Sep 23
|
||||
*autocmd.txt* For Vim version 7.4. Last change: 2015 Mar 21
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -933,6 +933,13 @@ WinLeave Before leaving a window. If the window to be
|
||||
==============================================================================
|
||||
6. Patterns *autocmd-patterns* *{pat}*
|
||||
|
||||
The {pat} argument can be a comma separated list. This works as if the
|
||||
command was given with each pattern separately. Thus this command: >
|
||||
:autocmd BufRead *.txt,*.info set et
|
||||
Is equivalent to: >
|
||||
:autocmd BufRead *.txt set et
|
||||
:autocmd BufRead *.info set et
|
||||
|
||||
The file pattern {pat} is tested for a match against the file name in one of
|
||||
two ways:
|
||||
1. When there is no '/' in the pattern, Vim checks for a match against only
|
||||
|
||||
@@ -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 Dec 05
|
||||
*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.
|
||||
@@ -832,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
|
||||
@@ -1391,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!
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*eval.txt* For Vim version 7.4. Last change: 2014 Dec 07
|
||||
*eval.txt* For Vim version 7.4. Last change: 2015 Apr 11
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -525,7 +525,7 @@ Funcref to a Dictionary, but the "self" variable is not available then.
|
||||
To avoid the extra name for the function it can be defined and directly
|
||||
assigned to a Dictionary in this way: >
|
||||
:let mydict = {'data': [0, 1, 2, 3]}
|
||||
:function mydict.len() dict
|
||||
:function mydict.len()
|
||||
: return len(self.data)
|
||||
:endfunction
|
||||
:echo mydict.len()
|
||||
@@ -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.
|
||||
@@ -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}
|
||||
@@ -2965,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
|
||||
@@ -2981,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()*
|
||||
@@ -3310,7 +3315,7 @@ getchar([expr]) *getchar()*
|
||||
: endwhile
|
||||
:endfunction
|
||||
<
|
||||
You may also receive syntetic characters, such as
|
||||
You may also receive synthetic characters, such as
|
||||
|<CursorHold>|. Often you will want to ignore this and get
|
||||
another character: >
|
||||
:function GetKey()
|
||||
@@ -3634,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.
|
||||
|
||||
@@ -3651,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: >
|
||||
@@ -3664,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")
|
||||
@@ -3690,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: >
|
||||
@@ -4762,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|
|
||||
@@ -4823,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
|
||||
@@ -5562,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}
|
||||
|
||||
@@ -7371,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:
|
||||
@@ -8275,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
|
||||
------------
|
||||
|
||||
@@ -365,7 +365,7 @@ zX Undo manually opened and closed folds: re-apply 'foldlevel'.
|
||||
Also forces recomputing folds, like |zx|.
|
||||
|
||||
*zm*
|
||||
zm Fold more: Subtract one from 'foldlevel'. If 'foldlevel' was
|
||||
zm Fold more: Subtract |v:count1| from 'foldlevel'. If 'foldlevel' was
|
||||
already zero nothing happens.
|
||||
'foldenable' will be set.
|
||||
|
||||
@@ -374,7 +374,7 @@ zM Close all folds: set 'foldlevel' to 0.
|
||||
'foldenable' will be set.
|
||||
|
||||
*zr*
|
||||
zr Reduce folding: Add one to 'foldlevel'.
|
||||
zr Reduce folding: Add |v:count1| to 'foldlevel'.
|
||||
|
||||
*zR*
|
||||
zR Open all folds. This sets 'foldlevel' to highest fold level.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*help.txt* For Vim version 7.4. Last change: 2012 Dec 06
|
||||
*help.txt* For Vim version 7.4. Last change: 2015 Apr 15
|
||||
|
||||
VIM - main help file
|
||||
k
|
||||
@@ -24,6 +24,7 @@ Get specific help: It is possible to go directly to whatever you want help
|
||||
Command-line editing c_ :help c_<Del>
|
||||
Vim command argument - :help -r
|
||||
Option ' :help 'textwidth'
|
||||
Regular expression / :help /[
|
||||
Search for help: Type ":help word", then hit CTRL-D to see matching
|
||||
help entries for "word".
|
||||
Or use ":helpgrep word". |:helpgrep|
|
||||
|
||||
@@ -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 @@
|
||||
*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 @@
|
||||
*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.
|
||||
@@ -3421,7 +3420,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
the height of the cursor can be changed. This can be done by
|
||||
specifying a block cursor, or a percentage for a vertical or
|
||||
horizontal cursor.
|
||||
For a console the 't_SI' and 't_EI' escape sequences are used.
|
||||
For a console the 't_SI', 't_SR', and 't_EI' escape sequences are
|
||||
used.
|
||||
|
||||
The option is a comma separated list of parts. Each part consist of a
|
||||
mode-list and an argument-list:
|
||||
@@ -4717,31 +4717,35 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
{not in Vi}
|
||||
Strings to use in 'list' mode and for the |:list| command. It is a
|
||||
comma separated list of string settings.
|
||||
*lcs-eol*
|
||||
*lcs-eol*
|
||||
eol:c Character to show at the end of each line. When
|
||||
omitted, there is no extra character at the end of the
|
||||
line.
|
||||
*lcs-tab*
|
||||
*lcs-tab*
|
||||
tab:xy Two characters to be used to show a tab. The first
|
||||
char is used once. The second char is repeated to
|
||||
fill the space that the tab normally occupies.
|
||||
"tab:>-" will show a tab that takes four spaces as
|
||||
">---". When omitted, a tab is show as ^I.
|
||||
*lcs-trail*
|
||||
*lcs-space*
|
||||
space:c Character to show for a space. When omitted, spaces
|
||||
are left blank.
|
||||
*lcs-trail*
|
||||
trail:c Character to show for trailing spaces. When omitted,
|
||||
trailing spaces are blank.
|
||||
*lcs-extends*
|
||||
trailing spaces are blank. Overrides the "space"
|
||||
setting for trailing spaces.
|
||||
*lcs-extends*
|
||||
extends:c Character to show in the last column, when 'wrap' is
|
||||
off and the line continues beyond the right of the
|
||||
screen.
|
||||
*lcs-precedes*
|
||||
*lcs-precedes*
|
||||
precedes:c Character to show in the first column, when 'wrap'
|
||||
is off and there is text preceding the character
|
||||
visible in the first column.
|
||||
*lcs-conceal*
|
||||
*lcs-conceal*
|
||||
conceal:c Character to show in place of concealed text, when
|
||||
'conceallevel' is set to 1.
|
||||
*lcs-nbsp*
|
||||
*lcs-nbsp*
|
||||
nbsp:c Character to show for a non-breakable space (character
|
||||
0xA0, 160). Left blank when omitted.
|
||||
|
||||
@@ -4754,7 +4758,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
:set lcs=tab:>-,eol:<,nbsp:%
|
||||
:set lcs=extends:>,precedes:<
|
||||
< The "NonText" highlighting will be used for "eol", "extends" and
|
||||
"precedes". "SpecialKey" for "nbsp", "tab" and "trail".
|
||||
"precedes". "SpecialKey" for "nbsp", "space", "tab" and "trail".
|
||||
|hl-NonText| |hl-SpecialKey|
|
||||
|
||||
*'lpl'* *'nolpl'* *'loadplugins'* *'noloadplugins'*
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 Apr 13
|
||||
|
||||
|
||||
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
|
||||
@@ -600,6 +600,7 @@ For example, to profile the one_script.vim script file: >
|
||||
|
||||
:prof[ile] start {fname} *:prof* *:profile* *E750*
|
||||
Start profiling, write the output in {fname} upon exit.
|
||||
"~/" and environment variables in {fname} will be expanded.
|
||||
If {fname} already exists it will be silently overwritten.
|
||||
The variable |v:profiling| is set to one.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*syntax.txt* For Vim version 7.4. Last change: 2014 Nov 19
|
||||
*syntax.txt* For Vim version 7.4. Last change: 2015 Mar 29
|
||||
|
||||
|
||||
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
|
||||
@@ -3311,6 +3322,32 @@ must not click outside of the pixel strings, but feel free to improve it.
|
||||
It will look much better with a font in a quadratic cell size, e.g. for X: >
|
||||
:set guifont=-*-clean-medium-r-*-*-8-*-*-*-*-80-*
|
||||
|
||||
|
||||
YAML *yaml.vim* *ft-yaml-syntax*
|
||||
|
||||
*g:yaml_schema* *b:yaml_schema*
|
||||
A YAML schema is a combination of a set of tags and a mechanism for resolving
|
||||
non-specific tags. For user this means that YAML parser may, depending on
|
||||
plain scalar contents, treat plain scalar (which can actually be only string
|
||||
and nothing else) as a value of the other type: null, boolean, floating-point,
|
||||
integer. `g:yaml_schema` option determines according to which schema values
|
||||
will be highlighted specially. Supported schemas are
|
||||
|
||||
Schema Description ~
|
||||
failsafe No additional highlighting.
|
||||
json Supports JSON-style numbers, booleans and null.
|
||||
core Supports more number, boolean and null styles.
|
||||
pyyaml In addition to core schema supports highlighting timestamps,
|
||||
but there are some differences in what is recognized as
|
||||
numbers and many additional boolean values not present in core
|
||||
schema.
|
||||
|
||||
Default schema is `core`.
|
||||
|
||||
Note that schemas are not actually limited to plain scalars, but this is the
|
||||
only difference between schemas defined in YAML specification and the only
|
||||
difference defined in the syntax file.
|
||||
|
||||
==============================================================================
|
||||
5. Defining a syntax *:syn-define* *E410*
|
||||
|
||||
@@ -4243,7 +4280,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 +4674,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.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*tabpage.txt* For Vim version 7.4. Last change: 2014 Nov 27
|
||||
*tabpage.txt* For Vim version 7.4. Last change: 2015 Jan 04
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -202,30 +202,38 @@ REORDERING TAB PAGES:
|
||||
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. >
|
||||
:.tabmove " do nothing
|
||||
:-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 begining of the tab
|
||||
:+tabmove " move the tab page to the right
|
||||
:0tabmove " move the tab page to the beginning of the tab
|
||||
" list
|
||||
:$tabmove " move the tab page to the end of the tab list
|
||||
<
|
||||
:tabmove 0 " as above
|
||||
:tabmove " move the tab page to the last
|
||||
:$tabmove " as above
|
||||
:tabmove $ " as above
|
||||
|
||||
:tabm[ove] +[N]
|
||||
:tabm[ove] -[N]
|
||||
Move the current tab page N places to the right (with +) or to
|
||||
the left (with -).
|
||||
the left (with -). >
|
||||
:tabmove - " move the tab page to the left
|
||||
:tabmove -1 " as above
|
||||
:tabmove + " move the tab page to the right
|
||||
:tabmove +1 " as above
|
||||
|
||||
|
||||
Note that although it is possible to move a tab behind the N-th one by using
|
||||
:Ntabmove, it is impossible to move it by N places by using :+Ntabmove. For
|
||||
clarification what +N means in this context see |[range]|.
|
||||
:Ntabmove. And move it by N places by using :+Ntabmove. For 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
|
||||
@@ -271,8 +279,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
|
||||
|
||||
|
||||
@@ -932,6 +932,7 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME*
|
||||
't_RI' term.txt /*'t_RI'*
|
||||
't_RV' term.txt /*'t_RV'*
|
||||
't_SI' term.txt /*'t_SI'*
|
||||
't_SR' term.txt /*'t_SR'*
|
||||
't_Sb' term.txt /*'t_Sb'*
|
||||
't_Sf' term.txt /*'t_Sf'*
|
||||
't_WP' term.txt /*'t_WP'*
|
||||
@@ -995,6 +996,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'*
|
||||
@@ -1398,6 +1400,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 /*\/$*
|
||||
@@ -2726,7 +2730,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*
|
||||
@@ -2761,7 +2765,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*
|
||||
@@ -2774,6 +2777,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*
|
||||
@@ -4871,6 +4875,7 @@ b:current_syntax-variable syntax.txt /*b:current_syntax-variable*
|
||||
b:netrw_lastfile pi_netrw.txt /*b:netrw_lastfile*
|
||||
b:tex_stylish syntax.txt /*b:tex_stylish*
|
||||
b:var eval.txt /*b:var*
|
||||
b:yaml_schema syntax.txt /*b:yaml_schema*
|
||||
baan-folding syntax.txt /*baan-folding*
|
||||
baan-syntax syntax.txt /*baan-syntax*
|
||||
baan.vim syntax.txt /*baan.vim*
|
||||
@@ -5414,9 +5419,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*
|
||||
@@ -5877,6 +5885,7 @@ ft-xhtml-omni insert.txt /*ft-xhtml-omni*
|
||||
ft-xml-omni insert.txt /*ft-xml-omni*
|
||||
ft-xml-syntax syntax.txt /*ft-xml-syntax*
|
||||
ft-xpm-syntax syntax.txt /*ft-xpm-syntax*
|
||||
ft-yaml-syntax syntax.txt /*ft-yaml-syntax*
|
||||
ft_ada.txt ft_ada.txt /*ft_ada.txt*
|
||||
ft_sql.txt ft_sql.txt /*ft_sql.txt*
|
||||
ftdetect filetype.txt /*ftdetect*
|
||||
@@ -6008,6 +6017,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*
|
||||
@@ -6019,6 +6029,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*
|
||||
@@ -6026,10 +6037,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*
|
||||
@@ -6050,6 +6064,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*
|
||||
@@ -6100,6 +6115,7 @@ g:vimsyn_folding syntax.txt /*g:vimsyn_folding*
|
||||
g:vimsyn_maxlines syntax.txt /*g:vimsyn_maxlines*
|
||||
g:vimsyn_minlines syntax.txt /*g:vimsyn_minlines*
|
||||
g:vimsyn_noerror syntax.txt /*g:vimsyn_noerror*
|
||||
g:yaml_schema syntax.txt /*g:yaml_schema*
|
||||
g:zip_nomax pi_zip.txt /*g:zip_nomax*
|
||||
g:zip_shq pi_zip.txt /*g:zip_shq*
|
||||
g:zip_unzipcmd pi_zip.txt /*g:zip_unzipcmd*
|
||||
@@ -6190,6 +6206,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*
|
||||
@@ -6998,6 +7015,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*
|
||||
@@ -7006,6 +7025,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*
|
||||
@@ -7035,6 +7055,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*
|
||||
@@ -7061,6 +7082,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*
|
||||
@@ -7082,6 +7104,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*
|
||||
@@ -7099,6 +7122,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*
|
||||
@@ -7118,6 +7142,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*
|
||||
@@ -7444,6 +7469,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*
|
||||
@@ -8081,6 +8107,7 @@ t_KL term.txt /*t_KL*
|
||||
t_RI term.txt /*t_RI*
|
||||
t_RV term.txt /*t_RV*
|
||||
t_SI term.txt /*t_SI*
|
||||
t_SR term.txt /*t_SR*
|
||||
t_Sb term.txt /*t_Sb*
|
||||
t_Sf term.txt /*t_Sf*
|
||||
t_WP term.txt /*t_WP*
|
||||
@@ -8183,6 +8210,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*
|
||||
@@ -8864,6 +8892,7 @@ xterm-screens tips.txt /*xterm-screens*
|
||||
xterm-scroll-region term.txt /*xterm-scroll-region*
|
||||
xterm-shifted-keys term.txt /*xterm-shifted-keys*
|
||||
y change.txt /*y*
|
||||
yaml.vim syntax.txt /*yaml.vim*
|
||||
yank change.txt /*yank*
|
||||
ye-option-gone version4.txt /*ye-option-gone*
|
||||
year-2000 intro.txt /*year-2000*
|
||||
|
||||
@@ -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'*
|
||||
|
||||
@@ -290,7 +294,8 @@ Added by Vim (there are no standard codes for these):
|
||||
t_WP set window position (Y, X) in pixels *t_WP* *'t_WP'*
|
||||
t_WS set window size (height, width) in characters *t_WS* *'t_WS'*
|
||||
t_SI start insert mode (bar cursor shape) *t_SI* *'t_SI'*
|
||||
t_EI end insert mode (block cursor shape) *t_EI* *'t_EI'*
|
||||
t_SR start replace mode (underline cursor shape) *t_SR* *'t_SR'*
|
||||
t_EI end insert or replace mode (block cursor shape) *t_EI* *'t_EI'*
|
||||
|termcap-cursor-shape|
|
||||
t_RV request terminal version string (for xterm) *t_RV* *'t_RV'*
|
||||
|xterm-8bit| |v:termresponse| |'ttymouse'| |xterm-codes|
|
||||
@@ -410,7 +415,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
|
||||
@@ -434,13 +439,16 @@ If one of these is not available, 't_Sb' and 't_Sf' are used. 't_me' is used
|
||||
to reset to the default colors.
|
||||
|
||||
*termcap-cursor-shape* *termcap-cursor-color*
|
||||
When Vim enters Insert mode the 't_SI' escape sequence is sent. When leaving
|
||||
Insert mode 't_EI' is used. But only if both are defined. This can be used
|
||||
to change the shape or color of the cursor in Insert mode. These are not
|
||||
standard termcap/terminfo entries, you need to set them yourself.
|
||||
When Vim enters Insert mode the 't_SI' escape sequence is sent. When Vim
|
||||
enters Replace mode the 't_SR' escape sequence is sent if it is set, otherwise
|
||||
't_SI' is sent. When leaving Insert mode or Replace mode 't_EI' is used. This
|
||||
can be used to change the shape or color of the cursor in Insert or Replace
|
||||
mode. These are not standard termcap/terminfo entries, you need to set them
|
||||
yourself.
|
||||
Example for an xterm, this changes the color of the cursor: >
|
||||
if &term =~ "xterm"
|
||||
let &t_SI = "\<Esc>]12;purple\x7"
|
||||
let &t_SR = "\<Esc>]12;red\x7"
|
||||
let &t_EI = "\<Esc>]12;blue\x7"
|
||||
endif
|
||||
NOTE: When Vim exits the shape for Normal mode will remain. The shape from
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*todo.txt* For Vim version 7.4. Last change: 2014 Dec 14
|
||||
*todo.txt* For Vim version 7.4. Last change: 2015 Apr 15
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -35,8 +35,10 @@ 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)
|
||||
@@ -51,100 +53,132 @@ 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.
|
||||
|
||||
Still using freed memory after using setloclist(). (lcd, 2014 Jul 23)
|
||||
More info Jul 24. Not clear why.
|
||||
|
||||
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?
|
||||
|
||||
Show Vim icon in Windows context menu. Issue 249. (Mario Weber, 2015 Apr 11)
|
||||
|
||||
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)
|
||||
|
||||
R indent files update. (Jakson Alves de Aquino, Mar 31)
|
||||
|
||||
Updated Python syntax file. (Dmitry Vasiliev, Mar 30)
|
||||
|
||||
":cd C:\Windows\System32\drivers\etc*" does not work, even though the
|
||||
directory exists. (Sergio Gallelli, 2013 Dec 29)
|
||||
|
||||
Using ":windo" to set options in all windows has the side effect that it
|
||||
changes the window layout and the current window. Make a variant that saves
|
||||
and restores. Use in the matchparen plugin.
|
||||
Perhaps we can use ":silent window"?
|
||||
|
||||
Patch to make Ruby 2.2 work. (Andrei Olsen)
|
||||
|
||||
Window drawn wrong with 'laststatus' zero and a command-line window.
|
||||
(Yclept Nemo, 2015 Apr 7)
|
||||
Patch by Christian, Apr 8.
|
||||
|
||||
Patch to make undo files not executable. (Mikael Berthe, 2015 Apr 5)
|
||||
|
||||
C indent: should recognize C11 raw strings. (Mark Lodato, 2015 Mar 1)
|
||||
Need to recognize R"string".
|
||||
|
||||
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.
|
||||
|
||||
Problem using ":try" inside ":execute". (ZyX, 2013 Sep 15)
|
||||
|
||||
Python: ":py raw_input('prompt')" doesn't work. (Manu Hack)
|
||||
|
||||
When window number in Ex range is too high, should give an error:
|
||||
:3close " fails if there are only 2 windows.
|
||||
Patch from Marcin Szamotulski, 2014 Dec 13.
|
||||
|
||||
Patch to recover from X server restart: hint on Issue 203 (2014 Nov 21 18:44)
|
||||
|
||||
Insert a block with virtualedit set does not work correctly.
|
||||
Patch by James McCoy, 2014 Dec 10.
|
||||
|
||||
MS-Windows: When editing a file with a leading space, writing it uses the
|
||||
wrong name. (Aram, 2014 Nov 7) Vim 7.4.
|
||||
|
||||
Add LessCss support. (Jenoma / Alessandro Vioni, 2014 Nov 24)
|
||||
Now with updated license, Nov 24.
|
||||
|
||||
Memory leak using :wviminfo. Issue 296. With Patch by Christian.
|
||||
|
||||
patch to remove FEAT_OSFILETYPE from fileio.c. (Christian, 2014 Nov 12)
|
||||
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.
|
||||
|
||||
Patch to also support range for :argdo, :bufdo, etc.
|
||||
(Marcin Szamotulski, 2014 Dec 7)
|
||||
Asked for tests.
|
||||
Better greek spell checking. Issue 299.
|
||||
|
||||
Ukrainian vimtutor. (Issue 288)
|
||||
When complete() first argument is before where insert started and 'backspace'
|
||||
is Vi compatible, the completion fails. (Hirohito Higashi, 2015 Feb 19)
|
||||
|
||||
Regenerate the Unicode tables in mbyte.c.
|
||||
Diff from ZyX, 2014 Dec 6.
|
||||
|
||||
Patch to fix relative numbers. (Christian Brabandt, 2014 Nov 17)
|
||||
Update Nov 26.
|
||||
|
||||
Patch to fix that getcurpos() returns a negative number, instead of MAXCOL.
|
||||
(Hirohito Higashi, 2014 Dec 8)
|
||||
|
||||
Patch to fix wrong formatting if 'linebreak' is set. (Christian Brabandt, 2014
|
||||
Nov 12)
|
||||
|
||||
Patch to avoid recognizing polkit as hog files. (Issue 292)
|
||||
|
||||
Patch 7.4.468 changed how CTRL-C is handled. It does not take care of mapping
|
||||
CTRL-C in different modes. (Ingo Karkat, 2014 Dec 12)
|
||||
Patch from Christian Brabandt, 2014 Dec 13.
|
||||
Needs to be improved.
|
||||
|
||||
Patch to support hex values for setting option value.
|
||||
(Zyx, 2015 Nov 6)
|
||||
|
||||
On MS-Windows running tests with Mercurial has problems when the fileformat of
|
||||
the input files are changed. (Ken Takata, Taro Muraoka, 2014 Sep 25)
|
||||
Update Nov 5.
|
||||
Weird encryption problems on Windows. (Ben Fritz, 2015 Feb 13)
|
||||
Goes away when disabling the swap file. (might1, Feb 16)
|
||||
|
||||
MS-Windows: Crash opening very long file name starting with "\\".
|
||||
(Christian Brock, 2012 Jun 29)
|
||||
|
||||
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)
|
||||
Build with Python on Mac does not always use the right library.
|
||||
(Kazunobu Kuriyama, 2015 Mar 28)
|
||||
|
||||
ml_updatechunk() is slow when retrying for another encoding. (John Little,
|
||||
2014 Sep 11)
|
||||
|
||||
Patch to add a different escape sequence for replace mode.
|
||||
(Omar Sandoval, 2014 Nov 30)
|
||||
Patch to add 'space' argument to 'listchars'. (Issue 350)
|
||||
Author: David Bürgin
|
||||
|
||||
Patch to allow values greater than 255 for ctermfg/ctermbg on Windows.
|
||||
(Yasuhiro Matsumoto, 2014 Dec 5)
|
||||
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).
|
||||
|
||||
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)
|
||||
@@ -165,11 +199,11 @@ Syntax highlighting slow (hangs) in SASS file. (Niek Bosch, 2013 Aug 21)
|
||||
Patch to add the EndOfBuffer highlight group, used instead of NonText for "~"
|
||||
lines. (Marco Hinz, 2014 Nov 2)
|
||||
|
||||
Patch for fixing a problem of the combination of conceal and linebreak.
|
||||
(Christian Brabandt, 2014 Dec 11)
|
||||
|
||||
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?
|
||||
@@ -190,16 +224,25 @@ was already defined.
|
||||
|
||||
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)
|
||||
@@ -218,9 +261,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)
|
||||
|
||||
@@ -233,15 +273,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.
|
||||
@@ -251,6 +289,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)
|
||||
@@ -314,7 +355,7 @@ Editing an ascii file as ucs-2 or ucs-4 causes display errors.
|
||||
":Next 1 some-arg" does not complain about trailing argument. Also for
|
||||
various other commands. (ZyX, 2014 Mar 30)
|
||||
|
||||
patch to skip sort if no line matches the expression.
|
||||
Patch to skip sort if no line matches the expression.
|
||||
(Christian Brabandt, 2014 Jun 25)
|
||||
|
||||
Patch to add sortuniq(). (Cade Forester, 2014 Mar 19)
|
||||
@@ -350,11 +391,11 @@ Patch to define macros for hardcoded values. (Elias Diem, 2013 Dec 14)
|
||||
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.
|
||||
|
||||
The undo file name can get too long. (Issue 346)
|
||||
For the path use a hash instead of dir%dir%dir%name hash%name.
|
||||
|
||||
Patch to add ":undorecover", get as much text out of the undo file as
|
||||
possible. (Christian Brabandt, 2014 Mar 12, update Aug 22)
|
||||
|
||||
@@ -405,15 +446,9 @@ When evaluating expression in backticks, autoload doesn't work.
|
||||
Using <nr>ifoobar<esc> can slow down Vim. Patch by Christian Brabandt, 2013
|
||||
Dec 13.
|
||||
|
||||
Fold can't be opened after ":move". (Ein Brown)
|
||||
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)
|
||||
|
||||
@@ -441,9 +476,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)
|
||||
|
||||
@@ -502,8 +534,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.
|
||||
|
||||
@@ -567,15 +597,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.
|
||||
|
||||
@@ -584,7 +609,7 @@ line are opened again, but from the wrong directory. Apply 'autochdir' only
|
||||
after starting up?
|
||||
|
||||
Patch to add ":ldo" and ":cdo", execute commands over quickfix list and
|
||||
location list. (Yegappan Lakshmanan, 2013 Jun 2)
|
||||
location list. (Yegappan Lakshmanan, 2013 Jun 2, update 2015 Mar 21)
|
||||
|
||||
8 "stl" and "stlnc" in 'fillchars' don't work for multi-byte characters.
|
||||
Patch by Christian Wellenbrock, 2013 Jul 5.
|
||||
@@ -1388,6 +1413,7 @@ Kondakoff, 2009 May 13)
|
||||
|
||||
Problem with 'langmap' being used on the rhs of a mapping. (Nikolai Weibull,
|
||||
2008 May 14)
|
||||
Possibly related problem: Alexey Muranov, 2015 Apr 2
|
||||
|
||||
Problem with CTRL-F. (Charles Campbell, 2008 March 21)
|
||||
Only happens with "gvim -geometry "160x26+4+27" -u NONE -U NONE prop.c".
|
||||
@@ -1648,12 +1674,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)
|
||||
|
||||
@@ -2098,8 +2118,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
|
||||
@@ -4649,7 +4667,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 */": "^\/\*\(.*[^/]\)*$".
|
||||
@@ -5076,8 +5093,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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
*usr_02.txt* For Vim version 7.4. Last change: 2010 Jul 20
|
||||
*usr_02.txt* For Vim version 7.4. Last change: 2015 Apr 12
|
||||
|
||||
VIM USER MANUAL - by Bram Moolenaar
|
||||
|
||||
@@ -527,9 +527,11 @@ Summary: *help-summary* >
|
||||
:help subject()
|
||||
< Function "subject". >
|
||||
:help -subject
|
||||
< Command-line option "-subject". >
|
||||
< Command-line argument "-subject". >
|
||||
:help +subject
|
||||
< Compile-time feature "+subject". >
|
||||
:help /*
|
||||
< Regular expression item "*" >
|
||||
:help EventName
|
||||
< Autocommand event "EventName". >
|
||||
:help digraphs.txt
|
||||
|
||||
@@ -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 Dec 05
|
||||
*windows.txt* For Vim version 7.4. Last change: 2015 Jan 31
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@@ -698,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
|
||||
@@ -717,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
|
||||
@@ -995,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)
|
||||
|
||||
@@ -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 Dec 06
|
||||
" Last Change: 2015 Apr 06
|
||||
|
||||
" 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
|
||||
@@ -1292,7 +1295,7 @@ au BufNewFile,BufRead *.mush setf mush
|
||||
au BufNewFile,BufRead Mutt{ng,}rc setf muttrc
|
||||
|
||||
" Nano
|
||||
au BufNewFile,BufRead */etc/nanorc,.nanorc setf nanorc
|
||||
au BufNewFile,BufRead */etc/nanorc,*.nanorc setf nanorc
|
||||
|
||||
" Nastran input/DMAP
|
||||
"au BufNewFile,BufRead *.dat setf nastran
|
||||
@@ -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/
|
||||
|
||||
@@ -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-03-27
|
||||
|
||||
if exists('b:did_ftplugin')
|
||||
finish
|
||||
@@ -16,39 +16,38 @@ 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 matchpairs=(:)
|
||||
|
||||
let b:undo_ftplugin = 'setlocal matchpairs< expandtab< softtabstop< shiftwidth< formatoptions< commentstring< comments< iskeyword<'
|
||||
let b:undo_ftplugin = 'setlocal matchpairs< 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 +65,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: 2014 Nov 12
|
||||
" Last Change: 2014 Dec 29
|
||||
|
||||
" To make the ":Man" command available before editing a manual page, source
|
||||
" this script from your startup vimrc file.
|
||||
@@ -159,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:
|
||||
@@ -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 Nov 13
|
||||
" Last Change: 2015 Mar 05
|
||||
|
||||
" Quit when a (custom) syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
@@ -47,16 +47,17 @@ 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
|
||||
@@ -80,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")
|
||||
@@ -330,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
|
||||
@@ -387,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
|
||||
|
||||
|
||||
@@ -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>
|
||||
" Last Change: Oct 23, 2014
|
||||
" Version: 11
|
||||
" 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: 2014 Nov 12
|
||||
" 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
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
" Maintainer: Tobias Rapp <yahuxo@gmx.de>
|
||||
" Version: 0.1.13
|
||||
" URL: http://www.vim.org/scripts/script.php?script_id=945
|
||||
" Last Change: 2013 Apr 24
|
||||
" Last Change: 2015 Apr 13
|
||||
|
||||
" THE ORIGINAL AUTHOR'S NOTES:
|
||||
"
|
||||
@@ -220,7 +220,6 @@ syn region groovyComment start="/\*" end="\*/" contains=@groovyCommen
|
||||
syn match groovyCommentStar contained "^\s*\*[^/]"me=e-1
|
||||
syn match groovyCommentStar contained "^\s*\*$"
|
||||
syn match groovyLineComment "//.*" contains=@groovyCommentSpecial2,groovyTodo,@Spell
|
||||
syn match groovyLineComment "#.*" contains=@groovyCommentSpecial2,groovyTodo,@Spell
|
||||
GroovyHiLink groovyCommentString groovyString
|
||||
GroovyHiLink groovyComment2String groovyString
|
||||
GroovyHiLink groovyCommentCharacter groovyCharacter
|
||||
|
||||
@@ -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\>"
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
" Vim syntax file
|
||||
" Language: php PHP 3/4/5
|
||||
" Maintainer: Jason Woofenden <jason@jasonwoof.com>
|
||||
" Last Change: Sep 18, 2014
|
||||
" URL: https://gitorious.org/jasonwoof/vim-syntax/blobs/master/php.vim
|
||||
" Last Change: Mar 24, 2015
|
||||
" URL: https://jasonwoof.com/gitweb/?p=vim-syntax.git;a=blob;f=php.vim;hb=HEAD
|
||||
" Former Maintainers: Peter Hodge <toomuchphp-vim@yahoo.com>
|
||||
" Debian VIM Maintainers <pkg-vim-maintainers@lists.alioth.debian.org>
|
||||
"
|
||||
|
||||
@@ -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: Apr 10, 2015
|
||||
" Version: 136
|
||||
" 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,shDo,shDerefSimple,shEcho,shEscape,shNumber,shOperator,shPosnParm,shExSingleQuote,shExDoubleQuote,shRedir,shSingleQuote,shDoubleQuote,shStatement,shVariable,shAlias,shTest,shCtrlSeq,shSpecial,shParen,bashSpecialVariables,bashStatement,shIf,shFor
|
||||
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,9 +127,9 @@ 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,@shErrorList,shCaseEsac,shConditional,shDblBrace,shExpr,shFor,shForPP,shIf,shOption,shSet,shTest,shTestOpr
|
||||
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
|
||||
syn cluster shTestList contains=shCharClass,shCommandSub,shComment,shCtrlSeq,shDeref,shDerefSimple,shDoubleQuote,shExDoubleQuote,shExpr,shExSingleQuote,shNumber,shOperator,shSingleQuote,shTest,shTestOpr
|
||||
" Echo: {{{1
|
||||
" ====
|
||||
" This one is needed INSIDE a CommandSub, so that `echo bla` be correct
|
||||
@@ -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,12 +197,12 @@ 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='"'
|
||||
syn match shTestSingleQuote contained '\\.'
|
||||
syn match shTestSingleQuote 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
|
||||
syn region shDblBrace matchgroup=Delimiter start="\[\[" skip=+\\\\\|\\$+ end="\]\]" contains=@shTestList,shComment
|
||||
syn region shDblParen matchgroup=Delimiter start="((" skip=+\\\\\|\\$+ end="))" contains=@shTestList,shComment
|
||||
endif
|
||||
|
||||
" Character Class In Range: {{{1
|
||||
@@ -212,14 +212,15 @@ syn match shCharClass contained "\[:\(backspace\|escape\|return\|xdigit\|alnum
|
||||
" Loops: do, if, while, until {{{1
|
||||
" ======
|
||||
if s:sh_fold_ifdofor
|
||||
syn region shDo fold transparent matchgroup=shConditional start="\<do\>" matchgroup=shConditional end="\<done\>" contains=@shLoopList
|
||||
syn region shIf fold transparent matchgroup=shConditional start="\<if\_s" matchgroup=shConditional skip=+-fi\>+ end="\<;\_s*then\>" end="\<fi\>" contains=@shIfList
|
||||
syn region shFor fold matchgroup=shLoop start="\<for\ze\_s\s*\%(((\)\@!" end="\<in\_s" end="\<do\>"me=e-2 contains=@shLoopList,shDblParen skipwhite nextgroup=shCurlyIn
|
||||
syn region shDo fold transparent matchgroup=shConditional start="\<do\>" matchgroup=shConditional end="\<done\>" contains=@shLoopList
|
||||
syn region shIf fold transparent matchgroup=shConditional start="\<if\_s" matchgroup=shConditional skip=+-fi\>+ end="\<;\_s*then\>" end="\<fi\>" contains=@shIfList
|
||||
syn region shFor fold matchgroup=shLoop start="\<for\ze\_s\s*\%(((\)\@!" end="\<in\_s" end="\<do\>"me=e-2 contains=@shLoopList,shDblParen skipwhite nextgroup=shCurlyIn
|
||||
syn region shForPP fold matchgroup=shLoop start='\<for\>\_s*((' end='))' contains=shTestOpr
|
||||
else
|
||||
syn region shDo transparent matchgroup=shConditional start="\<do\>" matchgroup=shConditional end="\<done\>" contains=@shLoopList
|
||||
syn region shIf transparent matchgroup=shConditional start="\<if\_s" matchgroup=shConditional skip=+-fi\>+ end="\<;\_s*then\>" end="\<fi\>" contains=@shIfList
|
||||
syn region shFor matchgroup=shLoop start="\<for\ze\_s\s*\%(((\)\@!" end="\<in\>" end="\<do\>"me=e-2 contains=@shLoopList,shDblParen skipwhite nextgroup=shCurlyIn
|
||||
syn match shForPP '\<for\>\ze\_s*(('
|
||||
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 region shForPP matchgroup=shLoop start='\<for\>\_s*((' end='))' contains=shTestOpr
|
||||
endif
|
||||
if exists("b:is_kornshell") || exists("b:is_bash")
|
||||
syn cluster shCaseList 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*$"
|
||||
@@ -408,19 +409,27 @@ endif
|
||||
|
||||
if exists("b:is_bash")
|
||||
if s:sh_fold_functions
|
||||
syn region shFunctionOne fold matchgroup=shFunction start="^\s*\h[-a-zA-Z_0-9]*\s*()\_s*{" end="}" contains=@shFunctionList skipwhite skipnl nextgroup=shFunctionStart,shQuickComment
|
||||
syn region shFunctionTwo fold matchgroup=shFunction start="\h[-a-zA-Z_0-9]*\s*\%(()\)\=\_s*{" end="}" contains=shFunctionKey,@shFunctionList contained skipwhite skipnl nextgroup=shFunctionStart,shQuickComment
|
||||
syn region shFunctionOne fold matchgroup=shFunction start="^\s*\h[-a-zA-Z_0-9]*\s*()\_s*{" end="}" contains=@shFunctionList skipwhite skipnl nextgroup=shFunctionStart,shQuickComment
|
||||
syn region shFunctionTwo fold matchgroup=shFunction start="\h[-a-zA-Z_0-9]*\s*\%(()\)\=\_s*{" end="}" contains=shFunctionKey,@shFunctionList contained skipwhite skipnl nextgroup=shFunctionStart,shQuickComment
|
||||
syn region shFunctionThree fold matchgroup=shFunction start="^\s*\h[-a-zA-Z_0-9]*\s*()\_s*(" end=")" contains=@shFunctionList skipwhite skipnl nextgroup=shFunctionStart,shQuickComment
|
||||
syn region shFunctionFour fold matchgroup=shFunction start="\h[-a-zA-Z_0-9]*\s*\%(()\)\=\_s*)" end=")" contains=shFunctionKey,@shFunctionList contained skipwhite skipnl nextgroup=shFunctionStart,shQuickComment
|
||||
else
|
||||
syn region shFunctionOne matchgroup=shFunction start="^\s*\h[-a-zA-Z_0-9]*\s*()\_s*{" end="}" contains=@shFunctionList
|
||||
syn region shFunctionTwo matchgroup=shFunction start="\h[-a-zA-Z_0-9]*\s*\%(()\)\=\_s*{" end="}" contains=shFunctionKey,@shFunctionList contained
|
||||
syn region shFunctionOne matchgroup=shFunction start="^\s*\h[-a-zA-Z_0-9]*\s*()\_s*{" end="}" contains=@shFunctionList
|
||||
syn region shFunctionTwo matchgroup=shFunction start="\h[-a-zA-Z_0-9]*\s*\%(()\)\=\_s*{" end="}" contains=shFunctionKey,@shFunctionList contained
|
||||
syn region shFunctionThree matchgroup=shFunction start="^\s*\h[-a-zA-Z_0-9]*\s*()\_s*(" end=")" contains=@shFunctionList
|
||||
syn region shFunctionFour matchgroup=shFunction start="\h[-a-zA-Z_0-9]*\s*\%(()\)\=\_s*(" end=")" contains=shFunctionKey,@shFunctionList contained
|
||||
endif
|
||||
else
|
||||
if s:sh_fold_functions
|
||||
syn region shFunctionOne fold matchgroup=shFunction start="^\s*\h\w*\s*()\_s*{" end="}" contains=@shFunctionList skipwhite skipnl nextgroup=shFunctionStart,shQuickComment
|
||||
syn region shFunctionTwo fold matchgroup=shFunction start="\h\w*\s*\%(()\)\=\_s*{" end="}" contains=shFunctionKey,@shFunctionList contained skipwhite skipnl nextgroup=shFunctionStart,shQuickComment
|
||||
syn region shFunctionOne fold matchgroup=shFunction start="^\s*\h\w*\s*()\_s*{" end="}" contains=@shFunctionList skipwhite skipnl nextgroup=shFunctionStart,shQuickComment
|
||||
syn region shFunctionTwo fold matchgroup=shFunction start="\h\w*\s*\%(()\)\=\_s*{" end="}" contains=shFunctionKey,@shFunctionList contained skipwhite skipnl nextgroup=shFunctionStart,shQuickComment
|
||||
syn region shFunctionThree fold matchgroup=shFunction start="^\s*\h\w*\s*()\_s*(" end=")" contains=@shFunctionList skipwhite skipnl nextgroup=shFunctionStart,shQuickComment
|
||||
syn region shFunctionFour fold matchgroup=shFunction start="\h\w*\s*\%(()\)\=\_s*(" end=")" contains=shFunctionKey,@shFunctionList contained skipwhite skipnl nextgroup=shFunctionStart,shQuickComment
|
||||
else
|
||||
syn region shFunctionOne matchgroup=shFunction start="^\s*\h\w*\s*()\_s*{" end="}" contains=@shFunctionList
|
||||
syn region shFunctionTwo matchgroup=shFunction start="\h\w*\s*\%(()\)\=\_s*{" end="}" contains=shFunctionKey,@shFunctionList contained
|
||||
syn region shFunctionOne matchgroup=shFunction start="^\s*\h\w*\s*()\_s*{" end="}" contains=@shFunctionList
|
||||
syn region shFunctionTwo matchgroup=shFunction start="\h\w*\s*\%(()\)\=\_s*{" end="}" contains=shFunctionKey,@shFunctionList contained
|
||||
syn region shFunctionThree matchgroup=shFunction start="^\s*\h\w*\s*()\_s*(" end=")" contains=@shFunctionList
|
||||
syn region shFunctionFour matchgroup=shFunction start="\h\w*\s*\%(()\)\=\_s*(" end=")" contains=shFunctionKey,@shFunctionList contained
|
||||
endif
|
||||
endif
|
||||
|
||||
@@ -450,21 +459,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:]]"
|
||||
@@ -598,7 +607,6 @@ 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
|
||||
|
||||
@@ -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: Oct 23, 2014
|
||||
" Version: 7
|
||||
" 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: Apr 02, 2015
|
||||
" Version: 84
|
||||
" 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")
|
||||
@@ -389,22 +391,29 @@ endif
|
||||
" particular support for bold and italic {{{1
|
||||
if s:tex_fast =~ 'b'
|
||||
if s:tex_conceal =~ 'b'
|
||||
syn region texBoldStyle matchgroup=texTypeStyle start="\\textbf\s*{" end="}" concealends contains=@texBoldGroup
|
||||
syn region texBoldItalStyle matchgroup=texTypeStyle start="\\textit\s*{" end="}" concealends contains=@texItalGroup
|
||||
syn region texItalStyle matchgroup=texTypeStyle start="\\textit\s*{" end="}" concealends contains=@texItalGroup
|
||||
syn region texItalBoldStyle matchgroup=texTypeStyle start="\\textbf\s*{" end="}" concealends contains=@texBoldGroup
|
||||
if !exists("g:tex_nospell") || !g:tex_nospell
|
||||
syn region texBoldStyle matchgroup=texTypeStyle start="\\textbf\s*\ze{" matchgroup=Delimiter end="}" concealends contains=@texBoldGroup,@Spell
|
||||
syn region texBoldItalStyle matchgroup=texTypeStyle start="\\textit\s*\ze{" matchgroup=Delimiter end="}" concealends contains=@texItalGroup,@Spell
|
||||
syn region texItalStyle matchgroup=texTypeStyle start="\\textit\s*\ze{" matchgroup=Delimiter end="}" concealends contains=@texItalGroup,@Spell
|
||||
syn region texItalBoldStyle matchgroup=texTypeStyle start="\\textbf\s*\ze{" matchgroup=Delimiter end="}" concealends contains=@texBoldGroup,@Spell
|
||||
else
|
||||
syn region texBoldStyle matchgroup=texTypeStyle start="\\textbf\s*\ze{" matchgroup=Delimiter end="}" concealends contains=@texBoldGroup
|
||||
syn region texBoldItalStyle matchgroup=texTypeStyle start="\\textit\s*\ze{" matchgroup=Delimiter end="}" concealends contains=@texItalGroup
|
||||
syn region texItalStyle matchgroup=texTypeStyle start="\\textit\s*\ze{" matchgroup=Delimiter end="}" concealends contains=@texItalGroup
|
||||
syn region texItalBoldStyle matchgroup=texTypeStyle start="\\textbf\s*\ze{" matchgroup=Delimiter end="}" concealends contains=@texBoldGroup
|
||||
endif
|
||||
endif
|
||||
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 +550,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 +583,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
|
||||
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 +674,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 +805,8 @@ if has("conceal") && &enc == 'utf-8'
|
||||
\ ['left(' , '('],
|
||||
\ ['left\[' , '['],
|
||||
\ ['left\\{' , '{'],
|
||||
\ ['leftarrow' , '⟵'],
|
||||
\ ['Leftarrow' , '⟸'],
|
||||
\ ['leftarrow' , '←'],
|
||||
\ ['Leftarrow' , '⇐'],
|
||||
\ ['leftarrowtail' , '↢'],
|
||||
\ ['leftharpoondown', '↽'],
|
||||
\ ['leftharpoonup' , '↼'],
|
||||
@@ -881,8 +892,8 @@ if has("conceal") && &enc == 'utf-8'
|
||||
\ ['right)' , ')'],
|
||||
\ ['right]' , ']'],
|
||||
\ ['right\\}' , '}'],
|
||||
\ ['rightarrow' , '⟶'],
|
||||
\ ['Rightarrow' , '⟹'],
|
||||
\ ['rightarrow' , '→'],
|
||||
\ ['Rightarrow' , '⇒'],
|
||||
\ ['rightarrowtail' , '↣'],
|
||||
\ ['rightleftharpoons', '⇌'],
|
||||
\ ['rightsquigarrow', '↝'],
|
||||
@@ -995,6 +1006,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 +1023,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 +1034,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 +1257,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 +1297,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: Apr 02, 2015
|
||||
" Version: 7.4-33
|
||||
" Automatically generated keyword lists: {{{1
|
||||
|
||||
" Quit when a syntax file was already loaded {{{2
|
||||
@@ -14,26 +14,28 @@ 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] argl[ocal] ba[ll] bn[ext] breakd[el] bufdo cabc[lear] 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] nore on[ly] pe popu[p] pro pta[g] ptn[ext] pw[d] py[thon] r red[o] retu[rn] rub[y] rv[iminfo] sba[ll] sbN[ext] scripte[ncoding] setf[iletype] sh[ell] 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] xprop
|
||||
syn keyword vimCommand contained ab argd ar[gs] bd[elete] bN[ext] breakl[ist] b[uffer] cad[dbuffer] 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] nos[wapfile] o[pen] ped[it] pp[op] profd[el] ptf[irst] ptN[ext] py python3 re redr[aw] rew[ind] rubyd[o] sal[l] sbf[irst] sbp[revious] scr[iptnames] setg[lobal] 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 xunme
|
||||
syn keyword vimCommand contained abc[lear] argd[elete] argu[ment] bel[owright] bo[tright] br[ewind] buffers cadde[xpr] 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 nu[mber] opt[ions] pe[rl] pr prof[ile] ptj[ump] ptp[revious] py3 q r[ead] redraws[tatus] ri[ght] rubyf[ile] san[dbox] sbl[ast] sbr[ewind] scs setl[ocal] 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 xunmenu
|
||||
syn keyword vimCommand contained abo[veleft] argdo as[cii] bf[irst] bp[revious] bro[wse] bun[load] 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 o ownsyntax perld[o] pre[serve] promptf[ind] ptl[ast] ptr[ewind] py3do qa[ll] rec[over] reg[isters] rightb[elow] rundo sa[rgument] sbm[odified] sb[uffer] scscope sf[ind] 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 xwininfo
|
||||
syn keyword vimCommand contained al[l] arge[dit] au bl[ast] brea[k] bu bw[ipeout] 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] ol[dfiles] p po[p] prev[ious] promptr[epl] ptn pts[elect] pydo q[uit] red res[ize] ru ru[ntime] sav[eas] sbn[ext] scr se[t] sfir[st] 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 y[ank]
|
||||
syn keyword vimCommand contained ar argg[lobal] bad[d] bm[odified] breaka[dd] buf c 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 nor omapc[lear] pc[lose] popu p[rint] ps[earch] ptN pu[t] pyf[ile] quita[ll] redi[r] ret[ab]
|
||||
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 ambw ari aw backupext beval biosk breakindent bsdir cb cfu cinkeys 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 anti arshape awa backupskip bex bioskey breakindentopt bsk cc ch cino 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 antialias autochdir background balloondelay bexpr bk bri bt ccv charconvert cinoptions 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 ar autoindent backspace ballooneval bg bkc briopt bufhidden cd ci cinw 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 arab autoread backup balloonexpr bh bl brk buflisted cdpath cin cinwords 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 arabic autowrite backupcopy bdir bin bomb browsedir buftype cedit cindent clipboard 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 arabicshape autowriteall backupdir bdlay binary breakat bs casemap cf cink cm 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
|
||||
syn keyword vimOption contained ambiwidth
|
||||
|
||||
" 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
|
||||
@@ -46,8 +48,8 @@ syn keyword vimOption contained invai invaltkeymap invar invarabicshape invautoc
|
||||
syn keyword vimOption contained invakm invanti invarab invari invautoindent invautowriteall invbackup invbin invbioskey invbomb invci invcompatible invconskey invcrb invcscopeverbose invcsverb invcursorbind invdeco invdiff inveb invek invequalalways invet invexrc invfileignorecase invfoldenable invguipty invhk
|
||||
|
||||
" termcap codes (which can also be set) {{{2
|
||||
syn keyword vimOption contained t_AB t_al t_bc t_ce t_cl t_Co t_Cs t_CS t_CV t_da t_db t_dl t_DL t_EI t_F1 t_F2 t_F3 t_F4 t_F5 t_F6 t_F7 t_F8 t_F9 t_fs t_IE t_IS t_k1 t_K1 t_k2 t_k3 t_K3 t_k4 t_K4 t_k5 t_K5 t_k6 t_K6 t_k7 t_K7 t_k8 t_K8 t_k9 t_K9 t_KA t_kb t_kB t_KB t_KC t_kd t_kD t_KD t_ke t_KE t_KF t_KG t_kh t_KH t_kI t_KI t_KJ t_KK t_kl t_KL t_kN t_kP t_kr t_ks t_ku t_le t_mb t_md t_me t_mr t_ms t_nd t_op t_RI t_RV t_Sb t_se t_Sf t_SI t_so t_sr t_te t_ti t_ts t_u7 t_ue t_us t_ut t_vb t_ve t_vi t_vs t_WP t_WS t_xs t_ZH t_ZR
|
||||
syn keyword vimOption contained t_AF t_AL t_cd t_Ce t_cm t_cs
|
||||
syn keyword vimOption contained t_AB t_al t_bc t_ce t_cl t_Co t_Cs t_CV t_da t_db t_dl t_DL t_EI t_F1 t_F2 t_F3 t_F4 t_F5 t_F6 t_F7 t_F8 t_F9 t_fs t_IE t_IS t_k1 t_K1 t_k2 t_k3 t_K3 t_k4 t_K4 t_k5 t_K5 t_k6 t_K6 t_k7 t_K7 t_k8 t_K8 t_k9 t_K9 t_KA t_kb t_kB t_KB t_KC t_kd t_kD t_KD t_ke t_KE t_KF t_KG t_kh t_KH t_kI t_KI t_KJ t_KK t_kl t_KL t_kN t_kP t_kr t_ks t_ku t_le t_mb t_md t_me t_mr t_ms t_nd t_op t_RI t_RV t_Sb t_se t_Sf t_SI t_so t_sr t_te t_ti t_ts t_u7 t_ue t_us t_ut t_vb t_ve t_vi t_vs t_WP t_WS t_xn t_xs t_ZH t_ZR
|
||||
syn keyword vimOption contained t_AF t_AL t_cd t_Ce t_cm t_cs t_CS
|
||||
syn match vimOption contained "t_%1"
|
||||
syn match vimOption contained "t_#2"
|
||||
syn match vimOption contained "t_#4"
|
||||
@@ -62,7 +64,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 +75,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 getcurpos getfperm getftype getmatches getqflist gettabvar getwinposy glob2regpat 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 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 getcwd getfsize getline getpid getreg gettabwinvar getwinvar 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 sin 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 getcmdwintype getfontname getftime getloclist getpos getregtype getwinposx glob 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 sinh
|
||||
|
||||
"--- syntax here and above generated by mkvimvim ---
|
||||
" Special Vim Highlighting (not automatic) {{{1
|
||||
@@ -99,10 +101,10 @@ 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#_]*\>"
|
||||
@@ -134,13 +136,13 @@ 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
|
||||
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
|
||||
@@ -148,12 +150,11 @@ 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 matchgroup=vimSep start="{" end="}" contains=@vimOperGroup nextgroup=vimVar,vimFuncVar
|
||||
if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_noopererror")
|
||||
syn match vimOperError ")"
|
||||
endif
|
||||
@@ -161,15 +162,15 @@ 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'
|
||||
syn region vimFuncBody contained fold start="\ze(" matchgroup=vimCommand end="\<\(endf\>\|endfu\%[nction]\>\)" contains=@vimFuncBodyList
|
||||
syn region vimFuncBody contained fold start="\ze\s*(" matchgroup=vimCommand end="\<\(endf\>\|endfu\%[nction]\>\)" contains=@vimFuncBodyList
|
||||
else
|
||||
syn region vimFuncBody contained start="\ze(" matchgroup=vimCommand end="\<\(endf\>\|endfu\%[nction]\>\)" contains=@vimFuncBodyList
|
||||
syn region vimFuncBody contained start="\ze\s*(" 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\+"
|
||||
@@ -190,14 +191,16 @@ syn match vimSpecFileMod "\(:[phtre]\)\+" contained
|
||||
" =======================
|
||||
syn cluster vimUserCmdList contains=vimAddress,vimSyntax,vimHighlight,vimAutoCmd,vimCmplxRepeat,vimComment,vimCtrlChar,vimEscapeBrace,vimFilter,vimFunc,vimFuncName,vimFunction,vimFunctionError,vimIsCommand,vimMark,vimNotation,vimNumber,vimOper,vimRegion,vimRegister,vimLet,vimSet,vimSetEqual,vimSetString,vimSpecFile,vimString,vimSubst,vimSubstRep,vimSubstRange,vimSynLine
|
||||
syn keyword vimUserCommand contained com[mand]
|
||||
syn match vimUserCmd "\<com\%[mand]!\=\>.*$" contains=vimUserAttrb,vimUserCommand,@vimUserCmdList
|
||||
syn match vimUserAttrb contained "-n\%[args]=[01*?+]" contains=vimUserAttrbKey,vimOper
|
||||
syn match vimUserAttrb contained "-com\%[plete]=" contains=vimUserAttrbKey,vimOper nextgroup=vimUserAttrbCmplt,vimUserCmdError
|
||||
syn match vimUserAttrb contained "-ra\%[nge]\(=%\|=\d\+\)\=" contains=vimNumber,vimOper,vimUserAttrbKey
|
||||
syn match vimUserAttrb contained "-cou\%[nt]=\d\+" contains=vimNumber,vimOper,vimUserAttrbKey
|
||||
syn match vimUserAttrb contained "-bang\=\>" contains=vimOper,vimUserAttrbKey
|
||||
syn match vimUserAttrb contained "-bar\>" contains=vimOper,vimUserAttrbKey
|
||||
syn match vimUserAttrb contained "-re\%[gister]\>" contains=vimOper,vimUserAttrbKey
|
||||
syn match vimUserCmd "\<com\%[mand]!\=\>.*$" contains=vimUserAttrb,vimUserAttrbError,vimUserCommand,@vimUserCmdList
|
||||
syn match vimUserAttrbError contained "-\a\+\ze\s"
|
||||
syn match vimUserAttrb contained "-nargs=[01*?+]" contains=vimUserAttrbKey,vimOper
|
||||
syn match vimUserAttrb contained "-complete=" contains=vimUserAttrbKey,vimOper nextgroup=vimUserAttrbCmplt,vimUserCmdError
|
||||
syn match vimUserAttrb contained "-range\(=%\|=\d\+\)\=" contains=vimNumber,vimOper,vimUserAttrbKey
|
||||
syn match vimUserAttrb contained "-count\(=\d\+\)\=" contains=vimNumber,vimOper,vimUserAttrbKey
|
||||
syn match vimUserAttrb contained "-bang\>" contains=vimOper,vimUserAttrbKey
|
||||
syn match vimUserAttrb contained "-bar\>" contains=vimOper,vimUserAttrbKey
|
||||
syn match vimUserAttrb contained "-buffer\>" contains=vimOper,vimUserAttrbKey
|
||||
syn match vimUserAttrb contained "-register\>" contains=vimOper,vimUserAttrbKey
|
||||
if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_nousercmderror")
|
||||
syn match vimUserCmdError contained "\S\+\>"
|
||||
endif
|
||||
@@ -271,7 +274,7 @@ syn match vimMark "\<norm\%[al]\s\zs'[a-zA-Z0-9]" nextgroup=vimOper,vimMarkNumbe
|
||||
syn match vimMarkNumber "[-+]\d\+" nextgroup=vimSubst contained contains=vimOper
|
||||
syn match vimPlainMark contained "'[a-zA-Z0-9]"
|
||||
|
||||
syn match vimRegister '[^,;[{]\zs"[a-zA-Z0-9.%#:_\-/]\ze[^a-zA-Z_":0-9]'
|
||||
syn match vimRegister '[^,;[{: \t]\zs"[a-zA-Z0-9.%#:_\-/]\ze[^a-zA-Z_":0-9]'
|
||||
syn match vimRegister '\<norm\s\+\zs"[a-zA-Z0-9]'
|
||||
syn match vimRegister '\<normal\s\+\zs"[a-zA-Z0-9]'
|
||||
syn match vimRegister '@"'
|
||||
@@ -291,7 +294,7 @@ syn match vimCmplxRepeat '@[0-9a-z".=@:]\ze\($\|[^a-zA-Z]\>\)'
|
||||
syn region vimSet matchgroup=vimCommand start="\<\%(setl\%[ocal]\|setg\%[lobal]\|se\%[t]\)\>" skip="\%(\\\\\)*\\." end="$" matchgroup=vimNotation end="<[cC][rR]>" keepend oneline contains=vimSetEqual,vimOption,vimErrSetting,vimComment,vimSetString,vimSetMod
|
||||
syn region vimSetEqual contained start="[=:]\|[-+^]=" skip="\\\\\|\\\s" end="[| \t]\|$"me=e-1 contains=vimCtrlChar,vimSetSep,vimNotation,vimEnvvar oneline
|
||||
syn region vimSetString contained start=+="+hs=s+1 skip=+\\\\\|\\"+ end=+"+ contains=vimCtrlChar
|
||||
syn match vimSetSep contained "[,:]"
|
||||
syn match vimSetSep contained "[,:]" skipwhite nextgroup=vimCommand
|
||||
syn match vimSetMod contained "&vim\=\|[!&?<]\|all&"
|
||||
|
||||
" Let {{{2
|
||||
@@ -326,11 +329,11 @@ 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 keyword vimMapModKey contained buffer expr leader localleader nowait plug script sid silent unique
|
||||
syn case match
|
||||
|
||||
" Menus {{{2
|
||||
@@ -360,8 +363,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 +410,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,14 +422,14 @@ 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
|
||||
@@ -441,7 +444,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 +470,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
|
||||
@@ -550,27 +553,43 @@ syn region vimGlobal matchgroup=Statement start='\<v\%[global]!\=/' skip='\\.' e
|
||||
" Allows users to specify the type of embedded script highlighting
|
||||
" they want: (perl/python/ruby/tcl support)
|
||||
" g:vimsyn_embed == 0 : don't embed any scripts
|
||||
" g:vimsyn_embed ~= 'l' : embed lua (but only if vim supports it)
|
||||
" g:vimsyn_embed ~= 'm' : embed mzscheme (but only if vim supports it)
|
||||
" g:vimsyn_embed ~= 'p' : embed perl (but only if vim supports it)
|
||||
" g:vimsyn_embed ~= 'P' : embed python (but only if vim supports it)
|
||||
" g:vimsyn_embed ~= 'r' : embed ruby (but only if vim supports it)
|
||||
" g:vimsyn_embed ~= 't' : embed tcl (but only if vim supports it)
|
||||
" g:vimsyn_embed =~ 'l' : embed lua (but only if vim supports it)
|
||||
" g:vimsyn_embed =~ 'm' : embed mzscheme (but only if vim supports it)
|
||||
" g:vimsyn_embed =~ 'p' : embed perl (but only if vim supports it)
|
||||
" g:vimsyn_embed =~ 'P' : embed python (but only if vim supports it)
|
||||
" g:vimsyn_embed =~ 'r' : embed ruby (but only if vim supports it)
|
||||
" g:vimsyn_embed =~ 't' : embed tcl (but only if vim supports it)
|
||||
if has("win32") || has("win95") || has("win64") || has("win16")
|
||||
" apparently has("tcl") has been hanging vim on some windows systems with cygwin
|
||||
let s:trytcl= (&shell !~ '\<\%(bash\>\|4[nN][tT]\|\<zsh\)\>\%(\.exe\)\=$')
|
||||
else
|
||||
let s:trytcl= 1
|
||||
endif
|
||||
if !exists("g:vimsyn_embed")
|
||||
let g:vimsyn_embed= "lmpPr"
|
||||
" for default g:vimsyn_embed, determine what to allow based on whether this vim supports it
|
||||
let g:vimsyn_embed= ""
|
||||
if has("lua") |let g:vimsyn_embed= g:vimsyn_embed."l"|endif
|
||||
if has("mzscheme") |let g:vimsyn_embed= g:vimsyn_embed."m"|endif
|
||||
if has("perl") |let g:vimsyn_embed= g:vimsyn_embed."p"|endif
|
||||
if has("python") |let g:vimsyn_embed= g:vimsyn_embed."P"
|
||||
elseif has("python3")|let g:vimsyn_embed= g:vimsyn_embed."P"|endif
|
||||
if has("ruby") |let g:vimsyn_embed= g:vimsyn_embed."r"|endif
|
||||
if s:trytcl
|
||||
if has("tcl") |let g:vimsyn_embed= g:vimsyn_embed."t"|endif
|
||||
endif
|
||||
endif
|
||||
|
||||
" [-- lua --] {{{3
|
||||
let s:luapath= fnameescape(expand("<sfile>:p:h")."/lua.vim")
|
||||
if !filereadable(s:luapath)
|
||||
for s:luapath in split(globpath(&rtp,"syntax/lua.vim"),"\n")
|
||||
if filereadable(fnameescape(s:luapath))
|
||||
let s:luapath= fnameescape(s:luapath)
|
||||
for luapath in split(globpath(&rtp,"syntax/lua.vim"),"\n")
|
||||
if filereadable(luapath)
|
||||
let s:luapath= fnameescape(luapath)
|
||||
break
|
||||
endif
|
||||
endfor
|
||||
endif
|
||||
if (g:vimsyn_embed =~ 'l' && has("lua")) && filereadable(s:luapath)
|
||||
if g:vimsyn_embed =~ 'l' && has("lua") && filereadable(s:luapath)
|
||||
unlet! b:current_syntax
|
||||
exe "syn include @vimLuaScript ".s:luapath
|
||||
if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'l'
|
||||
@@ -590,14 +609,14 @@ unlet s:luapath
|
||||
" [-- perl --] {{{3
|
||||
let s:perlpath= fnameescape(expand("<sfile>:p:h")."/perl.vim")
|
||||
if !filereadable(s:perlpath)
|
||||
for s:perlpath in split(globpath(&rtp,"syntax/perl.vim"),"\n")
|
||||
if filereadable(fnameescape(s:perlpath))
|
||||
let s:perlpath= fnameescape(s:perlpath)
|
||||
for perlpath in split(globpath(&rtp,"syntax/perl.vim"),"\n")
|
||||
if filereadable(fnameescape(perlpath))
|
||||
let s:perlpath= fnameescape(perlpath)
|
||||
break
|
||||
endif
|
||||
endfor
|
||||
endif
|
||||
if (g:vimsyn_embed =~ 'p' && has("perl")) && filereadable(s:perlpath)
|
||||
if g:vimsyn_embed =~ 'p' && has("perl") && filereadable(s:perlpath)
|
||||
unlet! b:current_syntax
|
||||
exe "syn include @vimPerlScript ".s:perlpath
|
||||
if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'p'
|
||||
@@ -617,14 +636,14 @@ unlet s:perlpath
|
||||
" [-- ruby --] {{{3
|
||||
let s:rubypath= fnameescape(expand("<sfile>:p:h")."/ruby.vim")
|
||||
if !filereadable(s:rubypath)
|
||||
for s:rubypath in split(globpath(&rtp,"syntax/ruby.vim"),"\n")
|
||||
if filereadable(fnameescape(s:rubypath))
|
||||
let s:rubypath= fnameescape(s:rubypath)
|
||||
for rubypath in split(globpath(&rtp,"syntax/ruby.vim"),"\n")
|
||||
if filereadable(fnameescape(rubypath))
|
||||
let s:rubypath= fnameescape(rubypath)
|
||||
break
|
||||
endif
|
||||
endfor
|
||||
endif
|
||||
if (g:vimsyn_embed =~ 'r' && has("ruby")) && filereadable(s:rubypath)
|
||||
if g:vimsyn_embed =~ 'r' && has("ruby") && filereadable(s:rubypath)
|
||||
unlet! b:current_syntax
|
||||
exe "syn include @vimRubyScript ".s:rubypath
|
||||
if exists("g:vimsyn_folding") && g:vimsyn_folding =~ 'r'
|
||||
@@ -643,9 +662,9 @@ unlet s:rubypath
|
||||
" [-- python --] {{{3
|
||||
let s:pythonpath= fnameescape(expand("<sfile>:p:h")."/python.vim")
|
||||
if !filereadable(s:pythonpath)
|
||||
for s:pythonpath in split(globpath(&rtp,"syntax/python.vim"),"\n")
|
||||
if filereadable(fnameescape(s:pythonpath))
|
||||
let s:pythonpath= fnameescape(s:pythonpath)
|
||||
for pythonpath in split(globpath(&rtp,"syntax/python.vim"),"\n")
|
||||
if filereadable(fnameescape(pythonpath))
|
||||
let s:pythonpath= fnameescape(pythonpath)
|
||||
break
|
||||
endif
|
||||
endfor
|
||||
@@ -656,30 +675,30 @@ 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
|
||||
|
||||
" [-- tcl --] {{{3
|
||||
if has("win32") || has("win95") || has("win64") || has("win16")
|
||||
" apparently has("tcl") has been hanging vim on some windows systems with cygwin
|
||||
let s:trytcl= (&shell !~ '\<\%(bash\>\|4[nN][tT]\|\<zsh\)\>\%(\.exe\)\=$')
|
||||
else
|
||||
let s:trytcl= 1
|
||||
endif
|
||||
if s:trytcl
|
||||
let s:tclpath= fnameescape(expand("<sfile>:p:h")."/tcl.vim")
|
||||
if !filereadable(s:tclpath)
|
||||
for s:tclpath in split(globpath(&rtp,"syntax/tcl.vim"),"\n")
|
||||
if filereadable(fnameescape(s:tclpath))
|
||||
let s:tclpath= fnameescape(s:tclpath)
|
||||
for tclpath in split(globpath(&rtp,"syntax/tcl.vim"),"\n")
|
||||
if filereadable(fnameescape(tclpath))
|
||||
let s:tclpath= fnameescape(tclpath)
|
||||
break
|
||||
endif
|
||||
endfor
|
||||
@@ -709,9 +728,9 @@ unlet s:trytcl
|
||||
" [-- mzscheme --] {{{3
|
||||
let s:mzschemepath= fnameescape(expand("<sfile>:p:h")."/scheme.vim")
|
||||
if !filereadable(s:mzschemepath)
|
||||
for s:mzschemepath in split(globpath(&rtp,"syntax/mzscheme.vim"),"\n")
|
||||
if filereadable(fnameescape(s:mzschemepath))
|
||||
let s:mzschemepath= fnameescape(s:mzschemepath)
|
||||
for mzschemepath in split(globpath(&rtp,"syntax/mzscheme.vim"),"\n")
|
||||
if filereadable(fnameescape(mzschemepath))
|
||||
let s:mzschemepath= fnameescape(mzschemepath)
|
||||
break
|
||||
endif
|
||||
endfor
|
||||
@@ -752,7 +771,6 @@ syn sync match vimAugroupSyncA groupthere NONE "\<aug\%[roup]\>\s\+[eE][nN][dD]"
|
||||
" Highlighting Settings {{{2
|
||||
" ====================
|
||||
|
||||
|
||||
if !exists("g:vimsyn_noerror")
|
||||
hi def link vimBehaveError vimError
|
||||
hi def link vimCollClassErr vimError
|
||||
@@ -906,6 +924,7 @@ hi def link vimUserAttrbCmpltFunc Special
|
||||
hi def link vimUserAttrbCmplt vimSpecial
|
||||
hi def link vimUserAttrbKey vimOption
|
||||
hi def link vimUserAttrb vimSpecial
|
||||
hi def link vimUserAttrbError Error
|
||||
hi def link vimUserCmdError Error
|
||||
hi def link vimUserCommand vimCommand
|
||||
hi def link vimUserFunc Normal
|
||||
|
||||
@@ -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: Apr 02, 2015
|
||||
" Version: 13
|
||||
" URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
|
||||
"
|
||||
" Options: {{{1
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
" Language: YAML (YAML Ain't Markup Language) 1.2
|
||||
" Maintainer: Nikolai Pavlov <zyx.vim@gmail.com>
|
||||
" First author: Nikolai Weibull <now@bitwi.se>
|
||||
" Latest Revision: 2010-10-08
|
||||
" Latest Revision: 2015-03-28
|
||||
|
||||
if exists('b:current_syntax')
|
||||
finish
|
||||
@@ -11,13 +11,40 @@ endif
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
let s:ns_char = '\%(\%([\n\r\uFEFF \t]\)\@!\p\)'
|
||||
let s:ns_word_char = '\%(\w\|-\)'
|
||||
let s:ns_uri_char = '\%(%\x\x\|'.s:ns_word_char.'\|[#/;?:@&=+$,.!~*''()\[\]]\)'
|
||||
" Choose the schema to use
|
||||
" TODO: Validate schema
|
||||
if !exists('b:yaml_schema')
|
||||
if exists('g:yaml_schema')
|
||||
let b:yaml_schema = g:yaml_schema
|
||||
else
|
||||
let b:yaml_schema = 'core'
|
||||
endif
|
||||
endif
|
||||
|
||||
let s:ns_char = '\%([\n\r\uFEFF \t]\@!\p\)'
|
||||
let s:ns_word_char = '[[:alnum:]_\-]'
|
||||
let s:ns_uri_char = '\%(%\x\x\|'.s:ns_word_char.'\|[#/;?:@&=+$,.!~*''()[\]]\)'
|
||||
let s:ns_tag_char = '\%(%\x\x\|'.s:ns_word_char.'\|[#/;?:@&=+$.~*''()]\)'
|
||||
let s:c_ns_anchor_char = '\%(\%([\n\r\uFEFF \t,\[\]{}]\)\@!\p\)'
|
||||
let s:c_indicator = '[\-?:,\[\]{}#&*!|>''"%@`]'
|
||||
let s:c_flow_indicator = '[,\[\]{}]'
|
||||
let s:c_ns_anchor_char = '\%([\n\r\uFEFF \t,[\]{}]\@!\p\)'
|
||||
let s:c_indicator = '[\-?:,[\]{}#&*!|>''"%@`]'
|
||||
let s:c_flow_indicator = '[,[\]{}]'
|
||||
|
||||
let s:ns_char_without_c_indicator = substitute(s:ns_char, '\v\C[\zs', '\=s:c_indicator[1:-2]', '')
|
||||
|
||||
let s:_collection = '[^\@!\(\%(\\\.\|\[^\\\]]\)\+\)]'
|
||||
let s:_neg_collection = '[^\(\%(\\\.\|\[^\\\]]\)\+\)]'
|
||||
function s:SimplifyToAssumeAllPrintable(p)
|
||||
return substitute(a:p, '\V\C\\%('.s:_collection.'\\@!\\p\\)', '[^\1]', '')
|
||||
endfunction
|
||||
let s:ns_char = s:SimplifyToAssumeAllPrintable(s:ns_char)
|
||||
let s:ns_char_without_c_indicator = s:SimplifyToAssumeAllPrintable(s:ns_char_without_c_indicator)
|
||||
let s:c_ns_anchor_char = s:SimplifyToAssumeAllPrintable(s:c_ns_anchor_char)
|
||||
|
||||
function s:SimplifyAdjacentCollections(p)
|
||||
return substitute(a:p, '\V\C'.s:_collection.'\\|'.s:_collection, '[\1\2]', 'g')
|
||||
endfunction
|
||||
let s:ns_uri_char = s:SimplifyAdjacentCollections(s:ns_uri_char)
|
||||
let s:ns_tag_char = s:SimplifyAdjacentCollections(s:ns_tag_char)
|
||||
|
||||
let s:c_verbatim_tag = '!<'.s:ns_uri_char.'\+>'
|
||||
let s:c_named_tag_handle = '!'.s:ns_word_char.'\+!'
|
||||
@@ -46,11 +73,15 @@ let s:ns_tag_prefix = s:ns_local_tag_prefix.
|
||||
let s:ns_plain_safe_out = s:ns_char
|
||||
let s:ns_plain_safe_in = '\%('.s:c_flow_indicator.'\@!'.s:ns_char.'\)'
|
||||
|
||||
let s:ns_plain_first_in = '\%('.s:c_indicator.'\@!'.s:ns_char.'\|[?:\-]\%('.s:ns_plain_safe_in.'\)\@=\)'
|
||||
let s:ns_plain_first_out = '\%('.s:c_indicator.'\@!'.s:ns_char.'\|[?:\-]\%('.s:ns_plain_safe_out.'\)\@=\)'
|
||||
let s:ns_plain_safe_in = substitute(s:ns_plain_safe_in, '\V\C\\%('.s:_collection.'\\@!'.s:_neg_collection.'\\)', '[^\1\2]', '')
|
||||
let s:ns_plain_safe_in_without_colhash = substitute(s:ns_plain_safe_in, '\V\C'.s:_neg_collection, '[^\1:#]', '')
|
||||
let s:ns_plain_safe_out_without_colhash = substitute(s:ns_plain_safe_out, '\V\C'.s:_neg_collection, '[^\1:#]', '')
|
||||
|
||||
let s:ns_plain_char_in = '\%('.s:ns_char.'#\|:'.s:ns_plain_safe_in.'\|[:#]\@!'.s:ns_plain_safe_in.'\)'
|
||||
let s:ns_plain_char_out = '\%('.s:ns_char.'#\|:'.s:ns_plain_safe_out.'\|[:#]\@!'.s:ns_plain_safe_out.'\)'
|
||||
let s:ns_plain_first_in = '\%('.s:ns_char_without_c_indicator.'\|[?:\-]\%('.s:ns_plain_safe_in.'\)\@=\)'
|
||||
let s:ns_plain_first_out = '\%('.s:ns_char_without_c_indicator.'\|[?:\-]\%('.s:ns_plain_safe_out.'\)\@=\)'
|
||||
|
||||
let s:ns_plain_char_in = '\%('.s:ns_char.'#\|:'.s:ns_plain_safe_in.'\|'.s:ns_plain_safe_in_without_colhash.'\)'
|
||||
let s:ns_plain_char_out = '\%('.s:ns_char.'#\|:'.s:ns_plain_safe_out.'\|'.s:ns_plain_safe_out_without_colhash.'\)'
|
||||
|
||||
let s:ns_plain_out = s:ns_plain_first_out . s:ns_plain_char_out.'*'
|
||||
let s:ns_plain_in = s:ns_plain_first_in . s:ns_plain_char_in.'*'
|
||||
@@ -89,9 +120,11 @@ syn match yamlSingleEscape contained "''"
|
||||
|
||||
syn match yamlBlockScalarHeader contained '\s\+\zs[|>]\%([+-]\=[1-9]\|[1-9]\=[+-]\)\='
|
||||
|
||||
syn cluster yamlConstant contains=yamlBool,yamlNull
|
||||
|
||||
syn cluster yamlFlow contains=yamlFlowString,yamlFlowMapping,yamlFlowCollection
|
||||
syn cluster yamlFlow add=yamlFlowMappingKey,yamlFlowMappingMerge
|
||||
syn cluster yamlFlow add=yamlConstant,yamlPlainScalar,yamlFloat
|
||||
syn cluster yamlFlow add=@yamlConstant,yamlPlainScalar,yamlFloat
|
||||
syn cluster yamlFlow add=yamlTimestamp,yamlInteger,yamlMappingKeyStart
|
||||
syn cluster yamlFlow add=yamlComment
|
||||
syn region yamlFlowMapping matchgroup=yamlFlowIndicator start='{' end='}' contains=@yamlFlow
|
||||
@@ -103,15 +136,15 @@ execute 'syn match yamlPlainScalar contained /'.s:ns_plain_in.'/'
|
||||
syn match yamlMappingKeyStart '?\ze\s'
|
||||
syn match yamlMappingKeyStart '?' contained
|
||||
|
||||
execute 'syn match yamlFlowMappingKey /'.s:ns_plain_in.'\ze\s*:/ contained '.
|
||||
execute 'syn match yamlFlowMappingKey /\%#=1'.s:ns_plain_in.'\%(\s\+'.s:ns_plain_in.'\)*\ze\s*:/ contained '.
|
||||
\'nextgroup=yamlKeyValueDelimiter'
|
||||
syn match yamlFlowMappingMerge /<<\ze\s*:/ contained nextgroup=yamlKeyValueDelimiter
|
||||
|
||||
syn match yamlBlockCollectionItemStart '^\s*\zs-\%(\s\+-\)*\s' nextgroup=yamlBlockMappingKey,yamlBlockMappingMerge
|
||||
" Use the old regexp engine, the NFA engine doesn't like all the \@ items.
|
||||
execute 'syn match yamlBlockMappingKey /\%#=1^\s*\zs'.s:ns_plain_out.'\ze\s*:\%(\s\|$\)/ '.
|
||||
execute 'syn match yamlBlockMappingKey /\%#=1^\s*\zs'.s:ns_plain_out.'\%(\s\+'.s:ns_plain_out.'\)*\ze\s*:\%(\s\|$\)/ '.
|
||||
\'nextgroup=yamlKeyValueDelimiter'
|
||||
execute 'syn match yamlBlockMappingKey /\%#=1\s*\zs'.s:ns_plain_out.'\ze\s*:\%(\s\|$\)/ contained '.
|
||||
execute 'syn match yamlBlockMappingKey /\%#=1\s*\zs'.s:ns_plain_out.'\%(\s\+'.s:ns_plain_out.'\)*\ze\s*:\%(\s\|$\)/ contained '.
|
||||
\'nextgroup=yamlKeyValueDelimiter'
|
||||
syn match yamlBlockMappingMerge /^\s*\zs<<\ze:\%(\s\|$\)/ nextgroup=yamlKeyValueDelimiter
|
||||
syn match yamlBlockMappingMerge /<<\ze\s*:\%(\s\|$\)/ nextgroup=yamlKeyValueDelimiter contained
|
||||
@@ -119,14 +152,32 @@ syn match yamlBlockMappingMerge /<<\ze\s*:\%(\s\|$\)/ nextgroup=yamlKeyValueDeli
|
||||
syn match yamlKeyValueDelimiter /\s*:/ contained
|
||||
syn match yamlKeyValueDelimiter /\s*:/ contained
|
||||
|
||||
syn keyword yamlConstant true True TRUE false False FALSE
|
||||
syn keyword yamlConstant null Null NULL
|
||||
syn match yamlConstant '\<\~\>'
|
||||
syn cluster yamlScalarWithSpecials contains=yamlPlainScalar,yamlBlockMappingKey,yamlFlowMappingKey
|
||||
|
||||
syn match yamlTimestamp /\%([\[\]{}, \t]\@!\p\)\@<!\%(\d\{4}-\d\d\=-\d\d\=\%(\%([Tt]\|\s\+\)\%(\d\d\=\):\%(\d\d\):\%(\d\d\)\%(\.\%(\d*\)\)\=\%(\s*\%(Z\|[+-]\d\d\=\%(:\d\d\)\=\)\)\=\)\=\)\%([\[\]{}, \t]\@!\p\)\@!/
|
||||
let s:_bounder = s:SimplifyToAssumeAllPrintable('\%([[\]{}, \t]\@!\p\)')
|
||||
if b:yaml_schema is# 'json'
|
||||
syn keyword yamlNull null contained containedin=@yamlScalarWithSpecials
|
||||
syn keyword yamlBool true false
|
||||
exe 'syn match yamlInteger /'.s:_bounder.'\@1<!\%(0\|-\=[1-9][0-9]*\)'.s:_bounder.'\@!/ contained containedin=@yamlScalarWithSpecials'
|
||||
exe 'syn match yamlFloat /'.s:_bounder.'\@1<!\%(-\=[1-9][0-9]*\%(\.[0-9]*\)\=\(e[-+]\=[0-9]\+\)\=\|0\|-\=\.inf\|\.nan\)'.s:_bounder.'\@!/ contained containedin=@yamlScalarWithSpecials'
|
||||
elseif b:yaml_schema is# 'core'
|
||||
syn keyword yamlNull null Null NULL contained containedin=@yamlScalarWithSpecials
|
||||
syn keyword yamlBool true True TRUE false False FALSE contained containedin=@yamlScalarWithSpecials
|
||||
exe 'syn match yamlNull /'.s:_bounder.'\@1<!\~'.s:_bounder.'\@!/ contained containedin=@yamlScalarWithSpecials'
|
||||
exe 'syn match yamlInteger /'.s:_bounder.'\@1<!\%([+-]\=\%(0\%(b[0-1_]\+\|[0-7_]\+\|x[0-9a-fA-F_]\+\)\=\|\%([1-9][0-9_]*\%(:[0-5]\=\d\)\+\)\)\|[1-9][0-9_]*\)'.s:_bounder.'\@!/ contained containedin=@yamlScalarWithSpecials'
|
||||
exe 'syn match yamlFloat /'.s:_bounder.'\@1<!\%([+-]\=\%(\%(\d[0-9_]*\)\.[0-9_]*\%([eE][+-]\=\d\+\)\=\|\.[0-9_]\+\%([eE][-+]\=[0-9]\+\)\=\|\d[0-9_]*\%(:[0-5]\=\d\)\+\.[0-9_]*\|\.\%(inf\|Inf\|INF\)\)\|\%(\.\%(nan\|NaN\|NAN\)\)\)'.s:_bounder.'\@!/ contained containedin=@yamlScalarWithSpecials'
|
||||
elseif b:yaml_schema is# 'pyyaml'
|
||||
syn keyword yamlNull null Null NULL contained containedin=@yamlScalarWithSpecials
|
||||
syn keyword yamlBool true True TRUE false False FALSE yes Yes YES no No NO on On ON off Off OFF contained containedin=@yamlScalarWithSpecials
|
||||
exe 'syn match yamlNull /'.s:_bounder.'\@1<!\~'.s:_bounder.'\@!/ contained containedin=@yamlScalarWithSpecials'
|
||||
exe 'syn match yamlFloat /'.s:_bounder.'\@1<!\%(\v[-+]?%(\d[0-9_]*)\.[0-9_]*%([eE][-+]\d+)?|\.[0-9_]+%([eE][-+]\d+)?|[-+]?\d[0-9_]*%(\:[0-5]?\d)+\.[0-9_]*|[-+]?\.%(inf|Inf|INF)|\.%(nan|NaN|NAN)\m\)'.s:_bounder.'\@!/ contained containedin=@yamlScalarWithSpecials'
|
||||
exe 'syn match yamlInteger /'.s:_bounder.'\@1<!\%(\v[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?%(0|[1-9][0-9_]*)|[-+]?0x[0-9a-fA-F_]+|[-+]?[1-9][0-9_]*%(:[0-5]?\d)+\m\)'.s:_bounder.'\@!/ contained containedin=@yamlScalarWithSpecials'
|
||||
exe 'syn match yamlTimestamp /'.s:_bounder.'\@1<!\%(\v\d\d\d\d\-\d\d\-\d\d|\d\d\d\d \-\d\d? \-\d\d?%([Tt]|[ \t]+)\d\d?\:\d\d \:\d\d %(\.\d*)?%([ \t]*%(Z|[-+]\d\d?%(\:\d\d)?))?\m\)'.s:_bounder.'\@!/ contained containedin=@yamlScalarWithSpecials'
|
||||
elseif b:yaml_schema is# 'failsafe'
|
||||
" Nothing
|
||||
endif
|
||||
unlet s:_bounder
|
||||
|
||||
syn match yamlInteger /\%([\[\]{}, \t]\@!\p\)\@<!\%([+-]\=\%(0\%(b[0-1_]\+\|[0-7_]\+\|x[0-9a-fA-F_]\+\)\=\|\%([1-9][0-9_]*\%(:[0-5]\=\d\)\+\)\)\|[1-9][0-9_]*\)\%([\[\]{}, \t]\@!\p\)\@!/
|
||||
syn match yamlFloat /\%([\[\]{}, \t]\@!\p\)\@<!\%([+-]\=\%(\%(\d[0-9_]*\)\.[0-9_]*\%([eE][+-]\d\+\)\=\|\.[0-9_]\+\%([eE][-+][0-9]\+\)\=\|\d[0-9_]*\%(:[0-5]\=\d\)\+\.[0-9_]*\|\.\%(inf\|Inf\|INF\)\)\|\%(\.\%(nan\|NaN\|NAN\)\)\)\%([\[\]{}, \t]\@!\p\)\@!/
|
||||
|
||||
execute 'syn match yamlNodeTag '.string(s:c_ns_tag_property)
|
||||
execute 'syn match yamlAnchor '.string(s:c_ns_anchor_property)
|
||||
@@ -170,6 +221,9 @@ hi def link yamlKeyValueDelimiter Special
|
||||
|
||||
hi def link yamlConstant Constant
|
||||
|
||||
hi def link yamlNull yamlConstant
|
||||
hi def link yamlBool yamlConstant
|
||||
|
||||
hi def link yamlAnchor Type
|
||||
hi def link yamlAlias Type
|
||||
hi def link yamlNodeTag Type
|
||||
@@ -180,8 +234,10 @@ hi def link yamlTimestamp Number
|
||||
|
||||
let b:current_syntax = "yaml"
|
||||
|
||||
unlet s:ns_word_char s:ns_uri_char s:c_verbatim_tag s:c_named_tag_handle s:c_secondary_tag_handle s:c_primary_tag_handle s:c_tag_handle s:ns_tag_char s:c_ns_shorthand_tag s:c_non_specific_tag s:c_ns_tag_property s:c_ns_anchor_char s:c_ns_anchor_name s:c_ns_anchor_property s:c_ns_alias_node s:ns_char s:ns_directive_name s:ns_local_tag_prefix s:ns_global_tag_prefix s:ns_tag_prefix s:c_indicator s:ns_plain_safe_out s:c_flow_indicator s:ns_plain_safe_in s:ns_plain_first_in s:ns_plain_first_out s:ns_plain_char_in s:ns_plain_char_out s:ns_plain_out s:ns_plain_in
|
||||
unlet s:ns_word_char s:ns_uri_char s:c_verbatim_tag s:c_named_tag_handle s:c_secondary_tag_handle s:c_primary_tag_handle s:c_tag_handle s:ns_tag_char s:c_ns_shorthand_tag s:c_non_specific_tag s:c_ns_tag_property s:c_ns_anchor_char s:c_ns_anchor_name s:c_ns_anchor_property s:c_ns_alias_node s:ns_char s:ns_directive_name s:ns_local_tag_prefix s:ns_global_tag_prefix s:ns_tag_prefix s:c_indicator s:ns_plain_safe_out s:c_flow_indicator s:ns_plain_safe_in s:ns_plain_first_in s:ns_plain_first_out s:ns_plain_char_in s:ns_plain_char_out s:ns_plain_out s:ns_plain_in s:ns_char_without_c_indicator s:ns_plain_safe_in_without_colhash s:ns_plain_safe_out_without_colhash
|
||||
unlet s:_collection s:_neg_collection
|
||||
delfunction s:SimplifyAdjacentCollections
|
||||
delfunction s:SimplifyToAssumeAllPrintable
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
===============================================================================
|
||||
= W i l l k o m m e n im V I M T u t o r - Version 1.7D =
|
||||
= W i l l k o m m e n im V I M T u t o r - Version 1.7.de.1 =
|
||||
===============================================================================
|
||||
|
||||
Vim ist ein sehr m<>chtiger Editor, der viele Befehle bereitstellt; zu viele,
|
||||
um alle in einem Tutor wie diesem zu erkl<6B>ren. Dieser Tutor ist so
|
||||
gestaltet, um genug Befehle vorzustellen, dass Du die F<>higkeit erlangst,
|
||||
Vim mit Leichtigkeit als einen Allzweck-Editor zu benutzen.
|
||||
Vim mit Leichtigkeit als einen Allzweck-Editor zu verwenden.
|
||||
Die Zeit f<>r das Durcharbeiten dieses Tutors betr<74>gt ca. 25-30 Minuten,
|
||||
abh<62>ngig davon, wie viel Zeit Du mit Experimentieren verbringst.
|
||||
|
||||
@@ -15,11 +15,11 @@
|
||||
aufgerufen hast, ist dies bereits eine Kopie).
|
||||
|
||||
Es ist wichtig, sich zu vergegenw<6E>rtigen, dass dieser Tutor f<>r das Anwenden
|
||||
konzipiert ist. Das bedeutet, dass Du die Befehle ausf<EFBFBD>hren musst, um sie
|
||||
konzipiert ist. Das bedeutet, dass Du die Befehle anwenden musst, um sie
|
||||
richtig zu lernen. Wenn Du nur den Text liest, vergisst Du die Befehle!
|
||||
|
||||
Jetzt stelle sicher, dass Deine Umstelltaste NICHT gedr<64>ckt ist und bet<65>tige
|
||||
die j Taste gen<65>gend Male, um den Cursor nach unten zu bewegen, so dass
|
||||
Jetzt stelle sicher, dass deine Umstelltaste NICHT gedr<64>ckt ist und bet<65>tige
|
||||
die j Taste gen<65>gend Mal, um den Cursor nach unten zu bewegen, so dass
|
||||
Lektion 1.1 den Bildschirm vollkommen ausf<73>llt.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 1.1: BEWEGEN DES CURSORS
|
||||
@@ -37,18 +37,18 @@
|
||||
|
||||
3. Benutze die Nach-Unten-Taste, um Dich zu Lektion 1.2 zu bewegen.
|
||||
|
||||
Bemerkung: Immer, wenn Du Dir unsicher bist <20>ber das, was Du getippt hast,
|
||||
Anmerkung: Immer, wenn Du Dir unsicher bist <20>ber das, was Du getippt hast,
|
||||
dr<64>cke <ESC> , um Dich in den Normalmodus zu begeben.
|
||||
Dann gib das gew<65>nschte Kommando noch einmal ein.
|
||||
|
||||
Bemerkung: Die Cursor-Tasten sollten ebenfalls funktionieren. Aber wenn Du
|
||||
Anmerkung: Die Cursor-Tasten sollten ebenfalls funktionieren. Aber wenn Du
|
||||
hjkl benutzt, wirst Du in der Lage sein, Dich sehr viel schneller
|
||||
umherzubewegen, wenn Du Dich einmal daran gew<65>hnt hast. Wirklich!
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 1.2: VIM BEENDEN
|
||||
|
||||
|
||||
!! ACHTUNG: Bevor Du einen der unten aufgef<65>hrten Schritte ausf<73>hrst, lies
|
||||
!! Hinweis: Bevor Du einen der unten aufgef<65>hrten Schritte ausf<73>hrst, lies
|
||||
diese gesamte Lektion!!
|
||||
|
||||
1. Dr<44>cke die <ESC> Taste (um sicherzustellen, dass Du im Normalmodus bist).
|
||||
@@ -63,28 +63,28 @@ Bemerkung: Die Cursor-Tasten sollten ebenfalls funktionieren. Aber wenn Du
|
||||
f<>hre Schritte 1 bis 3 aus, um den Editor zu verlassen und wieder
|
||||
hineinzugelangen.
|
||||
|
||||
Bemerkung: :q! <ENTER> verwirft alle <20>nderungen, die Du gemacht hast. In
|
||||
einigen Lektionen lernst Du , die <20>nderungen in einer Datei zu speichern.
|
||||
Anmerkung: :q! <ENTER> verwirft alle <20>nderungen, die Du gemacht hast. Einige
|
||||
Lektionen sp<EFBFBD>ter lernst Du, die <20>nderungen in einer Datei zu speichern.
|
||||
|
||||
5. Bewege den Cursor abw<62>rts zu Lektion 1.3.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 1.3: TEXT EDITIEREN - L<>SCHEN
|
||||
|
||||
|
||||
** Dr<44>cke x um das Zeichen unter dem Cursor zu l<>schen. **
|
||||
** Dr<44>cke x , um das Zeichen unter dem Cursor zu l<>schen. **
|
||||
|
||||
1. Bewege den Cursor zu der mit ---> markierten Zeile unten.
|
||||
|
||||
2. Um die Fehler zu beheben, bewege den Cursor, bis er auf dem Zeichen steht,
|
||||
2. Um die Fehler zu beheben, bewege den Cursor, bis er <EFBFBD>ber dem Zeichen steht,
|
||||
das gel<65>scht werden soll.
|
||||
|
||||
3. Dr<44>cke die x Taste, um das <EFBFBD>berfl<EFBFBD>ssige Zeichen zu l<>schen.
|
||||
3. Dr<44>cke die x Taste, um das unerw<EFBFBD>nschte Zeichen zu l<>schen.
|
||||
|
||||
4. Wiederhole die Schritte 2 bis 4, bis der Satz korrekt ist.
|
||||
|
||||
---> Die Kkuh sprangg <20>bber deen Moond.
|
||||
---> Die Kkuh sprangg <20>bberr deen Moond.
|
||||
|
||||
5. Wenn nun die Zeile korrekt ist, gehe weiter zur Lektion 1.4.
|
||||
5. Nun, da die Zeile korrekt ist, gehe weiter zur Lektion 1.4.
|
||||
|
||||
Anmerkung: W<>hrend Du durch diesen Tutor gehst, versuche nicht, auswendig zu
|
||||
lernen, lerne vielmehr durch Anwenden.
|
||||
@@ -99,13 +99,13 @@ Anmerkung: W
|
||||
1. Bewege den Cursor zur ersten unten stehenden mit ---> markierten Zeile.
|
||||
|
||||
2. Um die erste Zeile mit der zweiten gleichzumachen, bewege den Cursor auf
|
||||
das erste Zeichen NACH der Stelle, wo der Text eingef<65>gt werden soll.
|
||||
das erste Zeichen NACH der Stelle, an der Text eingef<65>gt werden soll.
|
||||
|
||||
3. Dr<44>cke i und gib die notwendigen Erg<72>nzungen ein.
|
||||
3. Dr<44>cke i und gib die n<EFBFBD>tigen Erg<72>nzungen ein.
|
||||
|
||||
4. Wenn jeweils ein Fehler beseitigt ist, dr<64>cke <ESC> , um zum Normalmodus
|
||||
zur<75>ckzukehren.
|
||||
Wiederhole die Schritte 2 bis 4, um den Satz zu korrigieren.
|
||||
Wiederhole Schritte 2 bis 4, um den Satz zu korrigieren.
|
||||
|
||||
---> In dieser ft etwas .
|
||||
---> In dieser Zeile fehlt etwas Text.
|
||||
@@ -120,15 +120,15 @@ Anmerkung: W
|
||||
** Dr<44>cke A , um Text anzuf<75>gen. **
|
||||
|
||||
1. Bewege den Cursor zur ersten unten stehenden mit ---> markierten Zeile.
|
||||
Es ist gleichg<68>ltig, auf welchem Zeichen der Zeile der Cursor steht.
|
||||
Dabei ist gleichg<68>ltig, auf welchem Zeichen der Zeile der Cursor steht.
|
||||
|
||||
2. Dr<44>cke A und gib die n<EFBFBD>tigen Erg<72>nzungen ein.
|
||||
2. Dr<44>cke A und gib die erforderlichen Erg<72>nzungen ein.
|
||||
|
||||
3. Wenn das Anf<6E>gen abgeschlossen ist, dr<64>cke <ESC>, um in den Normalmodus
|
||||
zur<75>ckzukehren.
|
||||
|
||||
4. Bewege den Cursor zur zweiten mit ---> markierten Zeile und wiederhole
|
||||
die Schritte 2 und 3, um den Satz zu korrigieren.
|
||||
die Schritte 2 und 3, um den Satz zu auszubessern.
|
||||
|
||||
---> In dieser Zeile feh
|
||||
In dieser Zeile fehlt etwas Text.
|
||||
@@ -139,26 +139,28 @@ Anmerkung: W
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 1.6: EINE DATEI EDITIEREN
|
||||
|
||||
** Benutze :wq , um eine Datei zu speichern und Vim zu verlassen. **
|
||||
|
||||
** Benutze :wq , um eine Datei zu speichern und Vim zu verlassen. **
|
||||
|
||||
!! ACHTUNG: Bevor Du einen der unten aufgef<65>hrten Schritte ausf<73>hrst, lies
|
||||
!! Hinweis: Bevor Du einen der unten aufgef<65>hrten Schritte ausf<73>hrst, lies
|
||||
diese gesamte Lektion!!
|
||||
|
||||
1. Verlasse den Editor so wie in Lektion 1.2: :q!
|
||||
1. Verlasse den Editor so wie in Lektion 1.2: :q!
|
||||
Oder, falls du Zugriff zu einem anderen Terminal hast, f<>hre das
|
||||
Folgende dort aus.
|
||||
|
||||
2. Gib dieses Kommando in die Eingabeaufforderung ein: vim tutor <ENTER>
|
||||
'vim' ist der Aufruf des Editors, 'tutor' ist die zu editierende Datei.
|
||||
Benutze eine Datei, die ge<67>ndert werden kann.
|
||||
Benutze eine Datei, die ge<67>ndert werden darf.
|
||||
|
||||
3. F<>ge Text ein oder l<>sche ihn, wie Du in den vorigen Lektionen gelernt
|
||||
hast.
|
||||
3. F<>ge Text ein oder l<>sche ihn, wie Du in den vorangehenden Lektionen
|
||||
gelernt hast.
|
||||
|
||||
4. Speichere die ge<67>nderte Datei und verlasse Vim mit: :wq <ENTER>
|
||||
4. Speichere die ge<67>nderte Datei und verlasse Vim mit: :wq <ENTER>
|
||||
|
||||
5. Starte den vimtutor neu und bewege Dich zu der folgenden Zusammenfassung.
|
||||
5. Falls Du in Schritt 1 den vimtutor beendet hast, starte vimtutor neu und
|
||||
bewege dich abw<62>rts bis zur folgenden Zusammenfassung.
|
||||
|
||||
6. Nachdem Du obige Schritte gelesen und verstanden hast, f<>hre sie durch.
|
||||
6. Nachdem Du obige Schritte gelesen und verstanden hast: f<>hre sie durch.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ZUSAMMENFASSUNG VON LEKTION 1
|
||||
|
||||
@@ -166,19 +168,18 @@ Anmerkung: W
|
||||
1. Der Cursor wird mit den Pfeiltasten oder den Tasten hjkl bewegt.
|
||||
h (links) j (unten) k (aufw<66>rts) l (rechts)
|
||||
|
||||
2. Um Vim von der Eingabeaufforderung auszuf<EFBFBD>hren, tippe: vim DATEI <ENTER>
|
||||
2. Um Vim aus der Eingabeaufforderung zu starten, tippe: vim DATEI <ENTER>
|
||||
|
||||
3. Um Vim zu verlassen und alle <20>nderungen zu verwerfen, tippe:
|
||||
<ESC> :q! <ENTER> .
|
||||
ODER tippe: <ESC> :wq <ENTER> , um die <20>nderungen zu speichern.
|
||||
|
||||
4. Um das Zeichen unter dem Cursor zu l<>schen, tippe: x
|
||||
|
||||
5. Um Text einzuf<75>gen oder anzuf<75>gen, tippe:
|
||||
i Einzuf<75>genden Text eingeben <ESC> Einf<6E>gen vor dem Cursor
|
||||
A Anzuf<75>genden Text eingeben <ESC> Anf<6E>gen nach dem Zeilendene
|
||||
A Anzuf<75>genden Text eingeben <ESC> Anf<6E>gen nach dem Zeilenende
|
||||
|
||||
Bemerkung: Dr<44>cken von <ESC> bringt Dich in den Normalmodus oder bricht ein
|
||||
Anmerkung: Dr<44>cken von <ESC> bringt Dich in den Normalmodus oder bricht ein
|
||||
ungewolltes, erst teilweise eingegebenes Kommando ab.
|
||||
|
||||
Nun fahre mit Lektion 2 fort.
|
||||
@@ -188,7 +189,7 @@ Bemerkung: Dr
|
||||
|
||||
** Tippe dw , um ein Wort zu l<>schen. **
|
||||
|
||||
1. Dr<44>cke <ESC> um sicherzustellen, dass Du im Normalmodus bist.
|
||||
1. Dr<44>cke <ESC> , um sicherzustellen, dass Du im Normalmodus bist.
|
||||
|
||||
2. Bewege den Cursor zu der mit ---> markierten Zeile unten.
|
||||
|
||||
@@ -196,15 +197,15 @@ Bemerkung: Dr
|
||||
|
||||
4. Tippe dw , um das Wort zu entfernen.
|
||||
|
||||
Bemerkung: Der Buchstabe d erscheint auf der letzten Zeile des Bildschirms,
|
||||
wenn Du ihn eingibst. Vim wartet darauf, da<EFBFBD> Du w eingibst. Wenn Du
|
||||
ein anderes Zeichen als d siehst, hast Du etwas falsches getippt;
|
||||
dr<64>cke <ESC> und beginne neu.
|
||||
Anmerkung: Der Buchstabe d erscheint auf der untersten Zeile des Schirms,
|
||||
wenn Du ihn eingibst. Vim wartet darauf, dass Du w eingibst. Falls Du
|
||||
ein anderes Zeichen als d siehst, hast Du etwas Falsches getippt;
|
||||
dr<64>cke <ESC> und beginne noch einmal.
|
||||
|
||||
---> Einige W<>rter lustig geh<65>ren nicht Papier in diesen Satz.
|
||||
|
||||
5. Wiederhole die Schritte 3 und 4, bis der Satz korrekt ist und gehe
|
||||
danach zur Lektion 2.2.
|
||||
zur Lektion 2.2.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 2.2: WEITERE L<>SCHKOMMANDOS
|
||||
|
||||
@@ -217,12 +218,12 @@ Bemerkung: Dr
|
||||
|
||||
3. Bewege den Cursor zum Ende der korrekten Zeile (NACH dem ersten . ).
|
||||
|
||||
4. Tippe d$ , um bis zum Ende der Zeile zu l<>schen.
|
||||
4. Tippe d$ , um bis zum Zeilenende zu l<>schen.
|
||||
|
||||
---> Jemand hat das Ende der Zeile doppelt eingegeben. doppelt eingegeben.
|
||||
|
||||
|
||||
5. Gehe weiter zur Lektion 2.3 , um zu verstehen, was hierbei passiert.
|
||||
5. Gehe weiter zur Lektion 2.3 , um zu verstehen, was hierbei vorgeht.
|
||||
|
||||
|
||||
|
||||
@@ -240,16 +241,16 @@ Bemerkung: Dr
|
||||
|
||||
wobei:
|
||||
d - der L<>schoperator
|
||||
Bewegung - worauf der L<>schoperator angewandt wird (unten aufgelistet).
|
||||
Bewegung - worauf der L<>schoperator angewandt wird (unten aufgef<EFBFBD>hrt).
|
||||
|
||||
Eine kleine Auflistung von Bewegungen:
|
||||
w - bis zum Beginn des n<>chsten Wortes OHNE dessen erstes Zeichen.
|
||||
e - zum Ende des aktuellen Wortes MIT dessen letztem Zeichen.
|
||||
$ - zum Ende der Zeile MIT dem letzen Zeichen.
|
||||
$ - zum Ende der Zeile MIT dem letzten Zeichen.
|
||||
|
||||
Dementsprechend l<>scht die Eingabe von de vom Cursor an bis zum Wortende.
|
||||
|
||||
Bemerkung: Die Eingabe lediglich des Bewegungsteils im Normalmodus bewegt den
|
||||
Anmerkung: Die Eingabe lediglich des Bewegungsteils im Normalmodus bewegt den
|
||||
Cursor entsprechend.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 2.4: ANWENDUNG EINES Z<>HLERS F<>R EINEN BEWEGUNGSSCHRITT
|
||||
@@ -265,9 +266,9 @@ Bemerkung: Die Eingabe lediglich des Bewegungsteils im Normalmodus bewegt den
|
||||
|
||||
4. Tippe 0 (Null) , um zum Anfang der Zeile zu gelangen.
|
||||
|
||||
5. Wiederhole Schritte 2 und 3 mit verschiedenen Z<EFBFBD>hlern.
|
||||
5. Wiederhole Schritte 2 und 3 mit verschiedenen Nummern.
|
||||
|
||||
---> Dies ist nur eine Zeile aus W<>rten um sich darin herumzubewegen.
|
||||
---> Dies ist nur eine Zeile aus W<>rtern, um sich darin herumzubewegen.
|
||||
|
||||
6. Gehe weiter zu Lektion 2.5.
|
||||
|
||||
@@ -280,8 +281,8 @@ Bemerkung: Die Eingabe lediglich des Bewegungsteils im Normalmodus bewegt den
|
||||
|
||||
** Die Eingabe einer Zahl mit einem Operator wiederholt diesen mehrfach. **
|
||||
|
||||
F<EFBFBD>r die Kombination des L<>schoperators und einem Bewegungsschritt (siehe
|
||||
oben) stellt man dem Bewegungsschritt einen Z<>hler voran, um mehr zu l<>schen:
|
||||
In der Kombination aus L<>schoperator und Bewegungsschritt (siehe oben)
|
||||
stellt man, um mehr zu l<>schen dem Schritt einen Z<>hler voran:
|
||||
d Nummer Bewegungsschritt
|
||||
|
||||
1. Bewege den Cursor zum ersten Wort in GROSSBUCHSTABEN in der mit --->
|
||||
@@ -289,9 +290,8 @@ Bemerkung: Die Eingabe lediglich des Bewegungsteils im Normalmodus bewegt den
|
||||
|
||||
2. Tippe d2w , um die zwei W<>rter in GROSSBUCHSTABEN zu l<>schen.
|
||||
|
||||
3. Wiederhole Schritte 1 und 2 mit einem anderen Z<>hler, um die
|
||||
darauffolgenden W<>rter in GROSSBUCHSTABEN mit einem einzigen Kommando
|
||||
zu l<>schen.
|
||||
3. Wiederhole Schritte 1 und 2 mit einem anderen Z<>hler, um die darauffol-
|
||||
genden W<>rter in GROSSBUCHSTABEN mit einem einzigen Kommando zu l<>schen.
|
||||
|
||||
---> Diese ABC DE Zeile FGHI JK LMN OP mit W<>rtern ist Q RS TUV bereinigt.
|
||||
|
||||
@@ -325,12 +325,12 @@ Bemerkung: Die Eingabe lediglich des Bewegungsteils im Normalmodus bewegt den
|
||||
|
||||
|
||||
** Tippe u , um die letzten Kommandos r<>ckg<6B>ngig zu machen **
|
||||
** oder U um eine ganze Zeile wiederherzustellen. **
|
||||
** oder U , um eine ganze Zeile wiederherzustellen. **
|
||||
|
||||
1. Bewege den Cursor zu der mit ---> markierten Zeile unten
|
||||
und setze ihn auf den ersten Fehler.
|
||||
2. Tippe x , um das erste unerw<72>nschte Zeichen zu l<>schen.
|
||||
3. Nun tippe u um das soeben ausgef<65>hrte Kommando r<>ckg<6B>ngig zu machen.
|
||||
3. Nun tippe u , um das soeben ausgef<65>hrte Kommando r<>ckg<6B>ngig zu machen.
|
||||
4. Jetzt behebe alle Fehler auf der Zeile mit Hilfe des x Kommandos.
|
||||
5. Nun tippe ein gro<72>es U , um die Zeile in ihren Ursprungszustand
|
||||
wiederherzustellen.
|
||||
@@ -341,8 +341,8 @@ Bemerkung: Die Eingabe lediglich des Bewegungsteils im Normalmodus bewegt den
|
||||
|
||||
---> Beehebe die Fehller diesser Zeile und sttelle sie mitt 'undo' wieder her.
|
||||
|
||||
8. Dies sind sehr n<>tzliche Kommandos.
|
||||
Nun gehe weiter zur Zusammenfassung von Lektion 2.
|
||||
8. Dies sind sehr n<>tzliche Kommandos. Nun gehe weiter zur Zusammenfassung
|
||||
von Lektion 2.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ZUSAMMENFASSUNG VON LEKTION 2
|
||||
|
||||
@@ -357,7 +357,7 @@ Bemerkung: Die Eingabe lediglich des Bewegungsteils im Normalmodus bewegt den
|
||||
wobei:
|
||||
Operator - gibt an, was getan werden soll, zum Beispiel d f<>r delete
|
||||
[Anzahl] - ein optionaler Z<>hler, um den Bewegungsschritt zu wiederholen
|
||||
Bewegungsschritt - Bewegung <20>ber den zu <20>ndernden Text, so wie
|
||||
Bewegungsschritt - Bewegung <20>ber den zu <20>ndernden Text, wie
|
||||
w (Wort), $ (zum Ende der Zeile), etc.
|
||||
|
||||
6. Um Dich zum Anfang der Zeile zu begeben, benutze die Null: 0
|
||||
@@ -387,7 +387,7 @@ Bemerkung: Die Eingabe lediglich des Bewegungsteils im Normalmodus bewegt den
|
||||
|
||||
---> d) Kannst Du das auch?
|
||||
---> b) Veilchen sind blau,
|
||||
---> c) Intelligenz ist erlernbar,
|
||||
---> c) Intelligenz ist lernbar,
|
||||
---> a) Rosen sind rot,
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 3.2: ERSETZEN (REPLACE)
|
||||
@@ -403,13 +403,13 @@ Bemerkung: Die Eingabe lediglich des Bewegungsteils im Normalmodus bewegt den
|
||||
|
||||
4. Wiederhole Schritte 2 und 3, bis die erste Zeile gleich der zweiten ist.
|
||||
|
||||
---> Als diese Zeite eingegoben wurde, wurden einike falsche Tasten gelippt!
|
||||
---> Alf diese Zeite eingegoben wurde, wurden einike falsche Tasten gelippt!
|
||||
---> Als diese Zeile eingegeben wurde, wurden einige falsche Tasten getippt!
|
||||
|
||||
5. Nun fahre fort mit Lektion 3.2.
|
||||
|
||||
Bemerkung: Erinnere Dich, dass Du durch Anwenden lernen solltest, nicht durch
|
||||
Auswendiglernen.
|
||||
Anmerkung: Erinnere Dich daran, dass Du durch Anwenden lernen solltest, nicht
|
||||
durch Auswendiglernen.
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
@@ -431,7 +431,7 @@ Bemerkung: Erinnere Dich, dass Du durch Anwenden lernen solltest, nicht durch
|
||||
---> Einige Wstwr dieser Zlaww lasdjlaf mit dem <20>ndern-Operator gaaauu werden.
|
||||
---> Einige W<>rter dieser Zeile sollen mit dem <20>ndern-Operator ge<67>ndert werden.
|
||||
|
||||
Bemerke, dass ce das Wort l<>scht und Dich in den Eingabemodus versetzt.
|
||||
Beachte, dass ce das Wort l<>scht und Dich in den Eingabemodus versetzt.
|
||||
|
||||
|
||||
|
||||
@@ -457,7 +457,7 @@ Bemerke, dass ce das Wort l
|
||||
---> Das Ende dieser Zeile soll an die zweite Zeile angeglichen werden.
|
||||
---> Das Ende dieser Zeile soll mit dem c$ Kommando korrigiert werden.
|
||||
|
||||
Bemerkung: Du kannst die R<>cktaste benutzen, um Tippfehler zu korrigieren.
|
||||
Anmerkung: Du kannst die R<>cktaste benutzen, um Tippfehler zu korrigieren.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ZUSAMMENFASSUNG VON LEKTION 3
|
||||
|
||||
@@ -466,8 +466,8 @@ Bemerkung: Du kannst die R
|
||||
gel<65>schten Text NACH dem Cursor an (wenn eine ganze Zeile gel<65>scht wurde,
|
||||
wird diese in die Zeile unter dem Cursor eingef<65>gt).
|
||||
|
||||
2. Um das Zeichen unter dem Cursor zu ersetzen, tippe r und das an dieser
|
||||
Stelle gew<EFBFBD>nschte Zeichen.
|
||||
2. Um das Zeichen unter dem Cursor zu ersetzen, tippe r und danach das
|
||||
an dieser Stelle gewollte Zeichen.
|
||||
|
||||
3. Der <20>nderungs- (change) Operator erlaubt, vom Cursor bis zum Ende des
|
||||
Bewegungsschrittes zu <20>ndern. Tippe ce , um eine <20>nderung vom Cursor bis
|
||||
@@ -484,17 +484,18 @@ Bemerkung: Du kannst die R
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 4.1: CURSORPOSITION UND DATEISTATUS
|
||||
|
||||
** Tippe CTRL-G , um Deine Dateiposition sowie den Dateistatus anzuzeigen. **
|
||||
** Tippe CTRL-G , um deine Dateiposition sowie den Dateistatus anzuzeigen. **
|
||||
** Tippe G , um Dich zu einer Zeile in der Datei zu begeben. **
|
||||
|
||||
Bemerkung: Lies diese gesamte Lektion, bevor Du irgendeinen Schritt ausf<73>hrst!!
|
||||
Anmerkung: Lies diese gesamte Lektion, bevor Du irgendeinen Schritt ausf<73>hrst!!
|
||||
|
||||
1. Halte die Ctrl Taste unten und dr<64>cke g . Dies nennen wir wir CTRL-G.
|
||||
1. Halte die Ctrl Taste unten und dr<64>cke g . Dies nennen wir CTRL-G.
|
||||
Eine Statusmeldung am Fu<46> der Seite erscheint mit dem Dateinamen und der
|
||||
Position innerhalb der Datei. Merke Dir die Zeilennummer f<>r Schritt 3.
|
||||
|
||||
Bemerkung: M<>glicherweise siehst Du die Cursorposition in der unteren rechten
|
||||
Bildschirmecke. Dies ist Folge der 'ruler' Option (siehe :help 'ruler')
|
||||
Anmerkung: M<>glicherweise siehst Du die Cursorposition in der unteren rechten
|
||||
Bildschirmecke. Dies ist Auswirkung der 'ruler' Option
|
||||
(siehe :help 'ruler')
|
||||
|
||||
2. Dr<44>cke G , um Dich zum Ende der Datei zu begeben.
|
||||
Tippe gg , um Dich zum Anfang der Datei zu begeben.
|
||||
@@ -510,7 +511,7 @@ Bemerkung: M
|
||||
|
||||
** Tippe / gefolgt von einem Ausdruck, um nach dem Ausdruck zu suchen. **
|
||||
|
||||
1. Im Normalmodus, tippe das / Zeichen. Bemerke, dass das / und der
|
||||
1. Im Normalmodus, tippe das / Zeichen. Beachte, dass das / und der
|
||||
Cursor am Fu<46> des Schirms erscheinen, so wie beim : Kommando.
|
||||
|
||||
2. Nun tippe 'Fehhler' <ENTER>. Dies ist das Wort, nach dem Du suchen willst.
|
||||
@@ -521,32 +522,32 @@ Bemerkung: M
|
||||
4. Um nach einem Ausdruck r<>ckw<6B>rts zu suchen , benutze ? statt / .
|
||||
|
||||
5. Um dahin zur<75>ckzukehren, von wo Du gekommen bist, dr<64>cke CTRL-O (Halte
|
||||
Ctrl unten und dr<64>cke den Buchstaben o). Wiederhole dies, um weiter
|
||||
zur<75>ckzugehen. CTRL-I bringt dich vorw<72>rts.
|
||||
Ctrl unten und dr<64>cke den Buchstaben o). Wiederhole dies, um noch weiter
|
||||
zur<75>ckzugehen. CTRL-I geht vorw<72>rts.
|
||||
|
||||
---> Fehler schreibt sich nicht "Fehhler"; Fehhler ist ein Fehler
|
||||
Bemerkung: Wenn die Suche das Dateiende erreicht hat, wird sie am Anfang
|
||||
Anmerkung: Wenn die Suche das Dateiende erreicht hat, wird sie am Anfang
|
||||
fortgesetzt, es sei denn, die 'wrapscan' Option wurde abgeschaltet.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 4.3: PASSENDE KLAMMERN FINDEN
|
||||
|
||||
|
||||
** Tippe % , um eine korrespondierende Klammer ),], oder } zu finden. **
|
||||
** Tippe % , um eine gegen<EFBFBD>berliegenden Klammer ),], oder } zu finden. **
|
||||
|
||||
1. Platziere den Cursor auf irgendeines der Zeichen (, [, oder { in der unten
|
||||
1. Platziere den Cursor auf irgendeinem der Zeichen (, [, oder { in der unten
|
||||
stehenden Zeile, die mit ---> markiert ist.
|
||||
|
||||
2. Nun tippe das % Zeichen.
|
||||
|
||||
3. Der Cursor bewegt sich zur passenden gegen<65>berliegenden Klammer.
|
||||
|
||||
4. Tippe % , um den Cursor zur anderen passenden Klammer zu bewegen.
|
||||
4. Tippe % , um den Cursor zur passenden anderen Klammer zu bewegen.
|
||||
|
||||
5. Setze den Cursor auf ein anderes (,),[,],{ oder } und probiere % aus.
|
||||
|
||||
---> Dies ( ist eine Testzeile ( mit [ verschiedenen ] { Klammern } darin. ))
|
||||
|
||||
Bemerkung: Diese Funktionalit<69>t ist sehr n<>tzlich bei der Fehlersuche in einem
|
||||
Anmerkung: Diese Funktionalit<69>t ist sehr n<>tzlich bei der Fehlersuche in einem
|
||||
Programmtext, in dem passende Klammern fehlen!
|
||||
|
||||
|
||||
@@ -558,18 +559,18 @@ Bemerkung: Diese Funktionalit
|
||||
|
||||
1. Bewege den Cursor zu der unten stehenden mit ---> markierten Zeile.
|
||||
|
||||
2. Tippe :s/diee/die <ENTER> . Bemerke, dass der Befehl nur das erste
|
||||
2. Tippe :s/diee/die <ENTER> . Beachte, dass der Befehl nur das erste
|
||||
Vorkommen von "diee" ersetzt.
|
||||
|
||||
3. Nun tippe :s/diee/die/g . Das Zuf<75>gen des Flags g bedeutet, eine
|
||||
globale Ersetzung <20>ber die Zeile durchzuf<75>hren, was alle Vorkommen von
|
||||
"diee" auf der Zeile ersetzt.
|
||||
globale Ersetzung <20>ber die Zeile durchzuf<75>hren, dies ersetzt alle
|
||||
Vorkommen von "diee" auf der Zeile.
|
||||
|
||||
---> diee sch<63>nste Zeit, um diee Blumen anzuschauen, ist diee Fr<46>hlingszeit.
|
||||
|
||||
4. Um alle Vorkommen einer Zeichenkette innerhalb zweier Zeilen zu <20>ndern,
|
||||
tippe :#,#s/alt/neu/g wobei #,# die Zeilennummern des Zeilenbereiches
|
||||
sind, in dem die Ersetzung durchgef<65>hrt werden soll.
|
||||
tippe :#,#s/alt/neu/g wobei #,# die Zeilennummern des Bereiches sind,
|
||||
in dem die Ersetzung durchgef<65>hrt werden soll.
|
||||
Tippe :%s/alt/neu/g um alle Vorkommen in der gesamten Datei zu <20>ndern.
|
||||
Tippe :%s/alt/neu/gc um alle Vorkommen in der gesamten Datei zu finden
|
||||
mit einem Fragedialog, ob ersetzt werden soll oder nicht.
|
||||
@@ -593,9 +594,9 @@ Bemerkung: Diese Funktionalit
|
||||
4. Um das erste Vorkommen von "alt" in einer Zeile durch "neu" zu ersetzen,
|
||||
tippe :s/alt/neu
|
||||
Um alle Vorkommen von "alt" in der Zeile ersetzen, tippe :s/alt/neu/g
|
||||
Um Ausdr<64>cke innerhalb zweier Zeilennummern zu ersetzen, :#,#s/alt/neu/g
|
||||
Um Ausdr<64>cke innerhalb zweier Zeilen # zu ersetzen :#,#s/alt/neu/g
|
||||
Um alle Vorkommen in der ganzen Datei zu ersetzen, tippe :%s/alt/neu/g
|
||||
F<>r eine jedmalige Best<73>tigung, addiere 'c' (confirm) :%s/alt/neu/gc
|
||||
F<>r eine jedesmalige Best<73>tigung, addiere 'c' (confirm) :%s/alt/neu/gc
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 5.1: AUSF<53>HREN EINES EXTERNEN KOMMANDOS
|
||||
|
||||
@@ -608,14 +609,14 @@ Bemerkung: Diese Funktionalit
|
||||
2. Nun tippe ein ! (Ausrufezeichen). Dies erm<72>glicht Dir, ein beliebiges,
|
||||
externes Shellkommando auszuf<75>hren.
|
||||
|
||||
3. Als Beispiel tippe ls nach dem ! und dr<64>cke <ENTER>. Dies zeigt
|
||||
eine Auflistung Deines Verzeichnisses; genauso, als wenn Du auf der
|
||||
3. Als Beispiel tippe ls nach dem ! und dr<64>cke <ENTER>. Dies liefert
|
||||
eine Auflistung deines Verzeichnisses; genauso, als wenn Du in der
|
||||
Eingabeaufforderung w<>rst. Oder verwende :!dir , falls ls nicht geht.
|
||||
|
||||
Bemerkung: Mit dieser Methode kann jedes beliebige externe Kommando
|
||||
Anmerkung: Mit dieser Methode kann jedes beliebige externe Kommando
|
||||
ausgef<65>hrt werden, auch mit Argumenten.
|
||||
|
||||
Bemerkung: Alle : Kommandos m<>ssen durch Eingabe von <ENTER>
|
||||
Anmerkung: Alle : Kommandos m<>ssen durch Eingabe von <ENTER>
|
||||
abgeschlossen werden. Von jetzt an erw<72>hnen wir dies nicht jedesmal.
|
||||
|
||||
|
||||
@@ -625,7 +626,7 @@ Bemerkung: Alle : Kommandos m
|
||||
|
||||
** Um am Text durchgef<65>hrte <20>nderungen zu speichern, tippe :w DATEINAME. **
|
||||
|
||||
1. Tippe :!dir oder :!ls , um eine Auflistung Deines Verzeichnisses zu
|
||||
1. Tippe :!dir oder :!ls , um eine Auflistung deines Verzeichnisses zu
|
||||
erhalten. Du wei<65>t nun bereits, dass Du danach <ENTER> eingeben musst.
|
||||
|
||||
2. W<>hle einen Dateinamen, der noch nicht existiert, z.B. TEST.
|
||||
@@ -633,15 +634,15 @@ Bemerkung: Alle : Kommandos m
|
||||
3. Nun tippe: :w TEST (wobei TEST der gew<65>hlte Dateiname ist).
|
||||
|
||||
4. Dies speichert die ganze Datei (den Vim Tutor) unter dem Namen TEST.
|
||||
Um dies zu <20>berpr<70>fen, tippe nochmals :!ls bzw. !dir, um Deinen
|
||||
Um dies zu <20>berpr<70>fen, tippe nochmals :!ls bzw. !dir, um deinen
|
||||
Verzeichnisinhalt zu sehen.
|
||||
|
||||
Bemerkung: W<>rdest Du Vim jetzt beenden und danach wieder mit vim TEST
|
||||
Anmerkung: W<>rdest Du Vim jetzt beenden und danach wieder mit vim TEST
|
||||
starten, dann w<>re diese Datei eine exakte Kopie des Tutors zu dem
|
||||
Zeitpunkt, als Du ihn gespeichert hast.
|
||||
|
||||
5. Nun entferne die Datei durch Eingabe von (MS-DOS): :!del TEST
|
||||
oder (Unix): :!rm TEST
|
||||
oder (Unix): :!rm TEST
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 5.3: AUSW<53>HLEN VON TEXT ZUM SCHREIBEN
|
||||
|
||||
@@ -650,41 +651,42 @@ Bemerkung: W
|
||||
1. Bewege den Cursor zu dieser Zeile.
|
||||
|
||||
2. Tippe v und bewege den Cursor zum f<>nften Auflistungspunkt unten.
|
||||
Bemerke, da<EFBFBD> der Text hervorgehoben wird.
|
||||
Beachte, dass der Text hervorgehoben wird.
|
||||
|
||||
3. Dr<44>cke das Zeichen : . Am Fu<46> des Schirms erscheint :'<,'> .
|
||||
|
||||
4. Tippe w TEST , wobei TEST ein noch nicht vorhandener Dateiname ist.
|
||||
Vergewissere Dich, da<EFBFBD> Du :'<,'>w TEST siehst, bevor Du Enter dr<64>ckst.
|
||||
Vergewissere Dich, dass Du :'<,'>w TEST siehst, bevor Du <ENTER> dr<64>ckst.
|
||||
|
||||
5. Vim schreibt die ausgew<65>hlten Zeilen in die Datei TEST. Benutze :!dir
|
||||
oder :!ls , um sie zu sehen. L<>sche sie noch nicht! Wir werden sie in
|
||||
der n<>chsten Lektion benutzen.
|
||||
|
||||
Bemerkung: Dr<44>cken von v startet die Visuelle Auswahl. Du kannst den Cursor
|
||||
umherbewegen, um die Auswahl gr<67><72>er oder kleiner zu machen. Anschlie<69>end
|
||||
kann man einen Operator anwenden, um mit dem Text etwas zu tun. Zum
|
||||
Beispiel l<EFBFBD>scht d den Text.
|
||||
Hinweis: Dr<44>cken von v startet die Visuelle Auswahl. Du kannst den Cursor
|
||||
umherbewegen, um die Auswahl zu vergr<EFBFBD><EFBFBD>ern oder zu verkleinern. Anschlie<69>end
|
||||
l<EFBFBD>sst sich ein Operator anwenden, um mit dem Text etwas zu tun. Zum Beispiel
|
||||
l<>scht d den Text.
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 5.4: EINLESEN UND ZUSAMMENF<4E>HREN VON DATEIEN
|
||||
|
||||
|
||||
** Um den Inhalt einer Datei einzulesen, tippe :r DATEINAME **
|
||||
|
||||
1. Platziere den Cursor <20>berhalb dieser Zeile.
|
||||
1. Platziere den Cursor direkt <EFBFBD>ber dieser Zeile.
|
||||
|
||||
BEACHTE: Nachdem Du Schritt 2 ausgef<65>hrt hast, wirst Du Text aus Lektion 5.3
|
||||
sehen. Dann bewege Dich wieder ABW<42>RTS, um diese Lektion wiederzusehen.
|
||||
sehen. Dann bewege Dich wieder ABW<42>RTS, Lektion 5.4 wiederzusehen.
|
||||
|
||||
2. Nun lies Deine Datei TEST ein indem Du das Kommando :r TEST ausf<73>hrst,
|
||||
2. Nun lies deine Datei TEST ein indem Du das Kommando :r TEST ausf<73>hrst,
|
||||
wobei TEST der von Dir verwendete Dateiname ist.
|
||||
Die eingelesene Datei wird unterhalb der Cursorzeile eingef<65>gt.
|
||||
|
||||
3. Um zu <20>berpr<70>fen, dass die Datei eingelesen wurde, gehe zur<75>ck und siehe,
|
||||
dass es jetzt zwei Kopien von Lektion 5.3 gibt, das Original und die
|
||||
eingef<65>gte Dateiversion.
|
||||
3. Um zu <20>berpr<70>fen, dass die Datei eingelesen wurde, gehe zur<75>ck und
|
||||
beachte, dass es jetzt zwei Kopien von Lektion 5.3 gibt, das Original und
|
||||
die eingef<65>gte Dateiversion.
|
||||
|
||||
Bemerkung: Du kannst auch die Ausgabe eines externen Kommandos einlesen. Zum
|
||||
Anmerkung: Du kannst auch die Ausgabe eines externen Kommandos einlesen. Zum
|
||||
Beispiel liest :r !ls die Ausgabe des Kommandos ls ein und platziert
|
||||
sie unterhalb des Cursors.
|
||||
|
||||
@@ -720,14 +722,14 @@ Bemerkung: Du kannst auch die Ausgabe eines externen Kommandos einlesen. Zum
|
||||
|
||||
1. Bewege den Cursor zu der ersten mit ---> markierten Zeile unten.
|
||||
|
||||
2. Tippe o (klein geschrieben), um eine Zeile UNTERHALB des Cursos zu <20>ffnen
|
||||
2. Tippe o (klein geschrieben), um eine Zeile UNTERHALB des Cursors zu <20>ffnen
|
||||
und Dich in den Einf<6E>gemodus zu begeben.
|
||||
|
||||
3. Nun tippe etwas Text und dr<64>cke <ESC> , um den Einf<6E>gemodus zu verlassen.
|
||||
|
||||
---> Mit o wird der Cursor auf der offenen Zeile im Einf<6E>gemodus platziert.
|
||||
|
||||
4. Um eine Zeile <20>BERHALB des Cursos aufzumachen, gib einfach ein gro<72>es O
|
||||
4. Um eine Zeile <20>BERHALB des Cursors aufzumachen, gib einfach ein gro<72>es O
|
||||
statt einem kleinen o ein. Versuche dies auf der unten stehenden Zeile.
|
||||
|
||||
---> <20>ffne eine Zeile <20>ber dieser mit O , wenn der Cursor auf dieser Zeile ist.
|
||||
@@ -755,7 +757,7 @@ Bemerkung: Du kannst auch die Ausgabe eines externen Kommandos einlesen. Zum
|
||||
---> Diese Zei bietet Gelegen , Text in einer Zeile anzuf<75>.
|
||||
---> Diese Zeile bietet Gelegenheit, Text in einer Zeile anzuf<75>gen.
|
||||
|
||||
Bemerkung: a, i und A gehen alle gleicherma<6D>en in den Einf<6E>gemodus; der
|
||||
Anmerkung: a, i und A gehen alle gleicherma<6D>en in den Einf<6E>gemodus; der
|
||||
einzige Unterschied ist, wo die Zeichen eingef<65>gt werden.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 6.3: EINE ANDERE ART DES ERSETZENS (REPLACE)
|
||||
@@ -767,9 +769,9 @@ Bemerkung: a, i und A gehen alle gleicherma
|
||||
Bewege den Cursor zum Anfang des ersten xxx .
|
||||
|
||||
2. Nun dr<64>cke R und tippe die Nummer, die darunter in der zweiten Zeile
|
||||
steht, so das diese das xxx ersetzt.
|
||||
steht, so dass diese das xxx ersetzt.
|
||||
|
||||
3. Dr<44>cke <ESC> , um den Ersetzungsmodus zu verlassen. Bemerke, da<EFBFBD> der Rest
|
||||
3. Dr<44>cke <ESC> , um den Ersetzungsmodus zu verlassen. Beachte, dass der Rest
|
||||
der Zeile unver<65>ndert bleibt.
|
||||
|
||||
4. Wiederhole die Schritte, um das verbliebene xxx zu ersetzen.
|
||||
@@ -777,7 +779,7 @@ Bemerkung: a, i und A gehen alle gleicherma
|
||||
---> Das Addieren von 123 zu xxx ergibt xxx.
|
||||
---> Das Addieren von 123 zu 456 ergibt 579.
|
||||
|
||||
Bemerkung: Der Ersetzungsmodus ist wie der Einf<6E>gemodus, aber jedes eingetippte
|
||||
Anmerkung: Der Ersetzungsmodus ist wie der Einf<6E>gemodus, aber jedes eingetippte
|
||||
Zeichen l<>scht ein vorhandenes Zeichen.
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
@@ -785,7 +787,7 @@ Bemerkung: Der Ersetzungsmodus ist wie der Einf
|
||||
|
||||
** Benutze den y Operator, um Text zu kopieren; p , um ihn einzuf<75>gen **
|
||||
|
||||
1. Gehe zu der mit ---> markierten Zeile unten, setze den Cursor hinter "a)".
|
||||
1. Gehe zu der mit ---> markierten Zeile unten; setze den Cursor hinter "a)".
|
||||
|
||||
2. Starte den Visuellen Modus mit v , bewege den Cursor genau vor "erste".
|
||||
|
||||
@@ -802,11 +804,11 @@ Bemerkung: Der Ersetzungsmodus ist wie der Einf
|
||||
---> a) dies ist der erste Eintrag.
|
||||
b)
|
||||
|
||||
Bemerkung: Du kannst y auch als Operator verwenden; yw kopiert ein Wort.
|
||||
Anmerkung: Du kannst y auch als Operator verwenden; yw kopiert ein Wort.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 6.5: OPTIONEN SETZEN
|
||||
|
||||
** Setze eine Option so, dass eine Suche oder eine Ersetzung Gro<72>- **
|
||||
** Setze eine Option so, dass eine Suche oder Ersetzung Gro<72>- **
|
||||
** und Kleinschreibung ignoriert **
|
||||
|
||||
1. Suche nach 'ignoriere', indem Du /ignoriere eingibst.
|
||||
@@ -815,7 +817,7 @@ Bemerkung: Du kannst y auch als Operator verwenden; yw kopiert ein Wort.
|
||||
2. Setze die 'ic' (Ignore case) - Option, indem Du :set ic eingibst.
|
||||
|
||||
3. Nun suche wieder nach 'ignoriere', indem Du n tippst.
|
||||
Bemerke, da<EFBFBD> jetzt Ignoriere und auch IGNORIERE gefunden wird.
|
||||
Beachte, dass jetzt Ignoriere und auch IGNORIERE gefunden wird.
|
||||
|
||||
4. Setze die 'hlsearch' und 'incsearch' - Optionen: :set hls is
|
||||
|
||||
@@ -823,14 +825,14 @@ Bemerkung: Du kannst y auch als Operator verwenden; yw kopiert ein Wort.
|
||||
|
||||
6. Um das Ignorieren von Gro<72>/Kleinschreibung abzuschalten, tippe: :set noic
|
||||
|
||||
Bemerkung: Um die Hervorhebung der Treffer zu enfernen, gib ein: :nohlsearch
|
||||
Bemerkung: Um die Schreibweise f<>r eine einzige Suche zu ignorieren, benutze
|
||||
\c im Suchausdruck: /ignoriere\c <ENTER>
|
||||
Anmerkung: Um die Hervorhebung der Treffer zu entfernen, gib ein: :nohlsearch
|
||||
Anmerkung: Um die Schreibweise f<>r eine einzige Suche zu ignorieren, benutze \c
|
||||
im Suchausdruck: /ignoriere\c <ENTER>
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ZUSAMMENFASSUNG VON LEKTION 6
|
||||
|
||||
1. Tippe o , um eine Zeile UNTER dem Cursor zu <20>ffnen und den Einf<6E>gemodus
|
||||
zu starten.
|
||||
zu starten
|
||||
Tippe O , um eine Zeile <20>BER dem Cursor zu <20>ffnen.
|
||||
|
||||
2. Tippe a , um Text NACH dem Cursor anzuf<75>gen.
|
||||
@@ -876,13 +878,13 @@ Bemerkung: Um die Schreibweise f
|
||||
Lektion 7.2: ERSTELLE EIN START-SKRIPT
|
||||
|
||||
|
||||
** Aktiviere die eingebauten Funktionalit<69>ten von Vim **
|
||||
** Aktiviere die Features von Vim **
|
||||
|
||||
Vim besitzt viele Funktionalit<69>ten, die <20>ber Vi hinausgehen, aber die meisten
|
||||
von ihnen sind standardm<64><6D>ig deaktiviert. Um mehr Funktionalit<69>ten zu nutzen,
|
||||
musst Du eine "vimrc" - Datei erstellen.
|
||||
|
||||
1. Starte das Editieren der "vimrc"-Datei, abh<62>ngig von Deinem System:
|
||||
1. Starte das Editieren der "vimrc"-Datei, abh<62>ngig von deinem System:
|
||||
:e ~/.vimrc f<>r Unix
|
||||
:e $VIM/_vimrc f<>r MS-Windows
|
||||
|
||||
@@ -893,33 +895,33 @@ Bemerkung: Um die Schreibweise f
|
||||
:w
|
||||
|
||||
Beim n<>chsten Start von Vim wird die Syntaxhervorhebung aktiviert sein.
|
||||
Du kannst all Deine bevorzugten Optionen zu dieser "vimrc"-Datei zuf<75>gen.
|
||||
Du kannst all deine bevorzugten Optionen zu dieser "vimrc"-Datei zuf<75>gen.
|
||||
F<>r mehr Informationen tippe :help vimrc-intro
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 7.3: VERVOLLST<53>NDIGEN
|
||||
|
||||
|
||||
** Kommandozeilenvervollst<73>ndigung mit CTRL-D and <TAB> **
|
||||
** Kommandozeilenvervollst<73>ndigung mit CTRL-D und <TAB> **
|
||||
|
||||
1. Stelle sicher, da<EFBFBD> Vim nicht im vi-Kompatibilit<69>tsmodus ist: :set nocp
|
||||
1. Stelle sicher, dass Vim nicht im Vi-Kompatibilit<69>tsmodus ist: :set nocp
|
||||
|
||||
2. Siehe nach, welche Dateien im Verzeichnis existieren: :!ls oder :dir
|
||||
|
||||
3. Tippe den Beginn eines Komandos: :e
|
||||
3. Tippe den Beginn eines Kommandos: :e
|
||||
|
||||
4. Dr<44>cke CTRL-D und Vim zeigt eine Liste mit "e" beginnender Kommandos.
|
||||
|
||||
5. Dr<44>cke <TAB> und Vim vervollst<73>ndigt den Kommandonamen zu ":edit".
|
||||
|
||||
6. Nun f<>ge ein Leerzeichen und den Beginn einer existierenden Datei an:
|
||||
6. Nun f<>ge ein Leerzeichen und den Anfang einer existierenden Datei an:
|
||||
:edit DAT
|
||||
|
||||
7. Dr<44>cke <TAB>. Vim vervollst<73>ndigt den Namen (falls er eindeutig ist).
|
||||
|
||||
Bemerkung: Vervollst<73>ndigung funktioniert f<>r viele Kommandos. Versuche
|
||||
Anmerkung: Vervollst<73>ndigung funktioniert f<>r viele Kommandos. Probiere
|
||||
einfach CTRL-D und <TAB>. Dies ist insbesondere n<>tzlich f<>r :help .
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ZUSAMMENFASSUNG VON LEKTION 7
|
||||
ZUSAMMENFASSUNG VON LEKTION 7
|
||||
|
||||
|
||||
1. Tippe :help oder dr<64>cke <F1> oder <Help>, um ein Hilfefenster zu <20>ffnen.
|
||||
@@ -930,11 +932,11 @@ Bemerkung: Vervollst
|
||||
|
||||
4. Tippe :q , um das Hilfefenster zu schlie<69>en.
|
||||
|
||||
5. Erstelle ein vimrc - Startskript zur Sicherung bevorzugter Einstellungen.
|
||||
5. Erstelle ein vimrc - Startskript mit deinen bevorzugter Einstellungen.
|
||||
|
||||
6. Dr<44>cke CTRL-D nach dem Tippen eines Kommandos : , um m<>gliche
|
||||
Vervollst<73>ndigungen zu sehen.
|
||||
Dr<44>cke <TAB> f<EFBFBD>r eine einzige Vervollst<73>ndigung.
|
||||
6. Dr<44>cke CTRL-D nach dem Tippen eines : Kommandos, um m<>gliche
|
||||
Vervollst<73>ndigungen anzusehen.
|
||||
Dr<44>cke <TAB> , um eine Vervollst<73>ndigung zu anzuwenden.
|
||||
|
||||
|
||||
|
||||
@@ -943,13 +945,13 @@ Bemerkung: Vervollst
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Damit ist der Vim Tutor beendet. Die Intention war, einen kurzen und
|
||||
b<>ndigen <20>berblick <20>ber den Vim Editor zu liefern; gerade genug, um relativ
|
||||
Damit ist der Vim Tutor beendet. Seine Intention war, einen kurzen und
|
||||
b<>ndigen <20>berblick <20>ber den Vim Editor zu geben; gerade genug, um relativ
|
||||
leicht mit ihm umgehen zu k<>nnen. Der Vim Tutor hat nicht den geringsten
|
||||
Anspruch auf Vollst<73>ndigkeit; Vim hat noch weitaus mehr Kommandos. Lies als
|
||||
n<>chstes das User Manual: ":help user-manual".
|
||||
|
||||
F<>r weiteres Lesen und Lernen ist folgendes Buch empfohlen :
|
||||
F<>r weiteres Lesen und Lernen ist folgendes Buch empfehlenswert :
|
||||
Vim - Vi Improved - von Steve Oualline
|
||||
Verlag: New Riders
|
||||
Das erste Buch, welches durchg<68>ngig Vim gewidmet ist. Besonders n<>tzlich
|
||||
@@ -957,7 +959,7 @@ Bemerkung: Vervollst
|
||||
Siehe http://iccf-holland.org/click5.html
|
||||
|
||||
Folgendes Buch ist <20>lter und mehr <20>ber Vi als Vim, aber auch empfehlenswert:
|
||||
Textbearbeitung mit dem vi-Editor - von Linda Lamb und Arnold Robbins
|
||||
Textbearbeitung mit dem Vi-Editor - von Linda Lamb und Arnold Robbins
|
||||
Verlag O'Reilly - ISBN: 3897211262
|
||||
In diesem Buch kann man fast alles finden, was man mit Vi tun m<>chte.
|
||||
Die sechste Ausgabe enth<74>lt auch Informationen <20>ber Vim.
|
||||
@@ -970,11 +972,11 @@ Bemerkung: Vervollst
|
||||
f<>r Einsteiger empfehlenswert. Probekapitel und die Beispielskripte sind
|
||||
online erh<72>ltlich. Siehe http://iccf-holland.org/click5.html
|
||||
|
||||
Dieses Tutorial wurde geschrieben von Michael C. Pierce and Robert K. Ware,
|
||||
Dieses Tutorial wurde geschrieben von Michael C. Pierce und Robert K. Ware,
|
||||
Colorado School of Mines. Es benutzt Ideen, die Charles Smith, Colorado State
|
||||
University, zur Verf<72>gung stellte. E-mail: bware@mines.colorado.edu.
|
||||
University, zur Verf<72>gung stellte. E-Mail: bware@mines.colorado.edu.
|
||||
|
||||
Bearbeitet f<>r Vim von Bram Moolenaar.
|
||||
Deutsche <20>bersetzung von Joachim Hofmann 2007. E-mail: Joachim.Hof@gmx.de
|
||||
Deutsche <20>bersetzung von Joachim Hofmann 2015. E-Mail: Joachim.Hof@gmx.de
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
===============================================================================
|
||||
= W i l l k o m m e n im V I M T u t o r - Version 1.7D =
|
||||
= W i l l k o m m e n im V I M T u t o r - Version 1.7.de.1 =
|
||||
===============================================================================
|
||||
|
||||
Vim ist ein sehr mächtiger Editor, der viele Befehle bereitstellt; zu viele,
|
||||
um alle in einem Tutor wie diesem zu erklären. Dieser Tutor ist so
|
||||
gestaltet, um genug Befehle vorzustellen, dass Du die Fähigkeit erlangst,
|
||||
Vim mit Leichtigkeit als einen Allzweck-Editor zu benutzen.
|
||||
Vim mit Leichtigkeit als einen Allzweck-Editor zu verwenden.
|
||||
Die Zeit für das Durcharbeiten dieses Tutors beträgt ca. 25-30 Minuten,
|
||||
abhängig davon, wie viel Zeit Du mit Experimentieren verbringst.
|
||||
|
||||
@@ -15,11 +15,11 @@
|
||||
aufgerufen hast, ist dies bereits eine Kopie).
|
||||
|
||||
Es ist wichtig, sich zu vergegenwärtigen, dass dieser Tutor für das Anwenden
|
||||
konzipiert ist. Das bedeutet, dass Du die Befehle ausführen musst, um sie
|
||||
konzipiert ist. Das bedeutet, dass Du die Befehle anwenden musst, um sie
|
||||
richtig zu lernen. Wenn Du nur den Text liest, vergisst Du die Befehle!
|
||||
|
||||
Jetzt stelle sicher, dass Deine Umstelltaste NICHT gedrückt ist und betätige
|
||||
die j Taste genügend Male, um den Cursor nach unten zu bewegen, so dass
|
||||
Jetzt stelle sicher, dass deine Umstelltaste NICHT gedrückt ist und betätige
|
||||
die j Taste genügend Mal, um den Cursor nach unten zu bewegen, so dass
|
||||
Lektion 1.1 den Bildschirm vollkommen ausfüllt.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 1.1: BEWEGEN DES CURSORS
|
||||
@@ -37,18 +37,18 @@
|
||||
|
||||
3. Benutze die Nach-Unten-Taste, um Dich zu Lektion 1.2 zu bewegen.
|
||||
|
||||
Bemerkung: Immer, wenn Du Dir unsicher bist über das, was Du getippt hast,
|
||||
Anmerkung: Immer, wenn Du Dir unsicher bist über das, was Du getippt hast,
|
||||
drücke <ESC> , um Dich in den Normalmodus zu begeben.
|
||||
Dann gib das gewünschte Kommando noch einmal ein.
|
||||
|
||||
Bemerkung: Die Cursor-Tasten sollten ebenfalls funktionieren. Aber wenn Du
|
||||
Anmerkung: Die Cursor-Tasten sollten ebenfalls funktionieren. Aber wenn Du
|
||||
hjkl benutzt, wirst Du in der Lage sein, Dich sehr viel schneller
|
||||
umherzubewegen, wenn Du Dich einmal daran gewöhnt hast. Wirklich!
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 1.2: VIM BEENDEN
|
||||
|
||||
|
||||
!! ACHTUNG: Bevor Du einen der unten aufgeführten Schritte ausführst, lies
|
||||
!! Hinweis: Bevor Du einen der unten aufgeführten Schritte ausführst, lies
|
||||
diese gesamte Lektion!!
|
||||
|
||||
1. Drücke die <ESC> Taste (um sicherzustellen, dass Du im Normalmodus bist).
|
||||
@@ -63,28 +63,28 @@ Bemerkung: Die Cursor-Tasten sollten ebenfalls funktionieren. Aber wenn Du
|
||||
führe Schritte 1 bis 3 aus, um den Editor zu verlassen und wieder
|
||||
hineinzugelangen.
|
||||
|
||||
Bemerkung: :q! <ENTER> verwirft alle Änderungen, die Du gemacht hast. In
|
||||
einigen Lektionen lernst Du , die Änderungen in einer Datei zu speichern.
|
||||
Anmerkung: :q! <ENTER> verwirft alle Änderungen, die Du gemacht hast. Einige
|
||||
Lektionen später lernst Du, die Änderungen in einer Datei zu speichern.
|
||||
|
||||
5. Bewege den Cursor abwärts zu Lektion 1.3.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 1.3: TEXT EDITIEREN - LÖSCHEN
|
||||
|
||||
|
||||
** Drücke x um das Zeichen unter dem Cursor zu löschen. **
|
||||
** Drücke x , um das Zeichen unter dem Cursor zu löschen. **
|
||||
|
||||
1. Bewege den Cursor zu der mit ---> markierten Zeile unten.
|
||||
|
||||
2. Um die Fehler zu beheben, bewege den Cursor, bis er auf dem Zeichen steht,
|
||||
2. Um die Fehler zu beheben, bewege den Cursor, bis er über dem Zeichen steht,
|
||||
das gelöscht werden soll.
|
||||
|
||||
3. Drücke die x Taste, um das überflüssige Zeichen zu löschen.
|
||||
3. Drücke die x Taste, um das unerwünschte Zeichen zu löschen.
|
||||
|
||||
4. Wiederhole die Schritte 2 bis 4, bis der Satz korrekt ist.
|
||||
|
||||
---> Die Kkuh sprangg übber deen Moond.
|
||||
---> Die Kkuh sprangg übberr deen Moond.
|
||||
|
||||
5. Wenn nun die Zeile korrekt ist, gehe weiter zur Lektion 1.4.
|
||||
5. Nun, da die Zeile korrekt ist, gehe weiter zur Lektion 1.4.
|
||||
|
||||
Anmerkung: Während Du durch diesen Tutor gehst, versuche nicht, auswendig zu
|
||||
lernen, lerne vielmehr durch Anwenden.
|
||||
@@ -99,13 +99,13 @@ Anmerkung: Während Du durch diesen Tutor gehst, versuche nicht, auswendig zu
|
||||
1. Bewege den Cursor zur ersten unten stehenden mit ---> markierten Zeile.
|
||||
|
||||
2. Um die erste Zeile mit der zweiten gleichzumachen, bewege den Cursor auf
|
||||
das erste Zeichen NACH der Stelle, wo der Text eingefügt werden soll.
|
||||
das erste Zeichen NACH der Stelle, an der Text eingefügt werden soll.
|
||||
|
||||
3. Drücke i und gib die notwendigen Ergänzungen ein.
|
||||
3. Drücke i und gib die nötigen Ergänzungen ein.
|
||||
|
||||
4. Wenn jeweils ein Fehler beseitigt ist, drücke <ESC> , um zum Normalmodus
|
||||
zurückzukehren.
|
||||
Wiederhole die Schritte 2 bis 4, um den Satz zu korrigieren.
|
||||
Wiederhole Schritte 2 bis 4, um den Satz zu korrigieren.
|
||||
|
||||
---> In dieser ft etwas .
|
||||
---> In dieser Zeile fehlt etwas Text.
|
||||
@@ -120,15 +120,15 @@ Anmerkung: Während Du durch diesen Tutor gehst, versuche nicht, auswendig zu
|
||||
** Drücke A , um Text anzufügen. **
|
||||
|
||||
1. Bewege den Cursor zur ersten unten stehenden mit ---> markierten Zeile.
|
||||
Es ist gleichgültig, auf welchem Zeichen der Zeile der Cursor steht.
|
||||
Dabei ist gleichgültig, auf welchem Zeichen der Zeile der Cursor steht.
|
||||
|
||||
2. Drücke A und gib die nötigen Ergänzungen ein.
|
||||
2. Drücke A und gib die erforderlichen Ergänzungen ein.
|
||||
|
||||
3. Wenn das Anfügen abgeschlossen ist, drücke <ESC>, um in den Normalmodus
|
||||
zurückzukehren.
|
||||
|
||||
4. Bewege den Cursor zur zweiten mit ---> markierten Zeile und wiederhole
|
||||
die Schritte 2 und 3, um den Satz zu korrigieren.
|
||||
die Schritte 2 und 3, um den Satz zu auszubessern.
|
||||
|
||||
---> In dieser Zeile feh
|
||||
In dieser Zeile fehlt etwas Text.
|
||||
@@ -139,26 +139,28 @@ Anmerkung: Während Du durch diesen Tutor gehst, versuche nicht, auswendig zu
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 1.6: EINE DATEI EDITIEREN
|
||||
|
||||
** Benutze :wq , um eine Datei zu speichern und Vim zu verlassen. **
|
||||
|
||||
** Benutze :wq , um eine Datei zu speichern und Vim zu verlassen. **
|
||||
|
||||
!! ACHTUNG: Bevor Du einen der unten aufgeführten Schritte ausführst, lies
|
||||
!! Hinweis: Bevor Du einen der unten aufgeführten Schritte ausführst, lies
|
||||
diese gesamte Lektion!!
|
||||
|
||||
1. Verlasse den Editor so wie in Lektion 1.2: :q!
|
||||
1. Verlasse den Editor so wie in Lektion 1.2: :q!
|
||||
Oder, falls du Zugriff zu einem anderen Terminal hast, führe das
|
||||
Folgende dort aus.
|
||||
|
||||
2. Gib dieses Kommando in die Eingabeaufforderung ein: vim tutor <ENTER>
|
||||
'vim' ist der Aufruf des Editors, 'tutor' ist die zu editierende Datei.
|
||||
Benutze eine Datei, die geändert werden kann.
|
||||
Benutze eine Datei, die geändert werden darf.
|
||||
|
||||
3. Füge Text ein oder lösche ihn, wie Du in den vorigen Lektionen gelernt
|
||||
hast.
|
||||
3. Füge Text ein oder lösche ihn, wie Du in den vorangehenden Lektionen
|
||||
gelernt hast.
|
||||
|
||||
4. Speichere die geänderte Datei und verlasse Vim mit: :wq <ENTER>
|
||||
4. Speichere die geänderte Datei und verlasse Vim mit: :wq <ENTER>
|
||||
|
||||
5. Starte den vimtutor neu und bewege Dich zu der folgenden Zusammenfassung.
|
||||
5. Falls Du in Schritt 1 den vimtutor beendet hast, starte vimtutor neu und
|
||||
bewege dich abwärts bis zur folgenden Zusammenfassung.
|
||||
|
||||
6. Nachdem Du obige Schritte gelesen und verstanden hast, führe sie durch.
|
||||
6. Nachdem Du obige Schritte gelesen und verstanden hast: führe sie durch.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ZUSAMMENFASSUNG VON LEKTION 1
|
||||
|
||||
@@ -166,19 +168,18 @@ Anmerkung: Während Du durch diesen Tutor gehst, versuche nicht, auswendig zu
|
||||
1. Der Cursor wird mit den Pfeiltasten oder den Tasten hjkl bewegt.
|
||||
h (links) j (unten) k (aufwärts) l (rechts)
|
||||
|
||||
2. Um Vim von der Eingabeaufforderung auszuführen, tippe: vim DATEI <ENTER>
|
||||
2. Um Vim aus der Eingabeaufforderung zu starten, tippe: vim DATEI <ENTER>
|
||||
|
||||
3. Um Vim zu verlassen und alle Änderungen zu verwerfen, tippe:
|
||||
<ESC> :q! <ENTER> .
|
||||
ODER tippe: <ESC> :wq <ENTER> , um die Änderungen zu speichern.
|
||||
|
||||
4. Um das Zeichen unter dem Cursor zu löschen, tippe: x
|
||||
|
||||
5. Um Text einzufügen oder anzufügen, tippe:
|
||||
i Einzufügenden Text eingeben <ESC> Einfügen vor dem Cursor
|
||||
A Anzufügenden Text eingeben <ESC> Anfügen nach dem Zeilendene
|
||||
A Anzufügenden Text eingeben <ESC> Anfügen nach dem Zeilenende
|
||||
|
||||
Bemerkung: Drücken von <ESC> bringt Dich in den Normalmodus oder bricht ein
|
||||
Anmerkung: Drücken von <ESC> bringt Dich in den Normalmodus oder bricht ein
|
||||
ungewolltes, erst teilweise eingegebenes Kommando ab.
|
||||
|
||||
Nun fahre mit Lektion 2 fort.
|
||||
@@ -188,7 +189,7 @@ Bemerkung: Drücken von <ESC> bringt Dich in den Normalmodus oder bricht ein
|
||||
|
||||
** Tippe dw , um ein Wort zu löschen. **
|
||||
|
||||
1. Drücke <ESC> um sicherzustellen, dass Du im Normalmodus bist.
|
||||
1. Drücke <ESC> , um sicherzustellen, dass Du im Normalmodus bist.
|
||||
|
||||
2. Bewege den Cursor zu der mit ---> markierten Zeile unten.
|
||||
|
||||
@@ -196,15 +197,15 @@ Bemerkung: Drücken von <ESC> bringt Dich in den Normalmodus oder bricht ein
|
||||
|
||||
4. Tippe dw , um das Wort zu entfernen.
|
||||
|
||||
Bemerkung: Der Buchstabe d erscheint auf der letzten Zeile des Bildschirms,
|
||||
wenn Du ihn eingibst. Vim wartet darauf, daß Du w eingibst. Wenn Du
|
||||
ein anderes Zeichen als d siehst, hast Du etwas falsches getippt;
|
||||
drücke <ESC> und beginne neu.
|
||||
Anmerkung: Der Buchstabe d erscheint auf der untersten Zeile des Schirms,
|
||||
wenn Du ihn eingibst. Vim wartet darauf, dass Du w eingibst. Falls Du
|
||||
ein anderes Zeichen als d siehst, hast Du etwas Falsches getippt;
|
||||
drücke <ESC> und beginne noch einmal.
|
||||
|
||||
---> Einige Wörter lustig gehören nicht Papier in diesen Satz.
|
||||
|
||||
5. Wiederhole die Schritte 3 und 4, bis der Satz korrekt ist und gehe
|
||||
danach zur Lektion 2.2.
|
||||
zur Lektion 2.2.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 2.2: WEITERE LÖSCHKOMMANDOS
|
||||
|
||||
@@ -217,12 +218,12 @@ Bemerkung: Drücken von <ESC> bringt Dich in den Normalmodus oder bricht ein
|
||||
|
||||
3. Bewege den Cursor zum Ende der korrekten Zeile (NACH dem ersten . ).
|
||||
|
||||
4. Tippe d$ , um bis zum Ende der Zeile zu löschen.
|
||||
4. Tippe d$ , um bis zum Zeilenende zu löschen.
|
||||
|
||||
---> Jemand hat das Ende der Zeile doppelt eingegeben. doppelt eingegeben.
|
||||
|
||||
|
||||
5. Gehe weiter zur Lektion 2.3 , um zu verstehen, was hierbei passiert.
|
||||
5. Gehe weiter zur Lektion 2.3 , um zu verstehen, was hierbei vorgeht.
|
||||
|
||||
|
||||
|
||||
@@ -240,16 +241,16 @@ Bemerkung: Drücken von <ESC> bringt Dich in den Normalmodus oder bricht ein
|
||||
|
||||
wobei:
|
||||
d - der Löschoperator
|
||||
Bewegung - worauf der Löschoperator angewandt wird (unten aufgelistet).
|
||||
Bewegung - worauf der Löschoperator angewandt wird (unten aufgeführt).
|
||||
|
||||
Eine kleine Auflistung von Bewegungen:
|
||||
w - bis zum Beginn des nächsten Wortes OHNE dessen erstes Zeichen.
|
||||
e - zum Ende des aktuellen Wortes MIT dessen letztem Zeichen.
|
||||
$ - zum Ende der Zeile MIT dem letzen Zeichen.
|
||||
$ - zum Ende der Zeile MIT dem letzten Zeichen.
|
||||
|
||||
Dementsprechend löscht die Eingabe von de vom Cursor an bis zum Wortende.
|
||||
|
||||
Bemerkung: Die Eingabe lediglich des Bewegungsteils im Normalmodus bewegt den
|
||||
Anmerkung: Die Eingabe lediglich des Bewegungsteils im Normalmodus bewegt den
|
||||
Cursor entsprechend.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 2.4: ANWENDUNG EINES ZÄHLERS FÜR EINEN BEWEGUNGSSCHRITT
|
||||
@@ -265,9 +266,9 @@ Bemerkung: Die Eingabe lediglich des Bewegungsteils im Normalmodus bewegt den
|
||||
|
||||
4. Tippe 0 (Null) , um zum Anfang der Zeile zu gelangen.
|
||||
|
||||
5. Wiederhole Schritte 2 und 3 mit verschiedenen Zählern.
|
||||
5. Wiederhole Schritte 2 und 3 mit verschiedenen Nummern.
|
||||
|
||||
---> Dies ist nur eine Zeile aus Wörten um sich darin herumzubewegen.
|
||||
---> Dies ist nur eine Zeile aus Wörtern, um sich darin herumzubewegen.
|
||||
|
||||
6. Gehe weiter zu Lektion 2.5.
|
||||
|
||||
@@ -280,8 +281,8 @@ Bemerkung: Die Eingabe lediglich des Bewegungsteils im Normalmodus bewegt den
|
||||
|
||||
** Die Eingabe einer Zahl mit einem Operator wiederholt diesen mehrfach. **
|
||||
|
||||
Für die Kombination des Löschoperators und einem Bewegungsschritt (siehe
|
||||
oben) stellt man dem Bewegungsschritt einen Zähler voran, um mehr zu löschen:
|
||||
In der Kombination aus Löschoperator und Bewegungsschritt (siehe oben)
|
||||
stellt man, um mehr zu löschen dem Schritt einen Zähler voran:
|
||||
d Nummer Bewegungsschritt
|
||||
|
||||
1. Bewege den Cursor zum ersten Wort in GROSSBUCHSTABEN in der mit --->
|
||||
@@ -289,9 +290,8 @@ Bemerkung: Die Eingabe lediglich des Bewegungsteils im Normalmodus bewegt den
|
||||
|
||||
2. Tippe d2w , um die zwei Wörter in GROSSBUCHSTABEN zu löschen.
|
||||
|
||||
3. Wiederhole Schritte 1 und 2 mit einem anderen Zähler, um die
|
||||
darauffolgenden Wörter in GROSSBUCHSTABEN mit einem einzigen Kommando
|
||||
zu löschen.
|
||||
3. Wiederhole Schritte 1 und 2 mit einem anderen Zähler, um die darauffol-
|
||||
genden Wörter in GROSSBUCHSTABEN mit einem einzigen Kommando zu löschen.
|
||||
|
||||
---> Diese ABC DE Zeile FGHI JK LMN OP mit Wörtern ist Q RS TUV bereinigt.
|
||||
|
||||
@@ -325,12 +325,12 @@ Bemerkung: Die Eingabe lediglich des Bewegungsteils im Normalmodus bewegt den
|
||||
|
||||
|
||||
** Tippe u , um die letzten Kommandos rückgängig zu machen **
|
||||
** oder U um eine ganze Zeile wiederherzustellen. **
|
||||
** oder U , um eine ganze Zeile wiederherzustellen. **
|
||||
|
||||
1. Bewege den Cursor zu der mit ---> markierten Zeile unten
|
||||
und setze ihn auf den ersten Fehler.
|
||||
2. Tippe x , um das erste unerwünschte Zeichen zu löschen.
|
||||
3. Nun tippe u um das soeben ausgeführte Kommando rückgängig zu machen.
|
||||
3. Nun tippe u , um das soeben ausgeführte Kommando rückgängig zu machen.
|
||||
4. Jetzt behebe alle Fehler auf der Zeile mit Hilfe des x Kommandos.
|
||||
5. Nun tippe ein großes U , um die Zeile in ihren Ursprungszustand
|
||||
wiederherzustellen.
|
||||
@@ -341,8 +341,8 @@ Bemerkung: Die Eingabe lediglich des Bewegungsteils im Normalmodus bewegt den
|
||||
|
||||
---> Beehebe die Fehller diesser Zeile und sttelle sie mitt 'undo' wieder her.
|
||||
|
||||
8. Dies sind sehr nützliche Kommandos.
|
||||
Nun gehe weiter zur Zusammenfassung von Lektion 2.
|
||||
8. Dies sind sehr nützliche Kommandos. Nun gehe weiter zur Zusammenfassung
|
||||
von Lektion 2.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ZUSAMMENFASSUNG VON LEKTION 2
|
||||
|
||||
@@ -357,7 +357,7 @@ Bemerkung: Die Eingabe lediglich des Bewegungsteils im Normalmodus bewegt den
|
||||
wobei:
|
||||
Operator - gibt an, was getan werden soll, zum Beispiel d für delete
|
||||
[Anzahl] - ein optionaler Zähler, um den Bewegungsschritt zu wiederholen
|
||||
Bewegungsschritt - Bewegung über den zu ändernden Text, so wie
|
||||
Bewegungsschritt - Bewegung über den zu ändernden Text, wie
|
||||
w (Wort), $ (zum Ende der Zeile), etc.
|
||||
|
||||
6. Um Dich zum Anfang der Zeile zu begeben, benutze die Null: 0
|
||||
@@ -387,7 +387,7 @@ Bemerkung: Die Eingabe lediglich des Bewegungsteils im Normalmodus bewegt den
|
||||
|
||||
---> d) Kannst Du das auch?
|
||||
---> b) Veilchen sind blau,
|
||||
---> c) Intelligenz ist erlernbar,
|
||||
---> c) Intelligenz ist lernbar,
|
||||
---> a) Rosen sind rot,
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 3.2: ERSETZEN (REPLACE)
|
||||
@@ -403,13 +403,13 @@ Bemerkung: Die Eingabe lediglich des Bewegungsteils im Normalmodus bewegt den
|
||||
|
||||
4. Wiederhole Schritte 2 und 3, bis die erste Zeile gleich der zweiten ist.
|
||||
|
||||
---> Als diese Zeite eingegoben wurde, wurden einike falsche Tasten gelippt!
|
||||
---> Alf diese Zeite eingegoben wurde, wurden einike falsche Tasten gelippt!
|
||||
---> Als diese Zeile eingegeben wurde, wurden einige falsche Tasten getippt!
|
||||
|
||||
5. Nun fahre fort mit Lektion 3.2.
|
||||
|
||||
Bemerkung: Erinnere Dich, dass Du durch Anwenden lernen solltest, nicht durch
|
||||
Auswendiglernen.
|
||||
Anmerkung: Erinnere Dich daran, dass Du durch Anwenden lernen solltest, nicht
|
||||
durch Auswendiglernen.
|
||||
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
@@ -431,7 +431,7 @@ Bemerkung: Erinnere Dich, dass Du durch Anwenden lernen solltest, nicht durch
|
||||
---> Einige Wstwr dieser Zlaww lasdjlaf mit dem Ändern-Operator gaaauu werden.
|
||||
---> Einige Wörter dieser Zeile sollen mit dem Ändern-Operator geändert werden.
|
||||
|
||||
Bemerke, dass ce das Wort löscht und Dich in den Eingabemodus versetzt.
|
||||
Beachte, dass ce das Wort löscht und Dich in den Eingabemodus versetzt.
|
||||
|
||||
|
||||
|
||||
@@ -457,7 +457,7 @@ Bemerke, dass ce das Wort löscht und Dich in den Eingabemodus versetzt.
|
||||
---> Das Ende dieser Zeile soll an die zweite Zeile angeglichen werden.
|
||||
---> Das Ende dieser Zeile soll mit dem c$ Kommando korrigiert werden.
|
||||
|
||||
Bemerkung: Du kannst die Rücktaste benutzen, um Tippfehler zu korrigieren.
|
||||
Anmerkung: Du kannst die Rücktaste benutzen, um Tippfehler zu korrigieren.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ZUSAMMENFASSUNG VON LEKTION 3
|
||||
|
||||
@@ -466,8 +466,8 @@ Bemerkung: Du kannst die Rücktaste benutzen, um Tippfehler zu korrigieren.
|
||||
gelöschten Text NACH dem Cursor an (wenn eine ganze Zeile gelöscht wurde,
|
||||
wird diese in die Zeile unter dem Cursor eingefügt).
|
||||
|
||||
2. Um das Zeichen unter dem Cursor zu ersetzen, tippe r und das an dieser
|
||||
Stelle gewünschte Zeichen.
|
||||
2. Um das Zeichen unter dem Cursor zu ersetzen, tippe r und danach das
|
||||
an dieser Stelle gewollte Zeichen.
|
||||
|
||||
3. Der Änderungs- (change) Operator erlaubt, vom Cursor bis zum Ende des
|
||||
Bewegungsschrittes zu ändern. Tippe ce , um eine Änderung vom Cursor bis
|
||||
@@ -484,17 +484,18 @@ Bemerkung: Du kannst die Rücktaste benutzen, um Tippfehler zu korrigieren.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 4.1: CURSORPOSITION UND DATEISTATUS
|
||||
|
||||
** Tippe CTRL-G , um Deine Dateiposition sowie den Dateistatus anzuzeigen. **
|
||||
** Tippe CTRL-G , um deine Dateiposition sowie den Dateistatus anzuzeigen. **
|
||||
** Tippe G , um Dich zu einer Zeile in der Datei zu begeben. **
|
||||
|
||||
Bemerkung: Lies diese gesamte Lektion, bevor Du irgendeinen Schritt ausführst!!
|
||||
Anmerkung: Lies diese gesamte Lektion, bevor Du irgendeinen Schritt ausführst!!
|
||||
|
||||
1. Halte die Ctrl Taste unten und drücke g . Dies nennen wir wir CTRL-G.
|
||||
1. Halte die Ctrl Taste unten und drücke g . Dies nennen wir CTRL-G.
|
||||
Eine Statusmeldung am Fuß der Seite erscheint mit dem Dateinamen und der
|
||||
Position innerhalb der Datei. Merke Dir die Zeilennummer für Schritt 3.
|
||||
|
||||
Bemerkung: Möglicherweise siehst Du die Cursorposition in der unteren rechten
|
||||
Bildschirmecke. Dies ist Folge der 'ruler' Option (siehe :help 'ruler')
|
||||
Anmerkung: Möglicherweise siehst Du die Cursorposition in der unteren rechten
|
||||
Bildschirmecke. Dies ist Auswirkung der 'ruler' Option
|
||||
(siehe :help 'ruler')
|
||||
|
||||
2. Drücke G , um Dich zum Ende der Datei zu begeben.
|
||||
Tippe gg , um Dich zum Anfang der Datei zu begeben.
|
||||
@@ -510,7 +511,7 @@ Bemerkung: Möglicherweise siehst Du die Cursorposition in der unteren rechten
|
||||
|
||||
** Tippe / gefolgt von einem Ausdruck, um nach dem Ausdruck zu suchen. **
|
||||
|
||||
1. Im Normalmodus, tippe das / Zeichen. Bemerke, dass das / und der
|
||||
1. Im Normalmodus, tippe das / Zeichen. Beachte, dass das / und der
|
||||
Cursor am Fuß des Schirms erscheinen, so wie beim : Kommando.
|
||||
|
||||
2. Nun tippe 'Fehhler' <ENTER>. Dies ist das Wort, nach dem Du suchen willst.
|
||||
@@ -521,32 +522,32 @@ Bemerkung: Möglicherweise siehst Du die Cursorposition in der unteren rechten
|
||||
4. Um nach einem Ausdruck rückwärts zu suchen , benutze ? statt / .
|
||||
|
||||
5. Um dahin zurückzukehren, von wo Du gekommen bist, drücke CTRL-O (Halte
|
||||
Ctrl unten und drücke den Buchstaben o). Wiederhole dies, um weiter
|
||||
zurückzugehen. CTRL-I bringt dich vorwärts.
|
||||
Ctrl unten und drücke den Buchstaben o). Wiederhole dies, um noch weiter
|
||||
zurückzugehen. CTRL-I geht vorwärts.
|
||||
|
||||
---> Fehler schreibt sich nicht "Fehhler"; Fehhler ist ein Fehler
|
||||
Bemerkung: Wenn die Suche das Dateiende erreicht hat, wird sie am Anfang
|
||||
Anmerkung: Wenn die Suche das Dateiende erreicht hat, wird sie am Anfang
|
||||
fortgesetzt, es sei denn, die 'wrapscan' Option wurde abgeschaltet.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 4.3: PASSENDE KLAMMERN FINDEN
|
||||
|
||||
|
||||
** Tippe % , um eine korrespondierende Klammer ),], oder } zu finden. **
|
||||
** Tippe % , um eine gegenüberliegenden Klammer ),], oder } zu finden. **
|
||||
|
||||
1. Platziere den Cursor auf irgendeines der Zeichen (, [, oder { in der unten
|
||||
1. Platziere den Cursor auf irgendeinem der Zeichen (, [, oder { in der unten
|
||||
stehenden Zeile, die mit ---> markiert ist.
|
||||
|
||||
2. Nun tippe das % Zeichen.
|
||||
|
||||
3. Der Cursor bewegt sich zur passenden gegenüberliegenden Klammer.
|
||||
|
||||
4. Tippe % , um den Cursor zur anderen passenden Klammer zu bewegen.
|
||||
4. Tippe % , um den Cursor zur passenden anderen Klammer zu bewegen.
|
||||
|
||||
5. Setze den Cursor auf ein anderes (,),[,],{ oder } und probiere % aus.
|
||||
|
||||
---> Dies ( ist eine Testzeile ( mit [ verschiedenen ] { Klammern } darin. ))
|
||||
|
||||
Bemerkung: Diese Funktionalität ist sehr nützlich bei der Fehlersuche in einem
|
||||
Anmerkung: Diese Funktionalität ist sehr nützlich bei der Fehlersuche in einem
|
||||
Programmtext, in dem passende Klammern fehlen!
|
||||
|
||||
|
||||
@@ -558,18 +559,18 @@ Bemerkung: Diese Funktionalität ist sehr nützlich bei der Fehlersuche in einem
|
||||
|
||||
1. Bewege den Cursor zu der unten stehenden mit ---> markierten Zeile.
|
||||
|
||||
2. Tippe :s/diee/die <ENTER> . Bemerke, dass der Befehl nur das erste
|
||||
2. Tippe :s/diee/die <ENTER> . Beachte, dass der Befehl nur das erste
|
||||
Vorkommen von "diee" ersetzt.
|
||||
|
||||
3. Nun tippe :s/diee/die/g . Das Zufügen des Flags g bedeutet, eine
|
||||
globale Ersetzung über die Zeile durchzuführen, was alle Vorkommen von
|
||||
"diee" auf der Zeile ersetzt.
|
||||
globale Ersetzung über die Zeile durchzuführen, dies ersetzt alle
|
||||
Vorkommen von "diee" auf der Zeile.
|
||||
|
||||
---> diee schönste Zeit, um diee Blumen anzuschauen, ist diee Frühlingszeit.
|
||||
|
||||
4. Um alle Vorkommen einer Zeichenkette innerhalb zweier Zeilen zu ändern,
|
||||
tippe :#,#s/alt/neu/g wobei #,# die Zeilennummern des Zeilenbereiches
|
||||
sind, in dem die Ersetzung durchgeführt werden soll.
|
||||
tippe :#,#s/alt/neu/g wobei #,# die Zeilennummern des Bereiches sind,
|
||||
in dem die Ersetzung durchgeführt werden soll.
|
||||
Tippe :%s/alt/neu/g um alle Vorkommen in der gesamten Datei zu ändern.
|
||||
Tippe :%s/alt/neu/gc um alle Vorkommen in der gesamten Datei zu finden
|
||||
mit einem Fragedialog, ob ersetzt werden soll oder nicht.
|
||||
@@ -593,9 +594,9 @@ Bemerkung: Diese Funktionalität ist sehr nützlich bei der Fehlersuche in einem
|
||||
4. Um das erste Vorkommen von "alt" in einer Zeile durch "neu" zu ersetzen,
|
||||
tippe :s/alt/neu
|
||||
Um alle Vorkommen von "alt" in der Zeile ersetzen, tippe :s/alt/neu/g
|
||||
Um Ausdrücke innerhalb zweier Zeilennummern zu ersetzen, :#,#s/alt/neu/g
|
||||
Um Ausdrücke innerhalb zweier Zeilen # zu ersetzen :#,#s/alt/neu/g
|
||||
Um alle Vorkommen in der ganzen Datei zu ersetzen, tippe :%s/alt/neu/g
|
||||
Für eine jedmalige Bestätigung, addiere 'c' (confirm) :%s/alt/neu/gc
|
||||
Für eine jedesmalige Bestätigung, addiere 'c' (confirm) :%s/alt/neu/gc
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 5.1: AUSFÜHREN EINES EXTERNEN KOMMANDOS
|
||||
|
||||
@@ -608,14 +609,14 @@ Bemerkung: Diese Funktionalität ist sehr nützlich bei der Fehlersuche in einem
|
||||
2. Nun tippe ein ! (Ausrufezeichen). Dies ermöglicht Dir, ein beliebiges,
|
||||
externes Shellkommando auszuführen.
|
||||
|
||||
3. Als Beispiel tippe ls nach dem ! und drücke <ENTER>. Dies zeigt
|
||||
eine Auflistung Deines Verzeichnisses; genauso, als wenn Du auf der
|
||||
3. Als Beispiel tippe ls nach dem ! und drücke <ENTER>. Dies liefert
|
||||
eine Auflistung deines Verzeichnisses; genauso, als wenn Du in der
|
||||
Eingabeaufforderung wärst. Oder verwende :!dir , falls ls nicht geht.
|
||||
|
||||
Bemerkung: Mit dieser Methode kann jedes beliebige externe Kommando
|
||||
Anmerkung: Mit dieser Methode kann jedes beliebige externe Kommando
|
||||
ausgeführt werden, auch mit Argumenten.
|
||||
|
||||
Bemerkung: Alle : Kommandos müssen durch Eingabe von <ENTER>
|
||||
Anmerkung: Alle : Kommandos müssen durch Eingabe von <ENTER>
|
||||
abgeschlossen werden. Von jetzt an erwähnen wir dies nicht jedesmal.
|
||||
|
||||
|
||||
@@ -625,7 +626,7 @@ Bemerkung: Alle : Kommandos müssen durch Eingabe von <ENTER>
|
||||
|
||||
** Um am Text durchgeführte Änderungen zu speichern, tippe :w DATEINAME. **
|
||||
|
||||
1. Tippe :!dir oder :!ls , um eine Auflistung Deines Verzeichnisses zu
|
||||
1. Tippe :!dir oder :!ls , um eine Auflistung deines Verzeichnisses zu
|
||||
erhalten. Du weißt nun bereits, dass Du danach <ENTER> eingeben musst.
|
||||
|
||||
2. Wähle einen Dateinamen, der noch nicht existiert, z.B. TEST.
|
||||
@@ -633,15 +634,15 @@ Bemerkung: Alle : Kommandos müssen durch Eingabe von <ENTER>
|
||||
3. Nun tippe: :w TEST (wobei TEST der gewählte Dateiname ist).
|
||||
|
||||
4. Dies speichert die ganze Datei (den Vim Tutor) unter dem Namen TEST.
|
||||
Um dies zu überprüfen, tippe nochmals :!ls bzw. !dir, um Deinen
|
||||
Um dies zu überprüfen, tippe nochmals :!ls bzw. !dir, um deinen
|
||||
Verzeichnisinhalt zu sehen.
|
||||
|
||||
Bemerkung: Würdest Du Vim jetzt beenden und danach wieder mit vim TEST
|
||||
Anmerkung: Würdest Du Vim jetzt beenden und danach wieder mit vim TEST
|
||||
starten, dann wäre diese Datei eine exakte Kopie des Tutors zu dem
|
||||
Zeitpunkt, als Du ihn gespeichert hast.
|
||||
|
||||
5. Nun entferne die Datei durch Eingabe von (MS-DOS): :!del TEST
|
||||
oder (Unix): :!rm TEST
|
||||
oder (Unix): :!rm TEST
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 5.3: AUSWÄHLEN VON TEXT ZUM SCHREIBEN
|
||||
|
||||
@@ -650,41 +651,42 @@ Bemerkung: Würdest Du Vim jetzt beenden und danach wieder mit vim TEST
|
||||
1. Bewege den Cursor zu dieser Zeile.
|
||||
|
||||
2. Tippe v und bewege den Cursor zum fünften Auflistungspunkt unten.
|
||||
Bemerke, daß der Text hervorgehoben wird.
|
||||
Beachte, dass der Text hervorgehoben wird.
|
||||
|
||||
3. Drücke das Zeichen : . Am Fuß des Schirms erscheint :'<,'> .
|
||||
|
||||
4. Tippe w TEST , wobei TEST ein noch nicht vorhandener Dateiname ist.
|
||||
Vergewissere Dich, daß Du :'<,'>w TEST siehst, bevor Du Enter drückst.
|
||||
Vergewissere Dich, dass Du :'<,'>w TEST siehst, bevor Du <ENTER> drückst.
|
||||
|
||||
5. Vim schreibt die ausgewählten Zeilen in die Datei TEST. Benutze :!dir
|
||||
oder :!ls , um sie zu sehen. Lösche sie noch nicht! Wir werden sie in
|
||||
der nächsten Lektion benutzen.
|
||||
|
||||
Bemerkung: Drücken von v startet die Visuelle Auswahl. Du kannst den Cursor
|
||||
umherbewegen, um die Auswahl größer oder kleiner zu machen. Anschließend
|
||||
kann man einen Operator anwenden, um mit dem Text etwas zu tun. Zum
|
||||
Beispiel löscht d den Text.
|
||||
Hinweis: Drücken von v startet die Visuelle Auswahl. Du kannst den Cursor
|
||||
umherbewegen, um die Auswahl zu vergrößern oder zu verkleinern. Anschließend
|
||||
lässt sich ein Operator anwenden, um mit dem Text etwas zu tun. Zum Beispiel
|
||||
löscht d den Text.
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 5.4: EINLESEN UND ZUSAMMENFÜHREN VON DATEIEN
|
||||
|
||||
|
||||
** Um den Inhalt einer Datei einzulesen, tippe :r DATEINAME **
|
||||
|
||||
1. Platziere den Cursor überhalb dieser Zeile.
|
||||
1. Platziere den Cursor direkt über dieser Zeile.
|
||||
|
||||
BEACHTE: Nachdem Du Schritt 2 ausgeführt hast, wirst Du Text aus Lektion 5.3
|
||||
sehen. Dann bewege Dich wieder ABWÄRTS, um diese Lektion wiederzusehen.
|
||||
sehen. Dann bewege Dich wieder ABWÄRTS, Lektion 5.4 wiederzusehen.
|
||||
|
||||
2. Nun lies Deine Datei TEST ein indem Du das Kommando :r TEST ausführst,
|
||||
2. Nun lies deine Datei TEST ein indem Du das Kommando :r TEST ausführst,
|
||||
wobei TEST der von Dir verwendete Dateiname ist.
|
||||
Die eingelesene Datei wird unterhalb der Cursorzeile eingefügt.
|
||||
|
||||
3. Um zu überprüfen, dass die Datei eingelesen wurde, gehe zurück und siehe,
|
||||
dass es jetzt zwei Kopien von Lektion 5.3 gibt, das Original und die
|
||||
eingefügte Dateiversion.
|
||||
3. Um zu überprüfen, dass die Datei eingelesen wurde, gehe zurück und
|
||||
beachte, dass es jetzt zwei Kopien von Lektion 5.3 gibt, das Original und
|
||||
die eingefügte Dateiversion.
|
||||
|
||||
Bemerkung: Du kannst auch die Ausgabe eines externen Kommandos einlesen. Zum
|
||||
Anmerkung: Du kannst auch die Ausgabe eines externen Kommandos einlesen. Zum
|
||||
Beispiel liest :r !ls die Ausgabe des Kommandos ls ein und platziert
|
||||
sie unterhalb des Cursors.
|
||||
|
||||
@@ -720,14 +722,14 @@ Bemerkung: Du kannst auch die Ausgabe eines externen Kommandos einlesen. Zum
|
||||
|
||||
1. Bewege den Cursor zu der ersten mit ---> markierten Zeile unten.
|
||||
|
||||
2. Tippe o (klein geschrieben), um eine Zeile UNTERHALB des Cursos zu öffnen
|
||||
2. Tippe o (klein geschrieben), um eine Zeile UNTERHALB des Cursors zu öffnen
|
||||
und Dich in den Einfügemodus zu begeben.
|
||||
|
||||
3. Nun tippe etwas Text und drücke <ESC> , um den Einfügemodus zu verlassen.
|
||||
|
||||
---> Mit o wird der Cursor auf der offenen Zeile im Einfügemodus platziert.
|
||||
|
||||
4. Um eine Zeile ÜBERHALB des Cursos aufzumachen, gib einfach ein großes O
|
||||
4. Um eine Zeile ÜBERHALB des Cursors aufzumachen, gib einfach ein großes O
|
||||
statt einem kleinen o ein. Versuche dies auf der unten stehenden Zeile.
|
||||
|
||||
---> Öffne eine Zeile über dieser mit O , wenn der Cursor auf dieser Zeile ist.
|
||||
@@ -755,7 +757,7 @@ Bemerkung: Du kannst auch die Ausgabe eines externen Kommandos einlesen. Zum
|
||||
---> Diese Zei bietet Gelegen , Text in einer Zeile anzufü.
|
||||
---> Diese Zeile bietet Gelegenheit, Text in einer Zeile anzufügen.
|
||||
|
||||
Bemerkung: a, i und A gehen alle gleichermaßen in den Einfügemodus; der
|
||||
Anmerkung: a, i und A gehen alle gleichermaßen in den Einfügemodus; der
|
||||
einzige Unterschied ist, wo die Zeichen eingefügt werden.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 6.3: EINE ANDERE ART DES ERSETZENS (REPLACE)
|
||||
@@ -767,9 +769,9 @@ Bemerkung: a, i und A gehen alle gleichermaßen in den Einfügemodus; der
|
||||
Bewege den Cursor zum Anfang des ersten xxx .
|
||||
|
||||
2. Nun drücke R und tippe die Nummer, die darunter in der zweiten Zeile
|
||||
steht, so das diese das xxx ersetzt.
|
||||
steht, so dass diese das xxx ersetzt.
|
||||
|
||||
3. Drücke <ESC> , um den Ersetzungsmodus zu verlassen. Bemerke, daß der Rest
|
||||
3. Drücke <ESC> , um den Ersetzungsmodus zu verlassen. Beachte, dass der Rest
|
||||
der Zeile unverändert bleibt.
|
||||
|
||||
4. Wiederhole die Schritte, um das verbliebene xxx zu ersetzen.
|
||||
@@ -777,7 +779,7 @@ Bemerkung: a, i und A gehen alle gleichermaßen in den Einfügemodus; der
|
||||
---> Das Addieren von 123 zu xxx ergibt xxx.
|
||||
---> Das Addieren von 123 zu 456 ergibt 579.
|
||||
|
||||
Bemerkung: Der Ersetzungsmodus ist wie der Einfügemodus, aber jedes eingetippte
|
||||
Anmerkung: Der Ersetzungsmodus ist wie der Einfügemodus, aber jedes eingetippte
|
||||
Zeichen löscht ein vorhandenes Zeichen.
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
@@ -785,7 +787,7 @@ Bemerkung: Der Ersetzungsmodus ist wie der Einfügemodus, aber jedes eingetippte
|
||||
|
||||
** Benutze den y Operator, um Text zu kopieren; p , um ihn einzufügen **
|
||||
|
||||
1. Gehe zu der mit ---> markierten Zeile unten, setze den Cursor hinter "a)".
|
||||
1. Gehe zu der mit ---> markierten Zeile unten; setze den Cursor hinter "a)".
|
||||
|
||||
2. Starte den Visuellen Modus mit v , bewege den Cursor genau vor "erste".
|
||||
|
||||
@@ -802,11 +804,11 @@ Bemerkung: Der Ersetzungsmodus ist wie der Einfügemodus, aber jedes eingetippte
|
||||
---> a) dies ist der erste Eintrag.
|
||||
b)
|
||||
|
||||
Bemerkung: Du kannst y auch als Operator verwenden; yw kopiert ein Wort.
|
||||
Anmerkung: Du kannst y auch als Operator verwenden; yw kopiert ein Wort.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 6.5: OPTIONEN SETZEN
|
||||
|
||||
** Setze eine Option so, dass eine Suche oder eine Ersetzung Groß- **
|
||||
** Setze eine Option so, dass eine Suche oder Ersetzung Groß- **
|
||||
** und Kleinschreibung ignoriert **
|
||||
|
||||
1. Suche nach 'ignoriere', indem Du /ignoriere eingibst.
|
||||
@@ -815,7 +817,7 @@ Bemerkung: Du kannst y auch als Operator verwenden; yw kopiert ein Wort.
|
||||
2. Setze die 'ic' (Ignore case) - Option, indem Du :set ic eingibst.
|
||||
|
||||
3. Nun suche wieder nach 'ignoriere', indem Du n tippst.
|
||||
Bemerke, daß jetzt Ignoriere und auch IGNORIERE gefunden wird.
|
||||
Beachte, dass jetzt Ignoriere und auch IGNORIERE gefunden wird.
|
||||
|
||||
4. Setze die 'hlsearch' und 'incsearch' - Optionen: :set hls is
|
||||
|
||||
@@ -823,14 +825,14 @@ Bemerkung: Du kannst y auch als Operator verwenden; yw kopiert ein Wort.
|
||||
|
||||
6. Um das Ignorieren von Groß/Kleinschreibung abzuschalten, tippe: :set noic
|
||||
|
||||
Bemerkung: Um die Hervorhebung der Treffer zu enfernen, gib ein: :nohlsearch
|
||||
Bemerkung: Um die Schreibweise für eine einzige Suche zu ignorieren, benutze
|
||||
\c im Suchausdruck: /ignoriere\c <ENTER>
|
||||
Anmerkung: Um die Hervorhebung der Treffer zu entfernen, gib ein: :nohlsearch
|
||||
Anmerkung: Um die Schreibweise für eine einzige Suche zu ignorieren, benutze \c
|
||||
im Suchausdruck: /ignoriere\c <ENTER>
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ZUSAMMENFASSUNG VON LEKTION 6
|
||||
|
||||
1. Tippe o , um eine Zeile UNTER dem Cursor zu öffnen und den Einfügemodus
|
||||
zu starten.
|
||||
zu starten
|
||||
Tippe O , um eine Zeile ÜBER dem Cursor zu öffnen.
|
||||
|
||||
2. Tippe a , um Text NACH dem Cursor anzufügen.
|
||||
@@ -876,13 +878,13 @@ Bemerkung: Um die Schreibweise für eine einzige Suche zu ignorieren, benutze
|
||||
Lektion 7.2: ERSTELLE EIN START-SKRIPT
|
||||
|
||||
|
||||
** Aktiviere die eingebauten Funktionalitäten von Vim **
|
||||
** Aktiviere die Features von Vim **
|
||||
|
||||
Vim besitzt viele Funktionalitäten, die über Vi hinausgehen, aber die meisten
|
||||
von ihnen sind standardmäßig deaktiviert. Um mehr Funktionalitäten zu nutzen,
|
||||
musst Du eine "vimrc" - Datei erstellen.
|
||||
|
||||
1. Starte das Editieren der "vimrc"-Datei, abhängig von Deinem System:
|
||||
1. Starte das Editieren der "vimrc"-Datei, abhängig von deinem System:
|
||||
:e ~/.vimrc für Unix
|
||||
:e $VIM/_vimrc für MS-Windows
|
||||
|
||||
@@ -893,33 +895,33 @@ Bemerkung: Um die Schreibweise für eine einzige Suche zu ignorieren, benutze
|
||||
:w
|
||||
|
||||
Beim nächsten Start von Vim wird die Syntaxhervorhebung aktiviert sein.
|
||||
Du kannst all Deine bevorzugten Optionen zu dieser "vimrc"-Datei zufügen.
|
||||
Du kannst all deine bevorzugten Optionen zu dieser "vimrc"-Datei zufügen.
|
||||
Für mehr Informationen tippe :help vimrc-intro
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Lektion 7.3: VERVOLLSTÄNDIGEN
|
||||
|
||||
|
||||
** Kommandozeilenvervollständigung mit CTRL-D and <TAB> **
|
||||
** Kommandozeilenvervollständigung mit CTRL-D und <TAB> **
|
||||
|
||||
1. Stelle sicher, daß Vim nicht im vi-Kompatibilitätsmodus ist: :set nocp
|
||||
1. Stelle sicher, dass Vim nicht im Vi-Kompatibilitätsmodus ist: :set nocp
|
||||
|
||||
2. Siehe nach, welche Dateien im Verzeichnis existieren: :!ls oder :dir
|
||||
|
||||
3. Tippe den Beginn eines Komandos: :e
|
||||
3. Tippe den Beginn eines Kommandos: :e
|
||||
|
||||
4. Drücke CTRL-D und Vim zeigt eine Liste mit "e" beginnender Kommandos.
|
||||
|
||||
5. Drücke <TAB> und Vim vervollständigt den Kommandonamen zu ":edit".
|
||||
|
||||
6. Nun füge ein Leerzeichen und den Beginn einer existierenden Datei an:
|
||||
6. Nun füge ein Leerzeichen und den Anfang einer existierenden Datei an:
|
||||
:edit DAT
|
||||
|
||||
7. Drücke <TAB>. Vim vervollständigt den Namen (falls er eindeutig ist).
|
||||
|
||||
Bemerkung: Vervollständigung funktioniert für viele Kommandos. Versuche
|
||||
Anmerkung: Vervollständigung funktioniert für viele Kommandos. Probiere
|
||||
einfach CTRL-D und <TAB>. Dies ist insbesondere nützlich für :help .
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
ZUSAMMENFASSUNG VON LEKTION 7
|
||||
ZUSAMMENFASSUNG VON LEKTION 7
|
||||
|
||||
|
||||
1. Tippe :help oder drücke <F1> oder <Help>, um ein Hilfefenster zu öffnen.
|
||||
@@ -930,11 +932,11 @@ Bemerkung: Vervollständigung funktioniert für viele Kommandos. Versuche
|
||||
|
||||
4. Tippe :q , um das Hilfefenster zu schließen.
|
||||
|
||||
5. Erstelle ein vimrc - Startskript zur Sicherung bevorzugter Einstellungen.
|
||||
5. Erstelle ein vimrc - Startskript mit deinen bevorzugter Einstellungen.
|
||||
|
||||
6. Drücke CTRL-D nach dem Tippen eines Kommandos : , um mögliche
|
||||
Vervollständigungen zu sehen.
|
||||
Drücke <TAB> für eine einzige Vervollständigung.
|
||||
6. Drücke CTRL-D nach dem Tippen eines : Kommandos, um mögliche
|
||||
Vervollständigungen anzusehen.
|
||||
Drücke <TAB> , um eine Vervollständigung zu anzuwenden.
|
||||
|
||||
|
||||
|
||||
@@ -943,13 +945,13 @@ Bemerkung: Vervollständigung funktioniert für viele Kommandos. Versuche
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Damit ist der Vim Tutor beendet. Die Intention war, einen kurzen und
|
||||
bündigen Überblick über den Vim Editor zu liefern; gerade genug, um relativ
|
||||
Damit ist der Vim Tutor beendet. Seine Intention war, einen kurzen und
|
||||
bündigen Überblick über den Vim Editor zu geben; gerade genug, um relativ
|
||||
leicht mit ihm umgehen zu können. Der Vim Tutor hat nicht den geringsten
|
||||
Anspruch auf Vollständigkeit; Vim hat noch weitaus mehr Kommandos. Lies als
|
||||
nächstes das User Manual: ":help user-manual".
|
||||
|
||||
Für weiteres Lesen und Lernen ist folgendes Buch empfohlen :
|
||||
Für weiteres Lesen und Lernen ist folgendes Buch empfehlenswert :
|
||||
Vim - Vi Improved - von Steve Oualline
|
||||
Verlag: New Riders
|
||||
Das erste Buch, welches durchgängig Vim gewidmet ist. Besonders nützlich
|
||||
@@ -957,7 +959,7 @@ Bemerkung: Vervollständigung funktioniert für viele Kommandos. Versuche
|
||||
Siehe http://iccf-holland.org/click5.html
|
||||
|
||||
Folgendes Buch ist älter und mehr über Vi als Vim, aber auch empfehlenswert:
|
||||
Textbearbeitung mit dem vi-Editor - von Linda Lamb und Arnold Robbins
|
||||
Textbearbeitung mit dem Vi-Editor - von Linda Lamb und Arnold Robbins
|
||||
Verlag O'Reilly - ISBN: 3897211262
|
||||
In diesem Buch kann man fast alles finden, was man mit Vi tun möchte.
|
||||
Die sechste Ausgabe enthält auch Informationen über Vim.
|
||||
@@ -970,11 +972,11 @@ Bemerkung: Vervollständigung funktioniert für viele Kommandos. Versuche
|
||||
für Einsteiger empfehlenswert. Probekapitel und die Beispielskripte sind
|
||||
online erhältlich. Siehe http://iccf-holland.org/click5.html
|
||||
|
||||
Dieses Tutorial wurde geschrieben von Michael C. Pierce and Robert K. Ware,
|
||||
Dieses Tutorial wurde geschrieben von Michael C. Pierce und Robert K. Ware,
|
||||
Colorado School of Mines. Es benutzt Ideen, die Charles Smith, Colorado State
|
||||
University, zur Verfügung stellte. E-mail: bware@mines.colorado.edu.
|
||||
University, zur Verfügung stellte. E-Mail: bware@mines.colorado.edu.
|
||||
|
||||
Bearbeitet für Vim von Bram Moolenaar.
|
||||
Deutsche Übersetzung von Joachim Hofmann 2007. E-mail: Joachim.Hof@gmx.de
|
||||
Deutsche Übersetzung von Joachim Hofmann 2015. E-Mail: Joachim.Hof@gmx.de
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
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 Бремом Муленаром.
|
||||
|
||||
|
||||
Переклад на українську Буник Т.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
@@ -1,7 +1,7 @@
|
||||
" An example for a vimrc file.
|
||||
"
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last change: 2014 Nov 05
|
||||
" Last change: 2015 Mar 24
|
||||
"
|
||||
" To use it, copy it to
|
||||
" for Unix and OS/2: ~/.vimrc
|
||||
@@ -73,10 +73,8 @@ if has("autocmd")
|
||||
" When editing a file, always jump to the last known cursor position.
|
||||
" Don't do it when the position is invalid or when inside an event handler
|
||||
" (happens when dropping a file on gvim).
|
||||
" Also don't do it when the mark is in the first line, that is the default
|
||||
" position when opening a file.
|
||||
autocmd BufReadPost *
|
||||
\ if line("'\"") > 1 && line("'\"") <= line("$") |
|
||||
\ if line("'\"") >= 1 && line("'\"") <= line("$") |
|
||||
\ exe "normal! g`\"" |
|
||||
\ endif
|
||||
|
||||
|
||||
29
src/auto/configure
vendored
29
src/auto/configure
vendored
@@ -5888,17 +5888,34 @@ __:
|
||||
@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
|
||||
@echo "python_DLLLIBRARY='$(DLLLIBRARY)'"
|
||||
@echo "python_INSTSONAME='$(INSTSONAME)'"
|
||||
@echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'"
|
||||
@echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'"
|
||||
@echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'"
|
||||
eof
|
||||
eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
|
||||
rm -f -- "${tmp_mkf}"
|
||||
if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
|
||||
"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
|
||||
vi_cv_path_python_plibs="-framework Python"
|
||||
if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
|
||||
vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python"
|
||||
fi
|
||||
else
|
||||
if test "${vi_cv_var_python_version}" = "1.4"; then
|
||||
vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
|
||||
else
|
||||
vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
|
||||
fi
|
||||
if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then
|
||||
python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'`
|
||||
python_link_path=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'`
|
||||
if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then
|
||||
python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}"
|
||||
if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then
|
||||
python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}"
|
||||
fi
|
||||
python_LINKFORSHARED="${python_link_symbol} ${python_link_path}"
|
||||
fi
|
||||
fi
|
||||
vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
|
||||
vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
|
||||
@@ -6367,8 +6384,8 @@ if test "$python_ok" = yes && test "$python3_ok" = yes; then
|
||||
$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; }
|
||||
cflags_save=$CFLAGS
|
||||
CFLAGS="$CFLAGS $PYTHON_CFLAGS"
|
||||
ldflags_save=$LDFLAGS
|
||||
LDFLAGS="-ldl $LDFLAGS"
|
||||
libs_save=$LIBS
|
||||
LIBS="-ldl $LIBS"
|
||||
if test "$cross_compiling" = yes; then :
|
||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||
@@ -6426,14 +6443,14 @@ fi
|
||||
|
||||
|
||||
CFLAGS=$cflags_save
|
||||
LDFLAGS=$ldflags_save
|
||||
LIBS=$libs_save
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5
|
||||
$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; }
|
||||
cflags_save=$CFLAGS
|
||||
CFLAGS="$CFLAGS $PYTHON3_CFLAGS"
|
||||
ldflags_save=$LDFLAGS
|
||||
LDFLAGS="-ldl $LDFLAGS"
|
||||
libs_save=$LIBS
|
||||
LIBS="-ldl $LIBS"
|
||||
if test "$cross_compiling" = yes; then :
|
||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||
@@ -6492,7 +6509,7 @@ fi
|
||||
|
||||
|
||||
CFLAGS=$cflags_save
|
||||
LDFLAGS=$ldflags_save
|
||||
LIBS=$libs_save
|
||||
|
||||
PYTHON_SRC="if_python.c"
|
||||
PYTHON_OBJ="objects/if_python.o"
|
||||
|
||||
12
src/buffer.c
12
src/buffer.c
@@ -1150,7 +1150,7 @@ do_buffer(action, start, dir, count, forceit)
|
||||
{
|
||||
/* don't warn when deleting */
|
||||
if (!unload)
|
||||
EMSGN(_("E86: Buffer %ld does not exist"), count);
|
||||
EMSGN(_(e_nobufnr), count);
|
||||
}
|
||||
else if (dir == FORWARD)
|
||||
EMSG(_("E87: Cannot go beyond last buffer"));
|
||||
@@ -1794,7 +1794,6 @@ buflist_new(ffname, sfname, lnum, flags)
|
||||
if (aborting()) /* autocmds may abort script processing */
|
||||
return NULL;
|
||||
#endif
|
||||
/* buf->b_nwindows = 0; why was this here? */
|
||||
free_buffer_stuff(buf, FALSE); /* delete local variables et al. */
|
||||
|
||||
/* Init the options. */
|
||||
@@ -1872,6 +1871,9 @@ buflist_new(ffname, sfname, lnum, flags)
|
||||
#ifdef FEAT_AUTOCMD
|
||||
if (!(flags & BLN_DUMMY))
|
||||
{
|
||||
/* Tricky: these autocommands may change the buffer list. They could
|
||||
* also split the window with re-using the one empty buffer. This may
|
||||
* result in unexpectedly losing the empty buffer. */
|
||||
apply_autocmds(EVENT_BUFNEW, NULL, NULL, FALSE, buf);
|
||||
if (!buf_valid(buf))
|
||||
return NULL;
|
||||
@@ -4409,6 +4411,8 @@ get_rel_pos(wp, buf, buflen)
|
||||
long above; /* number of lines above window */
|
||||
long below; /* number of lines below window */
|
||||
|
||||
if (buflen < 3) /* need at least 3 chars for writing */
|
||||
return;
|
||||
above = wp->w_topline - 1;
|
||||
#ifdef FEAT_DIFF
|
||||
above += diff_check_fill(wp, wp->w_topline) - wp->w_topfill;
|
||||
@@ -5469,6 +5473,10 @@ insert_sign(buf, prev, next, id, lnum, typenr)
|
||||
|
||||
/* first sign in signlist */
|
||||
buf->b_signlist = newsign;
|
||||
#ifdef FEAT_NETBEANS_INTG
|
||||
if (netbeans_active())
|
||||
buf->b_has_sign_column = TRUE;
|
||||
#endif
|
||||
}
|
||||
else
|
||||
prev->next = newsign;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user