Use ag for searching
This commit is contained in:
@@ -20,3 +20,6 @@ export PATH="/usr/local/heroku/bin:$PATH"
|
|||||||
|
|
||||||
defaults write com.macromates.TextMate.preview volumeSettings '{ "/" = { extendedAttributes = 0; }; }'
|
defaults write com.macromates.TextMate.preview volumeSettings '{ "/" = { extendedAttributes = 0; }; }'
|
||||||
|
|
||||||
|
if [[ -e "~/.profile.local" ]]; then
|
||||||
|
source ~/.profile.local
|
||||||
|
fi
|
||||||
|
|||||||
+50
-46
@@ -18,66 +18,70 @@ call plug#end()
|
|||||||
" Execute Basic Setup Commands #########################################################################################
|
" Execute Basic Setup Commands #########################################################################################
|
||||||
|
|
||||||
set background=dark
|
set background=dark
|
||||||
:colorscheme golden
|
colorscheme golden
|
||||||
" abra alduin badwolf Benokai birds-of-paradise black-angus brogrammer bvemu cabin camo chlordane coffee corporation
|
" abra alduin badwolf Benokai birds-of-paradise black-angus brogrammer bvemu cabin camo chlordane coffee corporation
|
||||||
" dark-robin feral golden greens kellys liquidcarbon night_vision obsidian solarized
|
" dark-robin feral golden greens kellys liquidcarbon night_vision obsidian solarized
|
||||||
"
|
"
|
||||||
:filetype plugin indent on
|
filetype plugin indent on
|
||||||
:hi ColorColumn ctermbg=8
|
hi ColorColumn ctermbg=8
|
||||||
:syntax on
|
syntax on
|
||||||
|
|
||||||
" Configure Settings ###################################################################################################
|
" Configure Settings ###################################################################################################
|
||||||
|
|
||||||
:set autoindent
|
set autoindent
|
||||||
:set autowrite
|
set autowrite
|
||||||
:set autowriteall
|
set autowriteall
|
||||||
:set backspace=indent,eol,start
|
set backspace=indent,eol,start
|
||||||
:set cmdheight=2
|
set cmdheight=2
|
||||||
:set colorcolumn=120
|
set colorcolumn=120
|
||||||
:set cursorline
|
set cursorline
|
||||||
:set expandtab
|
set expandtab
|
||||||
:set hlsearch
|
set hlsearch
|
||||||
:set incsearch
|
set incsearch
|
||||||
:set laststatus=2
|
set laststatus=2
|
||||||
:set modelines=2
|
set modelines=2
|
||||||
:set nofoldenable
|
set nofoldenable
|
||||||
:set nowrap
|
set nowrap
|
||||||
:set number
|
set number
|
||||||
:set path=**
|
set path=**
|
||||||
:set ruler
|
set ruler
|
||||||
:set scrolloff=5
|
set scrolloff=5
|
||||||
:set shiftwidth=4
|
set shiftwidth=4
|
||||||
:set showbreak="+++>"
|
set showbreak="+++>"
|
||||||
:set showcmd
|
set showcmd
|
||||||
:set showmatch
|
set showmatch
|
||||||
:set smarttab
|
set smarttab
|
||||||
:set statusline=%<%f\ %h%m%r%=%-14.(%l,%c%V%)\ %P
|
set statusline=%<%f\ %h%m%r%=%-14.(%l,%c%V%)\ %P
|
||||||
:set t_Co=256
|
set t_Co=256
|
||||||
:set tabstop=4
|
set tabstop=4
|
||||||
:set textwidth=0
|
set textwidth=0
|
||||||
:set virtualedit=block
|
set virtualedit=block
|
||||||
:set visualbell
|
set visualbell
|
||||||
:set wildignore+=node_modules,log,build,dist
|
set wildignore+=node_modules,log,build,dist
|
||||||
:set wildmode=longest,list
|
set wildmode=longest,list
|
||||||
|
|
||||||
|
if executable('ag')
|
||||||
|
set grepprg=ag\ --vimgrep\ -p\ .agignore
|
||||||
|
set grepformat=%f:%l:%c:%m
|
||||||
|
endif
|
||||||
|
|
||||||
" Configure Plugins ####################################################################################################
|
" Configure Plugins ####################################################################################################
|
||||||
|
|
||||||
" ctrlpvim/ctrlp.vim
|
" ctrlpvim/ctrlp.vim
|
||||||
:let g:ctrlp_working_path_mode = 0
|
let g:ctrlp_working_path_mode = 0
|
||||||
:if !empty(glob(".find-ignore"))
|
if executable('ag')
|
||||||
: let g:ctrlp_user_command = 'find %s -type f | egrep -v "$(cat .find-ignore)"'
|
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
|
||||||
:else
|
let g:ctrlp_use_caching = 0
|
||||||
: let g:ctrlp_user_command = 'find %s -type f'
|
endif
|
||||||
:endif
|
|
||||||
|
|
||||||
" elzr/vim-json
|
" elzr/vim-json
|
||||||
:let g:vim_json_syntax_conceal = 0
|
let g:vim_json_syntax_conceal = 0
|
||||||
|
|
||||||
" godlygeek/tabular
|
" godlygeek/tabular
|
||||||
:nmap == :Tabularize /=<CR>
|
nmap == :Tabularize /=<CR>
|
||||||
:nmap =: :Tabularize /[^:]*:<CR>
|
nmap =: :Tabularize /[^:]*:<CR>
|
||||||
:nmap =or :Tabularize /or<CR>
|
nmap =or :Tabularize /or<CR>
|
||||||
|
|
||||||
" nathanaelkane/vim-indent-guides
|
" nathanaelkane/vim-indent-guides
|
||||||
:let g:indent_guides_enable_on_vim_startup = 0 " :IndentGuidesToggle
|
let g:indent_guides_enable_on_vim_startup = 0 " :IndentGuidesToggle
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ echo; echo; echo "Updating brew, one moment..."
|
|||||||
brew update
|
brew update
|
||||||
|
|
||||||
echo; echo; echo "Installing standard brew packages..."
|
echo; echo; echo "Installing standard brew packages..."
|
||||||
|
brew install ag
|
||||||
brew install fswatch
|
brew install fswatch
|
||||||
brew install macvim
|
brew install macvim
|
||||||
brew install node
|
brew install node
|
||||||
|
|||||||
Reference in New Issue
Block a user