Issue 59 in vim: netrw breaks scripts.vim

44 views
Skip to first unread message

v...@googlecode.com

unread,
Mar 23, 2012, 8:07:18 PM3/23/12
to vim...@vim.org
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 59 by sbje...@gmail.com: netrw breaks scripts.vim
http://code.google.com/p/vim/issues/detail?id=59

What steps will reproduce the problem?
1. Have vim installed, have openssh-server installed and running
2. create a ruby script ~/foo with the following shebang line
#!/usr/bin/env ruby

3. in vim, execute:
:e scp://localhost/~/foo
after file is loaded, check:
:set filetype?

What is the expected output? What do you see instead?
expected:
filetype=ruby
actual:
filetype=conf

What version of the product are you using? On what operating system?
7.3.390 on Linux

Please provide any additional information below.
netrw saves vim options in netrw#NetRead, modifies them, then fetches the
file, detect file types, and restore options.
The modified options include iskeyword, where the slash character is added
this causes scripts.vim (invoked during s:NetrwGetFile in netrw.vim
by "filetype detect") to fail to detect "env" shebang lines correctly due
to the changed meaning of \<


v...@googlecode.com

unread,
Mar 26, 2012, 9:58:25 AM3/26/12
to vim...@vim.org

Comment #1 on issue 59 by drc...@campbellfamily.biz: netrw breaks
scripts.vim
http://code.google.com/p/vim/issues/detail?id=59

Hello!

I don't see this with the latest netrw version (v144d). Please try it --
http://www.drchip.org/astronaut/vim/index.html#NETRW

Regards,
Chip Campbell

v...@googlecode.com

unread,
Mar 27, 2012, 1:58:10 AM3/27/12
to vim...@vim.org

Comment #2 on issue 59 by sbje...@gmail.com: netrw breaks scripts.vim
http://code.google.com/p/vim/issues/detail?id=59

hi dr campbell, i am still seeing this. did you created ~/foo not ~/foo.rb?
for files with suffixes, autocommands work, but for those without, the
iskeyword options must not contain "/", which is added by netrw before
restoring it

v...@googlecode.com

unread,
Mar 27, 2012, 8:37:37 PM3/27/12
to vim...@vim.org

Comment #3 on issue 59 by drc...@campbellfamily.biz: netrw breaks
scripts.vim
http://code.google.com/p/vim/issues/detail?id=59

Hello -- well, I'd called it "junk" rather than "foo", but there was no
suffix.
However: the top line was "#! /usr/bin/ruby". Hewing more closely to your
stated problem, and using "#! /usr/bin/env ruby" instead, I do end up with
a filetype of conf instead of ruby. Looks like your diagnosis was correct,
too.
Please try v144e of netrw
(http://www.drchip.org/astronaut/vim/index.html#NETRW).


v...@googlecode.com

unread,
Mar 27, 2012, 10:27:20 PM3/27/12
to vim...@vim.org

Comment #4 on issue 59 by sbje...@gmail.com: netrw breaks scripts.vim
http://code.google.com/p/vim/issues/detail?id=59

hi dr campbell, i am still seeing the previous version on your homepage. do
you have a repository (like git) that i can follow and submit patches?

Charles Campbell

unread,
Mar 28, 2012, 9:17:14 AM3/28/12
to vim...@googlegroups.com
OK, it should be on my website now. You may send patches directly to me.

Regards,
Chip Campbell

v...@googlecode.com

unread,
Feb 11, 2013, 3:57:48 PM2/11/13
to vim...@vim.org

Comment #5 on issue 59 by drc...@campbellfamily.biz: netrw breaks
scripts.vim
http://code.google.com/p/vim/issues/detail?id=59

No, I don't have such a repository. Just email patches to me (edit netrw
and see my email address near the top).

v...@googlecode.com

unread,
Nov 9, 2013, 12:35:25 PM11/9/13
to vim...@vim.org
Updates:
Status: Fixed

Comment #6 on issue 59 by drc...@campbellfamily.biz: netrw breaks
scripts.vim
http://code.google.com/p/vim/issues/detail?id=59

I believe this problem was fixed awhile back.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages