> How can a script detect whether Vim is in video mode?
> The mode() function does not seem to return correct results.

"video mode"??  you'll have to expand on what you expect this to 
   :)mean.

do you mean "determine whether it's vim vs. gvim"?  In which case 
you may want

   has("gui_running")

do you mean "running in a GUI console vs. running in a non-GUI 
console"?  (I don't think there's a simple way to determine this)

There is also a mostly-useless ":mode" *command* (not "function") 
that allows Vim to switch video-modes in a dos-console (":help 
:mode"), but doesn't offer the ability to return results.

The mode() function *does* return the correct results, but to a 
different question. :)

   :help mode()

-tim




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

Reply via email to