summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorache <ache@ache.one>2017-05-17 03:21:32 +0200
committerache <ache@ache.one>2017-05-17 03:21:32 +0200
commit441551a1ade1e3f0b424c48b926ccbe2217ec89c (patch)
tree14bb94df56ae9f7933bfcb5b7d78a14d5bc42121 /plugin
parentSuppression de jellybeans (diff)
New C inormap
Diffstat (limited to 'plugin')
-rwxr-xr-xplugin/perso.vim16
1 files changed, 14 insertions, 2 deletions
diff --git a/plugin/perso.vim b/plugin/perso.vim
index 585b5d6..40e88ee 100755
--- a/plugin/perso.vim
+++ b/plugin/perso.vim
@@ -51,8 +51,20 @@ inoremap <c-a> <Esc>0i
"Perso C définition"
inoremap prt printf
inoremap swf printf
-inoremap #in< #include<><left>
-inoremap #de #define
+inoremap #in< #include <><left>
+inoremap #in" #include ""<left>
+inoremap #def #define
+inoremap #un #undef
+inoremap #ifn #ifndef
+inoremap #ifd #ifdef
+inoremap #std #include <stdlib.h>
+inoremap #io #include <stdio.h>
+
+inoremap #main int main(void) {<CR>}<Esc><Up>A
+inoremap ##main int main(int argc, char* argv[]) {<CR>}<Esc><Up>A
+
+
+
" Personal shortcurts