vim-highlightedundo

March 27, 2024 ยท View on GitHub

Make the undo region apparent!

Dependency

  • Vim 8.1+ or Neovim 0.6.0+

If Vim, following features are required.

  • +reltime
  • +float
  • +timers
  • +job

If you are using a Vim earlier than 9.1.0071, this plugin needs an external diff command to work.

" should be 1
:echo executable('diff')

Usage

nmap u     <Plug>(highlightedundo-undo)
nmap <C-r> <Plug>(highlightedundo-redo)
nmap U     <Plug>(highlightedundo-Undo)
nmap g-    <Plug>(highlightedundo-gminus)
nmap g+    <Plug>(highlightedundo-gplus)