aboutsummaryrefslogtreecommitdiff
path: root/ftplugin/c.vim
diff options
context:
space:
mode:
authorA Farzat <a@farzat.xyz>2024-10-02 00:22:35 +0900
committerA Farzat <a@farzat.xyz>2024-10-02 00:22:35 +0900
commit8609c77b9c2360153436159d75c815486e463d24 (patch)
treeabd3828cdd9671818408a627524bcd28e4409178 /ftplugin/c.vim
parent7cbefbb9acea27c18718d32a3c20b87886971e8a (diff)
downloadnvim-8609c77b9c2360153436159d75c815486e463d24.tar.gz
nvim-8609c77b9c2360153436159d75c815486e463d24.zip
Add ftplugins
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>