Skip to content

Instantly share code, notes, and snippets.

@hotchpotch
Created August 20, 2008 03:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hotchpotch/6317 to your computer and use it in GitHub Desktop.
Save hotchpotch/6317 to your computer and use it in GitHub Desktop.
*** jptemplate.vim.orig 2008-08-20 11:08:51.000000000 +0900
--- jptemplate.vim 2008-08-20 11:37:16.000000000 +0900
***************
*** 23,29 ****
" Reserved variable names
! let s:reservedVariables = ['date','shell','interactive_shell']
" Variable value history
let s:rememberedValues = {}
--- 23,29 ----
" Reserved variable names
! let s:reservedVariables = ['date','shell','interactive_shell', 'execute', 'call']
" Variable value history
let s:rememberedValues = {}
***************
*** 184,189 ****
--- 184,197 ----
if !empty (command)
let result = system (command)
endif
+ elseif a:name == 'execute'
+ if !empty (a:value)
+ execute a:value
+ endif
+ elseif a:name == 'call'
+ if !empty (a:value)
+ let result = call (a:value, [], a:variables)
+ endif
endif
return result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment