vim Useful configurations that can be put in .vimrc Move up/down displayed lines when wrapping

30% OFF - 9th Anniversary discount on Entity Framework Extensions until December 15 with code: ZZZANNIVERSARY9


Usually, J and K move up and down file lines. But when you have wrapping on, you may want them to move up and down the displayed lines instead.

set wrap " if you haven't already set it
nmap j gj
nmap k gk

Got any vim Question?