Hello,
I face trouble at the moment defining a proper shortcut to save my file.
I use:
imap :wa
map :w
which does save the file, but it also moves the cursor as a side effect.
This is especially annoying when I want to define shortcuts for copy n
paste, too.
How can I define a shortcut th
2010/7/8 d4567 :
> Hello,
>
> I face trouble at the moment defining a proper shortcut to save my file.
> I use:
>
> imap :wa
> map :w
>
> 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
I never used gvim. But
imap :wi
doesn't work?
It moves the cursor one character to the left after the save.
On save, this doesn't matter that much, but when I try to define a paste
shortcut like
imap "+gpi
then it works well in the middle of the line, but when pasting at the
end of a l
use imap :w
On 7/8/10, d4567 wrote:
> Hello,
>
> I face trouble at the moment defining a proper shortcut to save my file.
> I use:
>
> imap :wa
> map :w
>
> which does save the file, but it also moves the cursor as a side effect.
> This is especially annoying when I want to define shortcuts
use imap :w
Thank you very much, that did the trick!
Best regards,
MD.
--
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
On Thu, 8 Jul 2010, d4567 wrote:
> > use imap :w
>
> Thank you very much, that did the trick!
>
If you want to be extra careful:
imap :w
See the note after :help i_CTRL-O
And :help i_CTRL-\_CTRL-O --
CTRL-\ CTRL-O like CTRL-O but don't move the cursor
--
Best,
Ben
--
You received t