From 515dbf11171f2057cc403891f099f54d6b8ccde6 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Thu, 8 Sep 2022 17:41:41 +0200 Subject: [PATCH] vim:nvim-man: Source vimrc and fix weird input Remove `NORC` as settings like `smartcase` or my color scheme are things I do not want to miss and the startup time delta feels negligible. Fix a weird issue with presumably the line breaks and tabs in the command string that would make vim send key inputs when starting through `nvim-man`. This would lead to tmux switching panes and tmux-resurrect failing to recover panes with vim opened like this. --- .config/zsh/zshrc.d/40-functions.zsh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.config/zsh/zshrc.d/40-functions.zsh b/.config/zsh/zshrc.d/40-functions.zsh index 8c288b5..b085e89 100644 --- a/.config/zsh/zshrc.d/40-functions.zsh +++ b/.config/zsh/zshrc.d/40-functions.zsh @@ -401,13 +401,7 @@ nvim-man() { command man -w "$1" >/dev/null || return # $MANPAGER would do the trick too but lines would be hard-wrapped. - nvim -u NORC +" - runtime! plugin/man.vim | - Man $1 | - only | - set scrolloff=999 | - normal M - " + nvim +"Man $1 | only | set scrolloff=999 | normal M" else command man "$@" fi