Windows安装spf13-vim配置教程

来源:互联网 发布:c图形界面编程 编辑:程序博客网 时间:2024/06/06 00:14

Windows安装spf13-vim配置教程



最近使用VIM开发Python,想配置一个专业点的开发环境,搜索后发现spf13-vim相当不错,电脑是Win7 64位的环境,安装spf13-vim比较麻烦,所以将安装过程记录下来,方便查阅。


spf13-vim地址:https://github.com/spf13/spf13-vim


所需工具:

curl地址:https://curl.haxx.se/download.html
百度云下载地址:http://pan.baidu.com/share/link?shareid=2123553377&uk=4278509670
msysgit地址:https://git-for-windows.github.io/

安装步骤:

1.安装VIM,本机安装的Gvim7.4

2.安装msysgit,并将C:\Program Files\Git\cmd加入到Path环境变量中,检查Git版本,在CMD中输入:

C:\> git --version

3.安装Curl,将curl.exe放到C:\Program Files\Git\cmd\里,之后用文本编辑器输入如下内容,保存为curl.cmd,并复制到C:\Program Files\Git\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;%PATH%@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%@if not exist "%HOME%" @set HOME=%USERPROFILE%@curl.exe %*

4.检查curl版本,CMD中输入:

C:\> curl --version

显示类似如下内容为正常,如果报错,请先安装Windows的相关运行库:
curl 7.21.1 (i686-pc-mingw32) libcurl/7.21.1 OpenSSL/0.9.8k zlib/1.2.3Protocols: dict file ftp ftps http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftpFeatures: Largefile NTLM SSL SSPI libz

5.安装spf13-vim,在msysgit的命令行中输入:
curl https://j.mp/spf13-vim3 -L -o - | sh

6.安装VIM插件,在CMD中输入如下命令,VIM会自动安装插件,安装完成后即可正常使用:
cd $HOME/to/spf13-vim/git pullvim +BundleInstall! +BundleClean +q

7.VIM的配置文件在系统盘用户目录下的.spf13-vim-3文件夹里:.vimrc
0 0
原创粉丝点击