Skip to content

Instantly share code, notes, and snippets.

@joelgriffith
Created May 19, 2015 21:09
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 joelgriffith/e84fc2e3f6982bc6bc63 to your computer and use it in GitHub Desktop.
Save joelgriffith/e84fc2e3f6982bc6bc63 to your computer and use it in GitHub Desktop.
.vimrc
" Preferences
set number
syntax on
set nocompatible " be iMproved, required
filetype off " required
set tabstop=4
set softtabstop=4
" Set tabs to a > character
set list
set listchars=tab:\›\
" Sytnax Highlighting
set t_Co=256
set background=dark
colorscheme solarized
" Don't highlight special characters such as tabs and whitespace at EOL
highlight SpecialKey ctermbg=None
" Syntactic Settings
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
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Plugin 'walm/jshint.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'pangloss/vim-javascript'
Plugin 'airblade/vim-gitgutter'
Plugin 'kien/ctrlp.vim'
Plugin 'altercation/vim-colors-solarized'
Plugin 'joonty/vdebug.git'
Plugin 'elzr/vim-json'
Plugin 'scrooloose/nerdtree'
Plugin 'scrooloose/syntastic'
Plugin 'mileszs/ack.vim'
Plugin 'suan/vim-instant-markdown'
Plugin 'Valloric/YouCompleteMe'
" all of your plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" Key Mappings
map <C-n> :NERDTreeToggle<CR>
nnoremap <C-Left> :tabprevious<CR>
nnoremap <C-Right> :tabnext<CR>
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
nnoremap <leader>di :set invlist<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment