2014-07-01 119 views
0

我嘗試添加下面一行在我vimrc不能映射<Leader> z到<C-W> | <C-W> _在vim

nnoremap <Leader>z <C-w>|<C-w>_ 

但是當VIM啓動時,它給了我一個錯誤:

E488: Trailing characters: _

然後我試圖改變的序列我的命令,所以我改變了映射到:

nnoremap <Leader>z <C-W>_<C-W>| 

這個改變後沒有錯誤,但它沒有像我想要。我想要的是打<Leader>z然後其他拆分窗口將最小化。

+0

另請參閱http://stackoverflow.com/questions/23679200/vim-performing-substitution-on-certain-lines-on-only –

回答

3

逃離|

nnoremap <Leader>z <C-w>\|<C-w>_ 

的管通常分隔行。

相關問題