From 9fb9d2929fb9913105efaad8af6b3ecfbeaf52dc Mon Sep 17 00:00:00 2001 From: Noah Frederick Date: Tue, 16 Feb 2016 17:54:53 -0500 Subject: man.vim: fixes to argument handling and parsing - Define a collection of legal characters when parsing page and section in `s:parse_page_and_section()` instead of relying on 'iskeyword', which is unreliable. - Allow non-numeric section names (e.g., `3c`). - Simplify argument handling in `man#get_page()` to accommodate non-numeric section names. Fixes #4165. --- runtime/ftplugin/man.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/ftplugin/man.vim') 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 :call man#get_page(v:count) + nnoremap :call man#get_page(v:count, expand('')) nnoremap :call man#pop_page() nnoremap q c if &keywordprg !=# ':Man' - nnoremap K :call man#get_page(v:count) + nnoremap K :call man#get_page(v:count, expand('')) endif endif -- cgit