Vim syntax highlighting

This is a wiki page. Be bold and improve it!

If you have any questions about the content on this page, don't hesitate to open a new ticket and we'll do our best to assist you.

doc:
http://vimdoc.sourceforge.net/htmldoc/syntax.html

Check which syntax highlighting is currently in use:

:echo b:current_syntax

or:
:set ft?

List of syntaxes available: see the content of the directory: /usr/share/vim/vim{VIM_VERSION}/syntax/

Check which filenames are associated with which file types: /usr/share/vim/vim{VIM_VERSION}/filetypes.vim

Customized syntax can also be stored here: ~/.vim/after/syntax/ .

Fix syntax highlighting:
http://vim.wikia.com/wiki/Fix_syntax_highlighting

BBCode

BBCode : Syntax highlighting for BBCode
Downdload and place bbcode.vim within ~/.vim/syntax/ or within /usr/share/vim/vim{VIM_VERSION}/syntax/

To have files with the .bbcode extension automatically highlighted, edit:
/usr/share/vim/vim{VIM_VERSION}/filetype.vim
and add:

" BBcode
au BufNewFile,BufRead *.bbcode                  setf bbcode