Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any way to disable MacVim's Command + S shortcut for saving files? I'm sure there's a way to do it, since the same is possible with the Command + T shortcut by doing this:

if has("gui_macvim")
    macmenu &File.New\ Tab key=<nop>
share|improve this question
up vote 2 down vote accepted

You are right on it. Using the same logic, following the menu items.

if has("gui_macvim")
    macmenu &File.Save key=<nop>
share|improve this answer
So close! This works if the file hasn't already been saved, but if the file has already been given a filename pressing Command+S does what it should. – Wuffers Dec 21 '11 at 0:25
I figured out the rest by myself. I just did map <D-s> <ESC> so it doesn't do anything at all. Thanks a ton! – Wuffers Dec 21 '11 at 0:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .