aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-06 23:23:11 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-06 23:29:46 +1200
commit513a72698b289d65160fe38f3e20fb272f0ed8e3 (patch)
tree6e65d9f3ecb221d22df10a511900ca77dcd9bc5a
parentAdd Makefile target to install free thesaurus (diff)
downloaddotfiles-513a72698b289d65160fe38f3e20fb272f0ed8e3.tar.gz
dotfiles-513a72698b289d65160fe38f3e20fb272f0ed8e3.zip
Correct 'shiftwidth' value in Makefiles
-rw-r--r--vim/after/indent/make.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/vim/after/indent/make.vim b/vim/after/indent/make.vim
new file mode 100644
index 00000000..341cd7f6
--- /dev/null
+++ b/vim/after/indent/make.vim
@@ -0,0 +1,4 @@
+" Use 'tabstop' (8 columns, a full tab) for indent operations in Makefiles.
+" It seems odd that the stock plugin doesn't force this on its own.
+setlocal shiftwidth=0
+let b:undo_indent = 'setlocal shiftwidth<'