新答案:

新答案:

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

这就是我的.vimrc文件目前的样子,实际上取自 Github Vundle 页面。

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 和终端,重新打开所有内容,但我的状态行仍然看起来像

答案1

新答案:

也许是插件的配置问题,请尝试添加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 之间。

相关内容