vim插件安装

我勒个去,折腾了一上午,终于安装好了几个插件
虽然还是没有我最想要的智能补全功能,但是还是有点改进
赶紧记下来安装步骤以防忘记


  1. 安装vundle
  • 步骤1:安装git

    命令行运行命令git -version,显示版本信息则表明安装成功

  • 步骤2:配置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.cmd"并放到Git的安装目录D:\Git\下。

    命令行运行命令git -version,显示版本信息则表明配置成功

  • 步骤3:安装vundle:在cmd中执行以下命令:

    git clone https://github.com/gmarik/vundle.git D:/Vim/vimfiles/bundle/vundle

  • 步骤4:更改_vimrc配置文件,在配置文件中加入以下片段:

    filetype off
    " 此处规定Vundle
    set rtp+=$VIM/vimfiles/bundle/vundle/
    call vundle#rc('$VIM/vimfiles/bundle/')
    Bundle 'gmarik/vundle'
    filetype plugin indent on
    " original repos on github<br>Bundle 'mattn/zencoding-vim'
    Bundle 'drmingdrmer/xptemplate'
    " vim-scripts repos
    " 以下是要安装的插件名称
    Bundle 'L9'
    Bundle 'FuzzyFinder'
    Bundle 'bufexplorer.zip'
    Bundle 'taglist.vim'
    Bundle 'Mark'
    Bundle 'The-NERD-tree'
    Bundle 'matrix.vim'
    Bundle 'closetag.vim'
    Bundle 'The-NERD-Commenter'
    Bundle 'matchit.zip'
    Bundle 'AutoComplPop'
    Bundle 'jsbeautify'
    Bundle 'YankRing.vim'
    
  • 步骤5:启动gVim,输入以下命令:

    :BundleInstall

  • 步骤6:安装ctags:下载好ctags后安装到任一指定目录

  • 步骤7:将ctags.exe文件所在的路径添加到环境变量PATH

  • 步骤8:在_vimrc文件中添加:let Tlist_Ctags_Cmd='D:\Vim\vimfiles\ctags58\ctags.exe'


现在改用vim-plug了

posted @ 2020-08-01 15:04  昤昽  阅读(204)  评论(0编辑  收藏  举报