On 7/18/06, Eric Smith <[EMAIL PROTECTED]> wrote:
How do I implement a conditional to test if in insert or normal mode?

There is funciton mode(), but it might not work for you. But see cautionary
sentence at the end of :help mode(). People reported problems.

if mode() == 'i'
    " in insert mode
else if mode() == 'n'
   " in normal mode
endif

See :help mode()

If you experience problems, then tell us what are you trying to do, like,
for what you are trying to use it.

Yakov

Reply via email to