Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7560569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:56:13+00:00 2026-05-30T12:56:13+00:00

I editing a latex file into html and I want to change all \\

  • 0

I editing a latex file into html and I want to change all \\ with a <br /> -tag.

:%s@\\@<br />@g

Vim uses the first character after the :%s as delimiter so that not a problem.
But I keep getting all the single \ in my search just as as \\. I’m guessing that the first \ is mapped to something but I don’t no what or how to fix it.

And if I instead search do

:%s@\\\@<br />@g

I get E59 : invalid character after \@ and E476 Invalid command.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T12:56:14+00:00Added an answer on May 30, 2026 at 12:56 pm

    Are you trying to replace all occurrences of two backslashes with <br />? If so, you need to escape both backslashes:

    :%s@\\\\@<br />@g
    

    A backslash is interpreted as an escape character that pairs up with the next character to indicate something special. For example, \t is used to indicate a tab character. To specify a backslash itself, you need two backslashes, so if you want two backslashes consecutively, you need to enter four.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well, I am editing a LaTeX file, but I am not pleased with the
When editing an Sweave document in LaTeX (using the Noweb mode), Emacs knows to
I am editing a 100+ page document in latex, document class is book. The
While editing .scm files it would be great if Vim would automatically put the
How to get the contents of the wav file into array so as to
I'm using Emacs/AucTeX for editing LaTeX files. In some of my LaTeX files, I
I started to use emacs for LateX editing again. Back in the days, it
I have two questions: While editing a source file, it's very convenient to be
When I compile a latex file with latex-suite, shows me the errors in a
I have a question regarding editing a UITableView. I want to know how to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.