Skip to content

Instantly share code, notes, and snippets.

@mikedewar
Created February 11, 2016 11:24
Show Gist options
  • Save mikedewar/c7cd2ab1834c6a244bcb to your computer and use it in GitHub Desktop.
Save mikedewar/c7cd2ab1834c6a244bcb to your computer and use it in GitHub Desktop.
my vimrc as of Feb 11 2016
execute pathogen#infect()
syntax on
filetype plugin indent on
syntax enable
colorscheme monokai
" indents
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
" backspace
set backspace=indent,eol,start
" go stuff
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_structs = 1
let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1
let g:go_fmt_command = "goimports"
" parenthesese stuff
let g:rbpt_colorpairs = [
\ ['brown', 'RoyalBlue3'],
\ ['Darkblue', 'SeaGreen3'],
\ ['darkgray', 'DarkOrchid3'],
\ ['darkgreen', 'firebrick3'],
\ ['darkcyan', 'RoyalBlue3'],
\ ['darkred', 'SeaGreen3'],
\ ['darkmagenta', 'DarkOrchid3'],
\ ['brown', 'firebrick3'],
\ ['darkmagenta', 'DarkOrchid3'],
\ ['Darkblue', 'firebrick3'],
\ ['darkgreen', 'RoyalBlue3'],
\ ['darkcyan', 'SeaGreen3'],
\ ['darkred', 'DarkOrchid3'],
\ ['red', 'firebrick3'],
\ ]
au VimEnter * RainbowParenthesesToggle
au Syntax * RainbowParenthesesLoadRound
au Syntax * RainbowParenthesesLoadSquare
au Syntax * RainbowParenthesesLoadBraces
" jsbeautify
autocmd BufWritePre *.js call JsBeautify()
autocmd BufWritePre *.html call HtmlBeautify()
autocmd BufWritePre *.css call CSSBeautify()
" markdown
autocmd BufNewFile,BufRead,BufWritePre *.txt,*.mkd setlocal formatoptions=ant textwidth=68 wrapmargin=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment