【发布时间】:2019-05-14 07:48:46
【问题描述】:
我在应用 vim 命令 :PluginInstall 时遇到问题,当我这样做时,它似乎可以工作,但它会打开一个 Vundler Installer(或者我认为)窗口,在应用插件时我似乎无法退出。我尝试使用:q、:x 和:wq(:w 显然不能在此窗口上工作),我还尝试重新启动我的终端。我还从终端尝试了vim +PluginInstall +qall。
Here's the window that opens with :PluginInstall (on the left)
And here's when I :q the window (如你所见,底部的状态栏已经不在了)
我对 Vim 很陌生,我想我在安装时甚至在我的 .vimrc 文件中做错了(其中还有很多我不明白的地方)。
我的.vimrc:
1 set nocompatible
2 filetype off
3
4 set rtp+=~/.vim/bundle/Vundle.vim
5 call vundle#begin()
6
7 Plugin 'gmarik/Vundle.vim'
8
9
10 Plugin 'tpope/vim-rails'
11 Plugin 'tpope/vim-surround'
12 Plugin 'scrooloose/nerdtree'
13 Plugin 'ctrlpvim/ctrlp.vim'
14 Plugin 'godlygeek/tabular'
15 Plugin 'itchyny/lightline.vim'
16 Plugin 'vim-ruby/vim-ruby'
17 set rtp+=~/.fzf
18 Plugin 'junegunn/fzf.vim'
19 call vundle#end()
20
21
22 filetype plugin indent on
23
24 set number
25 set mouse=a
26 syntax on
27 set backspace=indent,eol,start
28 set tabstop=2 shiftwidth=2 expandtab
29 if has("multi_byte")
30 set encoding=utf-8
31 setglobal fileencoding=utf-8
32 else
33 echoerr "Sorry, this version of (g)vim was not compiled with +multi_byte"
34 endif
【问题讨论】:
-
我不明白你的问题是什么。如果您的抱怨是当您关闭 Vundle 窗口时状态行消失了,您可能希望在 .vimrc 中
set laststatus=2以强制显示状态行,即使只有一个窗口也是如此。
标签: vim vim-plugin vundle