If I set columns=X
, how can I get back to "normal"? Saving the original value might be one way to go, but if I resize the terminal between saving and reverting I'll be ending up with the wrong columns again.
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this community
&columns
value, at least for me. I think saving it is your only option. You can hook in to theVimResized
autocmd to get the new&columns
default.:!tput cols
&columns
to @D.BenKnoble (on my system, anyway):!tput cols
works for me on Ubuntu 22.04.vim -c "set columns=X"
actually get overrided by the time vim actually fires up.