vim配置

插件位置 ~/.vim/plugin一些插件

autocomplpop.vim
http://www.vim.org/scripts/script.php?script_id=1879
 输入过的单词都可以菜单自动提示, 如果有单词可用 Ctrl+n 可以强制弹出菜单。 Ctrl+n / Ctrl+p 可以在菜单上下选择。


NERD_commenter.vim
http://www.vim.org/scripts/script.php?script_id=1218
 \cc 加注释, \cu 减注释。还可以 Shift+v 选中多行以后加减注释。


bufexplorer.vim
http://www.vim.org/scripts/script.php?script_id=42
:Buf 命令列出所有打开的文件。

超过80列,和行尾空格高亮

 highlight rightMargin ctermbg=red ctermfg=white guibg=#592929
 match rightMargin /.\%>81v/
 highlight whitespaceEol ctermbg=red ctermfg=white guibg=#592929
 :2match whitespaceEol /\s\+$/

 

一些命令

# 行首添加
:1,$ s/^/insert word/g

# 行尾添加
:1,$ s/$/insert word/g

 

posted on 2013-05-15 17:20  cfox  阅读(245)  评论(0编辑  收藏  举报

导航