dotfiles/vimrc

73 lines
1.7 KiB
VimL
Raw Normal View History

2015-04-17 00:28:57 +00:00
""""""""Setup env""""""""
set t_Co=256
syntax enable
set background=dark
colorscheme Tomorrow-Night-Eighties
set nu
set laststatus=2
"Auto indent
filetype indent on
set autoindent
"Tab
set tabstop=2 shiftwidth=0 expandtab
set pastetoggle=<F2>
let mapleader = ","
set hlsearch
"Line wrapping
set wrap
set linebreak
set nolist
set nocompatible " be iMproved, required
filetype off " required
""""""""Setup Vundle""""""""
" 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'
""""""""Plugins""""""""
Plugin 'tpope/vim-fugitive'
Plugin 'airblade/vim-gitgutter'
Plugin 'scrooloose/nerdtree'
Plugin 'bling/vim-airline'
Plugin 'Townk/vim-autoclose'
Plugin 'godlygeek/tabular'
Plugin 'plasticboy/vim-markdown'
2015-04-17 00:28:57 +00:00
Bundle 'mattn/webapi-vim'
Bundle 'mattn/gist-vim'
Bundle 'vim-ruby/vim-ruby'
Bundle 'scrooloose/nerdcommenter'
Bundle 'tpope/vim-surround'
Bundle 'ervandew/supertab'
call vundle#end() " required
filetype plugin indent on " required
set runtimepath^=~/.vim/ctrlp
""""""""Setup Airline""""""""
let g:airline_theme= 'bubblegum'
""""""""Setup GitGutter""""""""
let g:gitgutter_enabled = 1
let g:gitgutter_signs = 1
let g:gitgutter_highlight_lines = 0
""""""""Setup AutoClose""""""""
let g:AutoClosePairs = "() {} \" ` ' []"
""""""""Leader Commands""""""""
nnoremap <leader>n :NERDTreeToggle <CR>
nnoremap <leader>w :w <CR>
nnoremap <leader>i :PluginInstall<CR>
nnoremap <leader>g :Gist<CR>
nnoremap <leader>q :q<CR>
nnoremap <leader>x :x<CR>
nnoremap <leader>r :%s/
let g:ctrlp_map = '<leader>p'
let g:ctrlp_cmd = 'CtrlP'