Skip to content

Commit

Permalink
ripgrep
Browse files Browse the repository at this point in the history
  • Loading branch information
thejspr committed Jun 13, 2017
1 parent 8b6b2cb commit ea4eaf3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion aliases
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ alias be='bundle exec'

# rails
alias rs='rails s'
alias rg='rails g'
alias rag='rails g'
alias rc='rails c'
alias migrate='rake db:migrate db:test:prepare'
alias bef='bundle exec foreman start -f Procfile.dev'
Expand Down
2 changes: 1 addition & 1 deletion gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
stg = !git checkout staging
mstg = !git checkout staging && git pull && git merge -

cl = !git co master && git pull && git remote prune origin && git bclean
cl = !git co master && git pull && git remote prune origin && git bclean && bundle
bclean = "!f() { git branch --merged ${1-master} | grep -vE '(master|production|release|develop)' | xargs git branch -d; }; f"


Expand Down
12 changes: 8 additions & 4 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ let g:fzf_layout = { 'down': '~20%' }
Plug 'nelstrom/vim-visual-star-search'
Plug 'terryma/vim-multiple-cursors'
Plug 'mileszs/ack.vim'
" Use Ag instead of Grep
let g:ackprg = 'ag --vimgrep'

" Use Ripgrep instead of Grep
set grepprg=rg\ --vimgrep\ --no-heading'
set grepformat=%f:%l:%c:%m,%f:%l:%m
let g:ackprg = 'rg --vimgrep --no-heading'
nnoremap <leader>a :Ack! <cword><CR>
cnoreabbrev ag Ack
cnoreabbrev aG Ack
Expand Down Expand Up @@ -95,15 +98,14 @@ let test#strategy = "vimux"
nmap <silent> <leader>x :TestNearest<CR>
nmap <silent> <leader>X :TestFile<CR>
nmap <silent> <leader>A :TestSuite<CR>
nmap <silent> <leader>§ :VimuxRunLastCommand<CR>
nmap <silent> <leader>r :VimuxRunLastCommand<CR>
" nmap <silent> <leader>g :TestVisit<CR>
" }}}

" javascript {{{
Plug 'elzr/vim-json'
Plug 'pangloss/vim-javascript'
Plug 'mxw/vim-jsx'
Plug 'roxma/nvim-cm-tern', {'do': 'npm install'}
" }}}

" new stuff {{{
Expand Down Expand Up @@ -314,6 +316,8 @@ noremap <Leader>v :Eview<space>
" New stuff {{{
noremap <c-k> :call feedkeys( line('.')==1 ? '' : 'ddkP' )<CR>
noremap <c-j> ddp
set relativenumber
" }}}

" vim: foldmethod=marker:foldlevel=1:textwidth=120:colorcolumn=120

0 comments on commit ea4eaf3

Please sign in to comment.