From ae2eb0590ec65e4c6e1830bbe7c64cd07052eb91 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 6 Nov 2017 10:07:26 +1300 Subject: Move pipes from end to start of continued lines The Google Vimscript Guide says: > 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 > \ if !empty(s:var) > \| call some#function() > \|else > \| call some#function(s:var) > \|endif --- vim/ftdetect/sh.vim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'vim/ftdetect') 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 -- cgit v1.2.3