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.

VimRepress : managing wordpress blog from vim

下载链接 http://www.vim.org/scripts/script.php?script_id=3510

配置:
” Configure: Add blog configure into your .vimrc

” let VIMPRESS=[{‘username’:’user’,
” \’password’:’pass’,
” \’blog_url’:’http://your-first-blog.com/&#8217;
” \},
” \{‘username’:’user’,
” \’password’:’pass’,
” \’blog_url’:’http://your-second-blog.com/&#8217;
” \}]

常见问题:
1.vim版本不支持python
debian : apt-get install vim-nox
This package contains a version of vim compiled with support for
scripting with Perl, Python, Ruby, and Tcl but no GUI.

2.BlogList error:“An error has occured”
描述:远端wordpress网站没有打开XML-RPC服务
解决方法:在后台->设置->撰写->启用XML-RPC

Posted in Vim.