files/vimrc-r[34], which eventually become /etc/vim/vimrc, have "set" in autocmd FileType, BufRead, and BufNewFile. Unless they use "setlocal" instead of "set", the option values dynamically change globally that users don't expect. Reproducible: Always Steps to Reproduce: 1. write "set shiftwidth=2" in your ~/.vimrc 2. open a file ends with .ebuild. ":echo &sw" will be 4 which is fine. 3. open another buffer like by ":new" 4. ":echo &sw" Actual Results: 4 Expected Results: 2
Created attachment 341620 [details, diff] patch for files/vimrc-r3
Created attachment 341622 [details, diff] patch for files/vimrc-r4
the patches attached should solve this issue.