From aa253655155e40b430bc64cbdec5206808b87274 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Fri, 27 Feb 2015 15:45:32 +0100 Subject: [PATCH] [vim] format indentation using clang-format --- .vim/syntax/clang-format.py | 1 + .vimrc | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 120000 .vim/syntax/clang-format.py diff --git a/.vim/syntax/clang-format.py b/.vim/syntax/clang-format.py new file mode 120000 index 0000000..a10447f --- /dev/null +++ b/.vim/syntax/clang-format.py @@ -0,0 +1 @@ +/usr/share/vim/addons/syntax/clang-format-3.5.py \ No newline at end of file diff --git a/.vimrc b/.vimrc index 7411e4a..058812a 100644 --- a/.vimrc +++ b/.vimrc @@ -166,6 +166,10 @@ else " indent-expr "set indentexpr "" endif + +map :pyf ~/.vim/syntax/clang-format.py +imap :pyf ~/.vim/syntax/clang-format.pyi + """""""""" " SEARCH " """""""""" @@ -450,7 +454,7 @@ Plugin 'honza/vim-snippets' Plugin 'garbas/vim-snipmate' " Python completion -Plugin 'klen/python-mode' +"Plugin 'klen/python-mode' "" Python Bundle "Plugin 'davidhalter/jedi-vim' "Plugin 'scrooloose/syntastic'