首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装Vundle for VIM

安装Vundle for VIM
EN

Stack Overflow用户
提问于 2015-01-03 09:36:46
回答 3查看 26.6K关注 0票数 13

我无法安装Vundle

我已经按照GitHub上的说明操作了;

代码语言:javascript
复制
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim

仅此而已。这是cd .vim的树

代码语言:javascript
复制
├── 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中

代码语言:javascript
复制
set nocompatible               " be iMproved
filetype off 

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

代码语言:javascript
复制
:e $MYVIMRC

你能帮我安装Vundle吗?

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2015-01-05 18:51:55

就像@FDinoff所说的,你错过了你的.vimrc中应该包含的东西。

下面是它可能的样子:

代码语言:javascript
复制
" 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

  • type <ESC>:PluginInstall<CR>

  1. 之间,将它添加到.vimrc call vundle#begin()

用于更新插件的

<ESC>:PluginUpdate<CR>

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

用于删除插件

.vimrc

  • save .vimrc
  1. type <ESC>:PluginClean<CR>

中将其删除

票数 20
EN

Stack Overflow用户

发布于 2016-07-23 17:31:09

我完全按照@linluk描述的步骤做了,但是当我用vim打开一个文件时,我看不到新安装的插件的结果。例如,我安装了“电力线”插件,它应该会在我的vim屏幕底部返回一个奇特的状态行,但当我打开一个新的文件时,它看起来仍然和以前一样。唯一对我有效的插件是" YCM“(YouCompleteMe),但我无法解释为什么它适用于YCM,而不适用于powerline或像ultisnips这样的其他插件。

票数 0
EN

Stack Overflow用户

发布于 2016-11-12 20:45:15

如果您在安装Vundle时遇到问题,请执行以下步骤:

  • 删除vim文件(eg:.vim、.vimrc等),并将代码复制并粘贴到终端安装vundle

代码语言:javascript
复制
- if any problem arises during installation press ENTER

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ets-labs/python-vimrc/master/setup.sh)“

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27750874

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档