首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Vim和Quickfix -双输出-需要rails.vim帮助

Vim和Quickfix -双输出-需要rails.vim帮助
EN

Stack Overflow用户
提问于 2012-05-14 23:12:27
回答 1查看 787关注 0票数 1

我使用Vim已经两天了--所以我是个新手。我真的困在这个问题上了。

当我运行一些命令时,输出会显示两次:第一次在终端中,第二次在Quickfix窗口中(是这样吗?)

例如:我输入了':make‘。看来Vim关门了。然后列出一些输出。我按了“进入”键。输出将在Quickfix窗口中再次列出。我又按了“进入”键。

对于rails.vim,我输入‘:’。看来Vim关门了。然后列出一些输出。我按了“进入”键。我又回到了维姆。当然,我希望Vim在Quickfix窗口中列出输出。

像':ls‘这样的命令工作得很好-它在Quickfix窗口中列出了输出。

我制作了一个关于这个问题的视频,并把它发布在YouTube:http://youtu.be/KvmulO4L4hc上。

关于我的设置:

我正在使用MacOSX10.7(Lion)

  • ,我没有使用MacVim

  • ,我安装了Vim使用Homebrew (使用 am使用Zsh ( oh-my-zsh)
  • I'm使用pathogen.vim安装插件(我只安装了rails.vim和NERDTree)

)

我的~/..vimrc文件如下所示:

代码语言:javascript
复制
" 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文件如下所示:

代码语言:javascript
复制
# 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 -)"

我希望你能帮我!

干杯!:-)

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-10-14 18:14:35

参见上面romainl中的comment

--这不是quickfix窗口:只有展开以显示外部命令输出的命令行。您可以用:copen打开quickfix窗口(它实际上包含make的输出)。在您的链接中,他似乎使用的是GVim,而不是CLI,因此行为上的差异。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/10592222

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档