Wednesday, December 9, 2020

Re: :ls with range

Sven Guckes wrote:

> my list of buffers is ever so long..
> but it is quite practical to have it
> since i can switch to buffers quickly.
> still.. the recent buffers are at the
> end of the list, and when listing them
> with ":ls" i have to page down a bit.
> and when i do it too fast then i miss
> the end quite easily - and start over.

You don't have to start over. If you use
the f and b keys to page *f*orward or
*b*ackward, you won't need to start over.
Perhaps you instead page by pressing space
which indeed closes the list of buffers when
it goes beyond the end. Unlike space, the
f key won't close the list at the end.

You can also press G to go to the end and g
to go back to the beginning.

If you have many buffers, you may consider
using this plugin: https://github.com/junegunn/fzf.vim
and its :Buffer command to quickly jump to a buffer.

> and i keep thinking: wasnt there some
> patch already to add a range to ":ls"?
> then i could probably list the last page
> directly with a range like this:
>
> :$-23,$ls

I'm not aware of that.

> and i'd map it, too, of course. :)
>
> have i missed that patch?
>
> Sven

--
--
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/CAON-T_hsG8PLr_Z89jKZ51E--tbHVmWGw%3DBjH4xyieZon%3DmtMg%40mail.gmail.com.

No comments: