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:
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:
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?
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With