Quite some programs have commands that output with less(e.g. git blame filename
). I would like to use my vim configuration(e.g. <C-j>
instead of using Pg Down
to go down a page) whenever less is used. How do I set this?
According to this thread and the less man page putting export EDITOR=vim
and export VISUAL=vim
in my ~/.baschrc
should use vim for less but I don't see any change after reloading a terminal session and launching less (I can't use my page down hotkey for example).
git blame filename
hardcoded the use of less or that they just passed output to the pager you are using. I just wanted to use my vim configuration when using a pager, wether its with less or not with less.