From: Philippe Hürlimann
Date: Fri, 17 Mar 2017 11:58:41 +0000 (+0100)
Subject: clang format settings
X-Git-Url: https://git.hurlimann.org/?a=commitdiff_plain;h=66b004244cf470cc59940064e82b1e1e64b94d2d;p=vimfiles.git
clang format settings
---
diff --git a/ftplugin/c.vim b/ftplugin/c.vim
index e0c7d37..cd7cca0 100644
--- a/ftplugin/c.vim
+++ b/ftplugin/c.vim
@@ -1,7 +1,7 @@
let g:clang_complete_copen=1
let g:clang_auto_select=1
-function FormatFile()
+function! FormatFile()
let l:lines="all"
pyf /usr/share/clang/clang-format.py
endfunction
diff --git a/ftplugin/javascript.vim b/ftplugin/javascript.vim
new file mode 100644
index 0000000..2f4f576
--- /dev/null
+++ b/ftplugin/javascript.vim
@@ -0,0 +1,7 @@
+function! FormatFile()
+ let l:lines="all"
+ pyf /usr/share/clang/clang-format.py
+endfunction
+
+nnoremap