My behavior with Vim was a bit different, perhaps because of the options it is compiled with. On this version, line navigation with j
and k
would navigate one physical line by default, i.e. what typing gj
and gk
would do. Unexplained, and possibly for some other reason, it appears to only to do so on Unix files, DOS files would still navigate the full line, i.e. the multiple-physical, word-wrapped ones.
To get j
and k
to navigate only physical lines for all files, I had to set all these in my .vimrc
to get the expectant behavior:
nnoremap j gj
nnoremap k gk
vnoremap j gj
vnoremap k gk