aboutsummaryrefslogtreecommitdiff
path: root/modules/vim/vim.dot.link/snippets/javascript.snippets
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-12-27 15:36:29 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-12-27 15:36:29 -0200
commite573a7090239d4b5cdc0e2e1053433f6341fdba2 (patch)
treee53f5164bb3c37dcf8d2959e06b6e2b722170af0 /modules/vim/vim.dot.link/snippets/javascript.snippets
parentadce46f27ce9cd659581153ed7264dbabdc06c19 (diff)
downloaddotfiles-e573a7090239d4b5cdc0e2e1053433f6341fdba2.tar.gz
dotfiles-e573a7090239d4b5cdc0e2e1053433f6341fdba2.tar.bz2
Removing vim to convert it to a submodule
Diffstat (limited to 'modules/vim/vim.dot.link/snippets/javascript.snippets')
-rw-r--r--modules/vim/vim.dot.link/snippets/javascript.snippets74
1 files changed, 0 insertions, 74 deletions
diff --git a/modules/vim/vim.dot.link/snippets/javascript.snippets b/modules/vim/vim.dot.link/snippets/javascript.snippets
deleted file mode 100644
index 51f5e05..0000000
--- a/modules/vim/vim.dot.link/snippets/javascript.snippets
+++ /dev/null
@@ -1,74 +0,0 @@
-# Prototype
-snippet proto
- ${1:class_name}.prototype.${2:method_name} =
- function(${3:first_argument}) {
- ${4:// body...}
- };
-# Function
-snippet fun
- function ${1:function_name} (${2:argument}) {
- ${3:// body...}
- }
-# Anonymous Function
-snippet f
- function(${1}) {${2}};
-# if
-snippet if
- if (${1:true}) {${2}};
-# if ... else
-snippet ife
- if (${1:true}) {${2}}
- else{${3}};
-# tertiary conditional
-snippet t
- ${1:/* condition */} ? ${2:a} : ${3:b}
-# switch
-snippet switch
- switch(${1:expression}) {
- case '${3:case}':
- ${4:// code}
- break;
- ${5}
- default:
- ${2:// code}
- }
-# case
-snippet case
- case '${1:case}':
- ${2:// code}
- break;
- ${3}
-# for (...) {...}
-snippet for
- for (var ${2:i} = 0; $2 < ${1:Things}.length; $2${3:++}) {
- ${4:$1[$2]}
- };
-# for (...) {...} (Improved Native For-Loop)
-snippet forr
- for (var ${2:i} = ${1:Things}.length - 1; $2 >= 0; $2${3:--}) {
- ${4:$1[$2]}
- };
-# while (...) {...}
-snippet wh
- while (${1:/* condition */}) {
- ${2:/* code */}
- }
-# do...while
-snippet do
- do {
- ${2:/* code */}
- } while (${1:/* condition */});
-# Object Method
-snippet :f
- ${1:method_name}: function(${2:attribute}) {
- ${4}
- }${3:,}
-# setTimeout function
-snippet timeout
- setTimeout(function() {${3}}${2}, ${1:10};
-# Get Elements
-snippet get
- getElementsBy${1:TagName}('${2}')${3}
-# Get Element
-snippet gett
- getElementBy${1:Id}('${2}')${3}