diff --git a/plugin/vimux.vim b/plugin/vimux.vim index a5e2c7f..295a8fe 100644 --- a/plugin/vimux.vim +++ b/plugin/vimux.vim @@ -140,11 +140,11 @@ function! _VimuxTmuxWindowIndex() endfunction function! _VimuxNearestIndex() - let panes = split(system("tmux list-"._VimuxRunnerType()."s"), "\n") + let views = split(system("tmux list-"._VimuxRunnerType()."s"), "\n") - for pane in panes - if match(pane, "(active)") == -1 - return split(pane, ":")[0] + for view in views + if match(view, "(active)") == -1 + return split(view, ":")[0] endif endfor