Re: How to quickly move to a specific buffer?

2022-12-13 Thread Enan Ajmain
On Tue, 13 Dec 2022 22:22:41 -0500 Steve Litt wrote: > For me, :split only makes 2 windows, not a window for every buffer. I don't think you wanted this, because I have never used it, but if you do want to open windows for each buffer, you can use ':h bufdo'. :bufdo split :bufdo vsplit

Re: How to quickly move to a specific buffer?

2022-12-13 Thread Enan Ajmain
On Wed, 14 Dec 2022 08:26:03 +0530 Yegappan Lakshmanan wrote: > Starting with Vim9, fuzzy completion of buffer names is supported. By fuzzy completion, do you mean ':b cdent' should expand to a buffer 'src/cindent.c'? or do you mean I need to use ':b c*dent'? Because the latter is slightly

Re: How to quickly move to a specific buffer?

2022-12-13 Thread Steve Litt
Steve Litt said on Tue, 13 Dec 2022 22:29:15 -0500 >2) F5 is a very inconvenient hotkey. Is there a way I could use > Shift+Ctrl+n ? How would I change the to change it to > Shift+Ctrl+n ? I figured it out. Shift+Ctrl+n is . Two consecutive pushes of Alt+n is . Both of those are better for

Re: How to quickly move to a specific buffer?

2022-12-13 Thread Steve Litt
Lang Hurst said on Tue, 13 Dec 2022 17:28:39 -0800 >I copied this off the vim website, I think. In my .vimrc > > nnoremap :buffers:buffer > >Hit F5, just enter the number of the listed buffers. This is almost exactly what I need, the two exceptions being: 1) It becomes very time consuming if

Re: How to quickly move to a specific buffer?

2022-12-13 Thread Steve Litt
Yegappan Lakshmanan said on Wed, 14 Dec 2022 08:26:03 +0530 >Starting with Vim9, fuzzy completion of buffer names is supported. > >- Yegappan I did :h fuzzy but it said nothing about fuzzy completion. How do I achieve fuzzy completion, and how much of the filename (or something else) do I have

Re: How to quickly move to a specific buffer?

2022-12-13 Thread Steve Litt
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. > 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

Re: How to quickly move to a specific buffer?

2022-12-13 Thread Yegappan Lakshmanan
Starting with Vim9, fuzzy completion of buffer names is supported. - Yegappan On Wed, Dec 14, 2022 at 8:16 AM Tim Chase wrote: > On 2022-12-13 20:29, John Passaro wrote: > > and ^6 is not only good for going between two, not if you have > > three and can remember their buffer numbers via :ls,

Re: How to quickly move to a specific buffer?

2022-12-13 Thread Tim Chase
On 2022-12-13 20:29, John Passaro wrote: > and ^6 is not only good for going between two, not if you have > three and can remember their buffer numbers via :ls, ^6 takes > you to buffer number n. You've pointed out the critical failure here...my inability to remember more than one (alternate)

Re: How to quickly move to a specific buffer?

2022-12-13 Thread Arun
Usually, I :split open (maximized) my active files 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 and do similar stuff there. I usually do not like the ":split" opening window unmaximized, so these mappings help in

Re: How to quickly move to a specific buffer?

2022-12-13 Thread John Passaro
good stuff. also, `:b` completion shows your open buffers. and ^6 is not only good for going between two, not if you have three and can remember their buffer numbers via :ls, ^6 takes you to buffer number n. On Tue, Dec 13, 2022, 20:21 Tim Chase wrote: > On 2022-12-13 20:09, Steve Litt wrote: >

Re: How to quickly move to a specific buffer?

2022-12-13 Thread Lang Hurst
I copied this off the vim website, I think. In my .vimrc nnoremap :buffers:buffer Hit F5, just enter the number of the listed buffers. On 22/12/13 08:09PM, Steve Litt wrote: > Hi all, > > I typically use :bn and :bp to move between buffers, but I have five > buffers open on my current

Re: How to quickly move to a specific buffer?

2022-12-13 Thread Tim Chase
On 2022-12-13 20:09, Steve Litt wrote: > I typically use :bn and :bp to move between buffers, but I have five > buffers open on my current project, which requires a heck of a lot of > keystrokes to move to a specific buffer. So I'd like a command to bring > up a list of buffers so I can chose a