kana / vim-submode

Vim plugin: Create your own submodes
http://www.vim.org/scripts/script.php?script_id=2467
217 stars 24 forks source link

Submode Undo/Redo feature #25

Open aldantas opened 8 years ago

aldantas commented 8 years ago

Hello, I created a simple mechanism to undo and redo all the last modifications made in submode at once. I use this plugin for moving lines around, so this feature comes in handy for me. I'm not sure if it's usefull for all use cases.

In summary, it just keeps the numbers of the modifications that are held in vim's undo-tree and uses them to jump around with the :undo {N} command.

The commands that call the Submode Undo/Redo functions are: :SubmodeUndo :SubmodeRedo

I also added it in the documentation, along with its limitation and problem.