commit 3727d3e0d6115d7f12e95388d1df236d43ed5fe1
parent 605e2ae74fa9152b67be9845b141c521dd79f56f
Author: Chris Bracken <chris@bracken.jp>
Date: Wed, 5 Jun 2024 20:36:45 -0700
vim: in terminal, make ESC return to normal mode
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
@@ -41,6 +41,9 @@ noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>
+" In terminal, ESC returns to normal mode.
+tnoremap <Esc> <C-\><C-n>
+
" Retain selection on <,>.
vnoremap < <gv
vnoremap > >gv