Le 24 avril 2012 16:54, Ben Fritz <[email protected]> a écrit :

> If I assume correctly that you're writing code in C, just turn on
> filetype-specific indenting, or turn on 'cindent'. If you want to tweak the
> automatic indenting, update the 'cinoptions' setting.
>
> See the following for a basic introduction for Vim's indentation features:
>
> http://vim.wikia.com/wiki/Indenting_source_code
>

Hi,

Thank you for your answer.
I mainly writing code in C-like language but initially I want to make it
work for C code.
I known this page but I would go further : the equal sign must have a space
before and after, commas should be followed by a space, the keywords of
sctructure control (if, switch, for, do, etc.) must be followed by a space
before the parenthesis, braces should be on a dedicated line, etc.
Is it a mean to do that with ViM?

For your help,
In advance,
Thanks.

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to