LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   vim search string question with /" and \" (https://www.linuxquestions.org/questions/programming-9/vim-search-string-question-with-and-%5C-470300/)

m_lp_ql_m 08-03-2006 12:06 AM

vim search string question with /" and \"
 
I'm trying to use
Code:

:%s/search string/replace string/g
in vim. The problem is that I'm trying to replace

Code:

/"
with

Code:

\"

How could I do this? I've tried several variations, like

Code:

:%s/"/""/"\""/g
obviously to no avail.

Thanks. This should be fun. :)

Mark

pyrosim 08-03-2006 12:41 AM

s/\/"/\\"/g

m_lp_ql_m 08-03-2006 12:48 AM

Thank you! :)


All times are GMT -5. The time now is 01:02 AM.