Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102252 - vim-core-6.3.084-r1 includes netrw for vim7, showing an error message when viewing directories
Summary: vim-core-6.3.084-r1 includes netrw for vim7, showing an error message when vi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
: 102253 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-08-12 08:31 UTC by Harald van Dijk (RETIRED)
Modified: 2005-08-12 15:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harald van Dijk (RETIRED) gentoo-dev 2005-08-12 08:31:53 UTC
When viewing directories with vim 6.3.084 / vim-core 6.3.084-r1, a confusing
error message about trailing characters shows up. This is because the updated
netrw.vim uses the keepalt command, which does not exist in vim 6.

Reproducible: Always
Steps to Reproduce:
1. vim .
Actual Results:  
Error detected while processing function <SNR>19_LocalBrowse:
line   91:
E488: Trailing characters
Hit ENTER or type command to continue

After this, the directory shows up correctly.

Expected Results:  
Show the current directory without any error messages.

LocalBrowse line 91 (/usr/share/vim/vim63/plugin/netrw.vim line 2153) is " 
keepalt silent! %d"

vim7/runtime/doc/version7.txt (from vim-core-7.0_alpha20050809) mentions keepalt
as one of the changes between vim 6 and vim 7.

% emerge -pv vim-core vim

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] app-editors/vim-core-6.3.084-r1  +acl -bash-completion -livecd
+nls (-selinux) -termcap-compat 0 kB 
[ebuild   R   ] app-editors/vim-6.3.084  +acl -bash-completion -cscope -debug
-gpm -minimal +nls -perl -python -ruby (-selinux) -termcap-compat -vim-with-x 0 kB 

Total size of downloads: 0 kB
Comment 1 Harald van Dijk (RETIRED) gentoo-dev 2005-08-12 08:35:12 UTC
*** Bug 102253 has been marked as a duplicate of this bug. ***
Comment 2 Ciaran McCreesh 2005-08-12 08:53:09 UTC
Bleh. That netrw snapshot is supposed to work with both 6.3 and 7. Looks like
it's fixed in -60 though:

   if v:version < 700
    exe "file ".fname
   else
    keepalt exe "file ".fname
   endif

Guess we need an -r2 with a further updated netrw snapshot...
Comment 3 Ciaran McCreesh 2005-08-12 15:48:41 UTC
6.3.084-r2. Thanks.