Page MenuHomePhabricator

ECoding / Vim
Updated 1,568 Days AgoPublic

C source code

If you use vim you'll find a modeline in many files that will help you to correct your code before sending patches.

vim:ts=8 sw=3 sts=3 expandtab cino=>5n-3f0^-2{2(0W1st0

EDC (Edje) source code

To have syntax highlighting for .edc-files in vim you need a syntax description file.
You can find one in Git Repository. Copy (or symlink) this file to ~/.vim/syntax/edc.vim.
Now you can switch on syntax highlighting, whenever you edit an .edc-file with:

:set filetype=edc

Or if preferred you can make the following addition to ~/.vim/filetype.vim:

augroup filetypedetect
au BufNewFile,BufRead *.edc setfiletype edc
augroup END

This will allow Vim to detect the .edc extension and automatically set the file type.

For Vim 7.0 and newer versions, a vimball with additional syntax highlighting support, as well as indentation and code completion can be downloaded from

Imported from
1 barbieri 2010-11-10 12:01:41
2 barbieri 2010-11-10 12:01:54
3 englebass 2011-02-15 11:19:27

Last Author
Last Edited
Aug 29 2014, 6:57 AM