maitria / avi

a lively vi
214 stars 15 forks source link

Make `gg` and `G` move to the first character of the target line #9

Closed gcapizzi closed 10 years ago

gcapizzi commented 10 years ago

This is how Vim behaves, so I guess we should do the same.

eraserhd commented 10 years ago

Thanks! :D

According to the vim help, gg and G both move to the first non-blank character on the new line when startofline is on (which it is by default). I'd be happy with the startofline-on-style behavior.

I haven't thought yet about how to implement options at all. And I guess I'd love to avoid it, if possible.

gcapizzi commented 10 years ago

You're right! I'll fix it ASAP :)

gcapizzi commented 10 years ago

Should be ok now :)

eraserhd commented 10 years ago

W00t, thanks!