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


Example

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