ThePrimeagen / .dotfiles

3.08k stars 308 forks source link

Using nvim (less inside terminal mode) as pager to view the cht.sh results #33

Open timhansinger opened 1 year ago

timhansinger commented 1 year ago

This change allows to view the cht.sh results inside an nvim terminal making it easy to use all nvim movements including yank etc.

A few keymaps have also been changed (e.g. pressing q quits nvim inside this buffer).

The usage of less is a nice workaround to get line wraps to adjust when changing the window in which the nvim buffer opened.

I just changed these lines since I love to use nvim for almost everything (reading man pages and also as a pager). Hopefully you will find that small adjustment useful.