4
1
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).
Your question is ambiguous. Do you want to use Vim in place of less, or do you somehow want your Vim configuration files to affect less's behavior? The former should be possible, but the latter isn't. – Heptite – 2013-03-30T21:08:56.563
I wasn't sure if commands like
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. – Bentley4 – 2013-03-30T22:27:04.547