On 2022-06-02 11:58, Lifepillar wrote:
> This morning I made a vertical selection with CTRL-V and typed (too)
> quickly to prepend a quote to the selected lines. I got something
> like this:
>
> "...
> ...
> "...
> ...
> "...
> ...
>
> For the life of me (pun intended), I cannot do it again. How is it
> possible to insert text on alternate lines?
Were they long lines that were wrapped?
:set nu list
1 one one one one one one one one
one one one one one one one one$
2 two two two two two two two two
two two two two two two two two$
Using a visual-block selection at the beginning of each line and
using insert at the beginning (`:help v_I`) will put them at the
beginning of each actual line, not the second (wrapped) part of each
line.
There are other ways to insert on alternate lines, but they tend to
require much more intentionality and you'd know you were doing it. :-)
-tim
--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220602073652.56e1bc51%40bigbox.attlocal.net.
Thursday, June 2, 2022
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment