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

Strange behavior when switch back to netrw

Expand Messages
  • Bart Baker
    Hello, I m having an issue when I ve split (or vsplit) between any screen and a netrw window. When I switch from other window to the netrw ( [hjkl],
    Message 1 of 5 , Jul 3, 2012
    • 0 Attachment
      Hello,

      I'm having an issue when I've split (or vsplit) between any screen and
      a netrw window. When I switch from other window to the netrw (<C-W> [hjkl],
      depending on direction), netrw doubles each entry. Every time I return to
      the window, another entry for each entry is added. Hitting <C-L> after
      returning to netrw fixes the issue.

      I can attach screenshots if you like, but to keep the size of email low,
      I'll reproduce with text in this initial post:

      After initial vsp (showing left window only):

      Shows (looks fine):
      " ============================================================================
      " Netrw Directory Listing (netrw v146k)
      " C:/scripts/git_pres
      " Sorted by name
      " Sort sequence: [\/]$,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
      " Quick Help: <F1>:help -:go up dir D:delete R:rename s:sort-by x:exec
      " ============================================================================
      ../
      .git/
      back.PNG
      pres.tex

      Keystroke:
      <C-W>l<C-W>h

      Shows:
      " ============================================================================
      " Netrw Directory Listing (netrw v146k)
      " C:/scripts/git_pres
      " Sorted by name
      " Sort sequence: [\/]$,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
      " Quick Help: <F1>:help -:go up dir D:delete R:rename s:sort-by x:exec
      " ============================================================================
      ../
      ../
      .git/
      .git/
      " Quick Help: <F1>:help -:go up dir D:delete R:rename s:sort-by x:exec
      " Sort sequence: [\/]$,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
      " Sorted by name
      " ============================================================================
      back.PNG
      back.PNG
      pres.tex
      pres.tex

      (Again)
      Keystroke:
      <C-W>l<C-W>h

      Shows:
      " ============================================================================
      " Netrw Directory Listing (netrw v146k)
      " C:/scripts/git_pres
      " Sorted by name
      " Sort sequence: [\/]$,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
      " Quick Help: <F1>:help -:go up dir D:delete R:rename s:sort-by x:exec
      " ============================================================================
      ../
      ../
      ../
      .git/
      .git/
      .git/
      " Quick Help: <F1>:help -:go up dir D:delete R:rename s:sort-by x:exec
      " Quick Help: <F1>:help -:go up dir D:delete R:rename s:sort-by x:exec
      " Sort sequence: [\/]$,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
      " Sort sequence: [\/]$,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
      " Sorted by name
      " Sorted by name
      " ============================================================================
      " ============================================================================
      back.PNG
      back.PNG
      back.PNG
      pres.tex
      pres.tex
      pres.tex

      I've tried turning off all of the netrw preferences that I have in my
      _vimrc (I'm running Windows XP), but nothing seems to work.

      Thanks for your help.

      -Bart

      --
      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
    • Charles Campbell
      ... Thank you for letting me know -- I can see this behavior, too. Probably due to an unrelated fix; I ll look into it. Regards, Chip Campbell -- You
      Message 2 of 5 , Jul 3, 2012
      • 0 Attachment
        Bart Baker wrote:
        > Hello,
        >
        > I'm having an issue when I've split (or vsplit) between any screen and
        > a netrw window. When I switch from other window to the netrw (<C-W> [hjkl],
        > depending on direction), netrw doubles each entry. Every time I return to
        > the window, another entry for each entry is added. Hitting<C-L> after
        > returning to netrw fixes the issue.
        >
        > I can attach screenshots if you like, but to keep the size of email low,
        > I'll reproduce with text in this initial post:
        >
        > After initial vsp (showing left window only):
        >
        > Shows (looks fine):
        > " ============================================================================
        > " Netrw Directory Listing (netrw v146k)
        > " C:/scripts/git_pres
        > " Sorted by name
        > " Sort sequence: [\/]$,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
        > " Quick Help:<F1>:help -:go up dir D:delete R:rename s:sort-by x:exec
        > " ============================================================================
        > ../
        > .git/
        > back.PNG
        > pres.tex
        >
        > Keystroke:
        > <C-W>l<C-W>h
        >
        > Shows:
        > " ============================================================================
        > " Netrw Directory Listing (netrw v146k)
        > " C:/scripts/git_pres
        > " Sorted by name
        > " Sort sequence: [\/]$,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
        > " Quick Help:<F1>:help -:go up dir D:delete R:rename s:sort-by x:exec
        > " ============================================================================
        > ../
        > ../
        > .git/
        > .git/
        > " Quick Help:<F1>:help -:go up dir D:delete R:rename s:sort-by x:exec
        > " Sort sequence: [\/]$,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
        > " Sorted by name
        > " ============================================================================
        > back.PNG
        > back.PNG
        > pres.tex
        > pres.tex
        >
        > (Again)
        > Keystroke:
        > <C-W>l<C-W>h
        >
        > Shows:
        > " ============================================================================
        > " Netrw Directory Listing (netrw v146k)
        > " C:/scripts/git_pres
        > " Sorted by name
        > " Sort sequence: [\/]$,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
        > " Quick Help:<F1>:help -:go up dir D:delete R:rename s:sort-by x:exec
        > " ============================================================================
        > ../
        > ../
        > ../
        > .git/
        > .git/
        > .git/
        > " Quick Help:<F1>:help -:go up dir D:delete R:rename s:sort-by x:exec
        > " Quick Help:<F1>:help -:go up dir D:delete R:rename s:sort-by x:exec
        > " Sort sequence: [\/]$,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
        > " Sort sequence: [\/]$,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
        > " Sorted by name
        > " Sorted by name
        > " ============================================================================
        > " ============================================================================
        > back.PNG
        > back.PNG
        > back.PNG
        > pres.tex
        > pres.tex
        > pres.tex
        >
        > I've tried turning off all of the netrw preferences that I have in my
        > _vimrc (I'm running Windows XP), but nothing seems to work.
        >
        > Thanks for your help.
        >
        >
        Thank you for letting me know -- I can see this behavior, too. Probably
        due to an "unrelated" fix; I'll look into it.

        Regards,
        Chip Campbell

        --
        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
      • Bart Baker
        ... Thanks for looking into this, Dr. Chip. -Bart -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you
        Message 3 of 5 , Jul 9, 2012
        • 0 Attachment
          On Tuesday, July 3, 2012 10:28:55 AM UTC-4, Charles Campbell wrote:
          > Bart Baker wrote:
          > > Hello,
          > >
          > > I'm having an issue when I've split (or vsplit) between any screen and
          > > a netrw window. When I switch from other window to the netrw (<C-W> [hjkl],
          > > depending on direction), netrw doubles each entry. Every time I return to
          > > the window, another entry for each entry is added. Hitting<C-L> after
          > > returning to netrw fixes the issue.
          > >
          > > I can attach screenshots if you like, but to keep the size of email low,
          > > I'll reproduce with text in this initial post:
          > >
          > > After initial vsp (showing left window only):
          > >
          > > Shows (looks fine):
          > > " ============================================================================
          > > " Netrw Directory Listing (netrw v146k)
          > > " C:/scripts/git_pres
          > > " Sorted by name
          > > " Sort sequence: [\/]$,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
          > > " Quick Help:<F1>:help -:go up dir D:delete R:rename s:sort-by x:exec
          > > " ============================================================================
          > > ../
          > > .git/
          > > back.PNG
          > > pres.tex
          > >
          > > Keystroke:
          > > <C-W>l<C-W>h
          > >
          > > Shows:
          > > " ============================================================================
          > > " Netrw Directory Listing (netrw v146k)
          > > " C:/scripts/git_pres
          > > " Sorted by name
          > > " Sort sequence: [\/]$,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
          > > " Quick Help:<F1>:help -:go up dir D:delete R:rename s:sort-by x:exec
          > > " ============================================================================
          > > ../
          > > ../
          > > .git/
          > > .git/
          > > " Quick Help:<F1>:help -:go up dir D:delete R:rename s:sort-by x:exec
          > > " Sort sequence: [\/]$,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
          > > " Sorted by name
          > > " ============================================================================
          > > back.PNG
          > > back.PNG
          > > pres.tex
          > > pres.tex
          > >
          > > (Again)
          > > Keystroke:
          > > <C-W>l<C-W>h
          > >
          > > Shows:
          > > " ============================================================================
          > > " Netrw Directory Listing (netrw v146k)
          > > " C:/scripts/git_pres
          > > " Sorted by name
          > > " Sort sequence: [\/]$,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
          > > " Quick Help:<F1>:help -:go up dir D:delete R:rename s:sort-by x:exec
          > > " ============================================================================
          > > ../
          > > ../
          > > ../
          > > .git/
          > > .git/
          > > .git/
          > > " Quick Help:<F1>:help -:go up dir D:delete R:rename s:sort-by x:exec
          > > " Quick Help:<F1>:help -:go up dir D:delete R:rename s:sort-by x:exec
          > > " Sort sequence: [\/]$,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
          > > " Sort sequence: [\/]$,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
          > > " Sorted by name
          > > " Sorted by name
          > > " ============================================================================
          > > " ============================================================================
          > > back.PNG
          > > back.PNG
          > > back.PNG
          > > pres.tex
          > > pres.tex
          > > pres.tex
          > >
          > > I've tried turning off all of the netrw preferences that I have in my
          > > _vimrc (I'm running Windows XP), but nothing seems to work.
          > >
          > > Thanks for your help.
          > >
          > >
          > Thank you for letting me know -- I can see this behavior, too. Probably
          > due to an "unrelated" fix; I'll look into it.
          >
          > Regards,
          > Chip Campbell

          Thanks for looking into this, Dr. Chip.

          -Bart

          --
          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
        • Bart Baker
          More debugging info: It looks like this only occurs when the listing doesn t take up the entire buffer screen. For example, I opened a dir in netrw that had
          Message 4 of 5 , Jul 17, 2012
          • 0 Attachment
            More debugging info:

            It looks like this only occurs when the listing doesn't take up the entire
            buffer screen. For example, I opened a dir in netrw that had many subdirs
            that took up the entire length of the buffer and this redrawing did not
            take place. If I switch to a dir (as noted in the original post) that
            contains only a few items, the behavior mentioned in the original post
            occurs.

            -Bart

            --
            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
          • Bart Baker
            ... Correction: The strange re-painting behavior does not occur when the dir is full of subdirs in the initial window (takes up entire window), but it *does*
            Message 5 of 5 , Jul 17, 2012
            • 0 Attachment
              >
              > It looks like this only occurs when the listing doesn't take up the entire
              > buffer screen. For example, I opened a dir in netrw that had many subdirs
              > that took up the entire length of the buffer and this redrawing did not
              > take place. If I switch to a dir (as noted in the original post) that
              > contains only a few items, the behavior mentioned in the original post
              > occurs.
              >
              > -Bart

              Correction: The strange re-painting behavior does not occur when the dir is
              full of subdirs in the initial window (takes up entire window), but it
              *does* occur if there is a combination of subdirs and files taking up the
              entire initial window.

              (Apology for incorrect use of 'buffer' in previous post. Should have been
              'window'.)

              -Bart

              --
              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
            Your message has been successfully submitted and would be delivered to recipients shortly.