Re: vim script question
- On Sat, Nov 29, 2003 at 04:35:02PM -0800, ryan kulla wrote:
> in a script how can i tell if im in visual mode? I know to find out if im inI do not think that &insertmode tells you what you think it does.
> insert-mode i can check the return value of &insertmode, but theres no
In a script, you are always in Command-line mode, except when you
explicitly switch to another mode.
:echo "This is Command-line mode."
:execute "normal aThis is Insert mode.\<Esc>"
Perhaps with some contxt, I can give a more satisfactory answer.
HTH --Benji Fisher