New answers tagged

0 votes

How can I get the active window in a tab?

In Vim the tabs are always numbered from 1 to tabpagenr("$"). Also, gettabinfo() returns window list ordered by winnr. Given that, we are able to rewrite our logic like this echo range(1, ...
user avatar
  • 17k
0 votes

How can I get the active window in a tab?

The tabpagewinnr() can be used for this; for example: :echo gettabinfo() [{'windows': [1000], 'variables': {}, 'tabnr': 1}, {'windows': [1002, 1001], 'variables': {}, 'tabnr': 2}] :echo ...
user avatar
2 votes

How to change color of tabs in the tab-bar in gvim?

You can remove the e flag from the 'guioptions' option, this way the tab line matches the general colorscheme. set guioptions-=e Then use the :highlight command's GUI options, e.g.: hi TabLine guifg=#...
user avatar

Top 50 recent answers are included