diff options
author | Linnnus <[email protected]> | 2023-09-11 20:41:54 +0200 |
---|---|---|
committer | Linnnus <[email protected]> | 2023-09-11 20:41:54 +0200 |
commit | a95c71052caf0449726b649d93d3c24db2d5f237 (patch) | |
tree | a483cd9e3fad3ceba58627808e88b4026bfbf464 /home/neovim/init.vim | |
parent | 0dbb1c660dd2d99e2e91add91e4f210870987c14 (diff) |
Update terminal mappings vim
Diffstat (limited to 'home/neovim/init.vim')
-rw-r--r-- | home/neovim/init.vim | 21 |
1 files changed, 7 insertions, 14 deletions
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 <c-h> <c-w><c-h> nnoremap <c-j> <c-w><c-j> nnoremap <c-k> <c-w><c-k> nnoremap <c-l> <c-w><c-l> -tnoremap <c-h> <c-\><c-n><c-w><c-h> -tnoremap <c-j> <c-\><c-n><c-w><c-j> -tnoremap <c-k> <c-\><c-n><c-w><c-k> -tnoremap <c-l> <c-\><c-n><c-w><c-l> +" tnoremap <c-h> <c-\><c-n><c-w><c-h> +" tnoremap <c-j> <c-\><c-n><c-w><c-j> +" tnoremap <c-k> <c-\><c-n><c-w><c-k> +" tnoremap <c-l> <c-\><c-n><c-w><c-l> " Resize windows nnoremap + <c-w>+ @@ -110,13 +110,9 @@ nnoremap <silent> <leader>l :set list!<cr> " Escape in terminal mode tnoremap <esc><esc> <c-\><c-n> -" Replace f and t with vim-sneak's version -let g:sneak#s_next = 1 -let g:sneak#use_ic_scs = 1 -map f <Plug>Sneak_f -map F <Plug>Sneak_F -map t <Plug>Sneak_t -map T <Plug>Sneak_T +" Seamlessly enter/leave terminal buffer. +tnoremap <c-w> <c-\><c-n><c-w> +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("$") | |