Created
December 23, 2015 05:12
-
-
Save falonofthetower/281cecc7dd7e676b3ba1 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 | |
if has("autocmd") | |
filetype indent plugin on | |
endif | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#rc() | |
set tags+=gems.tags | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'tpope/vim-obsession' | |
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 'tpope/vim-rake' | |
Plugin 'vim-ruby/vim-ruby' | |
Plugin 'jgdavey/vim-blockle' | |
Plugin 'godlygeek/tabular' | |
Plugin 'kchmck/vim-coffee-script' | |
Plugin 'pangloss/vim-javascript' | |
Plugin 'jelera/vim-javascript-syntax' | |
Plugin 'kana/vim-textobj-user' | |
Plugin 'nelstrom/vim-textobj-rubyblock' | |
Plugin 'Raimondi/delimitMate' | |
Plugin 'jgdavey/vim-turbux' | |
Plugin 'skalnik/vim-vroom' | |
Plugin 'vim-scripts/PA_ruby_ri' | |
Plugin 'danchoi/ri.vim' | |
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 'MarcWeber/vim-addon-mw-utils' | |
Plugin 'tomtom/tlib_vim' | |
Plugin 'garbas/vim-snipmate' | |
Plugin 'honza/vim-snippets' | |
Plugin 'ecomba/vim-ruby-refactoring' | |
Plugin 'jceb/vim-orgmode' | |
Plugin 'dhruvasagar/vim-table-mode' | |
Plugin 'szw/vim-tags' | |
Plugin 'janko-m/vim-test' | |
Plugin 'brookhong/cloudboard.vim' | |
let g:vroom_map_keys = 0 | |
runtime macros/matchit.vim | |
augroup myvimrc | |
au! | |
au BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc,nvimrc so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif | |
augroup END | |
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 | |
set t_Co=256 | |
iabbrev bpry require 'pry'; binding.pry; | |
iabbrev jpry pry = require('pryjs'); eval(pry.it); | |
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> | |
nnoremap <C-g> :!google-chrome %<CR> " browser preview with ctrl-p | |
nnoremap ; : | |
:nnoremap <leader>rap :RAddParameter<cr> | |
:nnoremap <leader>rcpc :RConvertPostConditional<cr> | |
:nnoremap <leader>rel :RExtractLet<cr> | |
:vnoremap <leader>rec :RExtractConstant<cr> | |
:vnoremap <leader>relv :RExtractLocalVariable<cr> | |
:nnoremap <leader>rit :RInlineTemp<cr> | |
:vnoremap <leader>rrlv :RRenameLocalVariable<cr> | |
:vnoremap <leader>rriv :RRenameInstanceVariable<cr> | |
:vnoremap <leader>rem :RExtractMethod<cr> | |
inoremap <F4> <c-o>:w<cr> | |
noremap <F4> <c-o>:w<cr> | |
" ctags | |
let g:vim_tags_auto_generate = 1 | |
nnoremap <leader>gt :TagsGenerate!<cr> | |
" Cloud Register | |
nnoremap <space>p :CBPut | |
vnoremap <space>y :CBYank |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment