Hi,

Alexei Alexandrov wrote:
> Hi,
> 
> I have the following in my .vimrc:
> 
> nmap <C-Up>   :cprev<CR>
> nmap <C-Down> :cnext<CR>
> 
> to navigate quickly between compiler errors. I noticed though that when 
> using these mappings I don't get closed folds opening automatically 
> despite quickfix is specified in the foldopen option.

from :help 'foldopen':

| Specifies for which type of commands folds will be opened, if the
| command moves the cursor into a closed fold.  It is a comma separated
| list of items.
[...]
| When the command is part of a mapping this option is not used.  Add
| the |zv| command to the mapping to get the same effect.

Regards,
Jürgen

-- 
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.     (Calvin)

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

Raspunde prin e-mail lui