Tim Chase <vim@tim.thechases.com> wrote, on dim 05 aoû 2012, 13:12 :
> On 08/05/12 12:25, Tony Mechelynck wrote:
> > On 05/08/12 15:12, Asis Hallab wrote:
> >> It has a very neat feature called *multiple cursors*, where the
> >> user just selects different positions in the current buffer and
> >> every editing done is applied to those multiple cursor
> >> positions.
> >
> > The nearest thing to multiple cursors that I can imagine which is
> > easy to do, would be to have your "several locations"
>
> The first thing that occurred to me was the use of the :g command
> which performs one or more Ex commands on every line that matches a
> pattern. In a way, "ed" allowed for editing at multiple "cursor"
> locations decades ago. :-)
>
> -tim
You can also use "windo" to perform the same action in all the windows
of the current tab. For instance, to add "hello" in all windows :
:windo norm ahello
It works with one or more files
> --
> 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
--
Davido
--
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
Monday, August 6, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment