Some checks failed
Detach Plugins / check (FlyGrep.vim) (push) Has been cancelled
Detach Plugins / check (GitHub.vim) (push) Has been cancelled
Detach Plugins / check (JavaUnit.vim) (push) Has been cancelled
Detach Plugins / check (SourceCounter.vim) (push) Has been cancelled
Detach Plugins / check (cpicker.nvim) (push) Has been cancelled
Detach Plugins / check (dein-ui.vim) (push) Has been cancelled
Detach Plugins / check (git.vim) (push) Has been cancelled
Detach Plugins / check (iedit.vim) (push) Has been cancelled
Detach Plugins / check (scrollbar.vim) (push) Has been cancelled
Detach Plugins / check (vim-chat) (push) Has been cancelled
Detach Plugins / check (vim-cheat) (push) Has been cancelled
Detach Plugins / check (vim-todo) (push) Has been cancelled
Detach Plugins / check (xmake.vim) (push) Has been cancelled
test / Linux (nvim, nightly) (push) Has been cancelled
test / Linux (nvim, v0.3.8) (push) Has been cancelled
test / Linux (nvim, v0.4.0) (push) Has been cancelled
test / Linux (nvim, v0.4.2) (push) Has been cancelled
test / Linux (nvim, v0.4.3) (push) Has been cancelled
test / Linux (nvim, v0.4.4) (push) Has been cancelled
test / Linux (nvim, v0.5.0) (push) Has been cancelled
test / Linux (nvim, v0.5.1) (push) Has been cancelled
test / Linux (nvim, v0.6.0) (push) Has been cancelled
test / Linux (nvim, v0.6.1) (push) Has been cancelled
test / Linux (nvim, v0.7.0) (push) Has been cancelled
test / Linux (nvim, v0.7.2) (push) Has been cancelled
test / Linux (nvim, v0.8.0) (push) Has been cancelled
test / Linux (nvim, v0.8.1) (push) Has been cancelled
test / Linux (nvim, v0.8.2) (push) Has been cancelled
test / Linux (nvim, v0.8.3) (push) Has been cancelled
test / Linux (nvim, v0.9.0) (push) Has been cancelled
test / Linux (nvim, v0.9.1) (push) Has been cancelled
test / Linux (true, vim, v7.4.052) (push) Has been cancelled
test / Linux (true, vim, v7.4.1689) (push) Has been cancelled
test / Linux (true, vim, v7.4.629) (push) Has been cancelled
test / Linux (true, vim, v8.0.0027) (push) Has been cancelled
test / Linux (true, vim, v8.0.0183) (push) Has been cancelled
test / Linux (vim, nightly) (push) Has been cancelled
test / Linux (vim, v8.0.0184) (push) Has been cancelled
test / Linux (vim, v8.0.1453) (push) Has been cancelled
test / Linux (vim, v8.1.2269) (push) Has been cancelled
test / Linux (vim, v8.2.2434) (push) Has been cancelled
test / Linux (vim, v8.2.3995) (push) Has been cancelled
test / Windows (nvim, nightly) (push) Has been cancelled
test / Windows (nvim, v0.3.8) (push) Has been cancelled
test / Windows (nvim, v0.4.2) (push) Has been cancelled
test / Windows (nvim, v0.4.3) (push) Has been cancelled
test / Windows (nvim, v0.4.4) (push) Has been cancelled
test / Windows (nvim, v0.5.0) (push) Has been cancelled
test / Windows (nvim, v0.5.1) (push) Has been cancelled
test / Windows (nvim, v0.6.0) (push) Has been cancelled
test / Windows (nvim, v0.6.1) (push) Has been cancelled
test / Windows (nvim, v0.7.0) (push) Has been cancelled
test / Windows (nvim, v0.7.2) (push) Has been cancelled
test / Windows (nvim, v0.8.0) (push) Has been cancelled
test / Windows (nvim, v0.8.1) (push) Has been cancelled
test / Windows (nvim, v0.8.2) (push) Has been cancelled
test / Windows (nvim, v0.8.3) (push) Has been cancelled
test / Windows (nvim, v0.9.0) (push) Has been cancelled
test / Windows (nvim, v0.9.1) (push) Has been cancelled
test / Windows (vim, nightly) (push) Has been cancelled
test / Windows (vim, v7.4.1185) (push) Has been cancelled
test / Windows (vim, v7.4.1689) (push) Has been cancelled
test / Windows (vim, v8.0.0027) (push) Has been cancelled
test / Windows (vim, v8.0.1453) (push) Has been cancelled
test / Windows (vim, v8.1.2269) (push) Has been cancelled
test / Windows (vim, v8.2.2434) (push) Has been cancelled
test / Windows (vim, v8.2.3995) (push) Has been cancelled
docker / docker (push) Has been cancelled
mirror / check (coding) (push) Has been cancelled
mirror / check (gitee) (push) Has been cancelled
mirror / check (gitlab) (push) Has been cancelled
107 lines
2.1 KiB
Plaintext
107 lines
2.1 KiB
Plaintext
include c.snip
|
|
|
|
# #include <...>
|
|
snippet inc
|
|
options head
|
|
alias #inc, #include
|
|
#include <${1:iostream}>${0}
|
|
# #include "..."
|
|
snippet inc2
|
|
options head
|
|
alias #inc2, #include2
|
|
#include "${1}"${0}
|
|
|
|
snippet template
|
|
abbr template <T>
|
|
template<typename ${1:T}> ${0}
|
|
|
|
snippet class
|
|
options head
|
|
abbr class {}
|
|
class ${1:#:name} {
|
|
${2}
|
|
public:
|
|
$1(${3});
|
|
};
|
|
$1::$1($3) {
|
|
${0:TARGET}
|
|
}
|
|
|
|
snippet class-without-constructor
|
|
options head
|
|
abbr class {}
|
|
class ${1:#:name} {
|
|
${2}
|
|
};
|
|
|
|
snippet try
|
|
options head
|
|
abbr try catch
|
|
try {
|
|
${1:#:TARGET}
|
|
} catch (${2:...}) {
|
|
${3}
|
|
}
|
|
|
|
# range based for ( C++11 feature )
|
|
snippet for_CPP11
|
|
options head
|
|
abbr for (:) {}
|
|
for (${1:auto&& }${2:var} : ${3:container}) {
|
|
${0:TARGET}
|
|
}
|
|
|
|
# lambda expression ( C++11 feature )
|
|
snippet lambda
|
|
abbr [](){}
|
|
[${1}](${2})${3}{ ${4:TARGET} }${0:;}
|
|
|
|
# scoped enumeration ( C++11 feature )
|
|
snippet enum_scoped
|
|
options head
|
|
abbr enum struct {};
|
|
enum struct ${1:#:name} { ${2:#:TARGET} };
|
|
|
|
# static assert ( C++11 feature )
|
|
snippet static_assert
|
|
abbr static_assert(,"")
|
|
static_assert( ${1}, "${2}" );${0}
|
|
|
|
delete namespace
|
|
options head
|
|
snippet namespace
|
|
abbr namespace {}
|
|
namespace ${1:#:name} {
|
|
${0:TARGET}
|
|
} // namespace $1
|
|
|
|
snippet static_cast
|
|
abbr static_cast<>()
|
|
static_cast<${1}>(${2})${0}
|
|
|
|
snippet reinterpret_cast
|
|
abbr reinterpret_cast<>()
|
|
reinterpret_cast<${1}>(${2})${0}
|
|
|
|
snippet const_cast
|
|
abbr const_cast<>()
|
|
const_cast<${1}>(${2})${0}
|
|
|
|
snippet dynamic_cast
|
|
abbr dynamic_cast<>()
|
|
dynamic_cast<${1}>(${2})${0}
|
|
|
|
snippet helloworld
|
|
abbr #include<iostream> int main...
|
|
#include <iostream>
|
|
|
|
int main(int argc, char const* argv[])
|
|
{
|
|
std::cout << "hello, world!" << std::endl;
|
|
return 0;
|
|
}
|
|
|
|
snippet p
|
|
options head
|
|
std::cout << ${0:TARGET} << std::endl;
|