Monday, February 16, 2015

Prevent from closing window

I do not want <C-W><C-C> to close the current window, so my _vimrc
contains:

nmap <C-W><C-C> <Esc>

Unfortunately, this only nullifies <C-W><C-C> if the two keys are
pressed in quick succession. Is there a way to completely prevent
<C-W><C-C> from closing the window? I want only <C-W>C to close the
window. <C-C> should always be to stop doing anything.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: