vi Complete Key Binding List

vi Complete Key Binding List
http://hea-www.harvard.edu/~fine/Tech/vi.html

This is not intended as a tutorial. It is a reference on what every vi key binding does, followed by some useful vi tricks and tips. An expert will probably know most of these already, but an intermediate vi user will find valuable information, and even an expert may learn a thing or two.
complete key binding reference

Key Action Followed by
a enter insertion mode after current character text, ESC
b back word
c change command cursor motion command
d delete command cursor motion command
e end of word
f find character after cursor in current line character to find
g UNBOUND
h move left one character

继续阅读

Posted in Vim.

Vim 杀手级 Tip: 快速处理配对标点符号中的文本

http://linuxtoy.org/archives/killer-vim-tip.html
这称得上是一个 Vim 的杀手级 Tip,利用该 Tip,你可以快速处理 ‘、”、()、[]、{}、 等配对标点符号中的文本内容,包括更改、删除、复制等。

ci’、ci”、ci(、ci[、ci{、ci< – 分别更改这些配对标点符号中的文本内容
di'、di"、di(、di[、di{、di< – 分别删除这些配对标点符号中的文本内容
yi'、yi"、yi(、yi[、yi{、yi< – 分别复制这些配对标点符号中的文本内容
对于经常用 Vim 写代码的朋友来说,善用此 Tip 将极大的提高编码效率。

Posted in Vim.