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

Re: Problem with opening files and directories on the command line

Expand Messages
  • Charles Campbell
    ... Hello, Dennis: I m sorry its been such an inordinate long time, but I in looking at my old email I saw that the problem you d mentioned was still
    Message 1 of 7 , Apr 29, 2013
      Dennis Benzinger wrote:
      > Hello Mr. Campbell!
      >
      > Am 07.05.2010 23:02, schrieb Charles Campbell:
      >> Dennis Benzinger wrote:
      >>> Hi!
      >>>
      >>> If I try to open a directory and some files on the command line by
      >>> using
      >>>
      >>> vim -o dir file1 file2
      >>>
      >>> I get three split windows with the following buffer names in their
      >>> statusline: NetrwTreeListing 1, dir, dir
      >>> The topmost windows shows the contents of the current directory in
      >>> netrw.
      >>> But it only shows the directory dir, not the two files.
      >>> The other two windows are empty. When I move the cursor to the empty
      >>> windows
      >>> (Ctrl-W j) they start to show the same strange netrw listing with the
      >>> files
      >>> missing. The buffer names in the status line then change to
      >>> NetrwTreeListing 2 and NetrwTreeListing 3.
      >>>
      >>> I'm using Vim 7.2.411 and the netrw windows show v136.
      >>>
      >>> Can anyone reproduce this or is it a problem with my configuration?
      >>
      >> Hello!
      >>
      >> Please try netrw v138b, available at my website as
      >> http://mysite.verizon.net/astronaut/vim/index.html#NETRW .
      >> [...]
      >
      > Thanks for the new version. It almost works. Normally I have
      >
      > let g:netrw_liststyle = 3
      >
      > in my .vimrc. With this setting three netrw windows are shown. In
      > these windows the two files are missing and only the subdirectory is
      > shown.
      > If I remove this setting or use the styles zero to two it works.
      Hello, Dennis:

      I'm sorry its been such an inordinate long time, but I in looking at my
      old email I saw that the problem you'd mentioned was still outstanding
      -- and still present. Part of the problem was that it was weird that
      tree listing mode would have the effect it did. Anyway, I'm hoping that
      the current netrw (v149c) addresses the issues you'd found.

      You can get a copy from my website:
      http://www.drchip.org/astronaut/vim/index.html#NETRW .

      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

      ---
      You received this message because you are subscribed to the Google Groups "vim_use" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • Dominique PellĂ©
      ... Hi Charles I just downloaded netrw v149c. I still see what looks like a bug and which I reported earlier. Please review this patch: $ diff -c
      Message 2 of 7 , Apr 29, 2013
        Charles Campbell wrote:

        > Hello, Dennis:
        >
        > I'm sorry its been such an inordinate long time, but I in looking at my old
        > email I saw that the problem you'd mentioned was still outstanding -- and
        > still present. Part of the problem was that it was weird that tree listing
        > mode would have the effect it did. Anyway, I'm hoping that the current netrw
        > (v149c) addresses the issues you'd found.
        >
        > You can get a copy from my website:
        > http://www.drchip.org/astronaut/vim/index.html#NETRW .

        Hi Charles

        I just downloaded netrw v149c. I still see what looks like
        a bug and which I reported earlier. Please review this patch:

        $ diff -c autoload/netrw.vim.orig autoload/netrw.vim
        *** autoload/netrw.vim.orig 2013-04-29 23:01:56.987914815 +0200
        --- autoload/netrw.vim 2013-04-29 23:02:12.195914685 +0200
        ***************
        *** 4193,4199 ****
        let b:netrw_curdir= getcwd().'/'.prefixdir
        endif
        let dirname= substitute(dirname,'^.\{-}\(\*\*/.*\)$','\1','')
        ! let starpat= 4;
        " call Decho("(Explore) ..pwd<".getcwd()."> dirname<".dirname.">")
        " call Decho("(Explore) ..case Explore ../**/../filepat
        (starpat=".starpat.")")

        --- 4193,4199 ----
        let b:netrw_curdir= getcwd().'/'.prefixdir
        endif
        let dirname= substitute(dirname,'^.\{-}\(\*\*/.*\)$','\1','')
        ! let starpat= 4
        " call Decho("(Explore) ..pwd<".getcwd()."> dirname<".dirname.">")
        " call Decho("(Explore) ..case Explore ../**/../filepat
        (starpat=".starpat.")")

        Regards
        Dominique

        --
        --
        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

        ---
        You received this message because you are subscribed to the Google Groups "vim_use" group.
        To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@....
        For more options, visit https://groups.google.com/groups/opt_out.
      Your message has been successfully submitted and would be delivered to recipients shortly.