vim-maktaba icon indicating copy to clipboard operation
vim-maktaba copied to clipboard

Handle <cword>, <cfile>, etc. properly in Syscall.CallForeground

Open dbarnett opened this issue 11 years ago • 1 comments

Syscall.CallForeground and the s:EscapeSpecialChars function it uses don't have any special handling for <cword>, <cfile>, etc. Should they?

dbarnett avatar Nov 21 '14 01:11 dbarnett

@Kashomon

I'm filing this to follow up on what was a TODO in the code, but I suspect we don't want to handle those values specially since I don't think CallForeground should support syntax that Call doesn't. I think it should just dumbly escape the special characters in them and pass them to the shell, and code can explicitly fetch cword and other values in vimscript if necessary.

dbarnett avatar Nov 21 '14 01:11 dbarnett