From e5e76d4257076dee3b115f4309f5f5ab45e9e98a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Philippe=20H=C3=BCrlimann?= Date: Mon, 14 Nov 2016 19:02:53 +0100 Subject: [PATCH] Configured clang-format keybinding and removed unneded lines --- ftplugin/c.vim | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ftplugin/c.vim b/ftplugin/c.vim index c69051e..e0c7d37 100644 --- a/ftplugin/c.vim +++ b/ftplugin/c.vim @@ -1,5 +1,9 @@ -" open quickfix window on error let g:clang_complete_copen=1 -" automatically select the first entry in the popup menu, but -" without inserting it into the code. let g:clang_auto_select=1 + +function FormatFile() + let l:lines="all" + pyf /usr/share/clang/clang-format.py +endfunction + +nnoremap f :call FormatFile() -- 2.51.2