I am creating a method called SetLaunchingComponent which is used to set the makeprg with the variable passed in.This is how the script look like now.
function! SetLaunchingComponent(path)
set makeprg=$path
endfunction
Obviously the function isn’t working as i wished. As vim resolve the path environment as the system variable but not a:path. So what should i do?
To set a option you should use the following syntax: