I use Vim 7.3.715. Let's create sample fold: vim -u NONE -N
:set foldmethod=marker i {{{1<CR> foo bar zaz<CR> foo bar zaz<Esc>gg0za Let's try search for 'foo': '/foo<CR>'. Fold will open and cursor will be placed at the beginning of 'foo'. Great. Now, let's go back where we started with 'gg0', close the fold with 'za' and set 'nowrapscan' option. Do the search again. The fold won't open and the pattern won't be found even though we are the very beginning of our file and there is no need to wrap to find the pattern. -- You received this message from the "vim_dev" 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