adding the_silver_searcher
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,3 +4,4 @@ tmp*
|
||||
.swp
|
||||
vim/bundle/*
|
||||
vim/autoload/*
|
||||
zsh/lib/aws.zsh
|
||||
|
||||
@@ -3,6 +3,7 @@ archive ~/Documents/workspace_archive
|
||||
dl ~/Downloads
|
||||
dotfiles ~/dotfiles
|
||||
Downloads ~/Downloads
|
||||
dropbox ~/Dropbox
|
||||
private ~/Documents/workspace_private
|
||||
root ~/
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# some variables
|
||||
_zsh_file="/usr/local/bin/zsh"
|
||||
_homebrew=`which brew`
|
||||
_to_install="imagemagick mongodb postgresql rbenv redis ruby-build tmux unrar yasm youtube-dl zsh elixir git vim --with-override-system-vi"
|
||||
_to_install="the_silver_searcher imagemagick mongodb postgresql rbenv redis ruby-build tmux unrar yasm youtube-dl zsh elixir git vim --with-override-system-vi"
|
||||
|
||||
# Generate symlinks for files
|
||||
for i in gemrc gitconfig gitignore gvimrc irbrc mongorc.js NERDTreeBookmarks rspec screenrc tmux.conf vimrc zshrc rubocop.yml
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
<key>Alpha Component</key>
|
||||
<real>1</real>
|
||||
<key>Blue Component</key>
|
||||
<real>0.0</real>
|
||||
<real>0.19370138645172119</real>
|
||||
<key>Color Space</key>
|
||||
<string>Calibrated</string>
|
||||
<key>Green Component</key>
|
||||
<real>0.0</real>
|
||||
<real>0.15575926005840302</real>
|
||||
<key>Red Component</key>
|
||||
<real>0.0</real>
|
||||
</dict>
|
||||
@@ -20,208 +20,208 @@
|
||||
<key>Alpha Component</key>
|
||||
<real>1</real>
|
||||
<key>Blue Component</key>
|
||||
<real>0.27334880828857422</real>
|
||||
<real>0.14145712554454803</real>
|
||||
<key>Color Space</key>
|
||||
<string>Calibrated</string>
|
||||
<key>Green Component</key>
|
||||
<real>0.26170071959495544</real>
|
||||
<real>0.10840645432472229</real>
|
||||
<key>Red Component</key>
|
||||
<real>0.98747438192367554</real>
|
||||
<real>0.81926983594894409</real>
|
||||
</dict>
|
||||
<key>Ansi 10 Color</key>
|
||||
<dict>
|
||||
<key>Alpha Component</key>
|
||||
<real>1</real>
|
||||
<key>Blue Component</key>
|
||||
<real>0.48438894748687744</real>
|
||||
<real>0.38298487663269043</real>
|
||||
<key>Color Space</key>
|
||||
<string>Calibrated</string>
|
||||
<key>Green Component</key>
|
||||
<real>0.98277664184570312</real>
|
||||
<real>0.35665956139564514</real>
|
||||
<key>Red Component</key>
|
||||
<real>0.31426474452018738</real>
|
||||
<real>0.27671992778778076</real>
|
||||
</dict>
|
||||
<key>Ansi 11 Color</key>
|
||||
<dict>
|
||||
<key>Alpha Component</key>
|
||||
<real>1</real>
|
||||
<key>Blue Component</key>
|
||||
<real>0.54832202196121216</real>
|
||||
<real>0.43850564956665039</real>
|
||||
<key>Color Space</key>
|
||||
<string>Calibrated</string>
|
||||
<key>Green Component</key>
|
||||
<real>0.98275065422058105</real>
|
||||
<real>0.40717673301696777</real>
|
||||
<key>Red Component</key>
|
||||
<real>0.9424901008605957</real>
|
||||
<real>0.32436618208885193</real>
|
||||
</dict>
|
||||
<key>Ansi 12 Color</key>
|
||||
<dict>
|
||||
<key>Alpha Component</key>
|
||||
<real>1</real>
|
||||
<key>Blue Component</key>
|
||||
<real>0.99877303838729858</real>
|
||||
<real>0.51685798168182373</real>
|
||||
<key>Color Space</key>
|
||||
<string>Calibrated</string>
|
||||
<key>Green Component</key>
|
||||
<real>0.72887319326400757</real>
|
||||
<real>0.50962930917739868</real>
|
||||
<key>Red Component</key>
|
||||
<real>0.28794747591018677</real>
|
||||
<real>0.44058024883270264</real>
|
||||
</dict>
|
||||
<key>Ansi 13 Color</key>
|
||||
<dict>
|
||||
<key>Alpha Component</key>
|
||||
<real>1</real>
|
||||
<key>Blue Component</key>
|
||||
<real>0.70531737804412842</real>
|
||||
<real>0.72908437252044678</real>
|
||||
<key>Color Space</key>
|
||||
<string>Calibrated</string>
|
||||
<key>Green Component</key>
|
||||
<real>0.29879066348075867</real>
|
||||
<real>0.33896297216415405</real>
|
||||
<key>Red Component</key>
|
||||
<real>0.98751437664031982</real>
|
||||
<real>0.34798634052276611</real>
|
||||
</dict>
|
||||
<key>Ansi 14 Color</key>
|
||||
<dict>
|
||||
<key>Alpha Component</key>
|
||||
<real>1</real>
|
||||
<key>Blue Component</key>
|
||||
<real>0.9942852258682251</real>
|
||||
<real>0.56363654136657715</real>
|
||||
<key>Color Space</key>
|
||||
<string>Calibrated</string>
|
||||
<key>Green Component</key>
|
||||
<real>0.91508829593658447</real>
|
||||
<real>0.56485837697982788</real>
|
||||
<key>Red Component</key>
|
||||
<real>0.54558646678924561</real>
|
||||
<real>0.50599193572998047</real>
|
||||
</dict>
|
||||
<key>Ansi 15 Color</key>
|
||||
<dict>
|
||||
<key>Alpha Component</key>
|
||||
<real>1</real>
|
||||
<key>Blue Component</key>
|
||||
<real>0.92636489868164062</real>
|
||||
<real>0.86405980587005615</real>
|
||||
<key>Color Space</key>
|
||||
<string>Calibrated</string>
|
||||
<key>Green Component</key>
|
||||
<real>0.93136489391326904</real>
|
||||
<real>0.95794391632080078</real>
|
||||
<key>Red Component</key>
|
||||
<real>0.93123704195022583</real>
|
||||
<real>0.98943418264389038</real>
|
||||
</dict>
|
||||
<key>Ansi 2 Color</key>
|
||||
<dict>
|
||||
<key>Alpha Component</key>
|
||||
<real>1</real>
|
||||
<key>Blue Component</key>
|
||||
<real>0.48438894748687744</real>
|
||||
<real>0.020208755508065224</real>
|
||||
<key>Color Space</key>
|
||||
<string>Calibrated</string>
|
||||
<key>Green Component</key>
|
||||
<real>0.98277664184570312</real>
|
||||
<real>0.54115492105484009</real>
|
||||
<key>Red Component</key>
|
||||
<real>0.31426474452018738</real>
|
||||
<real>0.44977453351020813</real>
|
||||
</dict>
|
||||
<key>Ansi 3 Color</key>
|
||||
<dict>
|
||||
<key>Alpha Component</key>
|
||||
<real>1</real>
|
||||
<key>Blue Component</key>
|
||||
<real>0.54832202196121216</real>
|
||||
<real>0.023484811186790466</real>
|
||||
<key>Color Space</key>
|
||||
<string>Calibrated</string>
|
||||
<key>Green Component</key>
|
||||
<real>0.98275065422058105</real>
|
||||
<real>0.46751424670219421</real>
|
||||
<key>Red Component</key>
|
||||
<real>0.9424901008605957</real>
|
||||
<real>0.64746475219726562</real>
|
||||
</dict>
|
||||
<key>Ansi 4 Color</key>
|
||||
<dict>
|
||||
<key>Alpha Component</key>
|
||||
<real>1</real>
|
||||
<key>Blue Component</key>
|
||||
<real>0.99877303838729858</real>
|
||||
<real>0.78231418132781982</real>
|
||||
<key>Color Space</key>
|
||||
<string>Calibrated</string>
|
||||
<key>Green Component</key>
|
||||
<real>0.72887319326400757</real>
|
||||
<real>0.46265947818756104</real>
|
||||
<key>Red Component</key>
|
||||
<real>0.28794747591018677</real>
|
||||
<real>0.12754884362220764</real>
|
||||
</dict>
|
||||
<key>Ansi 5 Color</key>
|
||||
<dict>
|
||||
<key>Alpha Component</key>
|
||||
<real>1</real>
|
||||
<key>Blue Component</key>
|
||||
<real>0.70531737804412842</real>
|
||||
<real>0.43516635894775391</real>
|
||||
<key>Color Space</key>
|
||||
<string>Calibrated</string>
|
||||
<key>Green Component</key>
|
||||
<real>0.29879066348075867</real>
|
||||
<real>0.10802463442087173</real>
|
||||
<key>Red Component</key>
|
||||
<real>0.98751437664031982</real>
|
||||
<real>0.77738940715789795</real>
|
||||
</dict>
|
||||
<key>Ansi 6 Color</key>
|
||||
<dict>
|
||||
<key>Alpha Component</key>
|
||||
<real>1</real>
|
||||
<key>Blue Component</key>
|
||||
<real>0.9942852258682251</real>
|
||||
<real>0.52502274513244629</real>
|
||||
<key>Color Space</key>
|
||||
<string>Calibrated</string>
|
||||
<key>Green Component</key>
|
||||
<real>0.91508829593658447</real>
|
||||
<real>0.57082360982894897</real>
|
||||
<key>Red Component</key>
|
||||
<real>0.54558646678924561</real>
|
||||
<real>0.14679534733295441</real>
|
||||
</dict>
|
||||
<key>Ansi 7 Color</key>
|
||||
<dict>
|
||||
<key>Alpha Component</key>
|
||||
<real>1</real>
|
||||
<key>Blue Component</key>
|
||||
<real>0.92636489868164062</real>
|
||||
<real>0.79781103134155273</real>
|
||||
<key>Color Space</key>
|
||||
<string>Calibrated</string>
|
||||
<key>Green Component</key>
|
||||
<real>0.93136489391326904</real>
|
||||
<real>0.89001238346099854</real>
|
||||
<key>Red Component</key>
|
||||
<real>0.93123704195022583</real>
|
||||
<real>0.91611063480377197</real>
|
||||
</dict>
|
||||
<key>Ansi 8 Color</key>
|
||||
<dict>
|
||||
<key>Alpha Component</key>
|
||||
<real>1</real>
|
||||
<key>Blue Component</key>
|
||||
<real>0.33335328102111816</real>
|
||||
<real>0.15170273184776306</real>
|
||||
<key>Color Space</key>
|
||||
<string>Calibrated</string>
|
||||
<key>Green Component</key>
|
||||
<real>0.3333476185798645</real>
|
||||
<real>0.11783610284328461</real>
|
||||
<key>Red Component</key>
|
||||
<real>0.33335760235786438</real>
|
||||
<real>0.0</real>
|
||||
</dict>
|
||||
<key>Ansi 9 Color</key>
|
||||
<dict>
|
||||
<key>Alpha Component</key>
|
||||
<real>1</real>
|
||||
<key>Blue Component</key>
|
||||
<real>0.27334880828857422</real>
|
||||
<real>0.073530435562133789</real>
|
||||
<key>Color Space</key>
|
||||
<string>Calibrated</string>
|
||||
<key>Green Component</key>
|
||||
<real>0.26170071959495544</real>
|
||||
<real>0.21325300633907318</real>
|
||||
<key>Red Component</key>
|
||||
<real>0.98747438192367554</real>
|
||||
<real>0.74176257848739624</real>
|
||||
</dict>
|
||||
<key>Background Color</key>
|
||||
<dict>
|
||||
<key>Alpha Component</key>
|
||||
<real>1</real>
|
||||
<key>Blue Component</key>
|
||||
<real>0.15977835655212402</real>
|
||||
<real>0.86405980587005615</real>
|
||||
<key>Color Space</key>
|
||||
<string>Calibrated</string>
|
||||
<key>Green Component</key>
|
||||
<real>0.12215268611907959</real>
|
||||
<real>0.95794391632080078</real>
|
||||
<key>Red Component</key>
|
||||
<real>0.1176580935716629</real>
|
||||
<real>0.98943418264389038</real>
|
||||
</dict>
|
||||
<key>Badge Color</key>
|
||||
<dict>
|
||||
@@ -241,26 +241,26 @@
|
||||
<key>Alpha Component</key>
|
||||
<real>1</real>
|
||||
<key>Blue Component</key>
|
||||
<real>0.96353918313980103</real>
|
||||
<real>0.38298487663269043</real>
|
||||
<key>Color Space</key>
|
||||
<string>Calibrated</string>
|
||||
<key>Green Component</key>
|
||||
<real>0.96352285146713257</real>
|
||||
<real>0.35665956139564514</real>
|
||||
<key>Red Component</key>
|
||||
<real>0.96355170011520386</real>
|
||||
<real>0.27671992778778076</real>
|
||||
</dict>
|
||||
<key>Cursor Color</key>
|
||||
<dict>
|
||||
<key>Alpha Component</key>
|
||||
<real>1</real>
|
||||
<key>Blue Component</key>
|
||||
<real>0.89585196971893311</real>
|
||||
<real>0.43850564956665039</real>
|
||||
<key>Color Space</key>
|
||||
<string>Calibrated</string>
|
||||
<key>Green Component</key>
|
||||
<real>0.89585232734680176</real>
|
||||
<real>0.40717673301696777</real>
|
||||
<key>Red Component</key>
|
||||
<real>0.89585232734680176</real>
|
||||
<real>0.32436618208885193</real>
|
||||
</dict>
|
||||
<key>Cursor Guide Color</key>
|
||||
<dict>
|
||||
@@ -280,65 +280,65 @@
|
||||
<key>Alpha Component</key>
|
||||
<real>1</real>
|
||||
<key>Blue Component</key>
|
||||
<real>0.15977835655212402</real>
|
||||
<real>0.79781103134155273</real>
|
||||
<key>Color Space</key>
|
||||
<string>Calibrated</string>
|
||||
<key>Green Component</key>
|
||||
<real>0.12215268611907959</real>
|
||||
<real>0.89001238346099854</real>
|
||||
<key>Red Component</key>
|
||||
<real>0.1176580935716629</real>
|
||||
<real>0.91611063480377197</real>
|
||||
</dict>
|
||||
<key>Foreground Color</key>
|
||||
<dict>
|
||||
<key>Alpha Component</key>
|
||||
<real>1</real>
|
||||
<key>Blue Component</key>
|
||||
<real>0.90218889713287354</real>
|
||||
<real>0.43850564956665039</real>
|
||||
<key>Color Space</key>
|
||||
<string>Calibrated</string>
|
||||
<key>Green Component</key>
|
||||
<real>0.92725068330764771</real>
|
||||
<real>0.40717673301696777</real>
|
||||
<key>Red Component</key>
|
||||
<real>0.9216761589050293</real>
|
||||
<real>0.32436618208885193</real>
|
||||
</dict>
|
||||
<key>Link Color</key>
|
||||
<dict>
|
||||
<key>Alpha Component</key>
|
||||
<real>1</real>
|
||||
<key>Blue Component</key>
|
||||
<real>0.82339191436767578</real>
|
||||
<real>0.67799997329711914</real>
|
||||
<key>Color Space</key>
|
||||
<string>Calibrated</string>
|
||||
<key>Green Component</key>
|
||||
<real>0.6027643084526062</real>
|
||||
<real>0.27000001072883606</real>
|
||||
<key>Red Component</key>
|
||||
<real>0.24144099652767181</real>
|
||||
<real>0.023000000044703484</real>
|
||||
</dict>
|
||||
<key>Selected Text Color</key>
|
||||
<dict>
|
||||
<key>Alpha Component</key>
|
||||
<real>1</real>
|
||||
<key>Blue Component</key>
|
||||
<real>0.0</real>
|
||||
<real>0.38298487663269043</real>
|
||||
<key>Color Space</key>
|
||||
<string>Calibrated</string>
|
||||
<key>Green Component</key>
|
||||
<real>0.0</real>
|
||||
<real>0.35665956139564514</real>
|
||||
<key>Red Component</key>
|
||||
<real>0.0</real>
|
||||
<real>0.27671992778778076</real>
|
||||
</dict>
|
||||
<key>Selection Color</key>
|
||||
<dict>
|
||||
<key>Alpha Component</key>
|
||||
<real>1</real>
|
||||
<key>Blue Component</key>
|
||||
<real>0.77537858486175537</real>
|
||||
<real>0.79781103134155273</real>
|
||||
<key>Color Space</key>
|
||||
<string>Calibrated</string>
|
||||
<key>Green Component</key>
|
||||
<real>0.68074733018875122</real>
|
||||
<real>0.89001238346099854</real>
|
||||
<key>Red Component</key>
|
||||
<real>0.50582021474838257</real>
|
||||
<real>0.91611063480377197</real>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
24
vimrc
24
vimrc
@@ -24,6 +24,8 @@ call plug#begin('~/.vim/bundle')
|
||||
Plug 'airblade/vim-gitgutter'
|
||||
" Fuzzy file finder
|
||||
Plug 'ctrlpvim/ctrlp.vim'
|
||||
" Elixir support
|
||||
Plug 'elixir-lang/vim-elixir'
|
||||
" Tab support
|
||||
Plug 'ervandew/supertab'
|
||||
" autocomplete brackets
|
||||
@@ -36,7 +38,7 @@ Plug 'scrooloose/nerdcommenter'
|
||||
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
|
||||
" Language packs
|
||||
Plug 'sheerun/vim-polyglot'
|
||||
" Wisley add 'end' in Ruby
|
||||
" Wisely add 'end' in Ruby
|
||||
Plug 'tpope/vim-endwise'
|
||||
" Git wrapper
|
||||
Plug 'tpope/vim-fugitive'
|
||||
@@ -205,7 +207,8 @@ map <leader>tf :tabfirst<cr>
|
||||
map <leader>tl :tablast<cr>
|
||||
map <leader>tm :tabmove<cr>
|
||||
map <leader>ll :NERDTreeToggle<cr>
|
||||
map <leader>lo :NERDTree<cr>
|
||||
" no <cr> at the end to be able to submit bookmark
|
||||
map <leader>lo :NERDTree<SPACE>
|
||||
map <leader>_ :UndotreeToggle<cr>
|
||||
" Marked.app is an Markdown interpreter on MacOS
|
||||
map <leader>m :silent !open -a Marked.app '%:p'<cr>
|
||||
@@ -215,8 +218,19 @@ map <leader>p :bp<cr> " \p previous buffer
|
||||
map <leader>n :bn<cr> " \n next buffer
|
||||
map <leader>d :bd<cr> " \d delete buffer
|
||||
|
||||
" NerdComment
|
||||
map <leader>cc :NERDComInvertComment<cr>
|
||||
|
||||
" swap word with next word
|
||||
nmap <silent> gw "_yiw:s/\(\%#\w\+\)\(\_W\+\)\(\w\+\)/\3\2\1/<cr><c-o><c-l>
|
||||
|
||||
" use the_silver_searcher
|
||||
if executable('ag')
|
||||
" Search with ack
|
||||
Plug 'mileszs/ack.vim'
|
||||
" bind ag to ack
|
||||
let g:ackprg = 'ag --vimgrep'
|
||||
" Use ag in CtrlP for listing files. Lightning fast and respects .gitignore
|
||||
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
|
||||
" ag is fast enough that CtrlP doesn't need to cache
|
||||
let g:ctrlp_use_caching = 0
|
||||
" map F to recursive search
|
||||
map <leader>F :Ack<SPACE>
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user