On Thu, 24 Mar 2005, Aaron wrote: > I am trying to make a script to run within vim, I need a way to search > for \notes yank it delete the line it is on and then put it back. > > I can't quite figure out how to search for \ in vim I tried /^\notes^ > but it didn't work I then tried/^\^notes but it also didn't like it. > so I tried /^\notes but it really didn't like it.
You need to escape '\' using '\' itself i.e. use the pattern /^\\notes to search for a line which begins with '\notes' (or simply /\\notes if it does not matter where '\notes' appears in the line). --- Omer My opinions, as expressed in this E-mail message, are mine alone. They do not represent the official policy of any organization with which I may be affiliated in any way. WARNING TO SPAMMERS: at http://www.zak.co.il/spamwarning.html ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]