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

Updated plugins

This commit is contained in:
amix
2016-12-27 11:46:49 -03:00
parent 04abc6907c
commit a6de243fca
67 changed files with 2836 additions and 1097 deletions

View File

@ -2,8 +2,12 @@ snippet const
const ${1} = ${0};
snippet let
let ${1} = ${0};
snippet im
import ${1} from '${0}';
snippet im "import xyz from 'xyz'"
import ${1} from '${2:$1}';
snippet imas "import * as xyz from 'xyz'"
import * as ${1} from '${2:$1}';
snippet imm "import { member } from 'xyz'"
import { ${1} } from '${2}';
snippet cla
class ${1} {
${0}
@ -18,9 +22,8 @@ snippet clac
${0}
}
}
# For of loop
snippet foro
for (let ${1:prop} of ${2:object}) {
snippet foro "for (const prop of object}) { ... }"
for (const ${1:prop} of ${2:object}) {
${0:$1}
}
# Generator

View File

@ -5,7 +5,7 @@ snippet ex
module.exports = ${1};
# require
snippet re
${1:var} ${2} = require('${3:module_name}');
${1:const} ${2} = require('${3:module_name}');
# EventEmitter
snippet on
on('${1:event_name}', function(${2:stream}) {