]> Untitled Git - vimfiles.git/commitdiff
Configured clang-format keybinding and removed unneded lines
authorPhilippe Hürlimann <p@hurlimann.org>
Mon, 14 Nov 2016 18:02:53 +0000 (19:02 +0100)
committerPhilippe Hürlimann <p@hurlimann.org>
Mon, 14 Nov 2016 18:03:11 +0000 (19:03 +0100)
ftplugin/c.vim

index c69051e8f8bdd0db33e8ca9e158d35504889d377..e0c7d37bfded9e2e75675d5562bc6db2cc3260c1 100644 (file)
@@ -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 <leader>f :call FormatFile()<cr>