nvi
更纯正,接近原始的vi
command argument
-F don't copy whole file, may faster
-S secure
help (quick reference)
:exusage
:viusage
init
/etc/vi.exrc => ~/.nexrc or ~/.exrc
multi window
Edit
Fg
fg bg
Next edit next file in args at new window
Previous
Visual
di[splay] b[uffers]
di[splay] s[creens]
elvis
显示模式很有特色,比如可以实现分屏,一边编辑html,一边即时查看效果
Q vi-mode to ex-mode
cmd args
-? options list
-s read from stdin an excute ex script, ignore init file
-i start with input-mode
multi window
sp[lit] new window
new new buffer
sne[w] new buffer and window
sn[ext] next file in args
sN[ext] previous file in args
sre[wind] first file in args
sl[ast] last
sa[ll] create window for file without window in args
close close window not affect buffer
wquit write buffer to file and close window
qall close all not affect buffer without window
wi[ndow] [target] list all window if no target
target:
+ ^W k switch to next window
++ ^W ^W switch round
- ^W j previous window
-- ^W ^W
num window=num
buffer-name
^w c :close
^w d change mode on syntax and html,man,tex
^w j next
^w k previous
^w n :snew
^w q ZZ
^w s :split
^w S change wrap option, wrap or scroll
^w ] :stag
[count] ^w ^w next or count's
^w + increase size (only for termcap)
^w - decrease size
^w maxmium window
visual mode
v text field, one char every time
V one line
^v rectangle area
program assist
cc
mak[e]
er[rlist] next error position
display mode
di[splay] [mode [lang]] change mode ,lang stand for syntax
no[rmal] same as :di normal
elvis.brf before reading file, default check extend name
elvis.arf after reading file, check name, open syntas heighlight
elvis.bwf before writing file, backup
elvis.awf after writing file
vile
类似emacs的vi
help document
:show-commands list of vile cmd with shortly describe
:apropos cmd name contain specified string
:describe-key show describe of input cmd
:describe-function
init
$XVILE_MENU => .vilemenu set X11 menu
$VILEINIT =>$VIL_STARTUP_FILE =>.vilerc => .exrc
multi window
:split split-current-window
delete-other-windows ^o, ^x 1
delete-window ^k, ^x 0
edit-file,E,e ^x e
find-file ^x e
grow-window V increase count line at current window
shrink-window v decrease count line
move-next-window-down ^a ^e scroll text up in other window
move-next-window-up ^a ^y
move-window-left ^x ^l
move-window-right ^x ^r
next-window ^x o
position-window z where where may be center(. M m),top(ENTER H t), bottom(- L b)
previous-window ^x O
resize-window change window as counts lines
restore-window
save-window mark a window, use for restore
scroll-next-window-down ^a ^d half screen
scroll-next-window-up ^a ^u
view-file readonly open file
historical-buffer _ nine buffer lists
toggle-buffer-list * pop a window, show all buffer
quoted motion
1q,q heighlight by char
2q line
3q rectangle
^s refer to quote field
^x !cmd run cmd
^x ^x next error