summaryrefslogtreecommitdiffstats
path: root/vim/after
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2009-05-18 10:54:54 -0500
committerJesse Luehrs <doy@tozt.net>2009-05-18 10:54:54 -0500
commit108959865a6269178f76a2c26cb8cff937d78a64 (patch)
tree3b8486290ba7ffda34401866c677d8b430612628 /vim/after
parentcfdb82f7fc6180fc9f4af579b98b9a20b534eaf5 (diff)
downloadconf-108959865a6269178f76a2c26cb8cff937d78a64.tar.gz
conf-108959865a6269178f76a2c26cb8cff937d78a64.zip
c snippets formatting
Diffstat (limited to 'vim/after')
-rw-r--r--vim/after/ftplugin/c_snippets.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/after/ftplugin/c_snippets.vim b/vim/after/ftplugin/c_snippets.vim
index 4ba571f..9ac3ba4 100644
--- a/vim/after/ftplugin/c_snippets.vim
+++ b/vim/after/ftplugin/c_snippets.vim
@@ -45,7 +45,7 @@ let cd = g:snip_elem_delim
exec "Snippet do do {<CR>".st.et."<CR>} while (".st.et.");"
exec "Snippet readfile std::vector<uint8_t> v;<CR>if(FILE* fp = fopen(\"".st."filename".et."\", \"r\"))<CR>{<CR>uint8_t buf[1024];<CR>while(size_t len = fread(buf, 1, sizeof(buf), fp))<CR>v.insert(v.end(), buf, buf + len);<CR>fclose(fp);<CR>}<CR>"
exec "Snippet beginend ".st."v".et.".begin(), ".st."v".et.".end()"
-exec "Snippet once #ifndef ``CMacroName(expand('%'))``_<CR><CR>#define ``CMacroName(expand('%'))``_<CR><CR>".st.et."<CR><CR>#endif /* ``CMacroName(expand('%'))``_ */"
+exec "Snippet once #ifndef ``CMacroName(expand('%'))``_<CR>#define ``CMacroName(expand('%'))``_<CR><CR>".st.et."<CR><CR>#endif /* ``CMacroName(expand('%'))``_ */"
"exec "Snippet once #ifndef _".st."file:substitute(expand('%'),'\\(.\\)','\\u\\1','g')".et."_<CR><CR>#define _".st."file".et."_<CR><CR>".st.et."<CR><CR>#endif /* _".st."file".et."_ */<CR>".st.et
exec "Snippet class class ".st."name".et." {<CR>public:<CR>".st."name".et."(".st.et.");<CR>virtual ~".st."name".et."();<CR><CR>private:<CR>".st.et."<CR>};"
" TODO This is a good one but I can't quite work out the syntax yet