aboutsummaryrefslogtreecommitdiff
path: root/plugins.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2020-10-23 20:29:42 +0800
committerjdhao <jdhao@hotmail.com>2020-10-23 20:29:42 +0800
commit82146f47f4703d868cd72f514c5c83ba6c467e2d (patch)
tree3a5d9522d15fca4a3743f84054de03cd6acdd0fc /plugins.vim
parent7b4ad77ca7ebae950a0758842e34cc9bf40c5ac4 (diff)
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.
Diffstat (limited to 'plugins.vim')
-rw-r--r--plugins.vim13
1 files 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 <silent> <Space>u :MundoToggle<CR>
+
""""""""""""""""""""""""""""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.