-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alex Kalish
committed
Nov 4, 2015
1 parent
e9bb890
commit 7f1bb0a
Showing
5 changed files
with
196 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
:bulk_threshold: 1000 | ||
:verbose: true | ||
:benchmark: false | ||
:update_sources: true | ||
:backtrace: false | ||
:sources: | ||
- http://gems.rubyforge.org/ | ||
- http://gemcutter.org/ | ||
install: --no-rdoc --no-ri | ||
update: --no-rdoc --no-ri |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[alias] | ||
co = checkout | ||
a = add | ||
ci = commit | ||
b = branch | ||
m = merge | ||
s = status | ||
d = diff | ||
dl = diff --name-status | ||
dt = difftool | ||
l = log --pretty=oneline --abbrev-commit --graph --decorate | ||
poh = push -u origin HEAD | ||
[user] | ||
name = Alex Kalish | ||
email = [email protected] | ||
[merge] | ||
tool = vimdiff | ||
[mergetool] | ||
prompt = false | ||
[core] | ||
editor = vim | ||
[color] | ||
diff = auto | ||
status = auto | ||
branch = auto | ||
[diff] | ||
tool = vimdiff | ||
[difftool] | ||
prompt = false | ||
[web] | ||
browser = open |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
require "awesome_print" | ||
AwesomePrint.pry! | ||
Pry.config.editor = 'vim' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
SET WORK_MEM = 1024000; | ||
\set PROMPT1 '%/@%m:%> %R%# ' | ||
-- Autocomplete upper case. | ||
\set COMP_KEYWORD_CASE upper | ||
-- Ignore dups in history. | ||
\set HISTCONTROL ignoredups | ||
-- Separate history file per DB. | ||
\set HISTFILE ~/.psql_history- :DBNAME | ||
-- Verbose error reports. | ||
\set VERBOSITY verbose | ||
-- Show nulls. | ||
\pset null '[NULL]' | ||
\x auto | ||
\timing |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
set nocompatible | ||
filetype off | ||
|
||
set rtp+=~/.vim/bundle/Vundle.vim | ||
call vundle#begin() | ||
|
||
" let Vundle manage Vundle | ||
" required! | ||
Plugin 'gmarik/vundle' | ||
|
||
Plugin 'altercation/vim-colors-solarized.git' | ||
Plugin 'bling/vim-airline' | ||
Plugin 'vim-ruby/vim-ruby.git' | ||
Plugin 'tpope/vim-rails.git' | ||
Plugin 'thoughtbot/vim-rspec' | ||
Plugin 'scrooloose/syntastic' | ||
Plugin 'tpope/vim-unimpaired.git' | ||
Plugin 'tpope/vim-fugitive.git' | ||
Plugin 'tpope/vim-endwise.git' | ||
Plugin 'Townk/vim-autoclose.git' | ||
Plugin 'tpope/vim-markdown.git' | ||
Plugin 'tpope/vim-surround.git' | ||
Plugin 'tpope/vim-bundler.git' | ||
Plugin 'scrooloose/nerdtree.git' | ||
Plugin 'tsaleh/vim-align.git' | ||
Plugin 'tsaleh/vim-supertab.git' | ||
Plugin 'tomtom/tcomment_vim.git' | ||
" Plugin 'mileszs/ack.vim.git' | ||
Plugin 'rking/ag.vim' | ||
Plugin 'rizzatti/funcoo.vim' | ||
Plugin 'rizzatti/dash.vim' | ||
Plugin 'vim-scripts/SQLUtilities' | ||
Plugin 'freitass/todo.txt-vim' | ||
Plugin 'alexkalish/vim-marked' | ||
Plugin 'kien/ctrlp.vim' | ||
Plugin 'eiginn/netrw' | ||
Plugin 'pangloss/vim-javascript' | ||
Plugin 'mxw/vim-jsx' | ||
|
||
" All of your Plugins must be added before the following line | ||
call vundle#end() " required | ||
filetype plugin indent on " required | ||
|
||
" Enable syntax processing. | ||
syntax on | ||
|
||
set smartindent | ||
set expandtab " tabs are spaces | ||
set showtabline=2 | ||
set tabstop=2 " number of visual spaces per tab | ||
set softtabstop=2 " number of tabs in space when editing | ||
set backspace=indent,eol,start | ||
set shiftwidth=2 | ||
set wildmenu " visual autocomplete for command menu | ||
set wildmode=list:longest | ||
set history=1000 | ||
set showmatch " highlight [{()}] | ||
set showcmd | ||
set title | ||
set ruler | ||
set nofoldenable | ||
set incsearch " search as chars are entered | ||
set hlsearch " highlight search matches | ||
set ignorecase | ||
set smartcase | ||
set mouse=a | ||
set clipboard=unnamed,unnamedplus | ||
|
||
set backupdir=~/.tmp | ||
set directory=~/.tmp | ||
|
||
set grepprg=ag | ||
|
||
|
||
" for vim-airline | ||
set laststatus=2 | ||
set noshowmode | ||
let g:airline#extensions#tabline#enabled = 1 | ||
let g:airline#extensions#tabline#left_alt_sep = '|' | ||
let g:airline#extensions#whitespace#symbol = '@' | ||
|
||
|
||
" move cursor as expected with wrapped lines | ||
:nmap j gj | ||
:nmap k gk | ||
" Remove trailing whitespace before write. | ||
autocmd BufWritePre * :%s/\\s\\+$//e | ||
|
||
" paste mode for insert | ||
set pastetoggle=<C-x> | ||
|
||
" Restore cursor position | ||
if has("autocmd") | ||
autocmd BufReadPost * | ||
\ if line("'\"") > 1 && line("'\"") <= line("$") | | ||
\ exe "normal! g`\"" | | ||
\ endif | ||
endif | ||
|
||
" Ensure 256 colors | ||
if $TERM == "xterm-256color" || $TERM == "screen-256color" || $COLORTERM == "gnome-terminal" | ||
set t_Co=256 | ||
endif | ||
|
||
" set leader | ||
let mapleader = "," | ||
|
||
" clear highlighting | ||
map <leader>h :nohl<CR> | ||
" Open ag.vim | ||
nnoremap <leader>a :Ag<space> | ||
" NERDTree | ||
noremap <leader>n :NERDTreeToggle<CR> | ||
set encoding=utf-8 " fix nerdtree arrows | ||
|
||
" Fix endwise | ||
autocmd FileType ruby,eruby :let g:AutoCloseExpandEnterOn="" | ||
|
||
" use solarized | ||
syntax enable | ||
set background=dark | ||
colorscheme solarized | ||
|
||
" also set folds to max size | ||
set diffopt=filler,context:1000000 | ||
|
||
" Rspec.vim mappings | ||
let g:rspec_command = "!rspec {spec}" | ||
map <Leader>t :call RunCurrentSpecFile()<CR> | ||
map <Leader>s :call RunNearestSpec()<CR> | ||
map <Leader>l :call RunLastSpec()<CR> | ||
" Preview markdown file in Marked. | ||
command! Marked silent !open -a "Marked.app" "%:p" |