From b5afaa33634418d2d5dec8b0ee6e17664c670fe6 Mon Sep 17 00:00:00 2001 From: ujihisa Date: Mon, 15 Oct 2012 23:05:24 -0700 Subject: [PATCH] Improved C++ snip --- autoload/neosnippet/snippets/cpp.snip | 10 ++++++++++ doc/neosnippet.txt | 1 + 2 files changed, 11 insertions(+) diff --git a/autoload/neosnippet/snippets/cpp.snip b/autoload/neosnippet/snippets/cpp.snip index 3f18292..53d8256 100644 --- a/autoload/neosnippet/snippets/cpp.snip +++ b/autoload/neosnippet/snippets/cpp.snip @@ -63,3 +63,13 @@ abbr const_cast<>() snippet dynamic_cast abbr dynamic_cast<>() dynamic_cast<${1}>(${2})${0} + +snippet helloworld +abbr #include\nint main... + #include + int main(int argc, char const* argv[]) + { + using namespace std; + cout << "hello, world!" << endl; + return 0; + } diff --git a/doc/neosnippet.txt b/doc/neosnippet.txt index 55add93..f2d0adb 100644 --- a/doc/neosnippet.txt +++ b/doc/neosnippet.txt @@ -411,6 +411,7 @@ CHANGELOG *neosnippet-changelog* 2012-10-15 - Improved lua snip. +- Improved c++ snip. 2012-10-07 - Improved vim snip.