I am used to work with tab pages in vim in console mode. One of the
most commonly used actions is to jump from one tab page to another.
There are several ways:
1) using ":tabnext" or ":tabprevious" command repeatedly until target
tab page is arrived.
2) count the target tab page's index, then use ":tabnext n" to get to
it.
The second is faster. However the counting process is bothersome. So I
changed the tabline, adding tab page index in front of each tab page's
buffer name(highlighted as warning). It works for console mode.

Here is the diff file for src/screen.c for latest vim 7.3 release.

9663a9664,9665
>     int         tabidx;
>     char      tabidxs[10];
9711a9714
>       tabidx  = 0;
9724a9728,9739
>       ++tabidx;
>       sprintf(tabidxs, "%d", tabidx);
>       len = (int)STRLEN(tabidxs);
>       screen_puts_len(tabidxs, len, 0, col,
> #if defined(FEAT_SYN_HL)
>              hl_combine_attr(attr, hl_attr(HLF_W))
> #else
>              attr
> #endif
>               );
>       col += len;
>

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui