From 3be90010f79f18d77635ef8fc4f81456b838848e Mon Sep 17 00:00:00 2001 From: Robert Cranston <rcrnstn@rcrnstn.net> Date: Thu, 17 May 2018 15:08:00 +0200 Subject: [PATCH] Keep acting like a pager if started as a pager --- ftplugin/neoman.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ftplugin/neoman.vim b/ftplugin/neoman.vim index 28ad064..9ee77d9 100644 --- a/ftplugin/neoman.vim +++ b/ftplugin/neoman.vim @@ -3,14 +3,14 @@ if exists('b:did_ftplugin') endif let b:did_ftplugin = 1 -let s:pager = 0 - if has('vim_starting') let s:pager = 1 " remove all those backspaces silent execute 'keeppatterns keepjumps %substitute,.\b\|\e\[\d\+m,,e'.(&gdefault?'':'g') execute 'file '.'man://'.tolower(matchstr(getline(1), '^\S\+')) keepjumps 1 +elseif !exists('s:pager') + let s:pager = 0 endif setlocal buftype=nofile -- 2.17.1