From 8fc42a9a642f62dc455ea0b4ef012cbf1eef4e77 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Tue, 19 Jul 2022 11:21:25 -0500 Subject: [PATCH] Edit --- common/fish/vars.fish | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/common/fish/vars.fish b/common/fish/vars.fish index 6514e7f..5550a2b 100644 --- a/common/fish/vars.fish +++ b/common/fish/vars.fish @@ -12,11 +12,18 @@ set --export --universal BROWSER firefox-developer-edition set --export --universal PAGER less set --export --universal LESS "-r" -set --export --universal MANPAGER 'env MANWIDTH="" nvim --cmd "let g:prosession_on_startup=0" +Man!' +set --export --universal MANPAGER 'env MANWIDTH="" "$EDITOR"' if command --search --quiet nvim + set --export --universal MANPAGER 'env MANWIDTH="" nvim --cmd "let g:prosession_on_startup=0" +Man!' set --export --universal EDITOR nvim set --export --universal VISUAL nvim +else if command --search --quiet helix + set --export --universal EDITOR helix + set --export --universal VISUAL helix +else if command --search --quiet hx + set --export --universal EDITOR hx + set --export --universal VISUAL hx else if command --search --quiet vim set --export --universal EDITOR vim set --export --universal VISUAL vim