farmergreg / vim-lastplace

A vim / nvim plugin that intelligently reopens files at your last edit position.
https://www.gregd.org/
MIT License
583 stars 28 forks source link

Restore column when near eof #35

Closed faergeek closed 5 months ago

faergeek commented 5 months ago

Hi! Thanks for this very useful plugin :+1:

The only thing that bothered me a bit is that it uses quote instead of backtick when we're near the end of the file, which means it jumps to first non-blank character (so not restoring the column position). Seems like it was like that right from it's introduction in 2015 (https://github.com/farmergreg/vim-lastplace/commit/945cc1a062d847d01e10f09c0e8480c371706524), but I'm not sure if it's actually intended to behave like that for some reason.

farmergreg commented 5 months ago

Thanks for the pull request! I'll try to test it out this weekend. You may have resolved a long standing bug. thanks!

If anyone else happens to test, please post your results here.

farmergreg commented 5 months ago

Thanks for the bug fix! This has been an issue for years, and thanks to your eagle-eyed diligence, it is now squashed! Crazy how tiny details matter in our profession! This particular bug has bitten me a number of times. Thanks for fixing it!

faergeek commented 5 months ago

Awesome! Thank you for maintaining this plugin for so long :+1: