diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-02-16 14:02:48 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-02-16 14:02:48 -0300 |
commit | fca5489ba6e80ce08f1b1e3bfeb582b916eb1194 (patch) | |
tree | 431732d0101611d066ea84aa30cdc1952d1c077d /vim.dot.link/snippets/cpp.snippets | |
parent | 5e8c17ed00a8df3c12d459fb9d2634b3a28773ed (diff) | |
download | vim-fca5489ba6e80ce08f1b1e3bfeb582b916eb1194.tar.gz vim-fca5489ba6e80ce08f1b1e3bfeb582b916eb1194.tar.bz2 |
Major cleanup
Diffstat (limited to 'vim.dot.link/snippets/cpp.snippets')
-rw-r--r-- | vim.dot.link/snippets/cpp.snippets | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/vim.dot.link/snippets/cpp.snippets b/vim.dot.link/snippets/cpp.snippets deleted file mode 100644 index e4850cd..0000000 --- a/vim.dot.link/snippets/cpp.snippets +++ /dev/null @@ -1,30 +0,0 @@ -# Read File Into Vector -snippet readfile - std::vector<char> v; - if (FILE *${2:fp} = fopen(${1:"filename"}, "r")) { - char buf[1024]; - while (size_t len = fread(buf, 1, sizeof(buf), $2)) - v.insert(v.end(), buf, buf + len); - fclose($2); - }${3} -# std::map -snippet map - std::map<${1:key}, ${2:value}> map${3}; -# std::vector -snippet vector - std::vector<${1:char}> v${2}; -# Namespace -snippet ns - namespace ${1:`Filename('', 'my')`} { - ${2} - } /* $1 */ -# Class -snippet cl - class ${1:`Filename('$1_t', 'name')`} { - public: - $1 (${2:arguments}); - virtual ~$1 (); - - private: - ${3:/* data */} - }; |