diff options
author | Jesse Luehrs <doy@tozt.net> | 2009-05-12 10:38:57 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2009-05-12 10:41:15 -0500 |
commit | ef781813119a11855e9e91b0b62c16b01eea3889 (patch) | |
tree | 94a76e11c42aec1048adf1a10bb3feedb07aadf9 /vim/after | |
parent | fddcf4d0ca2250dc0860ff6d6fc2ab4dcfe3d8a7 (diff) | |
download | conf-ef781813119a11855e9e91b0b62c16b01eea3889.tar.gz conf-ef781813119a11855e9e91b0b62c16b01eea3889.zip |
add snippets for iterating over vectors and maps
Diffstat (limited to 'vim/after')
-rw-r--r-- | vim/after/ftplugin/c_snippets.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vim/after/ftplugin/c_snippets.vim b/vim/after/ftplugin/c_snippets.vim index d601a76..9e7b489 100644 --- a/vim/after/ftplugin/c_snippets.vim +++ b/vim/after/ftplugin/c_snippets.vim @@ -63,3 +63,5 @@ exec "Snippet main int main(int argc, char *argv[])<CR>{<CR>".st.et."<CR>return exec "Snippet Inc #include <".st.et."><CR>".st.et exec "Snippet inc #include \"".st.et.".h\"".st.et 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>{<CR>".st.et."<CR>}<CR>".st.et +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>}" |