aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin/vim.vim
diff options
context:
space:
mode:
authorPeter Renstròˆm <renstrom.peter@gmail.com>2015-07-26 17:02:36 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-07-08 15:11:56 +0200
commit6720fe253e92b21c7f989389a64e363b5933884f (patch)
treebb37236047d16c8b057362041ea69ac0a861cb17 /runtime/ftplugin/vim.vim
parent06f798cc38d68aac3d2707bba56463534e9fd896 (diff)
downloadrneovim-6720fe253e92b21c7f989389a64e363b5933884f.tar.gz
rneovim-6720fe253e92b21c7f989389a64e363b5933884f.tar.bz2
rneovim-6720fe253e92b21c7f989389a64e363b5933884f.zip
runtime: K: prefer Vim help instead of man #3104
Diffstat (limited to 'runtime/ftplugin/vim.vim')
-rw-r--r--runtime/ftplugin/vim.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/ftplugin/vim.vim b/runtime/ftplugin/vim.vim
index f355d2837d..ba9ed76169 100644
--- a/runtime/ftplugin/vim.vim
+++ b/runtime/ftplugin/vim.vim
@@ -14,7 +14,7 @@ let b:did_ftplugin = 1
let s:cpo_save = &cpo
set cpo-=C
-let b:undo_ftplugin = "setl fo< isk< com< tw< commentstring<"
+let b:undo_ftplugin = "setl fo< isk< com< tw< commentstring< keywordprg<"
\ . "| unlet! b:match_ignorecase b:match_words b:match_skip"
" Set 'formatoptions' to break comment lines but not other lines,
@@ -36,6 +36,9 @@ endif
" Comments start with a double quote
setlocal commentstring=\"%s
+" Prefer Vim help instead of manpages.
+setlocal keywordprg=:help
+
" Move around functions.
nnoremap <silent><buffer> [[ m':call search('^\s*fu\%[nction]\>', "bW")<CR>
vnoremap <silent><buffer> [[ m':<C-U>exe "normal! gv"<Bar>call search('^\s*fu\%[nction]\>', "bW")<CR>