@@ -15,6 +15,7 @@ CONTENTS *vimux-contents*
15
15
2.5 .............................. | VimuxInterruptRunner |
16
16
2.6 .............................. | VimuxClearRunnerHistory |
17
17
2.7 .............................. | VimuxZoomRunner |
18
+ 2.8 .............................. | VimuxRunCommandInDir |
18
19
3. Misc ............................ | VimuxMisc |
19
20
3.1 Example Keybinding............ | VimuxExampleKeybinding |
20
21
3.2 Tslime Replacement............ | VimuxTslimeReplacement |
@@ -71,6 +72,7 @@ Furthermore there are several handy commands all starting with 'Vimux':
71
72
- | VimuxPromptCommand |
72
73
- | VimuxClearRunnerHistory |
73
74
- | VimuxZoomRunner |
75
+ - | VimuxRunCommandInDir |
74
76
75
77
------------------------------------------------------------------------------
76
78
*VimuxRunCommand*
@@ -193,6 +195,23 @@ Zoom requires tmux version >= 1.8
193
195
map <Leader>vz :VimuxZoomRunner<CR>
194
196
<
195
197
198
+ ------------------------------------------------------------------------------
199
+ *VimuxRunCommandInDir*
200
+ VimuxRunCommandInDir~
201
+
202
+ Runs the specified command inside the directory of
203
+ the currently opened file. Takes two arguments. command and inFile
204
+
205
+ command: The command to run
206
+ inFile: If 1 the filename will be appended to the command
207
+ >
208
+
209
+ " Compile currently opened latex file to pdf
210
+ autocmd Filetype tex nnoremap <buffer> <Leader>rr :update<Bar>:call VimuxRunCommandInDir('latexmk -pdf', 1)<CR>
211
+ " Push the repository of the currently opened file
212
+ nnoremap <leader>gp :call VimuxRunCommandInDir("git push", 0)<CR>
213
+ <
214
+
196
215
==============================================================================
197
216
MISC (3) *VimuxMisc*
198
217
@@ -325,7 +344,7 @@ The type of view object Vimux should use for the runner. For reference, a
325
344
tmux session is a group of windows, and a window is a layout of panes.
326
345
327
346
let g:VimuxRunnerType = "window"
328
-
347
+
329
348
Options:
330
349
"pane": for panes
331
350
"window": for windows
0 commit comments