vim-snippets/snippets/javascript/javascript.es6.snippets
Luiz Gonzaga dos Santos Filho fc9195c9ce Add simpler arrow function snippet
Not only `af` is 1 less keystroke, and the keys are very close (home row of the keyboard). `=` + `shift` + `.` (`=>`) are too far away from each other and takes too long to type :)
2015-12-12 16:31:10 -02:00

27 lines
329 B
Plaintext

snippet const
const ${0} = ${1};
snippet let
let ${0} = ${1};
snippet im
import ${0} from '${1}';
snippet cla
class ${0} {
${1}
}
snippet clax
class ${0} extends ${1} {
${2}
}
snippet =>
(${0}) => {
${1}
}
snippet af
(${0}) => {
${1}
}
snippet sym
const ${0} = Symbol('${1}');
snippet ed
export default ${0}