New answers tagged

2 votes
Accepted

The right way of mapping 0, j, k, ^, $ to g0, gj, gk, g^, g$ when wrap is set

You can use expression mappings for cases like this; normally a Vim mapping just sends the keys on the right-hand-side of a :map command straight to Vim, but with expression mappings it's interpreted ...
user avatar
0 votes

line-wrapping without affecting math equations

latexindent.pl does a very good job at this. You can configure it by setting :set formatprg=latexindent\ -m\ -l\ myWrapOptions.yaml\ - with # myWrapOptions.yaml modifyLineBreaks: textWrapOptions: ...
user avatar

Top 50 recent answers are included