Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions doc/vimux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -314,5 +314,20 @@ the prompt and your input.

Default: "Command? "

------------------------------------------------------------------------------
VimuxRunnerType
2.5 g:VimuxRunnerType

Deciedes what type of runner will be used by vimux when VimuxOpenPane is
launched. When "panel" is selected tmux window will be split and created pane
wil be used. If "window" is selected vimux will use whole open window - can be
useful if you dont want any splits and are ready to dedicate whole window to
vimux.

let g:VimuxRunnerType = "pane"

Available: "pane", "window"
Default: "pane"

==============================================================================
vim:tw=78:ts=2:sw=2:expandtab:ft=help:norl:
2 changes: 1 addition & 1 deletion plugin/vimux.vim
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ function! VimuxOpenRunner()
let height = _VimuxOption("g:VimuxHeight", 20)
let orientation = _VimuxOption("g:VimuxOrientation", "v")
call system("tmux split-window -p ".height." -".orientation)
call system("tmux last-"._VimuxRunnerType())
elseif _VimuxRunnerType() == "window"
call system("tmux new-window")
endif

let g:VimuxRunnerIndex = _VimuxTmuxIndex()
call system("tmux last-"._VimuxRunnerType())
endif
endfunction

Expand Down