Skip to content

Instantly share code, notes, and snippets.

@pwaller
Created December 10, 2014 13:48
Show Gist options
  • Select an option

  • Save pwaller/66d906976e059f41233e to your computer and use it in GitHub Desktop.

Select an option

Save pwaller/66d906976e059f41233e to your computer and use it in GitHub Desktop.
set nu
filetype off
filetype plugin indent off
set runtimepath+=~/.local/vim-golang
filetype plugin indent on
syntax on
set smartindent
set tabstop=4
set shiftwidth=4
set expandtab
inoremap # #
if exists('+colorcolumn')
set colorcolumn=80
else
au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1)
endif
syntax on
filetype plugin indent on
autocmd BufWritePre *.py :%s/\s\+$//e
autocmd Filetype html,php setlocal ts=2 sts=2 sw=2
autocmd Filetype javascript setlocal ts=2 sts=2 sw=2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment