Using bash is it possible to open a file in vim and then automatically save and close e.g. "ZZ" | vim my.file.txt obviously the above isn't going to work, but how would I do the equivalent? - I ...
I've read that most editors will replace the file when you actually want to save changes to that file How to execute a command whenever a file changes?. So how does VIM behave?
I want a shortcut to save the current file in Vim. I want to map escape+s to :w. I tried :map <esc-s> :w but it doesnt work.