Skip to content

Instantly share code, notes, and snippets.

@bryceml
Created October 2, 2017 14:48
Show Gist options
  • Save bryceml/dc3d3dfa25ac4df6fc04db9892b4bea1 to your computer and use it in GitHub Desktop.
Save bryceml/dc3d3dfa25ac4df6fc04db9892b4bea1 to your computer and use it in GitHub Desktop.
Vimrc
map q :q<CR>
"cmap w!! w !sudo tee %
cmap wr set tw=79
cmap nwr set tw=0
cmap np set list!
"cmap sp set spell spelllang=en_us
"set autoindent
set pastetoggle=<F2>
set expandtab
"set shiftwidth=4
"set softtabstop=4
set softtabstop=2
"set mouse=""
set listchars=tab:▶·,trail:❚,extends:>,precedes:<
"set listchars=eol:¬,tab:>·,trail:~,extends:>,precedes:<,space:␣
set list
au BufNewFile,BufRead *.sls set filetype=yaml
autocmd FileType mail setlocal spell spelllang=en_us
autocmd BufRead COMMIT_EDITMSG setlocal spell spelllang=en_us
autocmd BufNewFile,BufRead *.md,*.mkd,*.markdown,*.txt set spell spelllang=en_us
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment