aboutsummaryrefslogtreecommitdiff
path: root/vim/ftdetect
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-06 10:07:26 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-06 10:07:26 +1300
commitae2eb0590ec65e4c6e1830bbe7c64cd07052eb91 (patch)
tree69ee166f8697516261001b7134095e119316e29d /vim/ftdetect
parentRemove \m\C prefix from inapplicable VimL regexes (diff)
downloaddotfiles-ae2eb0590ec65e4c6e1830bbe7c64cd07052eb91.tar.gz
dotfiles-ae2eb0590ec65e4c6e1830bbe7c64cd07052eb91.zip
Move pipes from end to start of continued lines
The Google Vimscript Guide says: <https://google.github.io/styleguide/vimscriptfull.xml#Whitespace> > Place one space after the backslash denoting a line continuation. > > When continuing a multi-line command a pipe can be substituted for > this space as necessary, as follows: > > autocommand BufEnter <buffer> > \ if !empty(s:var) > \| call some#function() > \|else > \| call some#function(s:var) > \|endif
Diffstat (limited to 'vim/ftdetect')
-rw-r--r--vim/ftdetect/sh.vim12
1 files changed, 6 insertions, 6 deletions
diff --git a/vim/ftdetect/sh.vim b/vim/ftdetect/sh.vim
index 3df9c3ce..f00a5659 100644
--- a/vim/ftdetect/sh.vim
+++ b/vim/ftdetect/sh.vim
@@ -5,19 +5,19 @@ augroup dotfiles_ftdetect_sh
" Names/paths of things that are Bash shell script
autocmd BufNewFile,BufRead
\ **/.dotfiles/bash/**,bash-fc-*
- \ let b:is_bash = 1 |
- \ setfiletype sh
+ \ 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
+ \ 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
+ \ let b:is_posix = 1
+ \ | setfiletype sh
augroup END