1
0
mirror of https://github.com/amix/vimrc synced 2025-06-29 02:55:01 +08:00

Updated all the plugins. Removed powerline. Added vim-airline (replacement for powerline). Added vim-fugitive.

This commit is contained in:
amix
2013-11-16 19:45:48 +00:00
parent 351979d3e0
commit 86f4456be1
239 changed files with 14942 additions and 8068 deletions

View File

@ -2,94 +2,94 @@
snippet forindo
for ${1:name} in ${2:array}
do ($1) ->
${3:// body}
${0:// body}
# Array comprehension
snippet fora
for ${1:name} in ${2:array}
${3:# body...}
${0:# body...}
# Object comprehension
snippet foro
for ${1:key}, ${2:value} of ${3:object}
${4:# body...}
${0:# body...}
# Range comprehension (inclusive)
snippet forr
for ${1:name} in [${2:start}..${3:finish}]
${4:# body...}
${0:# body...}
snippet forrb
for ${1:name} in [${2:start}..${3:finish}] by ${4:step}
${5:# body...}
${0:# body...}
# Range comprehension (exclusive)
snippet forrex
for ${1:name} in [${2:start}...${3:finish}]
${4:# body...}
${0:# body...}
snippet forrexb
for ${1:name} in [${2:start}...${3:finish}] by ${4:step}
${5:# body...}
${0:# body...}
# Function
snippet fun
(${1:args}) ->
${2:# body...}
${0:# body...}
# Function (bound)
snippet bfun
(${1:args}) =>
${2:# body...}
${0:# body...}
# Class
snippet cla class ..
class ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`}
${2}
${0}
snippet cla class .. constructor: ..
class ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`}
constructor: (${2:args}) ->
${3}
${4}
${0}
snippet cla class .. extends ..
class ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} extends ${2:ParentClass}
${3}
${0}
snippet cla class .. extends .. constructor: ..
class ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} extends ${2:ParentClass}
constructor: (${3:args}) ->
${4}
${5}
${0}
# If
snippet if
if ${1:condition}
${2:# body...}
${0:# body...}
# If __ Else
snippet ife
if ${1:condition}
${2:# body...}
else
${3:# body...}
${0:# body...}
# Else if
snippet eif
else if ${1:condition}
${2:# body...}
${0:# body...}
# Ternary If
snippet ifte
if ${1:condition} then ${2:value} else ${3:other}
if ${1:condition} then ${2:value} else ${0:other}
# Unless
snippet unl
${1:action} unless ${2:condition}
${1:action} unless ${0:condition}
# Switch
snippet swi
switch ${1:object}
when ${2:value}
${3:# body...}
${0:# body...}
# Log
snippet log
console.log ${1}
console.log ${0}
# Try __ Catch
snippet try
try
${1}
catch ${2:error}
${3}
${0}
# Require
snippet req
${2:$1} = require '${1:sys}'${3}
${2:$1} = require '${1:sys}'
# Export
snippet exp
${1:root} = exports ? this
${0:root} = exports ? this