1)vim编辑器基本使用,在附件ppt中
2)我们安装snipMate插件可以加快代码书写,下载地址:http://www.vim.org/scripts/script.php?script_id=2540。安装这个插件十分简单:
只要将下载得到的snipMate: /Files/X-W-LIU/snipMate.zip包解压到vimfiles文件夹下载即可(必要时是可以覆盖的).其解压的文件中,重要的在snippets文
件夹下,里面有很多不同语言的代码片段注释。看看就应该知道怎么加入自己的快捷代码。使用也是十分简单,tab键即可!!!!
3) xptemplate插件下载地址:1)http://www.vim.org/scripts/script.php?script_id=2611
2)https://github.com/drmingdrmer/xptemplate
安装这个插件和snipMate有区别,需要将得到的压缩包解压到vim73 文件夹下覆盖相关文件夹即可。使用这个插件用的快捷键是ctrl+\,有着十分卓越的代码
补足功能。按下tab键即可做相关片段的编辑。以下是https://github.com/vim-scripts/xptemplate 相关摘录:
https://github.com/vim-scripts/xptemplate
This is a mirror of http://www.vim.org/scripts/script.php?script_id=2611 Code snippets engine for Vim, with snippets library. XPTemplate let you write codes in a smooth, quick and comfortable way. ======================= Usage ======================= vim xpt.c
// Type "for<C-\>" :
for (i = 0; i < len; ++i)
{ /* cursor */ }
Press <tab>,<tab>.. to navigate through "i", "0", "len".
Cursor will finally stops at "/* cursor */".
======================= Features =======================
* Live update while typing * Navigate forward and backward.
<Tab> and <S-Tab> * Embed language support like JAVASCRIPT in HTML. Or HTML in PHP * Wrapper * Smart indent * Spacing and line-break of snippet can be easily changed to fit your coding style * Pop up menu friendly ======================= Resources =======================
Screencast : 0.3.9 : http://code.google.com/p/xptemplate/wiki/ScreenCasts; Get From SVN: http://xptemplate.googlecode.com/svn/trunk/dist; Get From GIT(/dist ): git://github.com/drmingdrmer/xptemplate.git;
Project Home : http://code.google.com/p/xptemplate;
Discuss, Bug report, Feature request : http://groups.google.com/group/xptemplate;
Follow me: http://twitter.com/xptemplate;
*** Troubleshoot / supertab support / bracket complete / other question *** http://code.google.com/p/xptemplate/wiki/FAQ ======================= Compatibilities =======================
Supported platform: Linux, WinXP
[g]vim 7.2 Supported Language: ada c cabal cpp cs css dot erlang gitconfig gnuplot haskell html java javascript lex lua make ocaml perl php ps1 python r ruby(eruby) scheme sh tcl tex vim xml xpt xslt yacc **Bundles: c_autoimplem cpp_autoimplem javascript_jquery Special Thanks to ^0^ : Christian.Coutinho Vincent Berthoux Fabio Simon Ruderich