Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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>
endif
share|improve this question
add comment

1 Answer

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>
endif
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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