In my vimrc I use :setg tabstop=4 shiftwidth=4
. Why aren't unnamed buffers set correctly with these values? Using VIM 8.2.460 (2019 Dec 12)
I opened vim with some piped output and noticed tab width was 8. So I typed:
:setglobal tabstop?
tabstop=4
Last set from /etc/vim/vimrc.local line 36
:setlocal tabstop?
tabstop=8
If I use :setlocal
, some options are shown but tabstop is not in the list. This means it's picking the vim default (8).
Anyone have any ideas about this? Aren't global options supposed to be used for new buffers?