From ba82eea1321b1ce1f1d2219498f407993642ca1d Mon Sep 17 00:00:00 2001 From: bretello Date: Mon, 8 Mar 2021 10:00:57 +0100 Subject: [PATCH] vim: add syntax highlighting to :Man command --- vim/functions.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vim/functions.vim b/vim/functions.vim index 4147daf..c3e5c1f 100644 --- a/vim/functions.vim +++ b/vim/functions.vim @@ -126,10 +126,10 @@ command! -nargs=1 -complete=command -bar -range Redir silent call Redir( " Gets the manul page for the given command function! Man(cmd) - let output = system('env PAGER="bat -p" man ' . a:cmd) + let output = system('man ' . a:cmd) vnew let w:scratch=1 - setlocal buftype=nofile bufhidden=wipe nobuflisted noswapfile + setlocal buftype=nofile bufhidden=wipe nobuflisted noswapfile filetype=man setlocal nonumber norelativenumber call setline(1, split(output, '\n')) endfunction