新手网站建设模板下载,如何用虚拟主机做网站,七牛云wordpress 代码,怎么做电影引流网站VIM是编辑器之神#xff0c;这个就不用说了#xff0c;越使用越会体会到VIM的强大与便利。但是它的强大建立在众多插件组合之上#xff0c;而Vim本身缺乏对插件的有效管理#xff0c;安装插件并配置_vimrc文件非常不便。gmarik受到Ruby的bunler的启发#xff0c;开发了vun… VIM是编辑器之神这个就不用说了越使用越会体会到VIM的强大与便利。但是它的强大建立在众多插件组合之上而Vim本身缺乏对插件的有效管理安装插件并配置_vimrc文件非常不便。gmarik受到Ruby的bunler的启发开发了vundle这个vim插件可以将插件分到不同的目录管理更厉害的是可以很简单的添加需要安装的插件然后通过指令简单的安装和更新下面就介绍VIM和Vundle的安装。 1.安装Git。 Vundle基于Git架构每一个插件都是一个项目的Repository通过Vundle可以用简单的指令一键安装/更新/删除所有插件。 下载msysgit并安装具体可见http://drupalchina.cn/content/windows-xi-tong-xia-gitan-zhuang-tu-jie并将Git 的安装路径加入环境变量Path如 [cpp] view plaincopy D:\Program Files\Git\cmd 然后运行cmd输入 [cpp] view plaincopy git --version 如果能显示Git版本信息说明安装成功。 2. 配置Curl脚本。 在Windows下还需要建立一个Curl脚本用于Vundle的远程链接。在Git的路径下新建一个空文本文件改名为curl.cmd编辑内容为 [cpp] view plaincopy rem Do not use echo off to not affect any child calls. setlocal rem Get the abolute path to the parent directory, which is assumed to be the rem Git installation root. for /F delims %%I in (%~dp0..) do set git_install_root%%~fI set PATH%git_install_root%\bin;%git_install_root%\mingw\bin;%PATH% if not exist %HOME% set HOME%HOMEDRIVE%%HOMEPATH% if not exist %HOME% set HOME%USERPROFILE% curl.exe %* 保存后运行cmd输入 [cpp] view plaincopy curl --version 如果可以看到版本信息说明配置成功。 3. 安装Vundle。 Git安装完成后从官网Clone Vundle到Vim的安装路径下如 [cpp] view plaincopy git clone https://github.com/gmarik/vundle D:\Vim\vimfiles\bundle\vundle 此时Vim的目录结构应该如下所示 D:Vim ---vim73 ---vimfiles ---bundle ---vundle ---autoload 4. 配置Vundle。 按照Vundle官方给出的配置所有通过Vundle安装的插件会被安装到Windows的用户目录下这里做了修改直接安装到Vim目录下方便管理。 编辑_vimrc文件加入 [cpp] view plaincopy filetype off 此处规定Vundle的路径 set rtp$VIM/vimfiles/bundle/vundle/ call vundle#rc($VIM/vimfiles/bundle/) Bundle gmarik/vundle filetype plugin indent on original repos on githubbrBundle mattn/zencoding-vim Bundle drmingdrmer/xptemplate vim-scripts repos Bundle L9 Bundle FuzzyFinder Bundle bufexplorer.zip Bundle taglist.vim Bundle Mark Bundle The-NERD-tree Bundle matrix.vim Bundle closetag.vim Bundle The-NERD-Commenter Bundle matchit.zip Bundle AutoComplPop Bundle jsbeautify Bundle YankRing.vim filetype plugin indent on required! 5.安装插件 安装插件具体可看http://yp.oss.org.cn/blog/show_resource.php?resource_id1561。 后面的链接是我的VIM配置文件https://github.com/cgnerds/vim。 参考链接 1 AlloVince的VIM配置方案http://yp.oss.org.cn/blog/show_resource.php?resource_id1561 2 使用Vundle来管理Vim插件http://www.cnblogs.com/qiangji/archive/2011/07/31/Vundle.html 3. VIM之Vundlehttp://blog.csdn.net/codebistu/article/details/8257138 4. 值得参考的VIM配置文件 https://github.com/asins/vim/blob/master/_vimrc https://github.com/AlloVince/vim-of-allovince/blob/master/_vimrc