Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Searching for backslash character in vim

How to search word start \word in vim. I can do it using the find menu. Is there any other short cut for this?

like image 632
joe Avatar asked Jul 13 '09 14:07

joe


People also ask

How do I find backslash in vi?

You can use these special characters as commands to the search function. If you want to search for a string that includes one or more of these characters, you must precede the special character with a backslash. To escape a backslash itself, type \\ .

How do you type a backslash in Vim?

After you've selected the text you want, type \ll . That should be it.


1 Answers

Try:

/\\word

in command mode.

like image 151
Chris Jester-Young Avatar answered Oct 22 '22 10:10

Chris Jester-Young