diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-30 16:51:16 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-30 16:51:16 +1300 |
commit | bef85e735c0c6d1c71d79f6ff20b8d5f0ce4b0c5 (patch) | |
tree | 7b07925c9e5062fa4caaa0be58173f493242bf56 /vim/ftdetect/sh.vim | |
parent | Correct comment typo (diff) | |
download | dotfiles-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.
Diffstat (limited to 'vim/ftdetect/sh.vim')
-rw-r--r-- | vim/ftdetect/sh.vim | 18 |
1 files changed, 9 insertions, 9 deletions
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 |