Created
March 27, 2014 11:01
-
-
Save fatih/9805043 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"this produces an output like: | |
" /path/file1.txt | |
" /path/file2.txt | |
" /path/file3.txt | |
function! GoFiles() | |
let out=system("go list -f $'{{range $f := .GoFiles}}{{$.Dir}}/{{$f}}\n{{end}}'") | |
echo out | |
endfunction | |
" I need to append the files above to this command: | |
CompilerSet makeprg=go\ build\ -o\ /dev/null\ | |
" like: | |
CompilerSet makeprg=go\ build\ -o\ /dev/null\ /path/file1.txt /path/file2.txt /path/file3.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment