From a95c71052caf0449726b649d93d3c24db2d5f237 Mon Sep 17 00:00:00 2001 From: Linnnus Date: Mon, 11 Sep 2023 20:41:54 +0200 Subject: Update terminal mappings vim --- home/neovim/init.vim | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) (limited to 'home') diff --git a/home/neovim/init.vim b/home/neovim/init.vim index 42142b7..7d99474 100644 --- a/home/neovim/init.vim +++ b/home/neovim/init.vim @@ -64,10 +64,10 @@ nnoremap nnoremap nnoremap nnoremap -tnoremap -tnoremap -tnoremap -tnoremap +" tnoremap +" tnoremap +" tnoremap +" tnoremap " Resize windows nnoremap + + @@ -110,13 +110,9 @@ nnoremap l :set list! " Escape in terminal mode tnoremap -" Replace f and t with vim-sneak's version -let g:sneak#s_next = 1 -let g:sneak#use_ic_scs = 1 -map f Sneak_f -map F Sneak_F -map t Sneak_t -map T Sneak_T +" Seamlessly enter/leave terminal buffer. +tnoremap +au BufEnter term://* norm! i " Join to end of line below " This is already used by the window switching mappings @@ -184,9 +180,6 @@ augroup END " Auto-refresh vim config " au BufWritePost $XDG_CONFIG_HOME/*.{vim,lua} so % -" Enter insert mode when entering terminals -au BufEnter term://* norm! i - " Jump to last editing location when opening files au BufReadPost * \ if line("'\"") > 0 && line("'\"") <= line("$") | -- cgit v1.2.3