> I am using vim (ubuntu/gnome) for some time. I tried to make a mapping for
> using CTRL-S to save a file
> 
> nmap <c-s> :w<CR>
> imap <c-s> <Esc>:w<CR>a
> 
> But this mapping does not seem to work.

Control+S and Control+Q are flow-control characters.  You'll have 
to disable them in your terminal settings.  I believe you can use

   bash$ stty -ixon -ixoff

which will allow Vim to see them without being intercepted by 
your console/terminal program.

-tim



--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to