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

View File

@@ -1,4 +1,12 @@
" Setup templates.
"
let g:git_root=system("git rev-parse --show-toplevel | tr -d '\\n'")
let g:templates_no_autocmd = 0
let g:templates_directory=[ g:git_root . '/templates' ]
let g:templates_global_name_prefix='_'
let g:templates_debug=1
let s:vimrc=expand('<sfile>:p:r') let s:vimrc=expand('<sfile>:p:r')
let s:host=hostname() let s:host=hostname()

10
templates/_.py Normal file
View File

@@ -0,0 +1,10 @@
#VIM: let b:lcppflags="-std=c++11 -O2 -pthread"
#import
def myfunction():
#some code here
print( "kuku" )
if __name__ == "__main__":
myfunction()