From 877d90dd903360bc8211bcb87b6101eeea36f965 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Mon, 9 Jan 2023 23:19:47 +0000 Subject: [PATCH] Fix windows switching mappings when not in tmux --- plugin/mappings.vim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugin/mappings.vim b/plugin/mappings.vim index 6e32458..a1e5234 100644 --- a/plugin/mappings.vim +++ b/plugin/mappings.vim @@ -64,7 +64,12 @@ nnoremap k gk nnoremap w :w! " Switch panes in a tmux aware way -if !has('win32') +if !tmux#inSession() || has('win32') + nnoremap h + nnoremap j + nnoremap k + nnoremap l +else nnoremap :TmuxNavigateLeft nnoremap :TmuxNavigateDown nnoremap :TmuxNavigateUp @@ -84,11 +89,6 @@ if !has('win32') tnoremap k N:TmuxNavigateUp tnoremap l N:TmuxNavigateRight endif -else - nnoremap h - nnoremap j - nnoremap k - nnoremap l endif " Quick tabs