commit f945a08fe9e82285c96efd36a2a520f44232be90
parent 9734b118e6637e2aba1f00de39b3144aa4a88b2b
Author: Chris Bracken <chris@bracken.jp>
Date: Sat, 29 Aug 2020 09:00:10 -0700
Added a snippets plugin
Initially populated with `,cm` which injects a boilerplate main().
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/.vim/plugin/snippets.vim b/.vim/plugin/snippets.vim
@@ -0,0 +1,4 @@
+" Code snippets
+
+" C, C++
+au FileType c,cpp,objc nmap <leader>cm iint main(int argc, char** argv) {<CR>return 0;<CR>}<ESC>%0