Return -1 if g:VimuxUseNearestPane is not set.
Use pane_id to identify panes instead of pane_index since the latter may
change after a pane was created.