You are probably wondering what I could possibly need this for?
Well, my program will sometimes deal with erroneous strings that need to be manually fixed. So what I do, is I create a process which opens up a Vim, and suspends my program until a signal is emitted in which the file is changed (i.e. saved). I don't want to accidentally save without quitting; that would cause issues.
So is it possible to launch vim in which it is not possible to save without quitting?
:w<CR>
or:x<CR>
it's at least 3 keypresses (4 if you're in insert mode and have to press<esc>
before) I don't see how you can do that by mistake. Even forZZ
you don't always have a visual feedback but it's still hard to accidentally type that, right? (ForZZ
you could create a mapping likennoremap ZZ <nop>
) – statox Jan 9 '17 at 9:17