Adding template files and configuring template plugin.

This commit is contained in:
2017-05-27 11:01:31 +01:00
parent 951f9f63c7
commit 0e74f81be0
3 changed files with 18 additions and 0 deletions

29
templates/_.cpp Normal file
View File

@@ -0,0 +1,29 @@
/* Check cf5-opt.vim defs.
VIM: let b:lcppflags="-std=c++11 -O2 -pthread"
VIM: let b:wcppflags="/O2 /EHsc /DWIN32"
VIM: let b:cppflags=g:Iboost.g:Itbb
VIM: let b:ldflags=g:Lboost.g:Ltbb.g:tbbmalloc.g:tbbmproxy
VIM: let b:ldlibpath=g:Bboost.g:Btbb
VIM: let b:argv=""
*/
#include <iostream>
#include <exception>
int main ( void )
{try{
return 0;
}
catch ( const std::exception& e )
{
std::cerr << std::endl
<< "std::exception(\"" << e.what() << "\")." << std::endl;
return 2;
}
catch ( ... )
{
std::cerr << std::endl
<< "unknown exception." << std::endl;
return 1;
}}