From 3049998039c0234f5b54e6e5d2659b5fbccc5228 Mon Sep 17 00:00:00 2001 From: Shun Git Date: Fri, 3 Apr 2020 20:41:23 +0800 Subject: [PATCH] do not autoresize terminal windows --- vim/plugin/tmux-navigator.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vim/plugin/tmux-navigator.vim b/vim/plugin/tmux-navigator.vim index 6e6c4ae..7cca355 100644 --- a/vim/plugin/tmux-navigator.vim +++ b/vim/plugin/tmux-navigator.vim @@ -45,6 +45,8 @@ function! s:TmuxSwitch(direction) elseif g:tmux_navigator_auto_resize if &filetype == 'netrw' || l:ori_ft == 'netrw' return + elseif &buftype == 'terminal' + return endif if a:direction =~ '[hl]' execute 'vertical resize ' . min([max([float2nr(&columns * 0.6), 80]), 140])