Loading ...
Sorry, an error occurred while loading the content.

wierd bug with vim -t

Expand Messages
  • Charles E. Campbell
    Hello, Bram! I ve got a wierd bug/misunderstanding which seems repeatable under both SGI Irix 5.3 and my Redhat Linux 7.3 box. The following tar file contains
    Message 1 of 2 , May 30, 2002
    • 0 Attachment
      Hello, Bram!

      I've got a wierd bug/misunderstanding which seems repeatable
      under both SGI Irix 5.3 and my Redhat Linux 7.3 box.

      The following tar file contains four files:

      abc.c
      tags
      .vimrc
      .vim/plugin/tst.vim

      Note that with

      vim abc.c

      the \t1 \t2 \t3 maps all echo (although I'm
      surprised that \t1 works since its <script>'d).

      Now try

      vim -t junk

      which puts one in the same file. This time \t1 and \t3
      don't work, although \t2 does.

      This doesn't seem right to me, although I presume it
      could be my misunderstanding of map <script> ... .
      I thought such mappings were basically local to the
      defining script, but that doesn't appear to be happening
      here.

      HAVE EXPECTED
      Summary: vim abc.c | vim -t junk || vim abc.c | vim -t junk
      \t1 yes | no || no | no
      \t2 yes | yes || yes | yes
      \t3 yes | no || yes | yes


      Regards,
      Chip Campbell

      ------------------------------------------------------
      begin 600 bug.tar
      M86)C+F,`````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M`````````````#`P,#8P,"``,#`P,S$S(``P,#`S,3,@`#`P,#`P,#`P,#0R
      M(#`W-#<U-3`U-38P(#`Q,3(V,@`@,```````````````````````````````
      M````````````````````````````````````````````````````````````
      M``````````````````````````````````````````!U<W1A<@`P,&-E8P``
      M````````````````````````````````````8V5C````````````````````
      M```````````````````P,#`P,#`@`#`P,#`P,"``````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M``````````````````````!V;VED(&IU;FLH*0I["F$],0IB8CTR,@IC8V,]
      M,S,S"GT*````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M``````````````````````````````````^\$I``````#[8D6`^\`.0/MKET
      M````````````````````````````````?_^/N`^\`20/O`#D#[:Y=`````@`
      M``````````````!__X^X#[:X.``````/MKET`````0``````````````````
      M```/MMW8#[6O(`!`N,@`````````$@````$````````&,0````$`````````
      M`H@14KR((XJ`````PA%)#("(!<:\B!W[V(@"W<0````'B")0F(B+0HB)]->`
      MB(M"G(@=^]A__X[\````!X@B4)B("%%L``````````>((E"8B`A2%(@9,[")
      MC7^<B")0F(@%BZ@```````````^\$H``````````````````````#[4I!'__
      MK>@0`"7@?_^MZ!``FZ``0$?8+W5S<B]L:6(O;&EB8RYS;W1A9W,`````````
      M````````````````````````````````````````````````````````````
      M```````````````````````````````````````````````````````````P
      M,#`V,#`@`#`P,#,Q,R``,#`P,S$S(``P,#`P,#`P,#`S,R`P-S0W-34P-34W
      M-B`P,3$R-C$`(#``````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````=7-T87(`,#!C96,`````````````````
      M`````````````````````&-E8P``````````````````````````````````
      M````,#`P,#`P(``P,#`P,#`@````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````:G5N:PEA8F,N8PDO7G9O:60@:G5N:R@I)"\*/3,S,PI]"@``````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M```````````````````/O!*0``````^V)%@/O`#D#[:Y=```````````````
      M`````````````````'__C[@/O`$D#[P`Y`^VN70````(````````````````
      M?_^/N`^VN#@`````#[:Y=`````$`````````````````````#[;=V`^UKR``
      M0+C(`````````!(````!````````!C$````!``````````*($5*\B".*@```
      M`,(120R`B`7&O(@=^]B(`MW$````!X@B4)B(BT*(B?37@(B+0IR('?O8?_^.
      M_`````>((E"8B`A1;``````````'B")0F(@(4A2(&3.PB8U_G(@B4)B(!8NH
      M```````````/O!*```````````````````````^U*01__ZWH$``EX'__K>@0
      M`)N@`$!'V"]U<W(O;&EB+VQI8F,N<V\N=FEM<F,`````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````,#`P-C`P(``P,#`S
      M,3,@`#`P,#,Q,R``,#`P,#`P,#`P,S0@,#<T-S4U,#8U-38@,#$Q-3(Q`"`P
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M`````````````'5S=&%R`#`P8V5C````````````````````````````````
      M``````!C96,``````````````````````````````````````#`P,#`P,"``
      M,#`P,#`P(```````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M`````````````````````````````````````````````````````'-E="!N
      M;V-P"F9I;&5T>7!E('!L=6=I;B!O;@HS,S,*?0H`````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````#[P2D``````/MB18#[P`Y`^VN70`````````````````````````````
      M``!__X^X#[P!)`^\`.0/MKET````"````````````````'__C[@/MK@X````
      M``^VN70````!``````````````````````^VW=@/M:\@`$"XR``````````2
      M`````0````````8Q`````0`````````"B!%2O(@CBH````#"$4D,@(@%QKR(
      M'?O8B`+=Q`````>((E"8B(M"B(GTUX"(BT*<B!W[V'__COP````'B")0F(@(
      M46P`````````!X@B4)B("%(4B!DSL(F-?YR((E"8B`6+J```````````#[P2
      M@``````````````````````/M2D$?_^MZ!``)>!__ZWH$`";H`!`1]@O=7-R
      M+VQI8B]L:6)C+G-O+G9I;2\`````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M`````````````````````````````#`P,#<P,"``,#`P,S$S(``P,#`S,3,@
      M`#`P,#`P,#`P,#`P(#`W-#<U-3`V-C0S(#`Q,3(T-P`@-0``````````````
      M````````````````````````````````````````````````````````````
      M``````````````````````````````````````````````````````````!U
      M<W1A<@`P,&-E8P``````````````````````````````````````8V5C````
      M```````````````````````````````````P,#`P,#`@`#`P,#`P,"``````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M```````````````````````````````````````N=FEM+W!L=6=I;B\`````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````,#`P-S`P
      M(``P,#`S,3,@`#`P,#,Q,R``,#`P,#`P,#`P,#`@,#<T-S4U,#8V-C0@,#$R
      M-34P`"`U````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M`````````````````````'5S=&%R`#`P8V5C````````````````````````
      M``````````````!C96,``````````````````````````````````````#`P
      M,#`P,"``,#`P,#`P(```````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M`"YV:6TO<&QU9VEN+W1S="YV:6T`````````````````````````````````
      M````````````````````````````````````````````````````````````
      M```````````````P,#`V,#`@`#`P,#,Q,R``,#`P,S$S(``P,#`P,#`P,#$W
      M-B`P-S0W-34P-C4P-"`P,30P-S8`(#``````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````=7-T87(`,#!C96,`
      M`````````````````````````````````````&-E8P``````````````````
      M````````````````````,#`P,#`P(``P,#`P,#`@````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````;6%P(#QS8W)I<'0^(#QB=69F97(^(%QT,2`Z
      M96-H;R`B=#$B/$-2/@IM87`@/&QE861E<CYT,B`@("`@("`@("`@(#IE8VAO
      M(")T,B(\0U(^"FUA<"`\;&5A9&5R/G0S("`@("`@("`@("`@7'0Q.F5C:&\@
      M(G0S(CQ#4CX*````````````````````````````````````````````````
      M````````````````````````````````````````#[6O(`^KQK0/M:\@#ZO(
      M7```````````$`!>>!``E&9__XW(?_^)9`^UKR`/J\:,````````````````
      M````````````````#[6O(`^K\>P`````$`"4.``````````````@````````
      M``````````^UKR`/J\E$#[6O(`^LDS`/M:\@#ZR2Y```(```````````````
      M````````$``)A`^UKR``0&`````````````0``F$$`"49@(``"<`````#[6O
      M(`^KQK0``93Y``!!P`````(```#+$`!BX!``E&8`````?_^)9`^UKR`0`&+D
      M$`"49@````!__XED$``)Q!``"<@/M2<@#[6O(`!`8F@`````````````````
      M````````"`````````````````^UKR``0&'8#[6O(```````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      M````````````````````````````````````````````````````````````
      9````````````````````````````````````
      `
      end
      ------------------------------------------------------

      --
      Charles E Campbell, Jr, PhD _ __ __
      Goddard Space Flight Center / /_/\_\_/ /
      cec@... /_/ \/_//_/
      PGP public key: http://www.erols.com/astronaut/pgp.html
    • Bram Moolenaar
      ... The indicates that in the RHS only script-local mappings are expanded, no other mappings. But the LHS is used everywhere, just like any other
      Message 2 of 2 , Jun 1, 2002
      • 0 Attachment
        Charles Campbell wrote:

        > I've got a wierd bug/misunderstanding which seems repeatable
        > under both SGI Irix 5.3 and my Redhat Linux 7.3 box.
        >
        > The following tar file contains four files:
        >
        > abc.c
        > tags
        > .vimrc
        > .vim/plugin/tst.vim
        >
        > Note that with
        >
        > vim abc.c
        >
        > the \t1 \t2 \t3 maps all echo (although I'm
        > surprised that \t1 works since its <script>'d).
        >
        > Now try
        >
        > vim -t junk
        >
        > which puts one in the same file. This time \t1 and \t3
        > don't work, although \t2 does.
        >
        > This doesn't seem right to me, although I presume it
        > could be my misunderstanding of map <script> ... .
        > I thought such mappings were basically local to the
        > defining script, but that doesn't appear to be happening
        > here.
        >
        > HAVE EXPECTED
        > Summary: vim abc.c | vim -t junk || vim abc.c | vim -t junk
        > \t1 yes | no || no | no
        > \t2 yes | yes || yes | yes
        > \t3 yes | no || yes | yes

        The <script> indicates that in the RHS only script-local mappings are
        expanded, no other mappings. But the LHS is used everywhere, just like
        any other mapping.

        The <buffer> makes \t1 work only in the current buffer. Somehow "vim -t
        junk" creates another buffer, while "vim abc.c" re-uses the empty buffer
        you start with. This seems to depend on my .vimrc though, "vim -u NONE"
        doesn't do this.

        Thus I don't see something wrong here, except that "vim -t junk" doesn't
        re-use the empty buffer.

        --
        hundred-and-one symptoms of being an internet addict:
        75. You start wondering whether you could actually upgrade your brain
        with a Pentium Pro microprocessor 80. The upgrade works just fine.

        /// Bram Moolenaar -- Bram@... -- http://www.moolenaar.net \\\
        /// Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim \\\
        \\\ Project leader for A-A-P -- http://www.a-a-p.org ///
        \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///
      Your message has been successfully submitted and would be delivered to recipients shortly.