diff --git a/xdg_cfg/nvim/init.vim b/xdg_cfg/nvim/init.vim index 48e9958..2396f3f 100644 --- a/xdg_cfg/nvim/init.vim +++ b/xdg_cfg/nvim/init.vim @@ -142,7 +142,6 @@ execute 'set backupdir='.g:editor_root.'/backup' set clipboard=unnamed " Use the '*' register let g:clipbrdDefaultReg = '*' " set clipboard register to '*' - """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Mappings " """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" @@ -226,6 +225,20 @@ vnoremap y "+y vnoremap p "+p vnoremap P "+P +function s:AddTerminalNavigation() + tnoremap + if &filetype ==# '' + tnoremap :TmuxNavigateLeft + tnoremap :TmuxNavigateDown + tnoremap :TmuxNavigateUp + tnoremap :TmuxNavigateRight + endif +endfunction + +augroup TerminalNavigation + autocmd! + autocmd TermOpen * call s:AddTerminalNavigation() +augroup END """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " ack.vim "