Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Modify and add templates

renamed
  • Loading branch information...
commit b06e2c4294ecd3d53d17da8efc984f3b5f9a9ad4 1 parent e4ef1e6
@kmnk authored
View
11 vim/dot.vim/templates/vim/base-script.vim
@@ -1,14 +1,23 @@
" File: {{_name_}}.vim
" Author: {{_input_:user-name}} <{{_input_:user-email}}>
" Version: 0.1.0
-" License:
+" License: MIT Licence
let s:save_cpo = &cpo
set cpo&vim
+" variables {{{
+" }}}
+
{{_cursor_}}
+
+
+" local functions {{{
+" }}}
+
+
let &cpo = s:save_cpo
unlet s:save_cpo
" __END__
View
11 vim/dot.vim/templates/vim/snip-context-getter.vim
@@ -0,0 +1,11 @@
+" context getter {{{
+function! s:get_SID()
+ return matchstr(expand('<sfile>'), '<SNR>\d\+_')
+endfunction
+let s:SID = s:get_SID()
+delfunction s:get_SID
+
+function! {{_expr_:substitute(substitute(expand('%:r'), '.*autoload[/]', '', 'g'), '[/]', '#', 'g')}}#__context__()
+ return { 'sid': s:SID, 'scope': s: }
+endfunction
+"}}}
Please sign in to comment.
Something went wrong with that request. Please try again.