On Di, 31 Jan 2012, Jerry Dai wrote:
> Hi,
> 
> I have a file with a lot of path in it. I want to search
> "/home/user/bin/session.log" without changing  "/" to "\/".
> How should I do it?
You can at least use ? to search backwards, which does not care about / 
delimiting the pattern, or if you have at least a normal built, you can 
simply paste the pattern into the search register:
:let @/='/home/user/bin/session.log'
and press n.
I should possibly put this into the faq.
regards,
Christian
-- 
Ungläubiger: 
  In New York: Jemand, der nicht an die christliche Religion glaubt.
  In Istanbul: Jemand, der an sie glaubt.
		-- Ambrose Gwinnet Bierce (Des Teufels Wörterbuch)
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
 
No comments:
Post a Comment