diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-04-01 21:05:38 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-04-01 21:05:38 +1300 |
commit | dd1b9b2e1ba1ee926400de248a2d9edce8378eaf (patch) | |
tree | ff3b4e4e7cb11216a8d2c7d2a984186fdfda3f61 /vim/after/ftplugin/vim.vim | |
parent | Merge branch 'release/v4.17.0' (diff) | |
parent | Bump VERSION (diff) | |
download | dotfiles-dd1b9b2e1ba1ee926400de248a2d9edce8378eaf.tar.gz dotfiles-dd1b9b2e1ba1ee926400de248a2d9edce8378eaf.zip |
Merge branch 'release/v4.18.0'v4.18.0
* release/v4.18.0:
Bump VERSION
Set 'keywordprg' to :help for older Vims
Fix up a few cosmetic shell anti-patterns
Remove unneeded leading pipe from b:undo_ftplugin
Diffstat (limited to 'vim/after/ftplugin/vim.vim')
-rw-r--r-- | vim/after/ftplugin/vim.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vim/after/ftplugin/vim.vim b/vim/after/ftplugin/vim.vim index 905d21dc..d2fa77e2 100644 --- a/vim/after/ftplugin/vim.vim +++ b/vim/after/ftplugin/vim.vim @@ -9,6 +9,13 @@ endif let b:regex_escape_flavor = 'vim' let b:undo_ftplugin .= '|unlet b:regex_escape_flavor' +" Use :help as 'keywordprg' if not already set; this is the default since Vim +" v8.1.1290 +if &keywordprg !=# ':help' + setlocal keywordprg=:help + let b:undo_ftplugin .= '|setlocal keywordprg<' +endif + " Stop here if the user doesn't want ftplugin mappings if exists('g:no_plugin_maps') || exists('g:no_vim_maps') finish |