matze / vim-move

Plugin to move lines and selections up and down
http://www.vim.org/scripts/script.php?script_id=4687
MIT License
1.2k stars 56 forks source link

Fixes matze#33: restore cursor position after moving line up/down #37

Closed yukunlin closed 5 years ago

yukunlin commented 5 years ago

Save cursor position relative and restore them after moving. I think this is a sensible default behavior; let me know if you'd like an option to disable this. Fixes #33

33

matze commented 5 years ago

I think this is a sensible default behavior; let me know if you'd like an option to disable this. It's a good default indeed. Thanks!