Open FuDesign2008 opened 6 years ago
In javascript / php, $ is valid in a variable.
$
function $sayHello () {}
If we run :Ack<CR> when cursor is under $sayHello, nothing will be found.
:Ack<CR>
$sayHello
So try to escape $ and wrap <cword> in ' .
<cword>
'
I wonder if shellescape or fnameescape might help?
shellescape
fnameescape
" NOTE: we escape special chars, but not everything using shellescape to " allow for passing arguments etc
In javascript / php,
$
is valid in a variable.If we run
:Ack<CR>
when cursor is under$sayHello
, nothing will be found.So try to escape
$
and wrap<cword>
in'
.