我正试图在我的Centos 7笔记本电脑上为我的Vim安装这个插件这里。我所遵循的安装插件管理Vundle的说明来自Github页面这里,然后按照github页面中的插件安装说明进行操作。
这就是我的.vimrc文件当前的样子,它实际上是从Github页面获取的。
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和终端,重新打开所有内容,但我的状态行看起来仍然像这。
发布于 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之间保留插件命令。
https://unix.stackexchange.com/questions/489390
复制相似问题