junegunn / limelight.vim

:flashlight: All the world's indeed a stage and we are merely players
MIT License
2.36k stars 53 forks source link

use winsaveview instead of getpos #56

Open xi opened 5 years ago

xi commented 5 years ago

Consider this file:

.s

ae

If you move your cursor to the second column in the first line ("s") and then press j two times you would expect to end up in the second column in the third line ("e"). This behavior is controlled by startofline, so you results may differ if you have configured something differently.

With limelight activated you end up in the first column ("a").