From 82146f47f4703d868cd72f514c5c83ba6c467e2d Mon Sep 17 00:00:00 2001 From: jdhao Date: Fri, 23 Oct 2020 20:29:42 +0800 Subject: [PATCH] Use vim-mundo instead of undotree. Undotree is unbearably slow for large number of undo changes. Vim-mundo is faster than undotree, though it is not that fast. --- plugins.vim | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/plugins.vim b/plugins.vim index 0510027..dd423c3 100644 --- a/plugins.vim +++ b/plugins.vim @@ -158,11 +158,8 @@ Plug 'christoomey/vim-titlecase' " Autosave files on certain events Plug '907th/vim-auto-save' -" graphcial undo history, see https://github.com/mbbill/undotree -Plug 'mbbill/undotree' - -" another plugin to show undo history -" Plug 'simnalamburt/vim-mundo' +" Show undo history visually +Plug 'simnalamburt/vim-mundo' " Manage your yank history if g:is_win || g:is_mac @@ -538,6 +535,12 @@ let g:auto_save_events = ['InsertLeave', 'TextChanged'] " Whether to show autosave status on command line let g:auto_save_silent = 0 +""""""""""""""""""""""""vim-mundo settings""""""""""""""""""""""" +let g:mundo_verbose_graph = 0 +let g:mundo_width = 80 + +nnoremap u :MundoToggle + """"""""""""""""""""""""""""vim-yoink settings""""""""""""""""""""""""" if g:is_win || g:is_mac " ctrl-n and ctrl-p will not work if you add the TextChanged event to vim-auto-save events.