tpope / vim-cucumber

Vim Cucumber runtime files
http://www.vim.org/scripts/script.php?script_id=2973
324 stars 63 forks source link

Enhance jump to step def in preview window with larger split and focus #31

Closed jondkinney closed 3 years ago

jondkinney commented 10 years ago

I figured this would be a little better place to discuss this than the closed issue I was overloading #29

Thanks for the consideration. I'm also definitely open to solving this another way that doesn't require editing the plugin.

tpope commented 5 years ago

I want to limit the runtime files to enhancing existing built-ins, not creating new ones, so I think the way to go here is to make your own map in after/ftplugin/cucumber.vim that calls the original:

nmap <buffer> <C-W><C-E>  [d<C-W>P:resize 30<CR>zz

You could also drop the <buffer> and put it in your vimrc. This will call cucumber.vim's ]d in cucumber files and the built-in ]d in other files. (Now you see why I like enhancing built-ins.)

See also 'previewheight', if you want to make 30 the default for all preview windows.