首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法让Vim与Vundle一起工作。我做错了什么?

无法让Vim与Vundle一起工作。我做错了什么?
EN

Unix & Linux用户
提问于 2018-12-17 01:04:59
回答 1查看 634关注 0票数 0

我正试图在我的Centos 7笔记本电脑上为我的Vim安装这个插件这里。我所遵循的安装插件管理Vundle的说明来自Github页面这里,然后按照github页面中的插件安装说明进行操作。

这就是我的.vimrc文件当前的样子,它实际上是从Github页面获取的。

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

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" " alternatively, pass a path where Vundle should install plugins
" "call vundle#begin('~/some/path/here')
"
" " let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
"
" " The following are examples of different formats supported.
" " Keep Plugin commands between vundle#begin/end.
" " plugin on GitHub repo
Plugin 'tpope/vim-fugitive'
" " plugin from http://vim-scripts.org/vim/scripts.html
" " Plugin 'L9'
" " Git plugin not hosted on GitHub
Plugin 'git://git.wincent.com/command-t.git'
" " git repos on your local machine (i.e. when working on your own plugin)
"Plugin 'file:///home/gmarik/path/to/plugin'
" " The sparkup vim script is in a subdirectory of this repo called vim.
" " Pass the path to set the runtimepath properly.
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" " Install L9 and avoid a Naming conflict if you've already installed a
" " different version somewhere else.
" " Plugin 'ascenator/L9', {'name': 'newL9'}
"
" " All of your Plugins must be added before the following line

"Adam - my plugins
Plugin 'itchyny/lightline.vim' "download from - https://github.com/itchyny/lightline.vim
call vundle#end()            " required
filetype plugin indent on    " required
" " To ignore plugin indent changes, instead use:
" "filetype plugin on
" "
" " Brief help
" " :PluginList       - lists configured plugins
" " :PluginInstall    - installs plugins; append `!` to update or just
" :PluginUpdate
" " :PluginSearch foo - searches for foo; append `!` to refresh local cache
" " :PluginClean      - confirms removal of unused plugins; append `!` to
" auto-approve removal
" "
" " see :h vundle for more details or wiki for FAQ
" " Put your non-Plugin stuff after this line
"-----------------------------------------------------------------------------------------

"show numbers on lines
"set number
".vimrc" 54L, 2126C                                                                                                                 52,1          90%

我保存并关闭文件。再次打开vim并运行:PluginInstall,它似乎正在安装,因为我得到了如下结果

然后关闭vim和终端,重新打开所有内容,但我的状态行看起来仍然像

EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2018-12-17 01:35:14

新答案:

可能是插件的配置问题,请尝试将set laststatus=2添加到您的.vimrc -有关详细信息,请参阅:https://github.com/itchyny/lightline.vim#introduction

旧答案:

您似乎缺少了call vundle#begin()

检查https://github.com/VundleVim/Vundle.vim#quick-start中的示例

在vundle#begin/end之间保留插件命令。

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

https://unix.stackexchange.com/questions/489390

复制
相关文章

相似问题

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