質問

I'm using Eclim, in doc Suggested Vim Mappings , I know a mapping for PHP

nnoremap <silent> <buffer> <cr> :PhpSearchContext<cr>

but it opens a horizontal window, how to change it to a vertical window?

Just like diff between :help and :vert bo help

役に立ちましたか?

解決

Place in your .vimrc the following:

let g:EclimDefaultFileOpenAction = 'vsplit'

Or, you can add such settings for PHP only:

let g:EclimPhpSearchSingleResult = 'vsplit'

Unfortunately, such value 'vsplit' is not stated in the Eclim's documentation, I just remember the same question in the eclim-user mailing list.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top