Friday, September 25, 2015

Re: visincr and mswin not compatible

On Friday, September 25, 2015 at 10:54:27 AM UTC-5, jordi wrote:
> Thanks for your answer
>
> Yes I only need it for numbers but I don't understand how to use the
> commands you say
>
> Jordi
>

If you have at least version 7.4.848* then you can make a list of the number "1" as long as you want it, then select the list in visual mode (you may need visual-block-mode, i.e. by pressing CTRL-V or CTRL-Q). Finally, press g followed by CTRL-A to automatically form an increasing list.

For example, enter the following text:

1.
1.
1.
1.
1.

Place the cursor on the second line, and type CTRL-V to enter visual block mode. Highlight down to the final line. Type g followed by CTRL-A and you will get:

1.
2.
3.
4.
5.

*I said at least 7.4.848 is needed; technically the feature was introduced before that, but I think this was the last bugfix for problems the feature introduced, so you'll want at least that version.

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