Ok, first let me say that netrw is a great command and the Decho script
is *very* nice.  Thanks again Dr. Chip!

Here's the command that I executed to get this output:

    :e scp://servername//some/path/blah.txt

I don't get any error messages in Vim, but I get an empty buffer in Vim
when I try and get the remote file.  When I try the same command in a
different version of Vim running on Ubuntu (I'm using Gentoo), I'm able
to retrieve the file without any problems.  Also, I'm using the same
version of netrw on both machines.

Ok, here's the output of the Decho:

    doing autoload/netrw.vim version v104
    NetSavePosn() {
    |NetRestorePosn() winnr=2 line=1 col=1 hline=1 {
    ||restore window: exe silent! 2wincmd w
    ||restore topofscreen: exe norm! 1G0z
    ||restore posn: exe norm! 1G01|
    ||return NetRestorePosn }
    |return NetSavePosn : winnr=2 line=1 col=1 hline=1 }
    NetRead(mode=2,...) a:0=1 v104 {
    |NetOptionSave() {
    ||NetrwSafeOptions() {
    |||return NetrwSafeOptions }
    ||return NetOptionSave }
    |readcmd<%r> ichoice=1
    |tmpfile</tmp/v535988/1>
    |tmpfile</tmp/v535988/1>
    |tmpfile</tmp/v535988/1>
    |no lastfile: choice<"scp://servername//some/path/blah.txt">
    |reconstructing choice
    |choice<scp://servername//some/path/blah.txt>
    |NetMethod(a:choice<scp://servername//some/path/blah.txt>) {
    ||determine method:
    ||scp://...
    ||a:choice       <scp://servername//some/path/blah.txt>
    ||b:netrw_method <4>
    ||g:netrw_machine<servername>
    ||g:netrw_port   <>
    ||b:netrw_fname  </some/path/blah.txt>
    ||return NetMethod : b:netrw_method=4 }
    |checking if NetBrowse() should handle
choice<scp://servername//some/path/blah.txt> with netrw_list_cmd<ssh
HOSTN
    AME ls -FLa>
    |suffix<.txt>
    |chgd tmpfile</tmp/v535988/1> (removed any .tmp suffix)
    |chgd tmpfile</tmp/v535988/1.txt> (added .txt suffix)
netrw_fname</some/path/blah.txt>
    |read via scp (method #4)
    |executing: !scp -q 'servername:/some/path/blah.txt' /tmp/v535988/1.txt
    |NetGetFile(readcmd<%r>,tfile</tmp/v535988/1.txt> method<4>) {
    ||rfile<scp://servername//some/path/blah.txt>
    ||tfile=a:tfile</tmp/v535988/1.txt>
    ||get file into buffer
    ||keepalt exe file /tmp/v535988/1.txt
    ||edit temporary file
    ||renamed buffer back to remote
filename<scp://servername//some/path/blah.txt> :
expand(%)<scp://servername//some
    /path/blah.txt>
    ||redir<ls!>:
    ||redir<ls!>:   1 %a   "scp://servername//some/path/blah.txt" line 1
    ||redir<ls!>:   2u a   "./.vimprojects"               line 0
    ||redir<ls!>:   3u#a   "DBG"                          line 0
    ||redir<ls!>:   5u     "/tmp/v535988/1.txt"     line 1
    ||NetReadFixup() not called, doesn't exist  (line1=1 line2=1)
    ||readcmd<%r> cmdarg<> tfile</tmp/v535988/1.txt> readable=1
    ||return NetGetFile }
    |cleanup
    |System(cmd<delete> path</tmp/v535988/1.txt>) {
    ||return System 0 }
    |NetOptionRestore() {
    ||return NetOptionRestore }
    |return NetRead :5 getcwd</home/someuser/router_properties> }
    NetRestorePosn() winnr=2 line=1 col=1 hline=1 {
    |restore window: exe silent! 2wincmd w
    |restore topofscreen: exe norm! 1G0z
    |restore posn: exe norm! 1G01|
    |return NetRestorePosn }

Please note that I scrubbed the output (changed server name to
"servername", file name to "blah.txt", etc.).

Here's my version info:

    VIM - Vi IMproved 7.0 (2006 May 7, compiled Oct 30 2006 11:32:36)
    Included patches: 1-17
    Modified by Gentoo-7.0.17
    Compiled by [EMAIL PROTECTED]
    Huge version without GUI.  Features included (+) or not (-):
    +arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset
+cindent -clientserver -clipboard
    +cmdline_compl +cmdline_hist +cmdline_info +comments +cryptv -cscope
+cursorshape +dialog_con +diff +digraphs
    -dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi
+file_in_path +find_in_path +folding -footer
    +fork() +gettext -hangul_input +iconv +insert_expand +jumplist +keymap
+langmap +libcall +linebreak +lispindent
    +listcmds +localmap +menu +mksession +modify_fname +mouse -mouseshape
+mouse_dec +mouse_gpm -mouse_jsbterm
    +mouse_netterm +mouse_xterm +multi_byte +multi_lang -mzscheme
-netbeans_intg -osfiletype +path_extra +perl
    +postscript +printer +profile +python +quickfix +reltime +rightleft
-ruby +scrollbind +signs +smartindent -sniff
     +statusline -sun_workshop +syntax +tag_binary +tag_old_static
-tag_any_white -tcl +terminfo +termresponse
    +textobjects +title -toolbar +user_commands +vertsplit +virtualedit
+visual +visualextra +viminfo +vreplace
    +wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp
-xterm_clipboard -xterm_save
       system vimrc file: "/etc/vim/vimrc"
         user vimrc file: "$HOME/.vimrc"
          user exrc file: "$HOME/.exrc"
      fall-back for $VIM: "/usr/share/vim"
    Compilation: i686-pc-linux-gnu-gcc -c -I. -Iproto -DHAVE_CONFIG_H    
-O2 -march=i686 -pipe    -pipe -Wdeclaratio
    n-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm  -I/usr/lib/perl5/5.8.8/i686-lin
    ux/CORE  -I/usr/include/python2.4 -pthread
    Linking: i686-pc-linux-gnu-gcc   -rdynamic   -L/usr/local/lib -o vim  
    -lncurses -lgpm -rdynamic  -L/usr/loca
    l/lib /usr/lib/perl5/5.8.8/i686-linux/auto/DynaLoader/DynaLoader.a
-L/usr/lib/perl5/5.8.8/i686-linux/CORE -lperl
    -lutil -lc -L/usr/lib/python2.4/config -lpython2.4 -lpthread -lutil
-lm -Xlinker -export-dynamic

Does anyone see anything wrong in my Decho output?  If not, then what
can I do next to troubleshoot this problem?

Thanks in advance for any help!

Tom Purl

Reply via email to