LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-03-2006, 12:06 AM   #1
m_lp_ql_m
Member
 
Registered: Dec 2003
Location: So Cal
Distribution: Debian Etch
Posts: 59

Rep: Reputation: 15
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
 
Old 08-03-2006, 12:41 AM   #2
pyrosim
Member
 
Registered: Jul 2005
Location: Las Cruces, NM
Distribution: Fedora
Posts: 49

Rep: Reputation: 15
s/\/"/\\"/g
 
Old 08-03-2006, 12:48 AM   #3
m_lp_ql_m
Member
 
Registered: Dec 2003
Location: So Cal
Distribution: Debian Etch
Posts: 59

Original Poster
Rep: Reputation: 15
Thank you!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vim 'n' lynx: command line option to search for string Samsara Linux - Software 6 01-02-2013 06:36 PM
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM
How to convert "string" type to "char * " in c++ pranavojha Programming 18 06-05-2008 03:10 PM
Quick VIM question (unhighlighting search terms after search) lrt2003 Linux - Newbie 5 05-08-2004 05:21 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration