私は Vim を 2 日間使用しています。初心者です。私は本当にこの問題に行き詰まっています。
いくつかのコマンドを実行すると、出力が 2 回表示されます。最初はターミナルに表示され、Quickfix ウィンドウに表示されます (それはそれと呼ばれますか?)。
例: 「:make」と入力します。Vimが閉じているようです。次に、いくつかの出力がリストされます。「Enter」を押しました。出力は Quickfix ウィンドウに再度表示されます。もう一度「Enter」を押しました。
rails.vim の場合、「:Rgenerate model person name」と入力します。Vimが閉じているようです。次に、いくつかの出力がリストされます。「Enter」を押しました。そして私はVimに戻ってきました。もちろん、Vim に出力を Quickfix ウィンドウに表示させたいと思います。
':ls' のようなコマンドは正常に機能します。Quickfix ウィンドウに出力が一覧表示されます。
問題のビデオを作成し、YouTube に投稿しました: http://youtu.be/KvmulO4L4hc
私のセットアップについて:
- Mac OS X 10.7 (Lion) を使用しています
- 私はMacVimを使用していません
- Homebrew を使用して Vim をインストールしました ( https://raw.github.com/Homebrew/homebrew-dupes/master/vim.rbを使用) 。
- Zshを使用しています(oh-my-zshを使用)
- 私はプラグインをインストールするために、pathogen.vim を使用しています (私は rails.vim と NERDTree のみをインストールしました)。
~/.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 -)"
あなたが私を助けてくれることを願っています!
乾杯!:-)