MacVim has some nifty features like Cmd + S to save Cmd + Z to undo, and so on, is there a port like this for gVim.

link|improve this question
feedback

2 Answers

up vote 1 down vote accepted

You can accomplish this using the map command in your .vimrc (or _vimrc in windows) like this (Ctrl+s to save):

map <C-S> :w <CR>
map! <C-S> <ESC> :W <CR> i

The later is for when you are in insert mode. You can find more information here Mapping Keys

link|improve this answer
feedback

These shortcuts are not standard vim shortcuts. However, undo is simply "u" and save ":w" (after entering the right mode with ESC).

See eg. this question on how to create your own shortcuts.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.