My .vimrc
Using the vim plug framework for maintaining plugins etc. Never count on your local install to have your color-scheme, so I added the molokai plugin for that.
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
autocmd TerminalOpen * set nonu
let g:ale_fix_on_save = 1
let g:ale_completion_autoimport = 1
let g:ale_completion_enabled = 1
let g:ale_fixers = {
\ 'javascript': ['prettier'],
\ 'typescript': ['prettier'],
\ 'typescriptreact': ['prettier'],
\ 'javascriptreact': ['prettier'],
\ 'css': ['prettier']
\}
let g:ale_linters = {
\ 'javascript': ['prettier_eslint'],
\ 'typescript': ['prettier_eslint']
\}
call plug#begin('~/.vim/plugged')
Plug 'leafgarland/typescript-vim'
Plug 'peitalin/vim-jsx-typescript'
Plug 'cakebaker/scss-syntax.vim'
Plug 'airblade/vim-gitgutter'
Plug 'tpope/vim-sensible'
Plug 'dense-analysis/ale'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'tomasr/molokai'
call plug#end()
set noundofile
set nocompatible
source $VIMRUNTIME/vimrc_example.vim
set number
set tabstop=2
set shiftwidth=2
set expandtab
set ff=unix
set nowritebackup
set nobackup
set backupdir=/tmp//
set directory=/tmp//
set undodir=/tmp//
set vb
set background=dark
let g:airline_theme = 'bubblegum'
colorscheme molokai