When editing LaTeX documents, and dealing with comments that other people 
have given me on paper, I frequently have to search for strings in hard-
wrapped text when I don't know where the line breaks are.

I've come up with a command for this, but I'm curious if anyone has a 
better way to do this.

function! s:SearchWrapped(pattern)
   call search(substitute(a:pattern,'\s\+','[[:space:]\\n]\\+',''))
endfunction
command! -nargs=1 S call s:SearchWrapped("<args>")

-- 
Chanoch (Ken) Bloom. PhD candidate. Linguistic Cognition Laboratory.
Department of Computer Science. Illinois Institute of Technology.
http://www.iit.edu/~kbloom1/


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to