安装用于VIM的Vundle
我无法安装Vundle 我遵循了GitHub上的说明安装用于VIM的Vundle,vim,vundle,Vim,Vundle,我无法安装Vundle 我遵循了GitHub上的说明 git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim 就这些。。。 这是cd.vim的树 ├── bundle │ └── Vundle.vim │ ├── autoload │ │ ├── vundle │ │ │ ├── config.vim │ │ │ ├── ins
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
就这些。。。
这是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
7个目录,13个文件
还有,vimrc
set nocompatible " be iMproved
filetype off
为了编辑vim中使用的.vimrc I:
:e $MYVIMRC
您能帮助安装Vundle吗 就像@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
如果需要,您可以查看my.vimrc
)
如注释中所述,在将插件添加到.vimrc
安装插件的步骤
调用vundle#begin()
和调用vundle#end()
.vimrc
:PluginInstall
:PluginInstall代码>或:插件更新
.vimrc
.vimrc
:PluginClean
我完全按照@linluk所描述的步骤做了,但是当我用
vim
打开一个文件时,我没有看到新安装插件的结果。
例如,我安装了“电源线”插件,该插件应该会在我的vim屏幕底部返回一个外观奇特的状态行,但当我打开一个新文件时,它的外观仍然与以前一样。
唯一适合我的插件是“YCM”(YouCompleteMe),但我无法解释为什么它适用于YCM,而不适用于电力线或其他插件,如ultisnips。如果Vundle安装有问题,请按照以下步骤操作:
- 删除vim文件(例如:.vim、.vimrc等)和vundle
- 在终端安装vundle中复制并粘贴代码
- 如果在安装过程中出现任何问题,请按ENTER
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ets-labs/python-vimrc/master/setup.sh)"
- 如果在安装过程中出现任何问题,请按ENTER
:PluginInstall
命令?发现我想安装一个不推荐使用的插件,但该插件无法正常工作。