vim: undo
This commit is contained in:
parent
7c0b737dcb
commit
31e96c6215
2 changed files with 13 additions and 0 deletions
13
.vimrc
13
.vimrc
|
@ -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
0
dd
Loading…
Reference in a new issue