diff options
Diffstat (limited to 'vim')
-rw-r--r-- | vim/after/ftplugin/vim.vim | 7 | ||||
-rw-r--r-- | vim/ftplugin/textarea.vim | 2 |
2 files changed, 8 insertions, 1 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 diff --git a/vim/ftplugin/textarea.vim b/vim/ftplugin/textarea.vim index b5c5ca98..7877c8db 100644 --- a/vim/ftplugin/textarea.vim +++ b/vim/ftplugin/textarea.vim @@ -7,4 +7,4 @@ endif " areas I edit using TextEditorAnywhere nnoremap <buffer> <LocalLeader>f \ :<C-U>setlocal filetype=mail<CR> -let b:undo_ftplugin = '|nunmap <buffer> <LocalLeader>f' +let b:undo_ftplugin = 'nunmap <buffer> <LocalLeader>f' |