Skip to content

Instantly share code, notes, and snippets.

@coreymcmahon
Last active December 22, 2021 03:58
Show Gist options
  • Save coreymcmahon/0ccfae28185dbe59f91a34ec60500459 to your computer and use it in GitHub Desktop.
Save coreymcmahon/0ccfae28185dbe59f91a34ec60500459 to your computer and use it in GitHub Desktop.
Set up Vim for JS, TS, etc.
# Install vim-plug
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# ... add vim-plug to vimrc
call plug#begin()
Plug 'tpope/vim-sensible'
" On-demand loading
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'pangloss/vim-javascript'
Plug 'leafgarland/typescript-vim'
Plug 'editorconfig/editorconfig-vim'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
call plug#end()
let g:typescript_compiler_binary = 'tsc'
let g:typescript_compiler_options = ''
autocmd QuickFixCmdPost [^l]* nested cwindow
autocmd QuickFixCmdPost l* nested lwindow
let g:netrw_banner = 0
"# // (ignore)
# Run :PlugInstall to install listed plugins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment