For who want to use Vim. but afraid that Vim will slow your daywork.

Everyone heard… Vim is too hard but you know if you just start in the right way. It’s not that hard anymore. And you can use Vim instead of regular editor in a couple hours.

We can reduce this curve in a half. just start only what the starter should


Guide to install EsLint, EsFormatter and scrooloose/syntastic.

EsLint with Airbnb installation.

  1. Download script files above.
  2. run script install_eslint (script is run NPM install -g with sudo).
  3. run script gen_eslintrc.sh PATH (path must be your root project you wanna use EsLint.) run it always you create new project to use EsLint.
  4. Now you can use command line. eslint *.js, And esformatter *.js to test it.
  5. done.

VIM

  1. scrooloose/syntastic https://github.com/scrooloose/syntastic
  2. vim-esformatter (if u run script install_eslint, esformatter installed) https://github.com/millermedeiros/vim-esformatter

Installation with Vundle

Recommend configure for Syntastic

Recommend configure for EsFormatter

Modify configure EsFormatter for match to Airbnb

I found some wrong space when formatting.

Such as Destructuring.

const {firstName, lastName} = user;

Should be has spaces.

const { firstName, lastName } = user;

I fixed…

Theerawit Ob Akesiripong

software developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store