Wednesday, December 14, 2022

Re: How to quickly move to a specific buffer?

On Tue, Dec 13, 2022 at 7:22 PM Steve Litt <slitt@troubleshooters.com> wrote:
Arun said on Tue, 13 Dec 2022 18:22:41 -0800

>Usually, I :split open (maximized) my active files

For me, :split only makes 2 windows, not a window for every buffer.

# vim -o <file1> <file2> ..

If you are already inside vim, you can either manually run ":split <file1>", ":split <file2>" .. OR
    :bufdo split (Close those you do not want)

One nice tip here is that, once you place your buffers in vim to your taste, you can run the command:
    :mksession <session-file>
..to save those windows placement. Later run
    :source <session-file>
..to restore the view. That is a huge time saver sometimes.


> and switch back and
>forth using some helpful mappings (Alt-j and Alt-k). When the number of
>splits are more, I open a tab

I looked up :h tab and found stuff seemingly unrelated. How does one
open a tab?

Either use:
    $ vim -p <file1> <file2> ..
..or inside vime:
    :tabe <file1>

:help tabedit

Regards,
-Arun 

Thanks,

SteveT

Steve Litt
Autumn 2022 featured book: Thriving in Tough Times
http://www.troubleshooters.com/bookstore/thrive.htm

--
--
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/20221213222241.6a9eb820%40mydesk.domain.cxm.

--
--
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/CAJUkyiG0cDm3h46DVT03NrA8SWSoA%2BNX_quvz7-KmwZj6imDcg%40mail.gmail.com.

No comments: