diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2014-06-27 13:54:36 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2014-06-27 13:54:36 +0200 |
commit | 1e704a4532a55a61784138539ced5c9696eaa8cb (patch) | |
tree | 63c5280b1bea35dc23145af4a2e9aaeabff9b7ad /.vim/ftdetect/bitbake.vim | |
parent | 47f43d25d99dc8cf972496c8b36eadca59f72799 (diff) |
Add bitbake syntax, ftdetect and ftplugin
Diffstat (limited to '.vim/ftdetect/bitbake.vim')
-rw-r--r-- | .vim/ftdetect/bitbake.vim | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.vim/ftdetect/bitbake.vim b/.vim/ftdetect/bitbake.vim new file mode 100644 index 0000000..38f979e --- /dev/null +++ b/.vim/ftdetect/bitbake.vim @@ -0,0 +1,24 @@ +" Vim filetype detection file +" Language: BitBake +" Author: Ricardo Salveti <rsalveti@rsalveti.net> +" Copyright: Copyright (C) 2008 Ricardo Salveti <rsalveti@rsalveti.net> +" Licence: You may redistribute this under the same terms as Vim itself +" +" This sets up the syntax highlighting for BitBake files, like .bb, .bbclass and .inc + +if &compatible || version < 600 + finish +endif + +" .bb, .bbappend and .bbclass +au BufNewFile,BufRead *.{bb,bbappend,bbclass} set filetype=bitbake + +" .inc +au BufNewFile,BufRead *.inc set filetype=bitbake + +" .conf +au BufNewFile,BufRead *.conf + \ if (match(expand("%:p:h"), "conf") > 0) | + \ set filetype=bitbake | + \ endif + |