Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
72 lines (56 sloc) 1.5 KB
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'scrooloose/nerdtree'
Bundle 'skalnik/vim-vroom'
Bundle 'altercation/vim-colors-solarized'
Bundle 'vim-ruby/vim-ruby'
Bundle 'airblade/vim-gitgutter'
Bundle 'ervandew/supertab'
Bundle 'tpope/vim-rails'
Bundle 'scrooloose/syntastic'
Bundle 'vim-scripts/L9'
Bundle 'vim-scripts/FuzzyFinder'
Bundle 'bitc/vim-bad-whitespace'
filetype plugin indent on " required!
let mapleader = ","
map <F2> :NERDTreeToggle<CR>
map <F3> :NERDTreeFind<CR>
map <leader>t :FufFile<CR>
nnoremap <C-Up> gT
nnoremap <C-Down> gt
syntax on
filetype on
filetype indent on
filetype plugin on
set expandtab
set tabstop=2 shiftwidth=2 softtabstop=2
set autoindent
" Split the way I would expect
set splitright
set splitbelow
" Do not use the arrow keys any more
nnoremap <up> <nop>
nnoremap <down> <nop>
nnoremap <left> <nop>
nnoremap <right> <nop>
inoremap <up> <nop>
inoremap <down> <nop>
inoremap <left> <nop>
inoremap <right> <nop>
" Make arrowkey do something usefull, resize the viewports accordingly
nnoremap <Left> :vertical resize +5<CR>
nnoremap <Right> :vertical resize -5<CR>
nnoremap <Up> :resize +5<CR>
nnoremap <Down> :resize -5<CR>
" Save this as root!
cmap w!! w !sudo tee % >/dev/null
" Make it look nice
set number
set background=dark
colorscheme solarized
" Do not back up files in the local dir
set backupdir=~/.vim/backup//
set directory=~/.vim/swap//