On 09/05/2018 12:38 PM, Arun wrote:
> Could not you just move right one character and do the "Td" (kind of like
> "Tdx", but moving right can be done easily with the space bar).
Um …
> Anyway, to move beyond the last character in line, though, you will have
> to set:
>
> :set virtualedit=onemore
I'll have to check that out. I do think that would work.
Of course, when it comes to Vim Golf, it would be comparable.
TdD
-or-
$TdD
Is effectively the same number of characters (strokes).
Tdx
> Alternatively, have you considered recording/macros?
I use macros quite frequently. I wouldn't have considered them for this
particular use case as it was two lines of data I was cleaning up.
If I need to do something multiple times and I have a wrote process to
use, I tend to reach for the macro hammer quite readily.
> You could just record a set of key strokes using the "q" command and
> recall the sequence whenever you want.
Agreed. It's just not proper for this use case. And it doesn't answer
the question of if there is a different method that is like a backwards dw.
--
Grant. . . .
unix || die
--
--
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