From 45724e2c4148aaddfbb83909d2d637a760e57710 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sat, 19 Sep 2015 17:44:23 -0400 Subject: man.vim: man#get_page(): parse page and section. - Eliminate man#pre_get_page(). - Temporarily remove () from 'iskeyword' to avoid spurious \k match. --- runtime/ftplugin/man.vim | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'runtime/ftplugin') diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim index a35966f6a9..38c6c7d71e 100644 --- a/runtime/ftplugin/man.vim +++ b/runtime/ftplugin/man.vim @@ -14,21 +14,18 @@ if exists('$MANPAGER') let $MANPAGER = '' endif -" allow dot and dash in manual page name. setlocal iskeyword+=\.,-,(,) -" Avoid warning for editing the dummy file twice setlocal buftype=nofile noswapfile - setlocal nomodifiable readonly bufhidden=hide nobuflisted setlocal tabstop=8 colorcolumn=0 if !exists("g:no_plugin_maps") && !exists("g:no_man_maps") - nnoremap :call man#pre_get_page(v:count) + nnoremap :call man#get_page(v:count) nnoremap :call man#pop_page() nnoremap q c if &keywordprg !=# ':Man' - nnoremap K :call man#pre_get_page(v:count) + nnoremap K :call man#get_page(v:count) endif endif -- cgit