Skip to content

Commit 4a795a0

Browse files
committed
Don't let undo cause backgrounding in Normal mode
1 parent 3f06874 commit 4a795a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

autoload/novim_mode.vim

+3
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,9 @@ function! g:SetNoVimModeShortcuts()
235235
inoremap <silent> <C-Z> <C-O>u
236236
snoremap <silent> <C-Z> <Esc><C-O>u
237237
vnoremap <silent> <C-Z> <Esc><C-O>u
238+
" Just because you sometimes find yourself in Normal mode and would rather
239+
" not background the terminal process
240+
nnoremap <silent> <C-Z> u
238241
" Map CTRL+u as well for now just because by default it deletes the line above
239242
" the cursor.
240243
inoremap <silent> <C-U> <C-O>u

0 commit comments

Comments
 (0)