-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Description
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 \<
Original issue reported on code.google.com by sbje...@gmail.com
on 24 Mar 2012 at 12:06