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.
|
I want a shortcut to save the current file in Vim. I want to map escape+s to :w. I tried
but it doesnt work. | |||
|
feedback
|
|
Try,
Or perhaps,
| |||
|
feedback
|
sin normal mode deletes the character under the cursor and enters insert mode. – Marty Aug 20 '11 at 3:56:wis better than<Esc>sbecause it doesn't force you to reach for the<Esc>key. – romainl Aug 20 '11 at 7:04