Updated vimrc
This commit is contained in:
1 parent
9a2843c2a5
commit
d7752b59ae
301 files changed
+4699
-7969
No files matched your search
@@ -8,3 +8,15 @@ function! snipmate#util#add_methods(sfile, namespace, methods) abort
|
||||
endfor
|
||||
return dict
|
||||
endfunction
|
||||
|
||||
function! snipmate#util#eval(arg)
|
||||
try
|
||||
let ret = eval(a:arg)
|
||||
catch
|
||||
echohl ErrorMsg
|
||||
echom 'SnipMate:Expression: ' . v:exception
|
||||
echohl None
|
||||
let ret = ''
|
||||
endtry
|
||||
return type(ret) == type('') ? ret : string(ret)
|
||||
endfunction
|
||||
Reference in new issue
Block a user