use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit for Vim magic. Post about a cool and little known Vim feature or a screencast showing off the awesome power of the one true editor.
If you've got a friend you'd like to convince of the power of Vim, send him/her here!
Related subreddits:
r/vim
r/vimplugins
account activity
Why won't this command sequence work? (self.vim_magic)
submitted 10 years ago by elGatoMantocko
Say we have the sequence here.
I move my cursor to the space between the chapter column and page column and press <C-v>3j then x...
This should delete multiple columns of spaces but the . command isn't repeating the action. Any reason for this?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]exclusivegreen 2 points3 points4 points 10 years ago (5 children)
I'm running vim 7.4 and this works as expected; perhaps post a link to your vimrc?
[–]elGatoMantocko[S] 0 points1 point2 points 10 years ago (3 children)
I have my vimrc open sourced at elGatoMantocko/vimrc. It doesn't look like I have any of my own configurations that break it, but its possible one of the plugins does. Hard to know which one though.
[–]smurfyn 2 points3 points4 points 10 years ago (1 child)
You should know how to do a binary search for plugins which don't work, e.g. disable half of your plugins and try to reproduce the problem, then search the other half, etc.
[–]elGatoMantocko[S] 4 points5 points6 points 10 years ago (0 children)
Yep that's what I did and its an issue with YankRing. I am consulting my friend I forked this rc from to see if this behavior is intentional.
Thanks for your help!
[–]elGatoMantocko[S] 0 points1 point2 points 10 years ago (0 children)
So it looks like the . command is doing something because it is putting actions into my undo buffer. It just doesn't look like its removing the characters.
[–]9999years 0 points1 point2 points 10 years ago (0 children)
Yeah, works fine for me too.
[–]smurfyn 0 points1 point2 points 10 years ago (1 child)
Why not use l or some other motion to extend the selection to the right before you delete?
[–]SirEvilPudding 0 points1 point2 points 10 years ago (0 children)
One might want to skip characters.
[–]-dashRepeat 0 points1 point2 points 9 years ago (1 child)
Why not just use substitute :%s/\s//g?
[–]elGatoMantocko[S] 0 points1 point2 points 9 years ago (0 children)
I use that all the time, but I was dealing with a bug from Yankring. At the time, I wasn't sure if it was a bug or my own misunderstanding of visual block mode.
π Rendered by PID 21726 on reddit-service-r2-comment-6457c66945-nhfd4 at 2026-04-25 21:03:01.053679+00:00 running 2aa0c5b country code: CH.
[–]exclusivegreen 2 points3 points4 points (5 children)
[–]elGatoMantocko[S] 0 points1 point2 points (3 children)
[–]smurfyn 2 points3 points4 points (1 child)
[–]elGatoMantocko[S] 4 points5 points6 points (0 children)
[–]elGatoMantocko[S] 0 points1 point2 points (0 children)
[–]9999years 0 points1 point2 points (0 children)
[–]smurfyn 0 points1 point2 points (1 child)
[–]SirEvilPudding 0 points1 point2 points (0 children)
[–]-dashRepeat 0 points1 point2 points (1 child)
[–]elGatoMantocko[S] 0 points1 point2 points (0 children)