Wikia

Vim Tips Wiki

Listing buffers

Talk0
1,612pages on
this wiki
Revision as of 06:08, July 13, 2012 by JohnBot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Tip 1112 Printable Monobook Previous Next

created 2006 · complexity basic · author Matt Zyzik · version 5.7


Use the following to list your buffers.

nnoremap <m-:> :ls\|sleep<CR><CR>

Press Alt-: to show the results of :ls for one second. Pressing Alt-: 3 times will show the :ls listing for 3 seconds.

You can also hold down Alt-: to show the file list continuously, then press Ctrl-c when you're done. This can be very useful when working with many files.

CommentsEdit

I'll try this for some days:

map <M-:> :<c-u>ls!<Bar>sleep <c-r>=v:count1<CR><CR><CR>

" alt-; display buffer list for 3 seconds
nnoremap <m-;> :ls<Bar>3sleep<CR><CR>

It should be noted that if 'lazyredraw' isn't set, the original mapping will cause the entire display to be refreshed for each <m-:> combination.


Around Wikia's network

Random Wiki