Alexei Alexandrov wrote:
Hi,
I have the following in my .vimrc:
nmap C-Up :cprevCR
nmap C-Down :cnextCR
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.
And when I use :cprev/:cnext commands directly the folds open as expected.
Looks like a bug?
Maybe a bug, maybe not. It makes sense for folds to stay put in mappings unless
explicitly requested to do something. Whether a bug or not, though,
nmap C-Up :cprevCRzv
nmap C-Down :cnextCRzv
should be a workaround. I guess you probably knew that, but thought I'd mention
anyway.
Ben.
Send instant messages to your online friends http://au.messenger.yahoo.com
--~--~-~--~~~---~--~~
You received this message from the vim_dev maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---