-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.skel.vim
38 lines (34 loc) · 838 Bytes
/
.skel.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
"Dynamic Variables
let owen = "Owen Davies"
let name = "Marco Sirabella"
let nVars = {
\"appname" : "pymessage",
\"author" : name . ", " . owen,
\"copyright" : "",
\"credits" : name . ", " . owen,
\"license" : "new BSD 3-Clause",
\"version" : "0.0.3",
\"maintainers" : name . ", " . owen,
\"email" : '[email protected], [email protected]',
\"status" : "Prototype",
\"module" : ""}
let uVars = copy(nVars)
unlet uVars.credits
unlet uVars.author
"unlet dVars.credits
unlet uVars.maintainers
"__smail__ =il.com"
"__email__
"\"credits" : credlist,
augroup Skeletons
autocmd BufNewFile,BufRead *.py call g:VarLoop(uVars)
autocmd BufNewFile *.py call g:VarLoop(nVars)
augroup END
fun g:VarLoop(list)
try
for var in keys(a:list)
call PythonMetaUpdate(var, a:list[var])
endfor
catch
endtry
endfunction