Skip to content

Instantly share code, notes, and snippets.

@fernandofleury
Created February 23, 2016 20:42
Show Gist options
  • Save fernandofleury/2d0df59935fb851bc8b4 to your computer and use it in GitHub Desktop.
Save fernandofleury/2d0df59935fb851bc8b4 to your computer and use it in GitHub Desktop.
.vimrc
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'mattn/emmet-vim'
Plugin 'editorconfig/editorconfig-vim'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'airblade/vim-gitgutter'
Plugin 'rking/ag.vim'
Plugin 'isRuslan/vim-es6'
Plugin 'cakebaker/scss-syntax.vim'
Plugin 'altercation/vim-colors-solarized'
Plugin 'Raimondi/delimitMate'
Plugin 'plasticboy/vim-markdown'
Plugin 'scrooloose/syntastic'
call vundle#end()
filetype plugin indent on
syntax enable " set syntax on
set encoding=utf-8
set wildmenu " set vim menu
set expandtab
set tabstop=2
set shiftwidth=2
set ruler " show cursor position
set number " show numbers
set hlsearch " set highlight for search
set textwidth=80
set wrapmargin=0
set autoindent " set autoindent
set nobackup " set no backup
set background=light
set ai
set incsearch
set scrolloff=3 " offsets the scroll when possible
set laststatus=2 " always shows the status line
set ignorecase " case-insensitive search
set smartcase " but case-sensitive if contains capital letter
set foldlevelstart=50 " Files open expanded
set foldmethod=indent " Use decent folding
set wildignore+=*/tmp/*,*.so,*.swp,*.zip
let g:airline_powerline_fonts = 1
let g:syntastic_check_on_open=1
let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$'
let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-files -oc --exclude-standard']
autocmd BufNewFile,BufRead *.twig set syntax=html
autocmd BufNewFile,BufRead *.md set ft=markdown
autocmd BufNewFile,BufRead *.css set ft=scss
colorscheme solarized
au FileType markdown set linebreak nolist textwidth=80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment