aboutsummaryrefslogtreecommitdiff
path: root/vim/after/indent/c.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/after/indent/c.vim')
-rw-r--r--vim/after/indent/c.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/vim/after/indent/c.vim b/vim/after/indent/c.vim
new file mode 100644
index 00000000..45db2ebc
--- /dev/null
+++ b/vim/after/indent/c.vim
@@ -0,0 +1,4 @@
+" If the path to the file looks like the Vim sources, set 'shiftwidth' to 4
+if expand('%:p') =~# '/vim.*src/'
+ setlocal shiftwidth=4
+endif