Last active
October 19, 2018 12:24
-
-
Save lazevedo/f0a868fded4820e4578e4d85235b51a7 to your computer and use it in GitHub Desktop.
vimrc
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 Required Config | |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required | |
Plugin 'VundleVim/Vundle.vim' | |
" The following are examples of different formats supported. | |
" Keep Plugin commands between vundle#begin/end. | |
" plugin on GitHub repo | |
Plugin 'tpope/vim-fugitive' | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
filetype plugin indent on " required | |
" Vim config | |
set nu | |
syntax on | |
set colorcolumn=81 | |
autocmd BufEnter *.erb :setlocal filetype=html | |
filetype plugin indent on | |
set sw=5 | |
set ts=5 | |
:autocmd Filetype ruby set tabstop=3 | |
:autocmd Filetype ruby set softtabstop=1 | |
:autocmd Filetype ruby set expandtab | |
:autocmd Filetype ruby set sw=3 | |
:autocmd Filetype ruby set smarttab | |
:autocmd Filetype javascript set softtabstop=3 | |
:autocmd Filetype javascript set sw=3 | |
:autocmd Filetype javascript set ts=3 | |
:autocmd Filetype html set softtabstop=3 | |
:autocmd Filetype html set sw=3 | |
:autocmd Filetype html set ts=3 | |
" remove trailing spaces for .rb files | |
:autocmd FileType ruby autocmd BufWritePre <buffer> %s/\s\+$//e |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment