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   风中狂笑  阅读(190)  评论(0编辑  收藏  举报

编辑推荐:
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 25岁的心里话
· 按钮权限的设计及实现

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示