1
0
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:
Michael Sanders
2009-03-01 19:24:43 -05:00
parent dd8b39a9b5
commit a8109fa38f
14 changed files with 18 additions and 52 deletions

View File

@@ -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