forked from zufuliu/notepad4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vim.vim
91 lines (84 loc) · 1.23 KB
/
Vim.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
" Vim Reference Manual 8.1
" https://vimhelp.org/
" Expression evaluation
" https://vimhelp.org/eval.txt.html#eval.txt
" Write a Vim script
" https://vimhelp.org/usr_41.txt.html#usr_41.txt
"! keywords ===========================================================
" Expression syntax
is isnot
END
" Defining functions
function
endfunction
delfunction
delfun
return
call
func
endfunc
fun
endfun endf
" Commands
let
unlet
const
lockvar
unlockvar
if
elseif
else
endif
if
end
while
endwhile endw
for in
endfor
continue
break
try
catch
finally
throw
endtry
" Automatic commands
au autocmd
"! commands ===========================================================
echo
echon
echoh echohl
echom echomsg
echoe echoerr
exe exec execute
finish
" Setting options
" https://vimhelp.org/options.txt.html#options.txt
set
setl setlocal
setg setglobal
setf setfiletype
" Key mapping
" https://vimhelp.org/map.txt.html#map.txt
map
unmap
" Automatic commands
" https://vimhelp.org/autocmd.txt.html#autocmd.txt
aug augroup
do doautocmd
doautoall
noautocmd
" Various commands
" https://vimhelp.org/various.txt.html#various.txt
ascii
print
normal
version
redir
filter
silent
unsilent
verbose
" Syntax highlighting
" https://vimhelp.org/syntax.txt.html#syntax.txt
syn syntax