aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-30 16:51:16 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-30 16:51:16 +1300
commitbef85e735c0c6d1c71d79f6ff20b8d5f0ce4b0c5 (patch)
tree7b07925c9e5062fa4caaa0be58173f493242bf56
parent0011a00ef59d140590db507b48e4132760d8e062 (diff)
downloaddotfiles-bef85e735c0c6d1c71d79f6ff20b8d5f0ce4b0c5.tar.gz
dotfiles-bef85e735c0c6d1c71d79f6ff20b8d5f0ce4b0c5.zip
Use conventional indent for continued VimL lines
I had four spaces, but with a 'shiftwidth' of 2, 6 is the conventional value. From :help ft-vim-indent: >For indenting Vim scripts there is one variable that specifies the >amount of indent for a continuation line, a line that starts with a >backslash: > > :let g:vim_indent_cont = &sw * 3 > >Three times shiftwidth is the default value.
-rw-r--r--vim/config/spell.vim4
-rw-r--r--vim/config/swapfile.vim4
-rw-r--r--vim/config/undo.vim4
-rw-r--r--vim/ftdetect/csv.vim4
-rw-r--r--vim/ftdetect/muttrc.vim4
-rw-r--r--vim/ftdetect/sh.vim18
-rw-r--r--vim/ftdetect/tsv.vim4
-rw-r--r--vim/ftdetect/xdefaults.vim4
8 files changed, 23 insertions, 23 deletions
diff --git a/vim/config/spell.vim b/vim/config/spell.vim
index 50b3f657..70471237 100644
--- a/vim/config/spell.vim
+++ b/vim/config/spell.vim
@@ -20,7 +20,7 @@ if has('viminfo') && has('autocmd')
augroup viminfoskip
autocmd!
silent! autocmd BufNewFile,BufReadPre
- \ /tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*,*/shm/*
- \ setlocal viminfo=
+ \ /tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*,*/shm/*
+ \ setlocal viminfo=
augroup END
endif
diff --git a/vim/config/swapfile.vim b/vim/config/swapfile.vim
index 39e1ab95..d5534d92 100644
--- a/vim/config/swapfile.vim
+++ b/vim/config/swapfile.vim
@@ -21,8 +21,8 @@ if !strlen($SUDO_USER) && has('unix')
augroup swapskip
autocmd!
silent! autocmd BufNewFile,BufReadPre
- \ /tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*,*/shm/*
- \ setlocal noswapfile
+ \ /tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*,*/shm/*
+ \ setlocal noswapfile
augroup END
endif
diff --git a/vim/config/undo.vim b/vim/config/undo.vim
index 3df06d80..68dde131 100644
--- a/vim/config/undo.vim
+++ b/vim/config/undo.vim
@@ -25,8 +25,8 @@ if !strlen($SUDO_USER) && has('unix') && has('persistent_undo')
augroup undoskip
autocmd!
silent! autocmd BufWritePre
- \ /tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*,*/shm/*
- \ setlocal noundofile
+ \ /tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*,*/shm/*
+ \ setlocal noundofile
augroup END
endif
endif
diff --git a/vim/ftdetect/csv.vim b/vim/ftdetect/csv.vim
index 4a2d082f..727077a0 100644
--- a/vim/ftdetect/csv.vim
+++ b/vim/ftdetect/csv.vim
@@ -2,6 +2,6 @@
augroup dfcsv
autocmd!
autocmd BufNewFile,BufRead
- \ *.csv
- \ setfiletype csv
+ \ *.csv
+ \ setfiletype csv
augroup END
diff --git a/vim/ftdetect/muttrc.vim b/vim/ftdetect/muttrc.vim
index 2ef72309..832d0c1f 100644
--- a/vim/ftdetect/muttrc.vim
+++ b/vim/ftdetect/muttrc.vim
@@ -2,6 +2,6 @@
augroup dfmuttrc
autocmd!
autocmd BufNewFile,BufRead
- \ **/.dotfiles/mutt/muttrc.d/*.rc,**/.muttrc.d/*.rc
- \ setfiletype muttrc
+ \ **/.dotfiles/mutt/muttrc.d/*.rc,**/.muttrc.d/*.rc
+ \ setfiletype muttrc
augroup END
diff --git a/vim/ftdetect/sh.vim b/vim/ftdetect/sh.vim
index 8b4c10d3..92aa2a0c 100644
--- a/vim/ftdetect/sh.vim
+++ b/vim/ftdetect/sh.vim
@@ -4,20 +4,20 @@ augroup dfsh
" Names/paths of things that are Bash shell script
autocmd BufNewFile,BufRead
- \ **/.dotfiles/bash/**,bash-fc-*
- \ let b:is_bash = 1 |
- \ setfiletype sh
+ \ **/.dotfiles/bash/**,bash-fc-*
+ \ let b:is_bash = 1 |
+ \ setfiletype sh
" Names/paths of things that are Korn shell script
autocmd BufNewFile,BufRead
- \ **/.dotfiles/ksh/**,.kshrc,*.ksh
- \ let b:is_kornshell = 1 |
- \ setfiletype sh
+ \ **/.dotfiles/ksh/**,.kshrc,*.ksh
+ \ let b:is_kornshell = 1 |
+ \ setfiletype sh
" Names/paths of things that are POSIX shell script
autocmd BufNewFile,BufRead
- \ **/.dotfiles/sh/**,.shinit,.shrc,.xinitrc,/etc/default/*
- \ let b:is_posix = 1 |
- \ setfiletype sh
+ \ **/.dotfiles/sh/**,.shinit,.shrc,.xinitrc,/etc/default/*
+ \ let b:is_posix = 1 |
+ \ setfiletype sh
augroup END
diff --git a/vim/ftdetect/tsv.vim b/vim/ftdetect/tsv.vim
index 7cfaf1b8..af544a94 100644
--- a/vim/ftdetect/tsv.vim
+++ b/vim/ftdetect/tsv.vim
@@ -2,6 +2,6 @@
augroup dftsv
autocmd!
autocmd BufNewFile,BufRead
- \ *.tsv
- \ setfiletype tsv
+ \ *.tsv
+ \ setfiletype tsv
augroup END
diff --git a/vim/ftdetect/xdefaults.vim b/vim/ftdetect/xdefaults.vim
index 589f0dfc..098ded56 100644
--- a/vim/ftdetect/xdefaults.vim
+++ b/vim/ftdetect/xdefaults.vim
@@ -2,6 +2,6 @@
augroup dfxdefaults
autocmd!
autocmd BufNewFile,BufRead
- \ **/.Xresources.d/*
- \ setfiletype xdefaults
+ \ **/.Xresources.d/*
+ \ setfiletype xdefaults
augroup END