Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Annoying vim tab line labels

Tags:

vim

tabs

window

That's not an indentation question.

Vim's behavior for window navigation really annoys me. Suppose there's this configuration of windows current opened, and the file wp-config-sample.php is the current one:

enter image description here

As all the other files are in a different directory, if I focus any of them doing a <ESC>gt, all of them get their content changed, and the tabs get resized as well:

enter image description here

That's a simple example, but the problem really arises when there's a lot of tabs opened and I can't just figure out where I am, because the focused tab changed its position significantly from the original one.

What I expect as a good behavior is the same system on Firefox, where the focused and unfocused tab never change their position, and the focused one only gets slightly emphasized.

Is there any way of making it stop?

like image 322
vmassuchetto Avatar asked Mar 24 '12 15:03

vmassuchetto


1 Answers

tappi, on #vim at Freenode, clarified that I have autochdir turned on. To quickly fix this:

:set noautochdir

And coot pointed me a nice vim's wiki link, with a nice snippet that works really well in .vimrc, to preserve the autochdir behavior and also keep a regular tab title when switching through windows.

Now my tabs are beautiful!

like image 196
vmassuchetto Avatar answered Sep 23 '22 13:09

vmassuchetto