aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin/man.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-03-13 14:48:45 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-03-13 14:48:45 -0400
commite7a9c006e15d99b4a276822d5f0f50b8cc2f6fb5 (patch)
tree57f780b6ed3da54df001907d158181f3c8d56fbe /runtime/ftplugin/man.vim
parentb030c905060f5275be5ef23e54030fdd4ab0dc2c (diff)
parent091ef2fbe4a1517ce91fade26ebbd50f063e346d (diff)
downloadrneovim-e7a9c006e15d99b4a276822d5f0f50b8cc2f6fb5.tar.gz
rneovim-e7a9c006e15d99b4a276822d5f0f50b8cc2f6fb5.tar.bz2
rneovim-e7a9c006e15d99b4a276822d5f0f50b8cc2f6fb5.zip
Merge pull request #4168 from noahfrederick/patch-1
man.vim: parse page names containing dash or dot
Diffstat (limited to 'runtime/ftplugin/man.vim')
-rw-r--r--runtime/ftplugin/man.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim
index 133a28e626..36cd70f203 100644
--- a/runtime/ftplugin/man.vim
+++ b/runtime/ftplugin/man.vim
@@ -24,11 +24,11 @@ setlocal buftype=nofile noswapfile
setlocal nomodifiable readonly bufhidden=hide nobuflisted tabstop=8
if !exists("g:no_plugin_maps") && !exists("g:no_man_maps")
- nnoremap <silent> <buffer> <C-]> :call man#get_page(v:count)<CR>
+ nnoremap <silent> <buffer> <C-]> :call man#get_page(v:count, expand('<cword>'))<CR>
nnoremap <silent> <buffer> <C-T> :call man#pop_page()<CR>
nnoremap <silent> <nowait><buffer> q <C-W>c
if &keywordprg !=# ':Man'
- nnoremap <silent> <buffer> K :call man#get_page(v:count)<CR>
+ nnoremap <silent> <buffer> K :call man#get_page(v:count, expand('<cword>'))<CR>
endif
endif