启动时Vim显示“按ENTER或键入命令继续”

时间:2016-01-12 09:24:16

标签: vim enter vundle

VIM以“按ENTER或键入命令继续”消息开始,它发生在VIM上,但不是GVIM,GVIM启动时没有显示“按ENTER或键入命令继续”。

我的.vimrc文件中的Vundle设置,操作系统是Windows 7。

"""""""""""""""""""""""""""Vundle start"""""""""""""""""""""""""""""""""
" set the runtime path to include Vundle and initialize
set rtp+=C:/Users/penpan/.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'
" 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/'}
" Avoid a name conflict with L9
Plugin 'user/L9', {'name': 'newL9'}
"NERDTree
Plugin 'https://github.com/scrooloose/nerdtree.git'
"color scheme molokai
Plugin 'tomasr/molokai'
"Match Tag
Plugin 'Valloric/MatchTagAlways'
"ctags
Plugin 'szw/vim-tags'
" All of your Plugins must be added before the following line
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
""""""""""""""""""""""""""""End Vundle"""""""""""""""""""""""""""""""""

我评论这一行:

call vundle#end()            " required

然后就可以了! VIM启动时没有显示按下输入提示。所以我相信这个电话会使提示发生。我加沉默!在它面前如下:

silent! call vundle#end()

但没有用,VIM仍然显示提示。 并在.vimrc中添加以下内容:

set shortmess+=T
set cmdheight=2

不起作用。

我试图在谷歌找到答案,很多建议,但没有一个工作:(

Vundle是一个常见的插件,有没有人和我有同样的问题?

感谢您能提供帮助。

只有当我在下方删除时,按下输入提示才会消失:

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
""""""""""""""""""""""""""""End Vundle"""""""""""""""""""""""""""""""""
colorscheme molokai "because molokai is installed by Vundle, so it only work after Vundle is lunched!

=================================固定============= ======================= 在我在vundle配置中删除插件MatchTagAlways后,发出fixed.below是我发现问题的步骤:

  1. 首先,您需要知道导致问题的配置区域,对我而言,它是Vundle的配置。
  2. 添加:重绘!在调用vundle#begin()并调用vundle#end()
  3. 之后
  4. 打开vim,它会在按下输入消息
  5. 上方显示错误消息

    之前:

    按ENTER或键入命令继续

    后:

    MatchTagAlways不可用:需要python。

    按ENTER或键入命令继续

    1. 现在我们找到了根本原因。修复它,或删除插件。
    2. ps:gvim有+ python3 / dyn支持,但vim没有。所以如果安装了插件MatchTagAlways,vim会出错。

1 个答案:

答案 0 :(得分:0)

set shortmess=a中的

.vimrc应停止此操作。

这个维基似乎是该问题的权威:

http://vim.wikia.com/wiki/Avoiding_the_%22Hit_ENTER_to_continue%22_prompts