feat(vim): improve markdown editing with long wrapping lines

In markdown I have long lines wrapping as we are often editing docs that
don't stick to 80 columns. This makes it hard to navigate with j and k
imposable to use becase is skips over the wrapped lines.

This now using gj and gk to navigate wrapped lines so j and k will act
naturaly and move down one "line" even on the wrapping.
This commit is contained in:
Ade Attwood 2023-11-04 07:20:10 +00:00
parent a0c35f90b5
commit 61a294a255

View file

@ -1,2 +1,8 @@
set wrap
set conceallevel=0
nnoremap j gj
nnoremap k gk
set linebreak