This is what I am trying to do:
I have aan .exeexe
program that checks for certain errors in a text file.
I
I want to create a shortcut (like \+M
) to run thethat .exeexe
file against the text file.
My
My .exeexe
file's path is C:\Users\xyz\Documents\Checker\manager.exe
MyC:\Users\xyz\Documents\Checker\manager.exe
, the text file's path is C:\Users\xyz\Desktop\mytextfileC:\Users\xyz\Desktop\mytextfile.txt
.txt
The
The manager just needs the following command "check [full filepath to the text file].":
check [full filepath to the text file
Here is what I have tried in the VIM plugin file.
function! ExecuteManagerCheck(file)
execute ':!start cmd /k "C:\Users\xyz\Documents\checker\manager check " g:file'
endfunction
nmap <leader>m :call ExecuteManagerCheck(expand('%:p')) <cr>
Can someone please help me get the full filepathfile path to the current text file open in Vim?