[英]Vim plugins only show after :Plugin* command
我已經安裝了Vundle和一些插件。 但是,只有在我在vim中運行:PluginInstall
或:PluginList
后,才能激活插件。
$ vim
帶我進入沒有任何插件的普通vim 。
然后,當我運行:PluginInstall
,我會遇到一個多窗格的vim,例如: 帶插件的多窗格的vim。
請注意,已安裝插件LightLine。 還要注意,一旦切換到最右邊的窗格,就會有兩個vim狀態欄:一個LightLine狀態欄和一個普通的--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
我使用的是安裝了Vim 8.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會表現這種方式嗎?
我傻:插件是正確加載,它只是LIGHTLINE沒有顯示,因為我需要添加了set laststatus=2
到我的.vimrc。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.