aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-09-19 17:44:23 -0400
committerJustin M. Keyes <justinkz@gmail.com>2015-09-23 00:06:26 -0400
commit45724e2c4148aaddfbb83909d2d637a760e57710 (patch)
treea012201141b3a9a9fc9144dcfed44d89609cd426 /runtime/ftplugin
parent4fb75d61c2c52ac25de96763788775f5e2d27dd7 (diff)
downloadrneovim-45724e2c4148aaddfbb83909d2d637a760e57710.tar.gz
rneovim-45724e2c4148aaddfbb83909d2d637a760e57710.tar.bz2
rneovim-45724e2c4148aaddfbb83909d2d637a760e57710.zip
man.vim: man#get_page(): parse page and section.
- Eliminate man#pre_get_page(). - Temporarily remove () from 'iskeyword' to avoid spurious \k match.
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r--runtime/ftplugin/man.vim7
1 files changed, 2 insertions, 5 deletions
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 <silent> <buffer> <C-]> :call man#pre_get_page(v:count)<CR>
+ nnoremap <silent> <buffer> <C-]> :call man#get_page(v:count)<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#pre_get_page(v:count)<CR>
+ nnoremap <silent> <buffer> K :call man#get_page(v:count)<CR>
endif
endif