From 63f0ca326322376271c68f51cf8908daad524339 Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Tue, 22 Oct 2019 23:40:16 +0100 Subject: man.vim: use 'tagfunc' instead of remapping man#pop_tag() is also no longer used --- runtime/ftplugin/man.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/ftplugin') diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim index 6c7f095f62..b3b23833ba 100644 --- a/runtime/ftplugin/man.vim +++ b/runtime/ftplugin/man.vim @@ -20,13 +20,13 @@ setlocal wrap breakindent linebreak setlocal nonumber norelativenumber setlocal foldcolumn=0 colorcolumn=0 nolist nofoldenable +setlocal tagfunc=man#goto_tag + if !exists('g:no_plugin_maps') && !exists('g:no_man_maps') nnoremap j gj nnoremap k gk nnoremap gO :call man#show_toc() - nnoremap :Man nnoremap K :Man - nnoremap :call man#pop_tag() if 1 == bufnr('%') || s:pager nnoremap q :lclose:q else -- cgit From afaa0626430ba0150729a088234698de85174ce6 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Sun, 24 Nov 2019 20:10:50 -0500 Subject: man.vim: Update maintainer email --- runtime/ftplugin/man.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/ftplugin') diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim index b3b23833ba..7c535dc839 100644 --- a/runtime/ftplugin/man.vim +++ b/runtime/ftplugin/man.vim @@ -1,4 +1,4 @@ -" Maintainer: Anmol Sethi +" Maintainer: Anmol Sethi " Previous Maintainer: SungHyun Nam if exists('b:did_ftplugin') || &filetype !=# 'man' -- cgit From ee1199eaba7cafa6b60611ebece1407bc274e330 Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Thu, 28 Nov 2019 22:04:40 +0000 Subject: man.vim: remove K mapping #11472 Since #11457 this mapping is no longer necessary. 'keywordprg' defaults to :Man in options.lua --- runtime/ftplugin/man.vim | 1 - 1 file changed, 1 deletion(-) (limited to 'runtime/ftplugin') diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim index 7c535dc839..081181cfe9 100644 --- a/runtime/ftplugin/man.vim +++ b/runtime/ftplugin/man.vim @@ -26,7 +26,6 @@ if !exists('g:no_plugin_maps') && !exists('g:no_man_maps') nnoremap j gj nnoremap k gk nnoremap gO :call man#show_toc() - nnoremap K :Man if 1 == bufnr('%') || s:pager nnoremap q :lclose:q else -- cgit From e8ccd0f2347feb26071e8667d24f3281db79ede3 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Sat, 13 Jun 2020 00:54:57 -0400 Subject: man.vim: Remove unnecessary code Not sure why this was added in https://github.com/neovim/neovim/commit/94f4469638590ca5cc724ab6459f2cfc78c621a4 It doesn't seem to do anything and I can't reproduce the linked issue with this patch so I think it's all working now. cc @justinmk --- runtime/ftplugin/man.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/ftplugin') diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim index 081181cfe9..0416e41368 100644 --- a/runtime/ftplugin/man.vim +++ b/runtime/ftplugin/man.vim @@ -6,7 +6,7 @@ if exists('b:did_ftplugin') || &filetype !=# 'man' endif let b:did_ftplugin = 1 -let s:pager = get(s:, 'pager', 0) || !exists('b:man_sect') +let s:pager = !exists('b:man_sect') if s:pager call man#init_pager() @@ -26,7 +26,7 @@ if !exists('g:no_plugin_maps') && !exists('g:no_man_maps') nnoremap j gj nnoremap k gk nnoremap gO :call man#show_toc() - if 1 == bufnr('%') || s:pager + if s:pager nnoremap q :lclose:q else nnoremap q :lclosec -- cgit