diff --git a/cppman/lib/pager.sh b/cppman/lib/pager.sh index 2805f0e..439be07 100755 --- a/cppman/lib/pager.sh +++ b/cppman/lib/pager.sh @@ -84,15 +84,22 @@ case $pager_type in [ -z "$PAGER" ] && PAGER=less render | $PAGER ;; - vim|nvim) + vim|nvim) render | remove_escape 3<&- | { - $pager_type -R -c "let g:page_name=\"$page_name\"" -S $vim_config /dev/fd/3