Trying to write an autocommentor script... but have since given up, and
someone recommended NERDCommentor to me.  I will probably just get used to
using this badboy.  Thanks for answering earlier, though!

On Wed, Jan 20, 2010 at 3:19 PM, Gary Johnson <[email protected]> wrote:

> On 2010-01-20, smu johnson wrote:
>
> > On Wed, Jan 20, 2010 at 2:57 PM, smu johnson <[email protected]>
> wrote:
>
> >     On Wed, Jan 20, 2010 at 2:46 PM, Gary Johnson <[email protected]>
> wrote:
> >
> >
> >            :help :startinsert
>
> >
> >     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 :(
>
> Me, too.
>
> > 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*
>
> Hi,
>
> I'm not sure what you're trying to accomplish.  You've given
> examples of attempted solutions that don't work, but it's not clear
> to me what you're trying to get vim to do.  It may be that it can be
> done, just not the way you're approaching it.
>
> 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]>
-- 
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to