In my ~/.vim/vimrc, I have:
set shiftwidth=4 set tabstop=4 and when I edit a plain text file, that is respected. However, when I edit a CMake file - these both becomes 8. I tried leafing through /usr/share/vim/vim90/syntax/cmake.vimlooking for the cause of this change, but couldn't find something which looks like an override of these values.figure it out:
- Nothing in
/usr/share/vim/vim90/syntax/cmake.vimseems to be related to tab stops, or to include another vim file. - Same for
/usr/share/vim/vim90/syntax/cmake.vim. - The
CMakeLists.txtfiles I'm editing have no modeline.
What's causing this? Is there a definition I've missed? And - can I override it somehow?