Adding template files and configuring template plugin.
This commit is contained in:
@@ -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
10
templates/_.py
Normal 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()
|
||||||
Reference in New Issue
Block a user