Improve Ctrl+C undo 💢

This commit is contained in:
Talia 2020-07-02 11:20:37 +02:00
parent fb45dce089
commit a4ad2e2639

View file

@ -1,4 +1,6 @@
inoremap  u
augroup train augroup train
autocmd!
au BufWritePost * echom 'Really tho?' au BufWritePost * echom 'Really tho?'
au InsertEnter * let b:undo=undotree()['seq_last']
augroup END augroup END
inoremap  :silent exec 'undo '.b:undo<CR>