Skip to content

Commit

Permalink
Don't let undo cause backgrounding in Normal mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tombh committed Dec 19, 2024
1 parent 3f06874 commit 4a795a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autoload/novim_mode.vim
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ function! g:SetNoVimModeShortcuts()
inoremap <silent> <C-Z> <C-O>u
snoremap <silent> <C-Z> <Esc><C-O>u
vnoremap <silent> <C-Z> <Esc><C-O>u
" Just because you sometimes find yourself in Normal mode and would rather
" not background the terminal process
nnoremap <silent> <C-Z> u
" Map CTRL+u as well for now just because by default it deletes the line above
" the cursor.
inoremap <silent> <C-U> <C-O>u
Expand Down

0 comments on commit 4a795a0

Please sign in to comment.