comparison dot_config/nvim/init.vim @ 338:890fe7d01f19

Use toggleterm as more robust terminal integration
author zegervdv <zegervdv@me.com>
date Fri, 22 Jan 2021 21:58:01 +0100
parents 111f178824b9
children 140a585c3393
comparison
equal deleted inserted replaced
337:e89bdbc1a2dd 338:890fe7d01f19
389 endif 389 endif
390 endfunction 390 endfunction
391 nnoremap <leader>g :call ToggleDiff()<CR> 391 nnoremap <leader>g :call ToggleDiff()<CR>
392 392
393 if has('nvim') 393 if has('nvim')
394 tnoremap <space><esc> <C-\><C-n>
395 tnoremap <C-h> <C-\><C-n><C-w>h 394 tnoremap <C-h> <C-\><C-n><C-w>h
396 tnoremap <C-j> <C-\><C-n><C-w>j 395 tnoremap <C-j> <C-\><C-n><C-w>j
397 tnoremap <C-k> <C-\><C-n><C-w>k 396 tnoremap <C-k> <C-\><C-n><C-w>k
398 tnoremap <C-l> <C-\><C-n><C-w>l 397 tnoremap <C-l> <C-\><C-n><C-w>l
399 augroup enter_term 398 augroup enter_term
400 au! 399 au!
401 au BufEnter * if &buftype == 'terminal' | :startinsert | endif 400 au BufEnter * if &buftype == 'terminal' | :startinsert | endif
402 augroup END 401 augroup END
402 let $GIT_EDITOR = 'nvr -cc split --remote-wait'
403 endif 403 endif
404 404
405 " Open buffers, tags... in vertical splits 405 " Open buffers, tags... in vertical splits
406 nnoremap <leader>b :vert sbuffer 406 nnoremap <leader>b :vert sbuffer
407 nnoremap <leader>t :vert stjump 407 nnoremap <leader>t :vert stjump