Skip to content

Instantly share code, notes, and snippets.

@christianscott
Created July 9, 2019 15:57
Show Gist options
  • Save christianscott/ab7f8b6f23953adea8b5a6987803e264 to your computer and use it in GitHub Desktop.
Save christianscott/ab7f8b6f23953adea8b5a6987803e264 to your computer and use it in GitHub Desktop.
Minimal .vimrc
" plugins
call plug#begin('~/.vim/plugged')
Plug 'pangloss/vim-javascript'
Plug 'mxw/vim-jsx'
Plug 'leafgarland/typescript-vim'
Plug '/usr/local/opt/fzf'
Plug 'junegunn/fzf.vim'
call plug#end()
" basic
filetype plugin on
filetype indent on
set autoread
set backspace=eol,start,indent
set noerrorbells
set novisualbell
set t_vb=
set tm=500
" colors
syntax enable
set background=light
colorscheme delek
" text
set encoding=utf8
set ffs=unix,dos,mac
" swapfiles
set nobackup
set nowb
set noswapfile
" indentation
set expandtab
set smarttab
set shiftwidth=2
set tabstop=2
set lbr
set tw=500
set ai " Auto indent
set si " Smart indent
set wrap " Wrap lines
" status line
set laststatus=2
set statusline=\ %F%m%r%h\ %w\ \ CWD:\ %r%{getcwd()}%h\ \ \ Line:\ %l\ \ Column:\ %c
" bindings
"
nnoremap <C-p> :FZF<CR>
nnoremap ; :Buffers<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment