3 ms·
As a vimmer I was glad to discover that `less` supports j/k scrolling, search with / + n/N, gg and G. A neat trick is : export MANPAGER="less --incsearch"
by cassepipe 2y ago
As a vimmer I was glad to discover that `less` supports j/k scrolling, search with / + n/N, gg and G.
A neat trick is :
export MANPAGER="less --incsearch"
which mimicks the behaviour of `:set incsearch` in vim and allows you no quickly move around
It really increased the usefulness of man pages by a lot for me.
`info` has a vim mode but it's more obscure to me how to use it properly
Any other useful tricks ?
Edit: s/man/less
- blueflow 2y agoWhat you are referring to is not done by `man`, but by `less`. The pager that `man` uses is configurable.
- cassepipe 2y agoI stand corrected
- yoyohello13 2y agoNeovim supports use as a manpager: export MANPAGER="nvim +Man!" You get all the vim movement/search and highlighting.
- cassepipe 2y agoEven better, thank you for the tip