Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 59 by [email protected]: 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 \<


--
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui