Created
April 26, 2013 07:31
-
-
Save rottenbytes/5465544 to your computer and use it in GitHub Desktop.
vimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Bundle 'tpope/vim-fugitive' | |
Bundle 'altercation/vim-colors-solarized' | |
Bundle 'scrooloose/syntastic' | |
Bundle 'spectator/openssl.vim' | |
syn on | |
set expandtab | |
set shiftwidth=2 | |
set softtabstop=2 | |
set autoindent | |
set foldmethod=syntax | |
set foldlevelstart=20 | |
" because I'm a dumbass | |
highlight ExtraWhitespace ctermbg=red guibg=red | |
match ExtraWhitespace /\s+$/ | |
set list listchars=tab:»·,trail:· | |
" Use F2 to 'set paste on' and off while in insert mode | |
nnoremap <F2> :set invpaste paste?<CR> | |
set pastetoggle=<F2> | |
set showmode | |
" shortcuts for tabs | |
map <c-pageup> gT | |
map <c-pagedown> gt | |
" fold me | |
nnoremap <space> za | |
" move in windows | |
nmap <silent> <A-Up> :wincmd k<CR> | |
nmap <silent> <A-Down> :wincmd j<CR> | |
nmap <silent> <A-Left> :wincmd h<CR> | |
nmap <silent> <A-Right> :wincmd l<CR> | |
" some shortcuts | |
map <c-o> <ESC>:tabedit | |
map <c-k> <ESC>d$<CR> | |
map <c-w> <ESC>:q | |
map <c-x> <ESC>:w<CR> | |
map <c-n> <ESC>:tabnew<CR> | |
function! ChefUpload() | |
:let g:chef_action = "upload" | |
:rubyfile ~/.vim/chef.rb | |
endfunction | |
function! ChefTest() | |
:let g:chef_action = "test" | |
:rubyfile ~/.vim/chef.rb | |
endfunction | |
map <c-t> :call ChefTest()<CR> | |
map <c-u> :call ChefUpload()<CR> | |
set laststatus=2 | |
set statusline=[%l,%c]\ [%m%t\ (%y)]%=\ %{fugitive#statusline()} | |
let g:solarized_termcolors=256 | |
colorscheme solarized | |
set background=light | |
highlight SpecialKey ctermbg=red ctermfg=red |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment