]> git.madduck.net Git - etc/vim.git/blobdiff - .vim/snippets/cpp.snippets

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Migrate to new snipmate plugin
[etc/vim.git] / .vim / snippets / cpp.snippets
deleted file mode 100644 (file)
index e4850cd207d5ec56cb4b0caaa22f09d4c10dd943..0000000000000000000000000000000000000000
+++ /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 */}
-       };
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..cc78c1dde9ce92e1499820f9d974eb304870b7e7
--- /dev/null
@@ -0,0 +1 @@
+/usr/share/vim/addons/snippets/cpp.snippets
\ No newline at end of file