Editing multiple buffers in vim: "((1) of 3)" in the status bar

When I switch between buffers in vim using ": bn" and ": bp", my status bar shows the following convenient information:

"foo.txt" 43 lines --88%-- ((1) of 3)                      38,1          All

(I think this is “set showmode”, which allows this.) But this is “(1)” always literally “(1)” - it does not change as I change the buffers. (The partners around "1" are also weird).

Does anyone know how to fix this?

ADDED: perhaps this is due to something nutty in my .vimrc, which is here: http://yootles.com/outbox/.vimrc


In addition, here's a handy trick to make switching buffers really painless (entries in .vimrc):

"left/right arrows to switch buffers in normal mode
map <right> :bn<cr>
map <left> :bp<cr>

: vim, , , . [ , !]

+3
3

vim ((1) 3) - . vim, , , 3 . : bn/: bp : n/: N , 1. : h arglist-position.

+3

; , :

set laststatus=2    " all windows have statuslines
set statusline=%mb%n:%f%R%Y\ %l/%L,%c:%v

1st EDIT:

:help arglist-position
:help shortmess

, , .

+1

, gvim , .

, titlestring , .

minibufexpl.vim: -
http://www.vim.org/scripts/script.php?script_id=159


0scan: , , , (ctags, buffers,...).
http://www.vim.org/scripts/script.php?script_id=2507

+1

Source: https://habr.com/ru/post/1705088/


All Articles