我无法安装Vundle
我已经按照GitHub上的说明操作了;
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
└── $MYVIMRC7个目录,13个文件
在.vimrc中
set nocompatible " be iMproved
filetype off 为了编辑我在vim中使用的.vimrc:
:e $MYVIMRC你能帮我安装Vundle吗?
发布于 2015-01-05 18:51:55
就像@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如果你愿意,你可以查看我的.vimrc (https://github.com/linluk/my-dot-files/blob/master/vimrc)。
如注释中所述,您需要在将插件添加到.vimrc后安装它们
安装插件的步骤
在.vimrc
<ESC>:PluginInstall<CR>和
.vimrc call vundle#begin()中用于更新插件的
<ESC>:PluginUpdate<CR>或
<ESC>:PluginInstall!<CR>用于删除插件的
从.vimrc
.vimrc<ESC>:PluginClean<CR>中将其删除
发布于 2016-07-23 17:31:09
我完全按照@linluk描述的步骤做了,但是当我用vim打开一个文件时,我看不到新安装的插件的结果。例如,我安装了“电力线”插件,它应该会在我的vim屏幕底部返回一个奇特的状态行,但当我打开一个新的文件时,它看起来仍然和以前一样。唯一对我有效的插件是" YCM“(YouCompleteMe),但我无法解释为什么它适用于YCM,而不适用于powerline或像ultisnips这样的其他插件。
发布于 2016-11-12 20:45:15
如果您在安装Vundle时遇到问题,请执行以下步骤:
中
- if any problem arises during installation press ENTERsh -c "$(curl -fsSL https://raw.githubusercontent.com/ets-labs/python-vimrc/master/setup.sh)“
https://stackoverflow.com/questions/27750874
复制相似问题