diff --git a/.gitconfig b/.gitconfig index 0c5ac2b..2ea9892 100644 --- a/.gitconfig +++ b/.gitconfig @@ -46,4 +46,4 @@ [core] editor = /usr/bin/vim [push] - default = simple + default = tracking diff --git a/.gitmodules b/.gitmodules index d401dc4..e6e3d4f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -13,3 +13,9 @@ [submodule ".vim/bundle/vim-monokai"] path = .vim/bundle/vim-monokai url = git://github.com/sickill/vim-monokai.git +[submodule ".vim/bundle/vim-obsession"] + path = .vim/bundle/vim-obsession + url = git://github.com/tpope/vim-obsession.git +[submodule ".vim/bundle/ag"] + path = .vim/bundle/ag + url = https://github.com/rking/ag.vim diff --git a/.vim/bundle/ag b/.vim/bundle/ag new file mode 160000 index 0000000..f013434 --- /dev/null +++ b/.vim/bundle/ag @@ -0,0 +1 @@ +Subproject commit f0134343434bc30a77d3ad2ca19d7e2f0a137461 diff --git a/.vim/bundle/vim-obsession b/.vim/bundle/vim-obsession new file mode 160000 index 0000000..d342229 --- /dev/null +++ b/.vim/bundle/vim-obsession @@ -0,0 +1 @@ +Subproject commit d342229cc1fa5ed442179269b8358b4c42b52300 diff --git a/.vimrc b/.vimrc index 9a2d846..e21d795 100644 --- a/.vimrc +++ b/.vimrc @@ -20,17 +20,13 @@ map fl :CtrlP lib map fp :CtrlP vendor/plugins map fs :CtrlP spec map ft :CtrlP test -"let g:ctrlp_prompt_mappings = { -" \ 'AcceptSelection("e")': [''], -" \ 'AcceptSelection("t")': ['', '<2-LeftMouse>'], -" \ } + """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " BASIC EDITING CONFIGURATION """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" set nocompatible " allow unsaved background buffers and remember marks/undo for them set hidden -" remember more commands and search history set history=10000 set expandtab set tabstop=2 @@ -40,6 +36,7 @@ set autoindent set laststatus=2 set showmatch set incsearch +set dictionary+=/usr/share/dict/words set number set hlsearch " make searches case-sensitive only if they contain upper-case characters @@ -111,8 +108,9 @@ imap end " insert a hash rocket with imap => -" set esc to -imap +" Mapping ESC in insert mode and command mode to double i +imap ii +cmap ii " suspend process nmap z @@ -137,6 +135,11 @@ map map map +" Window splitting - couldn't figure out how to remap v & n to +" & +map m :vsplit +map mm :split + map gg :topleft 100 :split Gemfile " Clear the search buffer (highlighting) when hitting return @@ -180,12 +183,12 @@ endfunction map n :call RenameFile() """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -" GREP SEARCH +" GREP SEARCH """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" function! Search() let term = input('Grep search term: ') if term != '' - exec '!grep "' . term . '" *' + exec 'Ag "' . term . '"' endif endfunction map s :call Search() diff --git a/scripts/tmux-rails-template.sh b/scripts/tmux-rails-template.sh new file mode 100755 index 0000000..27e85fb --- /dev/null +++ b/scripts/tmux-rails-template.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +tmux new -d -s my-awesome-app +tmux new-window -t my-awesome-app:2 -n 'server' 'bundle exec rails server' +tmux new-window -t my-awesome-app:3 -n 'vim' 'vi' +tmux attach -t my-awesome-app