force use of scripts.vim to find filetype

2011-04-05 Thread Alvin Kerber
I have a bunch of these executable scripts, with shebang lines, and I want configure vim to detect the filetype using the shebang line. The problem is that these scripts all must have the .foo extension (they're run automatically by a build system), and the system-wide filetype.vim recognizes .foo

Re: force use of scripts.vim to find filetype

2011-04-05 Thread Christian Brabandt
On Tue, April 5, 2011 6:51 pm, Alvin Kerber wrote: > I have a bunch of these executable scripts, with shebang lines, and I > want configure vim to detect the filetype using the shebang line. The > problem is that these scripts all must have the .foo extension > (they're run automatically by a build

Re: force use of scripts.vim to find filetype

2011-04-06 Thread Marc Weber
Excerpts from Alvin Kerber's message of Tue Apr 05 18:51:40 +0200 2011: > autocmd BufNewFile,BufRead *.foo set filetype=ignored autocmd BufNewFile,BufRead *.foo if getline(1) == | set ft=.. | endif Something like this should work as expected. If you have more code than this simple if use what was

Re: force use of scripts.vim to find filetype

2011-04-09 Thread Andy Wokula
Am 05.04.2011 18:51, schrieb Alvin Kerber: I have a bunch of these executable scripts, with shebang lines, and I want configure vim to detect the filetype using the shebang line. The problem is that these scripts all must have the .foo extension (they're run automatically by a build system), and