Dear all, I'm trying to accomplish sth similar as follow:
ca grf <C-R>=(getcmdpos() == 1 && getcmdtype() == ':' ? 'grep -i ' .
expand("%:f") . ^V^V<C-Left>^V^V<Left> : grf)<CR>
but I'm having difficulty with evaluating the function "expand()".
I tried doing:
'grep -i ^V^V^R=expand("%:f")^V^V^M^V^V<C-Left>^V^V<Left>'
and it doesn't work too.
Can anyone please point me to the right direction?
^V^V^R which is entered by hitting Ctrl-V five times and then <C-R>.
Thanks,
--
Ed
