[vim] format indentation using clang-format

This commit is contained in:
Mathieu Maret 2015-02-27 15:45:32 +01:00 committed by Mathieu Maret
parent 9fc74b98ab
commit aa25365515
2 changed files with 6 additions and 1 deletions

1
.vim/syntax/clang-format.py Symbolic link
View File

@ -0,0 +1 @@
/usr/share/vim/addons/syntax/clang-format-3.5.py

6
.vimrc
View File

@ -166,6 +166,10 @@ else
" indent-expr " indent-expr
"set indentexpr "" "set indentexpr ""
endif endif
map <C-I> :pyf ~/.vim/syntax/clang-format.py<CR>
imap <C-I> <ESC>:pyf ~/.vim/syntax/clang-format.py<CR>i
"""""""""" """"""""""
" SEARCH " " SEARCH "
"""""""""" """"""""""
@ -450,7 +454,7 @@ Plugin 'honza/vim-snippets'
Plugin 'garbas/vim-snipmate' Plugin 'garbas/vim-snipmate'
" Python completion " Python completion
Plugin 'klen/python-mode' "Plugin 'klen/python-mode'
"" Python Bundle "" Python Bundle
"Plugin 'davidhalter/jedi-vim' "Plugin 'davidhalter/jedi-vim'
"Plugin 'scrooloose/syntastic' "Plugin 'scrooloose/syntastic'