aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin/man.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-09-03 14:01:04 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-09-03 14:01:04 -0400
commit2f6d3e599b3659dff3d62ecfc31066e93523e169 (patch)
tree84beea66a6e98ce48cd4921e42b4770e4f16bc03 /runtime/ftplugin/man.vim
parent94dfb6cea24180592af5c495dd9e8abf61d5735f (diff)
parentc9e39f8227e320e156c92ee5192223304a9f1761 (diff)
downloadrneovim-2f6d3e599b3659dff3d62ecfc31066e93523e169.tar.gz
rneovim-2f6d3e599b3659dff3d62ecfc31066e93523e169.tar.bz2
rneovim-2f6d3e599b3659dff3d62ecfc31066e93523e169.zip
Merge #5249 'man.vim'
Diffstat (limited to 'runtime/ftplugin/man.vim')
-rw-r--r--runtime/ftplugin/man.vim15
1 files changed, 11 insertions, 4 deletions
diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim
index fddfee3c31..08a88e6b90 100644
--- a/runtime/ftplugin/man.vim
+++ b/runtime/ftplugin/man.vim
@@ -19,7 +19,9 @@ if has('vim_starting')
endif
" This is not perfect. See `man glDrawArraysInstanced`. Since the title is
" all caps it is impossible to tell what the original capitilization was.
- execute 'file man://'.tolower(matchstr(getline(1), '^\S\+'))
+ let ref = tolower(matchstr(getline(1), '^\S\+'))
+ let b:man_sect = man#extract_sect_and_name_ref(ref)[0]
+ execute 'file man://'.ref
endif
setlocal buftype=nofile
@@ -33,11 +35,16 @@ setlocal tabstop=8
setlocal softtabstop=8
setlocal shiftwidth=8
-call man#set_window_local_options()
+setlocal nonumber
+setlocal norelativenumber
+setlocal foldcolumn=0
+setlocal colorcolumn=0
+setlocal nolist
+setlocal nofoldenable
if !exists('g:no_plugin_maps') && !exists('g:no_man_maps')
- nmap <silent> <buffer> <C-]> <Plug>(Man)
- nmap <silent> <buffer> K <Plug>(Man)
+ nmap <silent> <buffer> <C-]> <Plug>(man)
+ nmap <silent> <buffer> K <Plug>(man)
nnoremap <silent> <buffer> <C-T> :call man#pop_tag()<CR>
if s:pager
nnoremap <silent> <buffer> <nowait> q :q<CR>