118688Re: Using Bash in Vi mode. How to map keys?
- Nov 2, 2010On Tue, 2 Nov 2010, aleCodd wrote:
> Reply to message «Re: Using Bash in Vi mode. How to map keys?»,From :help i_CTRL-\_CTRL-O
> sent 19:57:06 02 November 2010, Tuesday
> by aleCodd:
>> just for curiosity, why do you have in the last 5 or so commands the
>> <c-/>, why is not the <c-o> enough to enter a normal mode command
>> before returning to insert mode..
> Because it moves one character left at the end of line and does not
> move anything in the middle.
> what do you mean by that? <c-o> waits for a command and reenters
> insert mode, but where does it MOVE?
The CTRL-O command sometimes has a side effect: If the cursor was beyond
the end of the line, it will be put on the last character in the line.
In mappings it's often better to use <Esc> (first put an "x" in the
text, <Esc> will then always put the cursor on it). Or use CTRL-\
CTRL-O, but then beware of the cursor possibly being beyond the end of
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
- << Previous post in topic Next post in topic >>