Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top