Tony Mechelynck wrote: > Bug or feature? When running GUI-enabled Vim in a console (not possible > on W32, but on Unix it is), the has() and exists() functions do not > always reflect the _current_ reality. Examples: > > :echo has("gui_gtk2") > 1 > > In the above case it may be regarded as a feature: I can still check > has("gui_running") to know if the GUI is currently enabled, after all. > > But: > > :echo exists("+guicursor") > 1 > > This makes my vimrc believe that we are in a console version where > 'guicursor' is functional -- W32, maybe. Actually, setting 'guicursor' > will give no error but it won't work either: the cursor remains a block > in all modes, even if "hor15" or similar is used. Example:
You checked if the option exists and works. That doesn't mean the value is used. In this case it's only used in the GUI, thus you still have to check if the GUI is running. In a console you can set 'guicursor' and it becomes effective after doing ":gui". -- >From "know your smileys": O:-) Saint /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///