I routinely use i_CTRL-R CTRL-w while typing in a command and grabbing the contents of the current word my cursor is on.
-- I wanted a few more options, for example, I wanted to grab from my cursor to the end of the line (i.e. y$). To do this of course I could y$, before typing the command, which I do as a work around. But this means I have to abandon what I have already typed, then redo it.
I was trying to find in the help what options are available to me and I can't even find the one I use all the time.
:h i_CTRL-R
Shows me a bunch of special items:
'"' the unnamed register, containing the text of
the last delete or yank
So I can do:
i_CTRL-R" (to grab register ")
i_CTRL-Ra (to grab register a)
Based on the help, to find my CTRL-w, I thought it would be:
:h i_CTRL-R_CTRL-w
But that help location does not exist, even though these do:
:h i_CTRL-R_CTRL-r
:h i_CTRL-R_CTRL-w
So 2 questions:
1. How do I find in the help where it says I can do i_CTRL-R followed by CTRL-w
2. Does anyone have a suggestion on how I can do i_CTRL-R followed by something like y$ to get to the end of the line in some way. I was thinking I could do this using the expression register. i_CTRL-R= then do something like y$, but that didn't work. If I can do something along that line, then that opens the door to using whatever standard Vim keys I need.
TIA,
David
--
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