1、安裝GVIM : D:\tools\Vim 我安裝的是 D:\tools\Vim
2、安裝vim插件管理工具vundle
(1)、安裝git用戶端:msysgit:D:\tools\Git
運作下載下傳的安裝程式,并安裝說明一步一步正确安裝即可,需要注意的一點就是PATH環境選擇界面;
注意:在 adjusting your PATH environment (調整PATH環境)界面,我們選擇第二個 run git from the windows command prompt ;
(2)、配置 curl
在windows下安裝curl與msysgit結合非常簡單,隻需要在git的cmd目錄建立檔案curl.cmd即可
路徑:D:\tools\Git\cmd\curl.cmd ,檔案内容如下
@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;%git_install_root%\mingw64\bin;%PATH%
@rem !!!!!!! For 64bit msysgit, replace ‘mingw’ above with ‘mingw64’ !!!!!!!
@if not exist “%HOME%” @set HOME=%HOMEDRIVE%%HOMEPATH%
@if not exist “%HOME%” @set HOME=%USERPROFILE%
@curl.exe %*
此時測試是否安裝:ctrl+R 打開指令框, cmd 到指令框,分别輸入 git –version 和 curl –version 能看到版本号即代 表安裝成功
(3)、安裝Vundle (Vundle on Windows)
1.指令行輸入:git clone https://github.com/gmarik/Vundle.vim.git C:\Program Files (x86)\Vim\vimfiles\bundle\Vundle.vim
或是 git clone https://github.com/gmarik/vundle D:\tools\Vim\vimfiles\bundle\vundle
出現安裝過程代表可行(我是用第二個安裝成功的)
2.添加一個gvim目錄的 環境變量 $VIM ,步驟 :我的電腦->屬性->進階系統設定->進階->環境變量->建立
變量名為:VIM 變量值為D:\tools\Vim
3.在vim啟動設定檔案_vimrc添加 bundle的配置 ,vim的啟動設定檔案 _vimrc 添加内容
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 github
Bundle ‘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!
3、打開gvim 冒号 : 在指令行輸入 BundleInstall 此時即可安裝好上邊 Bundle的插件
若是報錯:
Taglist: Exuberant ctags (http://ctags.sf.net) not found in PATH. Plugin is not loaded.
說明不能找到ctags程式,在下邊的連結裡有官網,下載下傳ctags程式,将其解壓放置于 D:\tools\Vim\vimfiles\plugin,
重新開機gvim 即可正常進入
引用參考連結:用于下載下傳軟體或者步驟參考
http://www.huangdc.com/421
http://blog.csdn.net/zhuxiaoyang2000/article/details/8636472
http://blog.csdn.net/david_xtd/article/details/40921401
http://ctags.sourceforge.net/