Hello list, This question started as a little E-Mail to Björn but after the first reply we figured out that the list might be a better place to ask for help.
So what is my problem. One of the scripts I am using (taglist.vim) from http://vim-taglist.sourceforge.net/ is giving me headaches. During its initialisation it saves the current "cpoptions" value, sets it to the default value, does its work and restores the old value. This works with no problems at all in normal terminal vim. Now under the GUI version it is NOT restoring the cpoptions at all. Looking at the code I see the following. let s:cpo_save = &cpo set cpo&vim <snip> exe 'autocmd FuncUndefined *' . s:tlist_sid . 'Tlist_Menu_* source ' . \ escape(expand('<sfile>'), ' ') if g:Tlist_Show_Menu && has('gui_running') call s:Tlist_Menu_Init() endif " restore 'cpo' let &cpo = s:cpo_save If I comment both the autocmd line and the call "cpo" gets set back to its old value. If I leave it them in cpo is not restored. For testing purposes I commented EVERYTHING in the function but the result is the same. My vim plugin-foo is weak so maybe someone more knowledgeable than I am can take a look at this script and tell my what is going on. Kind regards, Michael --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_mac" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
