When I am editing a LaTeX document in vim, often times I want to search for a phrase.  Because I have LaTeX setup to wrap lines, sometimes half of the phrase will be on one line while the other half is on the next.  In such a case, the search does not find what I'm looking for.  So for exampleblah blah blah helloworld blah blah blahwhen searching using /hello world, I don't find what I'm looking for.  Is there a quick and easy way to modify this search to get me where I want to be?  Or better yet, a way to tell vim to match any white space (space, tab, new line) with a space in the search string?
vim search around line breaks
vim;search
This problem was addressed at http://vim.wikia.com/wiki/Search_across_multiple_lines. Included is a function that can do what I need.function! SearchMultiLine(bang, ...)  if a:0 > 0    let sep = (a:bang) ? '\_W\+' : '\_s\+'    let @/ = join(a:000, sep)  endifendfunctioncommand! -bang -nargs=* -complete=tag S call SearchMultiLine(<bang>0, <f-args>)|normal! /<C-R>/<CR>Then you can do a multi-line search using :S hello world and it will convert that to hello\s\+world and search for it. Another nice feature is that this will also add this new search to the search history. This allows you to go back and modify the search using q/ if you need. It can also be used to do substitution with :%s//new thing/g. The downside to this is that it doesn't use incsearch if you have it enabled.