[Yanel-dev] Vim configuration for Yanel development

Guillaume Déflache guillaume.deflache at wyona.com
Thu Apr 1 14:00:43 CEST 2010


Hi!

AFAIK this is all that is needed to make Vim behave WRT indentation to 
meet Yanel coding conventions.
This is the most safe and straightforward way I found, but it can 
probably be done differently/better:
---8<---
set expandtab " never add TAB characters
set tabstop=2 shiftwidth=2 " by default indentation is 2, e.g. for HTML 
and XML-based syntaxes like XHTML, XSLT, etc.
au BufNewFile,BufRead *.java,*.js,*.css set tabstop=4 shiftwidth=4 " 
indentation is 4 for languages using braces for nesting like Java, 
Javascript, CSS. etc.
---8<---

Of course you may want to use an IDE like Eclipse or IntelliJ IntelliJ 
IDEA instead! :P

HTH,
    Guillaume


More information about the Yanel-development mailing list