vis 目标是成为一个现代化的,简单而高效的VIM般的编辑器。主要内容如下:
为了建立 vis ,你需要一个C99 编译和
一个C库
libcurses
libtermkey
lua >= 5.2
LPeg >= 0.12
上述需求满足以后,执行
$ ./configure && make && sudo make install
操作:
c (change)
d (delete)
! (filter)
= (format using fmt(1))
gu (make lowercase)
gU (make uppercase)
J (join)
p (put)
< (shift-left)
(shift-right)
~ (swap case)
y (yank)
0 (start of line)
b (previous start of a word)
B (previous start of a WORD)
$ (end of line)
e (next end of a word)
E (next end of a WORD)
F{char} (to next occurrence of char to the left)
f{char} (to next occurrence of char to the right)
^ (first non-blank of line)
g0 (begin of display line)
g$ (end of display line)
ge (previous end of a word)
gE (previous end of a WORD)
gg (begin of file)
G (goto line or end of file)
gj (display line down)
gk (display line up)
g_ (last non-blank of line)
gm (middle of display line)
| (goto column)
h (char left)
H (goto top/home line of window)
j (line down)
k (line up)
l (char right)
L (goto bottom/last line of window)
`{mark} (go to mark)
‘{mark} (go to start of line containing mark)
% (match bracket)
M (goto middle line of window)
]] (next end of C-like function)
} (next paragraph)
) (next sentence)
][ (next start of C-like function)
N (repeat last search backwards)
n (repeat last search forward)
[] (previous end of C-like function)
{ (previous paragraph)
( (previous sentence)
[[ (previous start of C-like function)
; (repeat last to/till movement)
, (repeat last to/till movement but in opposite direction)
T{char} (till before next occurrence of char to the left)
t{char} (till before next occurrence of char to the right)
?{text} (to next match of text in backward direction)
/{text} (to next match of text in forward direction)
w (next start of a word)
W (next start of a WORD)
w word
W WORD
s sentence
p paragraph
[,], (,), {,}, <,>, “, ‘, ` block enclosed by these symbols