mirror of
https://github.com/gryf/snipmate.vim.git
synced 2025-12-24 07:02:27 +01:00
fixed objc/cpp command-based snippets
This commit is contained in:
@@ -2,8 +2,7 @@ if !exists('loaded_snips') || exists('s:did_js_snips')
|
||||
fini
|
||||
en
|
||||
let s:did_js_snips = 1
|
||||
let ft = &ft
|
||||
let &ft ='javascript'
|
||||
let snippet_filetype = 'javascript'
|
||||
|
||||
" Prototype
|
||||
exe "Snipp proto ${1:class_name}.prototype.${2:method_name} =\nfunction(${3:first_argument}) {\n\t${4:// body...}\n};"
|
||||
@@ -37,5 +36,3 @@ exe 'Snipp timeout setTimeout(function() {${3}}${2}, ${1:10};'
|
||||
exe "Snipp get getElementsBy${1:TagName}('${2}')${3}"
|
||||
" Get Element
|
||||
exe "Snipp gett getElementBy${1:Id}('${2}')${3}"
|
||||
|
||||
let &ft = ft
|
||||
|
||||
Reference in New Issue
Block a user