Thursday, April 19, 2012

vim :gsearch (greplace plugin) escaping characters

I am using the greplace plugin for vim and am not sure how to escape brackets in a search.



I want to search for cookies[:parent] and have tried:



:Gsearch cookies[:parent] # returns nothing
:Gsearch cookies\[:parent\] # returns nothing


How should I be doing this?



Thanks





No comments:

Post a Comment