Friday, September 11, 2015

Re: i_CTRL-R to the end of current line (and related stuff)

On 2015-09-11 18:02, Justin M. Keyes wrote:
>>> <c-r>=getline('.')<cr>
>>>
>>> You can get fairly close to what you want with
>>>
>>> :cnoremap <f3> <c-r>=getline('.')[col('.'):]<cr>
>>
>> This must be col('.')-1. Remember that columns start with 1,
>> indexes start with zero.
>
> Why not this (in insert mode):
>
> <c-o>y$

In insert mode, this would work. However, David's use of ^R^W isn't
available in insert mode, only command-entry mode, so that wouldn't
work in this case.

-tim



--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment