Tip #208: Alter the display of buffers in the buffers menu
tip karma |
Rating 10/4, Viewed by 805
|
created: |
|
January 31, 2002 9:51 |
|
complexity: |
|
basic |
author: |
|
Roger Pilkey |
|
as of Vim: |
|
6.0 |
If you use the buffers menu, here's where you can change how the buffernames are displayed:
menu.vim, function s:BMMunge
OLD: let name2 = name2 . ' (' . a:bnum . ')'
displays:
.vimrc (1)
menu.vim (2)
NEW: let name2 = '&' . a:bnum . '. ' . name2
displays
1. .vimrc
2. menu.vim
(with the 1 and the 2 underlined)
which is more useful, because you can (almost) always pick the buffer you want with one keystroke, the buffernumber, until you get to buffer 10 anyway.
Roger
<<editing databases with Vim/Perl/DBI |
backtracking your movements in a file >>
Additional Notes
|