Display the entire vim string

Let's say I insert the entire jquery function into a file (as an example .. I know this is not practical, but for an example).

When you try to scroll it, it shows 1 line, and then “jumps” to the code below it. I want him to behave the same way as in normal mode. If the word is broken, then when I scroll it, it simply scrolls through one large long line, usually don’t try to jump in front of and after it, and then fill it with tons of spaces.

+3
source share
1 answer

I am not 100% sure. I understand your question, but if you want to use the usual direction keys ( jand k) to move up and down wrapped lines instead of whole lines of code, you can reassign the keys as such:

map j gj
map k gk

For a deeper solution to your problem (including additional matching and a leader function for changing comparisons with the transfer mode), see "Moving the cursor along display lines when wrapping . "

+5
source

All Articles