aboutsummaryrefslogtreecommitdiff
path: root/ftplugin/c.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/c.vim')
-rw-r--r--ftplugin/c.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/ftplugin/c.vim b/ftplugin/c.vim
new file mode 100644
index 0000000..1550367
--- /dev/null
+++ b/ftplugin/c.vim
@@ -0,0 +1,4 @@
+command-buffer Compile w | make %:r:S
+command-buffer CompileM w | !gcc -o %:r:S %:S -lm
+command-buffer Make w | !make %:r:S
+command-buffer -nargs=* Run split | terminal chmod +x %:p:S; %:p:S <args>