Monday, January 25, 2016

Count with expand inner block

Hello guys,

I asked this question on the vim's subreddit[1], but was encouraged to ask it here too, so I will paste my question:

I don't completely understand vim's behavior when expanding a block selection with a count. Let's suppose I'm inside multiple blocks of curly braces and I vi{ in the inner one. If I want to expand this region, I can continuously i{. That works great; however, if I 2i{, it doesn't apply the count (it doesn't expand twice), while if I 3i{ it expands twice, instead of thrice. On the other hand, va{, a{, 2a{, etc. works as I would expect. I'm not really sure if I'm missing something or that is the expected behavior.

Thank you.

[1] https://www.reddit.com/r/vim/comments/42l2xj/count_with_expand_inner_block/

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