Skip to content

Instantly share code, notes, and snippets.

@azhawkes
Created January 15, 2014 00:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azhawkes/8428830 to your computer and use it in GitHub Desktop.
Save azhawkes/8428830 to your computer and use it in GitHub Desktop.
Finally decided to fix my .vimrc and other configs
" Vundle package manager
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" Vundle packages
Bundle 'gmarik/vundle'
Bundle 'maksimr/vim-jsbeautify'
Bundle 'einars/js-beautify'
Bundle 'lepture/vim-css'
Bundle 'othree/html5.vim'
" More Vundle config
filetype plugin indent on
" JsBeautify
autocmd FileType javascript noremap <buffer> <c-f> :call JsBeautify()<cr>
autocmd FileType html noremap <buffer> <c-f> :call HtmlBeautify()<cr>
autocmd FileType css noremap <buffer> <c-f> :call CSSBeautify()<cr>
" General settings
syntax on
set smartindent
" Generic tab settings
set expandtab
set smarttab
set shiftwidth=4
set tabstop=4
" Linebreak on 500 characters
set lbr
set tw=500
" Indentation
set ai
set si
set wrap
" Specific for file types
au FileType html setl sw=2 sts=2 et
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment