Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I bind ^S in gvim, by:

map <C-S> :w<CR>

Now if I press the ^S combination, althrough file is saved (I saw the XXX written message), but gvim window flashes, is there a way to avoid that?

share|improve this question
    
Check stackoverflow.com/questions/3446320/… –  ott-- Apr 1 '13 at 3:04
    
You should use :noremap; it makes the mapping immune to remapping and recursion. –  Ingo Karkat Apr 1 '13 at 20:27
    
@IngoKarkat noremap <C-S> :w<CR> still flashes –  warl0ck Apr 2 '13 at 1:04

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.