vim: undo

This commit is contained in:
Michael Grote 2023-05-14 21:34:38 +02:00
parent 7c0b737dcb
commit 31e96c6215
2 changed files with 13 additions and 0 deletions

13
.vimrc
View file

@ -206,6 +206,19 @@ nnoremap <Leader>u :UndotreeToggle<CR>
nnoremap <F8> ciw``<C-r>"``<Esc>
xnoremap <F8> c``<C-r>"``<Esc>
" besseres undo
" https://www.reddit.com/r/vim/comments/13gk0nl/is_there_a_way_to_make_undo_sensible/
" create undo points when
" typing these keys
inoremap , ,<c-g>u
inoremap . .<c-g>u
inoremap ( (<c-g>u
inoremap [ [<c-g>u
inoremap = =<c-g>u
inoremap \" \"<c-g>u
inoremap <space> <space><c-g>u
inoremap <CR> <CR><c-g>u
" ### Abbreviations
iabbrev ncicht nicht

0
dd
View file