aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-01-21 23:31:10 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-01-21 23:33:37 +1300
commitff621272fbc462d8c0a757f04166a0e8bbc213be (patch)
tree384e340e570f9e3a787bc34d5e70c9828429572d
parent164ec2c89ddafd8231565d26e843e2eacf47cd57 (diff)
downloaddotfiles-ff621272fbc462d8c0a757f04166a0e8bbc213be.tar.gz
dotfiles-ff621272fbc462d8c0a757f04166a0e8bbc213be.zip
Break some continued lines in Vim indent files
This will mean they load correctly when the 'C' flag preventing line-breaking is in 'cpoptions', and 'compatible' is set.
-rw-r--r--vim/after/indent/vim.vim4
-rw-r--r--vim/indent/csv.vim3
-rw-r--r--vim/indent/tsv.vim3
3 files changed, 4 insertions, 6 deletions
diff --git a/vim/after/indent/vim.vim b/vim/after/indent/vim.vim
index 0cb1d397..bfd92aeb 100644
--- a/vim/after/indent/vim.vim
+++ b/vim/after/indent/vim.vim
@@ -2,6 +2,6 @@
setlocal shiftwidth=2
setlocal softtabstop=2
if exists('b:undo_indent')
- let b:undo_indent = b:undo_indent
- \ . '|setlocal shiftwidth< softtabstop<'
+ let s:ui = '|setlocal shiftwidth< softtabstop<'
+ let b:undo_indent = b:undo_indent . s:ui
endif
diff --git a/vim/indent/csv.vim b/vim/indent/csv.vim
index d092838f..938bc99d 100644
--- a/vim/indent/csv.vim
+++ b/vim/indent/csv.vim
@@ -7,5 +7,4 @@ let b:did_indent = 1
" Manual indenting and literal tabs for CSVs
setlocal noautoindent
setlocal noexpandtab
-let b:undo_indent
- \ = 'setlocal autoindent< expandtab<'
+let b:undo_indent = 'setlocal autoindent< expandtab<'
diff --git a/vim/indent/tsv.vim b/vim/indent/tsv.vim
index 56721a4c..6f70276d 100644
--- a/vim/indent/tsv.vim
+++ b/vim/indent/tsv.vim
@@ -7,5 +7,4 @@ let b:did_indent = 1
" Manual indenting and literal tabs for TSVs
setlocal noautoindent
setlocal noexpandtab
-let b:undo_indent
- \ = 'setlocal autoindent< expandtab<'
+let b:undo_indent = 'setlocal autoindent< expandtab<'