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
10 changes: 10 additions & 0 deletions doc/vimux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -447,5 +447,15 @@ previously-run commands in VimuxPromptCommand.
<
Default: 1

------------------------------------------------------------------------------
*VimuxSocketPath*
4.13 g:VimuxSocketPath~

The path to the tmux socket path. See tmux option `-S`
>
let g:VimuxSocketPath = "/path/to/tmux-socket"
<
Default: ""

==============================================================================
vim:tw=78:ts=2:sw=2:expandtab:ft=help:norl:
8 changes: 6 additions & 2 deletions plugin/vimux.vim
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,14 @@ function! VimuxPromptCommand(...)
endfunction

function! VimuxTmux(arguments)
let command = VimuxOption('VimuxTmuxCommand')
if exists("g:VimuxSocketPath")
let command .= ' -S ' . g:VimuxSocketPath
endif
if VimuxOption('VimuxDebug')
echom VimuxOption('VimuxTmuxCommand').' '.a:arguments
echom command.' '.a:arguments
endif
return system(VimuxOption('VimuxTmuxCommand').' '.a:arguments)
return system(command.' '.a:arguments)
endfunction

function! s:tmuxSession()
Expand Down