aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-31 09:23:59 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-31 09:23:59 +1300
commit974cd4c363f5a1c5116800f31e11f0e57ca6855b (patch)
treea012424dace0b8c28a500f2e053d63ddd854b989
parent32e15afef9a50caf34b9b982738a215c7f66dbb1 (diff)
downloaddotfiles-974cd4c363f5a1c5116800f31e11f0e57ca6855b.tar.gz
dotfiles-974cd4c363f5a1c5116800f31e11f0e57ca6855b.zip
Reload indent global defaults before each filetype
Just to be comprehensive, reinstate the global defaults for all the indenting options via the indent/_GLOBAL.vim stub each time the filetype is changed.
-rw-r--r--vim/indent/csv.vim3
-rw-r--r--vim/indent/tsv.vim3
-rw-r--r--vim/indent/vim.vim3
3 files changed, 9 insertions, 0 deletions
diff --git a/vim/indent/csv.vim b/vim/indent/csv.vim
index 3d78df97..8f98d915 100644
--- a/vim/indent/csv.vim
+++ b/vim/indent/csv.vim
@@ -1,3 +1,6 @@
+" Restore local indent settings to the global values
+runtime indent/_GLOBAL.vim
+
" Manual indenting and literal tabs for CSVs
setlocal noautoindent
setlocal noexpandtab
diff --git a/vim/indent/tsv.vim b/vim/indent/tsv.vim
index 53841357..a38e53e8 100644
--- a/vim/indent/tsv.vim
+++ b/vim/indent/tsv.vim
@@ -1,3 +1,6 @@
+" Restore local indent settings to the global values
+runtime indent/_GLOBAL.vim
+
" Manual indenting and literal tabs for TSVs
setlocal noautoindent
setlocal noexpandtab
diff --git a/vim/indent/vim.vim b/vim/indent/vim.vim
index b958fe54..3b038349 100644
--- a/vim/indent/vim.vim
+++ b/vim/indent/vim.vim
@@ -1,3 +1,6 @@
+" Restore local indent settings to the global values
+runtime indent/_GLOBAL.vim
+
" Observe VimL conventions for two-space indents
setlocal shiftwidth=2
setlocal softtabstop=2