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.
447
447
<
448
448
Default: 1
449
449
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
+
450
460
==============================================================================
451
461
vim: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(...)
188
188
endfunction
189
189
190
190
function ! VimuxTmux (arguments)
191
+ let command = VimuxOption (' VimuxTmuxCommand' )
192
+ if exists (" g:VimuxSocketPath" )
193
+ let command .= ' -S ' . g: VimuxSocketPath
194
+ endif
191
195
if VimuxOption (' VimuxDebug' )
192
- echom VimuxOption ( ' VimuxTmuxCommand ' ) .' ' .a: arguments
196
+ echom command .' ' .a: arguments
193
197
endif
194
- return system (VimuxOption ( ' VimuxTmuxCommand ' ) .' ' .a: arguments )
198
+ return system (command .' ' .a: arguments )
195
199
endfunction
196
200
197
201
function ! s: tmuxSession ()
You can’t perform that action at this time.
0 commit comments