Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
formatting, clean-up.
Source Link
user579
user579

How todo I pass a full filepath to a function in a Vim plug-in?

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?

How to pass a full filepath to a function in a Vim plug

This is what I am trying to do: I have a .exe program that checks for certain errors in a text file. I want to create a shortcut (like \+M) to run the .exe file against the text file. My .exe file's path is C:\Users\xyz\Documents\Checker\manager.exe My text file's path is C:\Users\xyz\Desktop\mytextfile.txt The manager just needs the following command "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 filepath to the current text file open in Vim?

How do I pass a full filepath to a function in a Vim plug-in?

I have an exe program that checks for certain errors in a text file.

I want to create a shortcut (like \+M) to run that exe file against the text file.

My exe file's path is C:\Users\xyz\Documents\Checker\manager.exe, the text file's path is C:\Users\xyz\Desktop\mytextfile.txt.

The manager just needs the following command:

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 file path to the current text file open in Vim?

Source Link
user17890
user17890

How to pass a full filepath to a function in a Vim plug

This is what I am trying to do: I have a .exe program that checks for certain errors in a text file. I want to create a shortcut (like \+M) to run the .exe file against the text file. My .exe file's path is C:\Users\xyz\Documents\Checker\manager.exe My text file's path is C:\Users\xyz\Desktop\mytextfile.txt The manager just needs the following command "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 filepath to the current text file open in Vim?