简体   繁体   中英

Changing Vim Keymapping for Ctrl + w

I use chromebook and for some reason everything opens in Chrome browser. I am fine using it that way but problem comes when I want to use vim.

In vim when I type :vsplit it splits the screen vertically into two but to traverse between two splits I run Ctrl+W which should ideally work but since shell is in chrome browser, chrome asks for closing the tab.

So basically I want to override either the chrome browser mapping(but this will be tricky) or re-allocate/re-map Ctrl+Q/D for working as Ctrl+W.

Please assist.

Adding this line to your .vimrc file may help:

map <C-Q> <C-W>

It will map Ctrl + Q to Ctrl + W .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM