File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -447,5 +447,15 @@ previously-run commands in VimuxPromptCommand.
447447<
448448Default: 1
449449
450+ ------------------------------------------------------------------------------
451+ *VimuxSocketPath*
452+ 4.13 g:VimuxSocketPath~
453+
454+ The path to the tmux socket path. See tmux option `- S `
455+ >
456+ let g:VimuxSocketPath = "/path/to/tmux-socket"
457+ <
458+ Default: ""
459+
450460==============================================================================
451461vim:tw=78:ts=2:sw=2:expandtab:ft=help:norl:
Original file line number Diff line number Diff line change @@ -188,10 +188,14 @@ function! VimuxPromptCommand(...)
188188endfunction
189189
190190function ! VimuxTmux (arguments)
191+ let command = VimuxOption (' VimuxTmuxCommand' )
192+ if exists (" g:VimuxSocketPath" )
193+ let command .= ' -S ' . g: VimuxSocketPath
194+ endif
191195 if VimuxOption (' VimuxDebug' )
192- echom VimuxOption ( ' VimuxTmuxCommand ' ) .' ' .a: arguments
196+ echom command .' ' .a: arguments
193197 endif
194- return system (VimuxOption ( ' VimuxTmuxCommand ' ) .' ' .a: arguments )
198+ return system (command .' ' .a: arguments )
195199endfunction
196200
197201function ! s: tmuxSession ()
You can’t perform that action at this time.
0 commit comments