安装Vundle for VIM

Jav*_*oxs 13 vim vundle

我无法安装Vundle

我按照GitHub上的说明进行操作;

git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
Run Code Online (Sandbox Code Playgroud)

而这就是......这是cd .vim的树

??? bundle
?   ??? Vundle.vim
?       ??? autoload
?       ?   ??? vundle
?       ?   ?   ??? config.vim
?       ?   ?   ??? installer.vim
?       ?   ?   ??? scripts.vim
?       ?   ??? vundle.vim
?       ??? changelog.md
?       ??? CONTRIBUTING.md
?       ??? doc
?       ?   ??? vundle.txt
?       ??? LICENSE-MIT.txt
?       ??? README.md
?       ??? test
?           ??? files
?           ?   ??? test.erl
?           ??? minirc.vim
?           ??? vimrc
??? $MYVIMRC
Run Code Online (Sandbox Code Playgroud)

7个目录,13个文件

并在.vimrc

set nocompatible               " be iMproved
filetype off 
Run Code Online (Sandbox Code Playgroud)

为了编辑我在vim中使用的.vimrc:

:e $MYVIMRC
Run Code Online (Sandbox Code Playgroud)

你能帮忙安装Vundle吗?

lin*_*luk 20

就像@FDinoff说的那样,你错过了应该进入你的东西.vimrc.

这是它的样子:

" vundle {{{1

" needed to run vundle (but i want this anyways)
set nocompatible

" vundle needs filtype plugins off
" i turn it on later
filetype plugin indent off
syntax off

" set the runtime path for vundle
set rtp+=~/.vim/bundle/Vundle.vim

" start vundle environment
call vundle#begin()

" list of plugins {{{2
" let Vundle manage Vundle (this is required)
"old: Plugin 'gmarik/Vundle.vim'
Plugin 'VundleVim/Vundle.vim'

" to install a plugin add it here and run :PluginInstall.
" to update the plugins run :PluginInstall! or :PluginUpdate
" to delete a plugin remove it here and run :PluginClean
" 

" YOUR LIST OF PLUGINS GOES HERE LIKE THIS:
Plugin 'bling/vim-airline'

" add plugins before this
call vundle#end()

" now (after vundle finished) it is save to turn filetype plugins on
filetype plugin indent on
syntax on
Run Code Online (Sandbox Code Playgroud)

你可以查看我的.vimrc(https://github.com/linluk/my-dot-files/blob/master/vimrc).

如评论中所述,您需要在将插件添加到您的插件后安装插件 .vimrc

安装插件的步骤

  1. .vimrccall vundle#begin()和之间添加它call vundle#end()
  2. 保存 .vimrc
  3. 类型 <ESC>:PluginInstall<CR>

更新插件

  1. 类型<ESC>:PluginInstall!<CR><ESC>:PluginUpdate<CR>

删除插件

  1. 将其从中删除 .vimrc
  2. 保存 .vimrc
  3. 类型 <ESC>:PluginClean<CR>