gVim的pathogen

时间:2023-03-09 08:12:11
gVim的pathogen

1- 安装gVim

  • 选择Full模式
  • vimfiles 文件夹下,会有许多空文件夹。将它们全删掉。
  • vim74文件夹下的autoload文件夹 剪切到vimfiles文件夹下。
  • vimfiles文件夹下新建文件夹bundle

2- 安装msysGit

3- 安装curl

  • 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;%PATH% @if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%
@if not exist "%HOME%" @set HOME=%USERPROFILE% @curl.exe %*
  • curl --version 如果有信息提示,则已安装

4- 安装vundle

vundle目录下

git clone https://github.com/VundleVim/Vundle.vim.git Vundle.vim

5- 修改配置_vimrcvim_cfg后面加上这些

filetype off                  " required

" set the runtime path to include Vundle and initialize
set rtp+=E:\Vim\vimfiles\bundle\Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim' Plugin 'tpope/vim-fugitive'
Plugin 'L9' " All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required