Closed martinklepsch closed 10 years ago
I have a workaround about it, basead on vim-visual-star-search:
function! VAckSearch()
norm! gv"sy
return ':Ack "' . EscapeAllString(@s) . '"'
endfunction
function! EscapeAllString(text)
return substitute(escape(a:text, '*^$.?/\|{[()]}'), '\n', '\\n', 'g')
endfunction
vnoremap ,as :<C-u>exec VAckSearch()<CR>
Hey sometimes it would be really nice to be able to search for the current selection.
At the moment this returns some errors:
Maybe I am missing something here and this is already possible with some mapping. Just let me know then.