Remapping 'wq' to save and close buffer instead of save and quit

Vim newbie here.

when I ':wq' I want it to save and delete the buffer instead of save and quit. Similarly hitting ':q' would execute ':bd' instead.

Any suggestions? Thanks!

9
задан Marcel Korpel 4 December 2010 в 00:09
поделиться