Created
January 15, 2014 00:44
-
-
Save azhawkes/8428830 to your computer and use it in GitHub Desktop.
Finally decided to fix my .vimrc and other configs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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