comparison runtime/ftplugin/bash.vim @ 18186:03b854983b14

Update runtime files. Commit: https://github.com/vim/vim/commit/5be4ceecea5520265066eac972460ebb1cdf05e7 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 27 19:34:08 2019 +0200 Update runtime files.
author Bram Moolenaar <Bram@vim.org>
date Fri, 27 Sep 2019 19:45:06 +0200
parents f0f06837a699
children 71cbad0921c9
comparison
equal deleted inserted replaced
18185:75f204e14e28 18186:03b854983b14
9 9
10 if exists("b:did_ftplugin") 10 if exists("b:did_ftplugin")
11 finish 11 finish
12 endif 12 endif
13 13
14 unlet! b:is_sh
15 unlet! b:is_kornshell
14 let b:is_bash = 1 16 let b:is_bash = 1
15 if exists("b:is_sh")
16 unlet b:is_sh
17 endif
18 if exists("b:is_kornshell")
19 unlet b:is_kornshell
20 endif
21 17
22 " Setting 'filetype' here directly won't work, since we are being invoked 18 runtime! ftplugin/sh.vim ftplugin/sh_*.vim ftplugin/sh/*.vim
23 " through an autocommand. Do it later, on the BufWinEnter event.
24 augroup bash_filetype
25 au BufWinEnter * call SetBashFt()
26 augroup END
27 19
28 func SetBashFt() 20 " vim: ts=8
29 au! bash_filetype
30 set ft=sh
31 endfunc