]> git.ipfire.org Git - thirdparty/systemd.git/commit
vimrc: explicitly set shiftwidth for the C file type 29206/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 18 Sep 2023 10:36:11 +0000 (12:36 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 18 Sep 2023 11:11:45 +0000 (13:11 +0200)
commite69056d6202c23d529e43c0f4d7230274de8fd14
tree66fecd06d41edff53672720da942c0fb7af466b6
parent7b19bd60cf1ec57a8bd8da1152eae3cbcdd4db34
vimrc: explicitly set shiftwidth for the C file type

If you start editing a shell script and then open a buffer with a C
file, the shiftwidth set by the previous autocommand for the sh file
type would not be reset to the original (global) 8ch. Let's fix this by
explicitly setting the shiftwidth in the C file type autocommand as
well.
.vimrc