aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/sh.vim
blob: c79dab74b166a20ff84b8106d0dc3bd757e2ca12 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
" If the file is not already tagged as a shell type, default to POSIX shell,
" as I never write Bourne. I would set g:is_posix here rather than b:is_posix,
" but sh.vim makes some weird assumptions about me actually meaning ksh for
" some reason when I do that.
if !exists('b:is_kornshell') && !exists('b:is_bash') && !exists('b:is_posix')
  let b:is_posix = 1
endif

" Use han(1df) as a man(1) wrapper for Bash files if available
if exists('b:is_bash') && executable('han')
  setlocal keywordprg=han
endif