windows下gvim vundle的使用

官方帮助

Vundle for Windows · VundleVim/Vundle.vim Wiki (github.com)

参考帮助

Windows下 vundle的安装和使用 - QIYUEXIN - 博客园 (cnblogs.com)

Requirements

  1. Git
  2. Curl

Git on Windows

You can install Git and curl yourself or you can use the Chocolatey instructions below.

  1. Download the Git for Windows installer
  2. Run the downloaded installer and follow the instructions It's important to configure PATH environment variable properly. That's why it's recommended to select Run git from Windows command prompt option, as shown: add git to PATH

After installation try running git --version within command prompt (press Win-R, type cmd, press Enter) to make sure all good:

C:\> git --version
git version 2.12.2.windows.2

Curl on Windows

Curl is no longer installed with the Git for Windows installer. However, Windows 10 now ships with Curl

For older versions of windows, you can download it from the cURL downloads page.

Before it can be used with Vundle it's required make curl run in command prompt.

Extract the download and then make sure that you add the installed location to the PATH. A typical installation would be to extract the downloaded file and move the directory to C:\Program Files\curl. Then you can add C:\Program Files\curl\bin to the PATH

C:\> curl --version
curl 7.53.1 (x86_64-pc-win32) libcurl/7.53.1 OpenSSL/1.1.0e zlib/1.2.11 WinIDN libssh2/1.8.0 nghttp2/1.21.0
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile SSPI Kerberos SPNEGO NTLM SSL libz TLS-SRP HTTP2 HTTPS-proxy

Vundle on Windows

Modern Windows Gvim Install

The official version of Gvim on windows by default looks for _vimrc instead of .vimrc and ~/vimfiles instead of ~/.vim. It also understands ~ as the home directory. You only need to tell it to convert to unix-style path separators (shellslash). Therefore, once you have git for windows, you simply run git clone https://github.com/VundleVim/Vundle.vim.git ~/vimfiles/bundle/Vundle.vim, and add the following to the beginning of your ~/_vimrc (_vimrc in your Windows Home directory, also ~/_vimrc from the git bash prompt):

filetype off
set shellslash
set rtp+=~/vimfiles/bundle/Vundle.vim
call vundle#begin('~/vimfiles/bundle')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'

" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList       - lists configured plugins
" :PluginInstall    - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean      - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line

posted on 2021-12-29 09:48  风中狂笑  阅读(166)  评论(0编辑  收藏  举报

导航