rkitover / vimpager

Use Vim as PAGER
http://www.vim.org/scripts/script.php?script_id=1723
Other
774 stars 72 forks source link

incompatibility with apparmor #242

Open ghost opened 5 years ago

ghost commented 5 years ago

deepinscreenshot_select-area_20181216231349 Here is my zshrc: deepinscreenshot_select-area_20181216231628 What should I do?

rkitover commented 5 years ago

Try:

chmod +x /home/nobelheaven/.vim/plugged/vimpager
Benjamin-Connelly commented 4 years ago

I had two issues.

  1. AppArmor - I saw lines in /var/log/audit/audit.log type=AVC msg=audit(1572718868.558:592): apparmor="DENIED" operation="ptrace" profile="/usr/bin/man" pid=31610 comm="ps" requested_mask="read" denied_mask="read" peer="unconfined"

Fixed this by installing apparmor-utils and the running aa-logprof and approving man.

  1. I had only linked to ~/.vim/bundle/vimpager which is a directory and I found that out by running less which told me ~//vim/bundle/vimpager: Is a directory.

Fix was correcting this in my ~/.bashrc


export PAGER=$HOME/.vim/bundle/vimpager/vimpager
alias less=$PAGER
alias zless=$PAGER```
rkitover commented 4 years ago

@Benjamin-Connelly thanks for the report, the apparmor issue will require some work.