vim编辑器的基本使用ppt&&snipMate,xptemplate插件

 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

/Files/X-W-LIU/Gvim编辑器.ppt

转载于:https://www.cnblogs.com/X-W-LIU/archive/2012/10/18/2729329.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值