Monday, 15 February 2010

Vim short binding for | doesn't work -



Vim short binding for <C-w>| doesn't work -

trying map horizontal maximize 2 keystrokes less, none of these works:

nnoremap <leader>\ <c-w>| " maximize horizontally nnoremap <c-\\> <c-w>| " maximize horizontally

at same time these 2 work fine:

nnoremap <leader>- <c-w>_ " maximize vertically nnoremap <leader>= <c-w>= " restore default size

what doing wrong?

the bar character | command separator in vim script. utilize in mapping, utilize <bar>:

nnoremap <leader>\ <c-w><bar>

the relevant documentation @ :h map_bar.

vim

No comments:

Post a Comment