From 0ec73d6242582783ae1a9d457dfe04a5bc852199 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 30 Oct 2017 11:48:42 +1300 Subject: Move vim/after/ftplugin files into vim/ftplugin None of the settings in here need to be run after the core configuration files are loaded, so I'll put them in a slightly more accessible or logical place. This adds a new target `install-vim-ftplugin`, and makes that a prerequisite of the `install-vim` target. --- vim/ftplugin/sh.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 vim/ftplugin/sh.vim (limited to 'vim/ftplugin/sh.vim') diff --git a/vim/ftplugin/sh.vim b/vim/ftplugin/sh.vim new file mode 100644 index 00000000..2b73611e --- /dev/null +++ b/vim/ftplugin/sh.vim @@ -0,0 +1,11 @@ +" Default to POSIX shell, as I never write Bourne, and if I write Bash or Ksh +" it'll be denoted with either a shebang or an appropriate extension. At the +" time of writing, changing this also prompts sh.vim to set g:is_kornshell, +" which is absurd, and requires a bit more massaging in after/syntax/sh.vim to +" turn off some unwanted stuff. +let g:is_posix = 1 + +" Use han(1df) as a man(1) wrapper for Bash files if available +if exists('b:is_bash') && executable('han') + setlocal keywordprg=han +endif -- cgit v1.2.3