1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

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.
This commit is contained in:
jdhao 2020-10-23 20:29:42 +08:00
parent 7b4ad77ca7
commit 82146f47f4

View File

@ -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.