Sunday, August 26, 2012

vim: netrw: 2 issue about list style

hi Dr.chip/folks:
It looks I run into an issue about netrw.

*** the issue1: g:netrw_liststyle= 4 doesn't work

the manual says:
"use the tree style as default listing style.
let g:netrw_liststyle= 4

but It doesn't work for me, when I tried this:
vim ftp://ping@127.0.0.1//

I still got:

"
============================================================================
" Netrw Directory Listing
(netrw v144a)
" ftp://ping@127.0.0.1//
" Sorted by name
" Sort sequence:
[\/]$,\<core\%(\.\d\+\)\=\>,\.h$,\.c$,\.cpp$,\~\=\*$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
" Hiding: ^\..*
" Quick Help: <F1>:help -:go up dir D:delete R:rename s:sort-by
x:exec
"
============================================================================
Dropbox/
bin/
boot/
cdrom/
data/
dev/
etc/
home/
initrd.img.old/
initrd.img/
lib/
...

*** the issue2: switching to list style also changed the folder

say I'm now in root, with thin list as default (see issue 1 above):

"
============================================================================
" Netrw Directory Listing
(netrw v144a)
" ftp://ping@127.0.0.1//
" Sorted by name
" Sort sequence:
[\/]$,\<core\%(\.\d\+\)\=\>,\.h$,\.c$,\.cpp$,\~\=\*$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
" Hiding: ^\..*
" Quick Help: <F1>:help -:go up dir D:delete R:rename s:sort-by
x:exec
"
============================================================================
Dropbox/
bin/
boot/
cdrom/
......


press "i" switch to "long" list

"
============================================================================
" Netrw Directory Listing
(netrw v144a)
" ftp://ping@127.0.0.1//
" Sorted by name
" Sort sequence:
[\/]$,\<core\%(\.\d\+\)\=\>,\.h$,\.c$,\.cpp$,\~\=\*$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
" Hiding: ^\..*
" Quick Help: <F1>:help -:go up dir D:delete R:rename s:sort-by
x:exec
"
============================================================================
Dropbox/ drwx------ 20 1000 1000 4096 Aug 11 09:13
bin/ drwxr-xr-x 2 0 0 4096 Aug 07 16:23
boot/ drwxr-xr-x 3 0 0 4096 Aug 07 16:52
data/ drwxr-x--- 1 1000 1000 20480 Aug 10 17:09
dev/ drwxr-xr-x 19 0 0 4120 Aug 07 16:49
etc/ drwxr-xr-x 244 0 0 20480 Aug 24 11:40
home/ drwxr-xr-x 5 0 0 4096 Dec 08 2010
lib/ drwxr-xr-x 19 0 0 12288 Aug 20 11:44
lib32/ drwxr-xr-x


press "i" again switch to "wide" mode:
"
============================================================================
" Netrw Directory Listing
(netrw v144a)
" ftp://ping@127.0.0.1//
" Sorted by name
" Sort sequence:
[\/]$,\<core\%(\.\d\+\)\=\>,\.h$,\.c$,\.cpp$,\~\=\*$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
" Hiding: ^\..*
" Quick Help: <F1>:help -:go up dir D:delete R:rename s:sort-by
x:exec
"
============================================================================
Dropbox/ etc/ lib64/
proc/ temp/
vmlinuz/
bin/ home/ linux32/
root/ tftpboot/ win/
boot/ initrd.img.old/ lost+found/
sbin/ tmp/
PicasaPhotoViewer.kpf
cdrom/ initrd.img/ media/
selinux/ usr/
debian-binary
data/ lib/ mnt/
srv/ var/
gdlinux-mso-gqo6n0Rv0.png
dev/ lib32/ opt/
sys/ vmlinuz.old/
webmin-setup.out
~
~
~
press "i" 3rd time now I got "listing" format, but I was changed to
"home", instead of staying in "root":

"
============================================================================
" Netrw Directory Listing
(netrw v144a)
" ftp://ping@127.0.0.1/
" Sorted by name
" Sort sequence:
[\/]$,\<core\%(\.\d\+\)\=\>,\.h$,\.c$,\.cpp$,\~\=\*$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
" Hiding: ^\..*
" Quick Help: <F1>:help -:go up dir D:delete R:rename s:sort-by
x:exec
"
============================================================================
../
ftp://ping@127.0.0.1/
| 3tmp/
| Accellion/
| Desktop/
| Documents/
| Downloads/
| Dropbox/
| EIOffice/
| ICAClient/
| INSZoom.com - Questionnaire Preview_files/
| Juniper/
| Mail/
| MiguDownload/
| MiguMusic/
| Music/

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

No comments: