Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime 3 Vintageous: Moving between "wrapped" lines instead of "real" lines

I would like to know if is it possible in Sublime text 3 to change the behavior of the up and down movements to not jump to the next and previous "real" line but to the next and previous "visually wrapped" line. When I write code this is not an issue because I turn off the visual line folding (since my lines never go beyond the 80 characters). However when I am editing text for a Latex file, if I have a big paragraph that in reality is written within one "real" line, thanks to visual line wrapping, sublime displays it in 10 lines; Now the problem is that if I want to change something in the middle of these long paragraphs, I cannot use the up and down keys, they will only move me between real lines and not wrapped lines.

I've searched for an answer online to this problem of mine but I cannot find anything related anywhere

PS: I am actually using vintageous package, however I think that finding the solution for the and keys would be easier.

like image 999
Juanch0p Avatar asked Dec 09 '25 19:12

Juanch0p


1 Answers

Ok after searching more and asking in the vintageous github I found that in vim the keys gj and gk do what I wanted to do. The vintageous addon, as their wiki says, support the maping of keys in the configuration file located in Packages/User/.vintageousrc.

All I needed to do to add the wanted behavior to the j and k keys was to edit that file and add:

:map j gj

:map k gk

like image 150
Juanch0p Avatar answered Dec 11 '25 09:12

Juanch0p



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!