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

Cursor does not maintain horizontal position when moving vertically #43

Closed segeljakt closed 5 years ago

segeljakt commented 7 years ago

For example, | is cursor:

int main(int argc, char *argv[]) {
    printf("lime");|
}

Press j.

int main(int argc, char *argv[]) {
    printf("lime");
|

Press k.

int main(int argc, char *argv[]) {
|   printf("lime");
}

The expected result is:

int main(int argc, char *argv[]) {
    printf("lime");|
}

Press j.

int main(int argc, char *argv[]) {
    printf("lime");
|

Press k.

int main(int argc, char *argv[]) {
    printf("lime");|
}
Irubataru commented 6 years ago

Any updates on this?

I really really like this plugin, but this bug makes it somewhat unusable for editing code.

junegunn commented 5 years ago

Please test if #59 fixes the issue for you.

Irubataru commented 4 years ago

Sorry for the terribly late reply, but it does fix it, thanks a lot ❤️