我已经安装了Vundle和一些插件。但是,只有在vim中运行了:PluginInstall或:PluginList之后,这些插件才会激活。
$ vim带我去了一个没有任何插件的plain vim。
一旦我运行:PluginInstall,我就会看到一个多窗格的vim,如下所示:multi pane vim with plugins
请注意,插件LightLine已安装。还要注意的是,一旦我切换到最右边的窗格,就会看到两个vim状态栏: one LightLine状态栏和plain --INSERT--状态栏。这让我觉得我以某种方式在vim中运行vim...
我的.vimrc参考
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'itchyny/lightline.vim'
Plugin 'jiangmiao/auto-pairs'
call vundle#end()
"set rtp+=/usr/local/opt/fzf
"nnoremap > $
"nnoremap < 0
"set autoindent
"set smartindent
filetype plugin indent on
syntax on
" Language specific syntax
" autocmd FileType * set tabstop=2|set shiftwidth=2|set expandtab
" autocmd FileType python set tabstop=4|set shiftwidth=4|set expandtab我使用的是安装了Vim8.1的自制软件,这是:set runtimepath runtimepath=~/.vim,~/.vim/bundle/Vundle.vim,~/.vim/bundle/lightline.vim,~/.vim/bundle/auto-pairs,/usr/local/share/vim/vimfiles,/usr/local/share/vim/vim81,/usr/local/share/vim/vimfiles/after,~/.vim/after,~/.vim/bundle/Vundle.vim,~/.vim/bundle/Vundle.vim/after,~/.vim/bundle/lightline.vim/after,~/.vim/bundle/auto-pairs/after的输出
你知道为什么vim会这样吗?
发布于 2018-09-20 06:00:51
愚蠢的我:插件加载正常,只是因为我需要将set laststatus=2添加到我的.vimrc中,所以lightline没有出现。
https://stackoverflow.com/questions/52414685
复制相似问题