Package: vim-common
Version: 6.3-071+1

The current scripts.vim file (/usr/share/vim/vim63/scripts.vim), which
is used to detect a script's filetype when vim is launched, has no
entry for the lua language.

Here's the entry for perl (lines 89,91 in my file):

    " Perl
  elseif s:name =~ 'perl'
    set ft=perl 
    
Please add an entry like this for lua. The names are SOMEWHAT
alphabetized, but not really, so you can add it directly before perl
if you want.

"""""------CLIP (Here's the entry I added, just add the below 3 lines
        " Lua
  elseif s:name =~ 'lua'
    set ft=lua
"""""------CLIP

When this entry is added, syntax highlighting is automatically
detected for scripts that have something like:

#!/usr/bin/lua

as the shebang line. The lua.vim syntax highlighting definition file
already exists in the /syntax directory, but without the above entry
in scripts.vim, the filetype has to be set manually in vim for syntax
highlighting to work properly.

Thanks!
-Greg Orlowski

Reply via email to