Skip to content

Instantly share code, notes, and snippets.

@iguoli
Last active July 5, 2018 08:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iguoli/e5696e2718635af244bdfbcf61af5937 to your computer and use it in GitHub Desktop.
Save iguoli/e5696e2718635af244bdfbcf61af5937 to your computer and use it in GitHub Desktop.
Windows下安装Vim x64

Windows下安装Vim x64

  1. 从下面两个地址选一个下载vim x64的zip包
  1. 创建文件夹C:\Program Files\Vim\vimxx(xx为vim版本,如8.1版本就是vim81),将解压的文件复制到该文件夹

  2. 使用管理员运行cmd命令,进入该目录,执行install.exe命令。

  3. 如果鼠标右键没有"Edit with Vim"菜单,检查C:\Program Files\Vim\vimxx目录下是否有GvimExt文件夹,将其重命名为GvimExt64,然后重新执行第3步操作。

安装Vundle

  1. 首先安装git for windows,然后使用Git BASH进入用户主目录,执行命令:
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

# 复制.vimrc文件到主目录
git clone https://github.com/guoli100/conf.git
cp ~/conf/.vimrc ~
  1. 进入Gvim,安装插件
:PluginInstall

安装YouCompleteme插件的注意事项

原文参考https://github.com/Valloric/YouCompleteMe#windows

  • 安装的Python和Vim应该同为32位或同为64位
  • 系统安装的Python版本应该与Vim编译时使用的python2或python3版本一致,可以在Vim中使用:version命令,查看-DDYNAMIC_PYTHON_DLL=\"python27.dll\" and -DDYNAMIC_PYTHON3_DLL=\"python36.dll\",该命令指出Vim编译时是使用的Python2.7和Python3.6版本。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment