Skip to content

Instantly share code, notes, and snippets.

@jeepkd
Last active August 29, 2015 14:16
Show Gist options
  • Save jeepkd/55908592c403aa42c318 to your computer and use it in GitHub Desktop.
Save jeepkd/55908592c403aa42c318 to your computer and use it in GitHub Desktop.
Jeep's .vimrc
set shell=/bin/bash
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()
Plugin 'gmarik/Vundle.vim' " required
Plugin 'bling/vim-airline'
Plugin 'tpope/vim-rails'
Plugin 'tomasr/molokai'
Plugin 'tpope/vim-fugitive'
Plugin 'airblade/vim-gitgutter'
Plugin 'scrooloose/nerdcommenter'
Plugin 'tpope/vim-surround'
Plugin 'kien/ctrlp.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'vim-scripts/AutoClose'
Plugin 'scrooloose/syntastic'
Plugin 'Lokaltog/vim-easymotion'
Plugin 'Valloric/YouCompleteMe'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" Use urf8 as standard encoding
set encoding=utf8
" Use syntax higlighter
syntax on
" Use auto indent
filetype indent on
set autoindent
" Decorate the editor
colorscheme molokai
let g:molokai_original = 1
let g:airline_powerline_fonts = 1
" Set to auto read when a file is changed from the outside
set autoread
" No annoying sound
set noerrorbells
set visualbell
set t_vb=
" Set tab space and convert tab to space
set softtabstop=2
set shiftwidth=2
set tabstop=2
set expandtab
" Command autocomplete
set wildmenu
" Search highlight
set showmatch
set incsearch
set hlsearch
" Case insensitive search
set ic
" Command history
set history=700
" Turn backup off, since most stuff is in git anyway
set nobackup
set nowb
set noswapfile"
" Enable mouse
set mouse=a
" Line number
set number
" <Ctrl-l> redraws the screen and removes any search highlighting.
nnoremap <silent> <C-l> :nohl<CR><C-l>
" highlight last inserted text
nnoremap gV `[v`]
" Toggle NERDTree pane
map <C-e> :NERDTreeToggle<CR>
" first, enable status line always
set laststatus=2
" Keep 3 lines below and above the cursor
set scrolloff=3
" Split screen in the righthand
set splitright
" syntastic setting
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment