玩转vim之vim插件-cvim
2015-03-20 15:55
155 查看
玩转vim之vim插件-cvim
使用c-support 插件加速代码开发
安装
安装下载cvim.zip解压到~/.vim即可。配置
安装完后,可在~/.vimrc 添加快捷键映射(如我上面的配置文件中示,下面这两个快 捷键是用于快速定位错误的): " csupport plugin map <silent> <F9> <Esc>:cprevious<CR> map <silent> <F10> <Esc>:cnext<CR> 然后我们更新一下帮助文档: :helptags $VIMRUNTIME/doc :helptags ~/.vim/doc常用 c-support 热键 (hotkey )
全部hotkey可用 evince ~/.vim/c-support/doc/c-hotkeys.pdf 打开查看。 insert mode, (n) normal mode, (v) visual modeComments 注释(c开头)
l \cl 添加 end-of-line 注释 (n,v,i) l \cj 调整end-of-line 注释 (n,v,i) l \cs 设置end-of-line 注释的列数 (n) l \c* 用/* */注释掉一个代码块code ⇒ comment /* */ (n,v) l \cc 用//注释掉一个代码块code ⇒ comment // (n,v) l \co 取消注释 comment ⇒ code (n,v) l \cfr frame comment (n,i) l \cfu function comment (n,i) l \cfdh file description (header) (n,i) l \chs H–file sections (tab compl.) (n,i) l \ckc keyword comment (tab compl.) (n,i) l \csc special comment (tab compl.) (n,i) l \cd Date (n,v,i) l \ct date & time (n,v,i)Preprocessor 预处理指令(p开头)
l \ps choose a Std. Lib. Include (n,i) l \pc choose a C99 include (n,i) l \p< #include<...> (n,i) l \p" #include"..." (n,i) l \pd #define (n,i) l \pu #undef (n,i) l \pie #if #else #endif (n,v,i) l \pid #ifdef #else #endif (n,v,i) l \pin #ifndef #else #endif (n,v,i) l \pind #ifndef #def #endif (n,v,i) l \pe #error (n,i) l \pl #line (n,i)Idioms (i开头)
l \if Function (n,v,i) l \isf static function (n,v,i) l \im Main() (n,v,i) l \ie enum + typedef (n,v,i) l \is struct + typedef (n,v,i) l \iu union + typedef (n,v,i) l \ip Printf() (n,i) l \isc Scanf() (n,i)Run 运行编译(r开头)
l \rc save and compile (n,i) l \rl Link (n,i) l \rr Run (n,i) l \ra set comand line arguments (n,i) l \rm run make (n,i) l \rma cmd. line arg. for make (n,i) l \rp run splint1 1 (n,i) l \rpa cmd. line arg. for splint (n,i) l \rd run indent (n,i)相关文章推荐
- 玩转vim之vim插件-cvim
- cVim—Chrome上更强大的vim插件
- VIM开发C/C++插件cvim的安装及使用
- cVim—Chrome上更强大的vim插件
- Chrome vim扩展 之 cVim 插件 键盘党的利器
- 玩转vim之vim插件Ctags
- 玩转vim至vim插件-taglist
- Vim常见问题与总结(二)---cvim插件、目录操作
- 玩转vim之vim插件-cscope
- 玩转vim之vim插件Ctags
- 玩转vim至vim插件-taglist
- vim插件之 cvim 牛b啊
- 玩转vim之vim插件-cscope
- VIM开发C/C++插件cvim的安装及使用
- cVim——Chrome上更强大的vim插件
- VIM开发C/C++插件cvim的安装及使用
- cscope插件,项目根目录、任意子目录下打开vim自动加载cscope.out
- Vim插件推荐
- VIM插件: TAGBAR[大纲式导航]
- vim插件之taglist