我使用Vim已经两天了--所以我是个新手。我真的困在这个问题上了。
当我运行一些命令时,输出会显示两次:第一次在终端中,第二次在Quickfix窗口中(是这样吗?)
例如:我输入了':make‘。看来Vim关门了。然后列出一些输出。我按了“进入”键。输出将在Quickfix窗口中再次列出。我又按了“进入”键。
对于rails.vim,我输入‘:’。看来Vim关门了。然后列出一些输出。我按了“进入”键。我又回到了维姆。当然,我希望Vim在Quickfix窗口中列出输出。
像':ls‘这样的命令工作得很好-它在Quickfix窗口中列出了输出。
我制作了一个关于这个问题的视频,并把它发布在YouTube:http://youtu.be/KvmulO4L4hc上。
关于我的设置:
我正在使用MacOSX10.7(Lion)
)
我的~/..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 -)"我希望你能帮我!
干杯!:-)
发布于 2014-10-14 18:14:35
参见上面romainl中的comment:
--这不是quickfix窗口:只有展开以显示外部命令输出的命令行。您可以用:copen打开quickfix窗口(它实际上包含make的输出)。在您的链接中,他似乎使用的是GVim,而不是CLI,因此行为上的差异。
https://stackoverflow.com/questions/10592222
复制相似问题