Created
July 24, 2015 15:33
-
-
Save falonofthetower/c02fadeb251f4ec1c010 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.vim | |
call vundle#rc() | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'tpope/vim-unimpaired' | |
Plugin 'tpope/vim-repeat' | |
Plugin 'flazz/vim-colorschemes' | |
Plugin 'tpope/vim-eunuch' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'tpope/vim-rails' | |
Plugin 'tpope/vim-surround' | |
Plugin 'tpope/vim-speeddating' | |
Plugin 'tpope/vim-sensible' | |
Plugin 'tpope/vim-bundler' | |
Plugin 'tpope/vim-ragtag' | |
Plugin 'tpope/vim-endwise' | |
Plugin 'tpope/vim-commentary' | |
Plugin 'tpope/vim-cucumber' | |
Plugin 'tpope/vim-markdown' | |
Plugin 'tpope/vim-haml' | |
Plugin 'vim-ruby/vim-ruby' | |
Plugin 'jgdavey/vim-blockle' | |
Plugin 'godlygeek/tabular' | |
Plugin 'kchmck/vim-coffee-script' | |
Plugin 'pangloss/vim-javascript' | |
Plugin 'jgdavey/vim-turbux' | |
Plugin 'skalnik/vim-vroom' | |
Plugin 'tpope/vim-vividchalk' | |
Plugin 'jgdavey/vim-railscasts' | |
Plugin 'mileszs/ack.vim' | |
Plugin 'ggreer/the_silver_searcher' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'kien/ctrlp.vim' | |
Plugin 'Lokaltog/vim-easymotion' | |
Plugin 'goldfeld/vim-seek' | |
Plugin 'vim-scripts/ZoomWin' | |
Plugin 'duff/vim-bufonly' | |
Plugin 'nathanaelkane/vim-indent-guides' | |
Plugin 'mattn/gist-vim' | |
Plugin 'mattn/webapi-vim' | |
Plugin 'bling/vim-airline' | |
Bundle 'christoomey/vim-tmux-navigator' | |
Plugin 'terryma/vim-multiple-cursors' | |
Plugin 'Valloric/YouCompleteMe' | |
Plugin 'KabbAmine/zeavim.vim' | |
Plugin 'scrooloose/syntastic' | |
Plugin 'jeffkreeftmeijer/vim-numbertoggle' | |
Plugin 'wesQ3/vim-windowswap' | |
Plugin 'majutsushi/tagbar' | |
Plugin 'hwartig/vim-seeing-is-believing' | |
let g:NumberToggleTrigger="<F2>" | |
set number | |
syntax on | |
filetype plugin indent on | |
set visualbell | |
set wildmenu | |
set wildmode=list:longest,full | |
set splitright | |
set splitbelow | |
set hidden | |
set guifont=Monaco:h16 | |
set guioptions-=T guioptions-=e guioptions-=L guioptions-=r | |
set shell=bash | |
set background=dark | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
set nofoldenable | |
set ignorecase smartcase | |
set autoindent | |
set backspace=indent,eol,start | |
set list | |
colorscheme 256-jungle | |
iabbrev bpry require 'pry'; binding.pry; | |
augroup vimrc | |
autocmd! | |
autocmd GuiEnter * set columns=120 lines=70 number | |
augroup END | |
function! RenameFile() | |
let old_name = expand('%') | |
let new_name = input('New file name: ', expand('%'), 'file') | |
if new_name != '' && new_name != old_name | |
exec ':saveas ' . new_name | |
exec ':silent !rm ' . old_name | |
redraw! | |
endif | |
endfunction | |
map <leader>n :call RenameFile()<cr> | |
au BufWritePost .vimrc so ~/.vimrc | |
autocmd QuickFixCmdPost *grep* cwindow | |
let mapleader = "," | |
vmap D y' | |
imap <c-l> <space>=><space> | |
imap <c-c> <esc> | |
map <Left> <Nop> | |
map <Right> <Nop> | |
map <Up> <Nop> | |
map <Down> <Nop> | |
map Q <Nop> | |
map K <Nop> | |
cnoremap %% <C-R>=expand('%:h').'/'<cr> | |
nnoremap Y y$ | |
xnoremap p pgvy | |
" rails | |
map <Leader>sc :sp db/schema.rb<cr> -\>" | |
let g:windowswap_map_keys = 0 "prevent default bindings | |
nnoremap <silent> <leader>xb :call WindowSwap#MarkWindowSwap()<CR> | |
nnoremap <silent> <leader>xz :call WindowSwap#DoWindowSwap()<CR> | |
nnoremap <silent> <leader>xx :call WindowSwap#EasyWindowSwap()<CR> | |
" copy and paste | |
vmap <C-c> "+yi | |
vmap <C-x> "+c | |
vmap <C-v> c<ESC>"+p | |
imap <C-v> <ESC>"+pa | |
nmap <F9> :TagbarToggle<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment