Quantcast

A problem about record

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

A problem about record

Yichao Zhou
Hi, everyone.
  Recently I want to change the foldmarker in tex file to <<<,>>>
since there will be less conflict.  So I record a macro
    :%s/{{{/<<</g^M:%s/}}}/>>>/g^M:setlocal fmr=<<<,>>>^M:w^M
  (You need to replace ^M to real ^M)
  However, vim will auto enter insert mode after all is finish, which
I think is a vim's bug.  This can not be reproduced every time.

  The attach file is an example tex file.  Can anyone reproduces this problem?

Regards,
Yichao Zhou

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

hw10.tex (20K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: A problem about record

Gary Johnson-4
On 2012-05-23, Yichao Zhou wrote:
> Hi, everyone.
>   Recently I want to change the foldmarker in tex file to <<<,>>>
> since there will be less conflict.  So I record a macro
>     :%s/{{{/<<</g^M:%s/}}}/>>>/g^M:setlocal fmr=<<<,>>>^M:w^M
>   (You need to replace ^M to real ^M)
>   However, vim will auto enter insert mode after all is finish, which
> I think is a vim's bug.  This can not be reproduced every time.
>
>   The attach file is an example tex file.  Can anyone reproduces this problem?

It worked fine for me.  I tried it with my standard configuration
which includes the vim-latex-suite and with "vim -N -u NONE".  I did
have to edit your attachment first, as the version you attached
already used <<< and >>> and not {{{ and }}}.

I'm using Vim 7.3.524.

Regards,
Gary

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: A problem about record

Yichao Zhou
On Thu, May 24, 2012 at 2:07 AM, Gary Johnson <[hidden email]> wrote:

> On 2012-05-23, Yichao Zhou wrote:
>> Hi, everyone.
>>   Recently I want to change the foldmarker in tex file to <<<,>>>
>> since there will be less conflict.  So I record a macro
>>     :%s/{{{/<<</g^M:%s/}}}/>>>/g^M:setlocal fmr=<<<,>>>^M:w^M
>>   (You need to replace ^M to real ^M)
>>   However, vim will auto enter insert mode after all is finish, which
>> I think is a vim's bug.  This can not be reproduced every time.
>>
>>   The attach file is an example tex file.  Can anyone reproduces this problem?
>
> It worked fine for me.  I tried it with my standard configuration
> which includes the vim-latex-suite and with "vim -N -u NONE".  I did
> have to edit your attachment first, as the version you attached
> already used <<< and >>> and not {{{ and }}}.
>
> I'm using Vim 7.3.524.
>
> Regards,
> Gary
>
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
I think this time this bug can be reproduced.  Use the viminfo file in
the attachment.  Make sure latex-suite is installed.  Open hw10_2.tex.
 Type @a.  You will find that you are in the insert mode.

The problem is latex suite is too big that it is hard to detect what
causes the problem.

Regards,
Yichao Zhou

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

hw10_2.tex (20K) Download Attachment
_viminfo (1000 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: A problem about record

Gary Johnson-4
On 2012-06-06, Yichao Zhou wrote:

> On Thu, May 24, 2012 at 2:07 AM, Gary Johnson wrote:
> > On 2012-05-23, Yichao Zhou wrote:
> >> Hi, everyone.
> >>   Recently I want to change the foldmarker in tex file to <<<,>>>
> >> since there will be less conflict.  So I record a macro
> >>     :%s/{{{/<<</g^M:%s/}}}/>>>/g^M:setlocal fmr=<<<,>>>^M:w^M
> >>   (You need to replace ^M to real ^M)
> >>   However, vim will auto enter insert mode after all is finish, which
> >> I think is a vim's bug.  This can not be reproduced every time.
> >>
> >>   The attach file is an example tex file.  Can anyone reproduces this problem?
> >
> > It worked fine for me.  I tried it with my standard configuration
> > which includes the vim-latex-suite and with "vim -N -u NONE".  I did
> > have to edit your attachment first, as the version you attached
> > already used <<< and >>> and not {{{ and }}}.
> >
> > I'm using Vim 7.3.524.

> I think this time this bug can be reproduced.  Use the viminfo file in
> the attachment.  Make sure latex-suite is installed.  Open hw10_2.tex.
>  Type @a.  You will find that you are in the insert mode.

Yes, I can verify that using the latest vim-latex-suite download,
vim-latex-1.8.23-20120125.768-git8b62284.tar.gz, Vim 7.3.556, and
your attachments along with everything else in my ~/.vim.  I have no
explanation nor solution, though.

> The problem is latex suite is too big that it is hard to detect what
> causes the problem.

That and it's mingled with all my other plugins.

Regards,
Gary

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Loading...