我现在已经使用Vim 2天 - 所以我是新手。我真的坚持这个问题。
当我运行一些命令时,输出会显示两次:首先在终端中,然后在Quickfix窗口中(它被称为?)。
例如:我输入':make'。看起来Vim关闭了。然后列出了一些输出。我点击了'Enter'。输出在Quickfix窗口中再次列出。我再次点击“回车”。
对于rails.vim我输入':Rgenerate model person name'。看起来Vim关闭了。然后列出了一些输出。我点击了'Enter'。而我又回到了Vim。我希望Vim能够在Quickfix窗口中列出输出。
像':ls'这样的命令工作得很好 - 它在Quickfix窗口中列出了输出。
我制作了一个问题视频并将其发布在YouTube上:http://youtu.be/KvmulO4L4hc
关于我的设置:
我的〜/ .vimrc文件如下所示:
" pathogen.vim
call pathogen#infect()
" Settings
set shell=/bin/sh
set expandtab shiftwidth=2 softtabstop=2 tabstop=2
set autoindent
set number numberwidth=5
set backspace=start,eol,indent
set noswapfile
" Colors
colorscheme railscasts
syntax on
" Remove all trailing whitespace on save
autocmd BufWritePre * :%s/\s\+$//e
" Unmap arrow keys
nnoremap <Left> :echoe "Use h"<CR>
nnoremap <Right> :echoe "Use l"<CR>
nnoremap <Up> :echoe "Use k"<CR>
nnoremap <Down> :echoe "Use j"<CR>
我的〜/ .zshrc文件如下所示:
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="highcode"
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"
# Comment this out to disable weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"
# Uncomment following line if you want to disable colors in ls
# DISABLE_LS_COLORS="true"
# Uncomment following line if you want to disable autosetting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want red dots to be displayed while waiting for completion
# COMPLETION_WAITING_DOTS="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(git)
source $ZSH/oh-my-zsh.sh
# Homebrew
export PATH="/usr/local/bin:$PATH"
# rbenv
eval "$(rbenv init -)"
我希望你能帮助我!
干杯! : - )
答案 0 :(得分:0)
请参阅上面romainl的comment:
这不是quickfix窗口:只有命令行展开才能显示外部命令的输出。使用以下命令打开quickfix窗口:copen(实际上包含make的输出)。在你的链接中,看起来他正在使用GVim,而不是CLI Vim,因此行为上有所不同。