I'd like to pull out a variable something like this to save repeating the same thing
let s:twoLinesStartingWithWords = '^\w\+.*\n\w\+.*'
"next/previous definition
nnoremap <Leader>n /\=s:twoLinesStartingWithWords<cr>
nnoremap <Leader>N ?\=s:twoLinesStartingWithWords<cr>
Do I need to use the search register or is there a simpler way?