vim and terminal setup

1/30/2016

After wrestling with multiple vim plugins over support for ES6 and JSX, I’ve
finally straightened out my preferred vim setup for working with ES6,
JSX, GLSL, Go, and Markdown. The following setup provides the
NerdTree drawer, allows the NerdTree drawer to be open across tabs, and provides
Airline status bar and tab bar. It has highlighting for JSX, ES6, Go, and GLSL
and on write it automatically formats .go, .js, .html, and .css files (although
it leaves JSX inside .js files alone, tags can be formatted with =). For .md
and .txt files it provides 80-column soft word-wrapping and highlighting for
incorrect spelling. All indents are spaces with a tab width of 4 except in the
case of Go, which is
run through gofmt.

As for my terminal, I prefer iTerm2. I set
⌘← and ⌘→ to previous and next pane. The font I prefer
is 12pt Litereation Mono Powerline. Finally, I use
Spectacle which binds ⌘⌥← and
⌘⌥→ to manipulate the iTerm2 window.