Perhaps it cannot be done.

*NOTE: These commands cannot be used with |:global| or |:vglobal|.
":append" and ":insert" don't work properly in between ":if" and
":endif", ":for" and ":endfor", ":while" and ":endwhile".

**sad face**
*

On Wed, Jan 20, 2010 at 2:57 PM, smu johnson <[email protected]> wrote:

> Hi!
>
> If i do *startinsert!* in the if statement... and then try to write the
> following *if *statement, i'm quite sure how to "write" text without it
> thinking that my *if *statement itself is the text I want to write.
>
> *
>   if a:pos == "comment_and_write"
>     startappend!
>   else
>     startinsert!
>   endif
>
> if (condition)
>   the big brown fox jumped over the lazy dog
>   stopinsert
> endif
>
> *<--- confused :(
>
> On Wed, Jan 20, 2010 at 2:46 PM, Gary Johnson <[email protected]> wrote:
>
>>
>>     :help :startinsert
>>
>> Regards,
>> Gary
>>
>>
>>
>> --
>> You received this message from the "vim_use" maillist.
>> For more information, visit http://www.vim.org/maillist.php
>>
>
>
>
> --
> smu johnson <[email protected]>
>
>


-- 
smu johnson <[email protected]>
-- 
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to