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
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
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
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