summaryrefslogtreecommitdiffstats
path: root/vim/after
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2009-05-21 12:01:04 -0500
committerJesse Luehrs <doy@tozt.net>2009-05-21 12:01:04 -0500
commit56c78f907d4ae9ebb34eb17f8fc2c50156604b9b (patch)
tree5bfb216123ff043766d51f741750ab8e67c28ce5 /vim/after
parent850fa7708d6de6abe22e9b184173f7bf2c24dc3f (diff)
downloadconf-56c78f907d4ae9ebb34eb17f8fc2c50156604b9b.tar.gz
conf-56c78f907d4ae9ebb34eb17f8fc2c50156604b9b.zip
for snippet should default to starting at 0
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 9ac3ba4..fb407c9 100644
--- a/vim/after/ftplugin/c_snippets.vim
+++ b/vim/after/ftplugin/c_snippets.vim
@@ -62,7 +62,7 @@ exec "Snippet if if (".st.et.") {<CR>".st.et."<CR>}"
exec "Snippet main int main(int argc, char *argv[])<CR>{<CR>".st.et."<CR>return 0;<CR>}"
exec "Snippet Inc #include <".st.et.">"
exec "Snippet inc #include \"".st.et.".h\""
-exec "Snippet for for (".st."int".et." ".st."i".et." = ".st.et."; ".st."i".et." < ".st."count".et."; ".st."i".et." += ".st."incr:PlusPlus()".et.") {<CR>".st.et."<CR>}"
+exec "Snippet for for (".st."int".et." ".st."i".et." = ".st."0".et."; ".st."i".et." < ".st."count".et."; ".st."i".et." += ".st."incr:PlusPlus()".et.") {<CR>".st.et."<CR>}"
exec "Snippet forv for (vector<".st."int".et.">::const_iterator ".st."it".et." = ".st."v".et.".begin(); ".st."it".et." != ".st."v".et.".end(); ++".st."it".et.") {<CR>".st.et."<CR>}"
exec "Snippet form for (map<".st."string".et.", ".st."int".et.">::const_iterator ".st."it".et." = ".st."v".et.".begin(); ".st."it".et." != ".st."v".et.".end(); ++".st."it".et.") {<CR>".st.et."<CR>}"
exec "Snippet while while (".st.et.") {<CR>".st.et."<CR>}"