I can run this snippit of code within a vimscript block:
As expected, it puts the contents of "lorum.js" into the current buffer
But, I need to make this a little more dynamic. If I try something like:
let g:filePath="/home/user/.vim/bundle/vim-lorum/lorums/lorum.js" 0read g:filePath
I get this error message:
E484: Can't open file g:filePath
I tried wrapping g:filePath in expand and glob but I get similar errors. Any ideas?