Re: How to directly enter visual mode from insert mode ?
Ivan Vecerina [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] : This is a problem I am occasionally stumbling on: : as I am done typing some new next in insert mode, I want : to highlight and erase some text ahead of the insert point. I'm adding i_Ctrl-O to my list of must use commands. C-OD , C-Ow and C-Of) look like promising timesavers. (e.g. I'll be using C-OD often for sure I'm also checking :set inclusive and whichwrap+=, Many thanks for your insights, Ivan -- http://ivan.vecerina.com/
How to directly enter visual mode from insert mode ?
This is a problem I am occasionally stumbling on: as I am done typing some new next in insert mode, I want to highlight and erase some text ahead of the insert point. Best case, I can type: ESClv But if I am at the end of the line, this won't work (the last character I inserted will be selected as well). It would be nice if there was a convenient way to go directly from insert mode to visual mode, while ensuring that the visual selection starts at the current insertion point. Is there an easy way to do so ? -- http://ivan.vecerina.com/
Re: How to directly enter visual mode from insert mode ?
* Ivan Vecerina [2006.10.03 12:15]: [...] Best case, I can type: ESClv [...] Is there an easy way to do so ? According to :h i_esc there is not builtin way to do this. But you could use a mapping: imap F8 esclv -- JR
Re: How to directly enter visual mode from insert mode ?
On 10/3/06, Ivan Vecerina [EMAIL PROTECTED] wrote: This is a problem I am occasionally stumbling on: as I am done typing some new next in insert mode, I want to highlight and erase some text ahead of the insert point. Best case, I can type: ESClv But if I am at the end of the line, this won't work (the last character I inserted will be selected as well). I you have 'whichwrap' that includes and (as in set whichwrap=,; see :help 'ww') then you can use EscRightl Yakov
Re: How to directly enter visual mode from insert mode ?
On Tue, Oct 03, 2006 at 06:05:30PM +0200, Ivan Vecerina wrote: This is a problem I am occasionally stumbling on: as I am done typing some new next in insert mode, I want to highlight and erase some text ahead of the insert point. Best case, I can type: ESClv I prefer using C-Ov or C-\C-Ov to switch to Visual mode temporarily But if I am at the end of the line, this won't work (the last character I inserted will be selected as well). It would be nice if there was a convenient way to go directly from insert mode to visual mode, while ensuring that the visual selection starts at the current insertion point. :set selection=inclusive -- Dasn
Re: How to directly enter visual mode from insert mode ?
On Tue, Oct 03, 2006 at 12:05:30PM EDT, Ivan Vecerina wrote: This is a problem I am occasionally stumbling on: as I am done typing some new next in insert mode, I want to highlight and erase some text ahead of the insert point. Best case, I can type: ESClv But if I am at the end of the line, this won't work (the last character I inserted will be selected as well). It would be nice if there was a convenient way to go directly from insert mode to visual mode, while ensuring that the visual selection starts at the current insertion point. Is there an easy way to do so ? I do a Ctrl-O and then the lv commands .. May be convenient or er .. less so .. depending on where you want to start you visual highlighting. If you need to prefix three of four movement commands by a Ctrl-O to get there it may be worth your while to escape back to command mode. YMMV Thanks cga
Re: How to directly enter visual mode from insert mode ?
On Tue, Oct 03, 2006 at 05:55:31PM EDT, Dasn wrote: On Tue, Oct 03, 2006 at 06:05:30PM +0200, Ivan Vecerina wrote: This is a problem I am occasionally stumbling on: as I am done typing some new next in insert mode, I want to highlight and erase some text ahead of the insert point. Best case, I can type: ESClv I prefer using C-Ov or C-\C-Ov to switch to Visual mode temporarily Shoot .. this was hidden on the next page and I didn't see it until it was too late .. :-( :-( :-( Oh well .. should convince the OP that this is the way to go.. And then it may have the opposite effect... :-) Thanks cga