2010/7/8 d4567 <d4...@gmx.net>: > Hello, > > I face trouble at the moment defining a proper shortcut to save my file. > I use: > > imap <C-S> <ESC>:w<CR>a > map <C-S> :w<CR> > > which does save the file, but it also moves the cursor as a side effect.
What is the problem with 'i' command? > This is especially annoying when I want to define shortcuts for copy n > paste, too. > > How can I define a shortcut that works exactly as the "Save" button in gvim? > Where can I read more regarding that issue? I never used gvim. But imap <C-S> <ESC>:w<CR>i doesn't work? Cheers. -- Joan Miquel Torres__________________________________ Linux Registered User #164872 http://www.mallorcaweb.net/joanmiquel BULMA: http://bulma.net http://breu.bulma.net/?l2301 -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php