Re: quickfix in foldopen doesn't work for keyboard mappings

2008-02-22 Fir de Conversatie Alexei Alexandrov

Jürgen Krämer wrote:
 
 
 | 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
 

Ah, thanks!

-- 
Alexei Alexandrov


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



Re: quickfix in foldopen doesn't work for keyboard mappings

2008-02-20 Fir de Conversatie Ben Schmidt

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
-~--~~~~--~~--~--~---