Skip to content

Commit

Permalink
Configure vim to use rg for fzf; set keybinds
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-G-J committed Jul 27, 2022
1 parent 6833956 commit ac8f764
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 7 additions & 3 deletions vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ nnoremap <leader>so :source $MYVIMRC<cr>
nnoremap <leader>nt :NERDTree<cr>
nnoremap <leader>nf :NERDTreeFind<cr>
" fzf mappings
nnoremap <silent> <leader>d :Files<cr>
nnoremap <silent> <Leader>f :Rg<cr>
"ALE fix file
" nmap <leader>sa :ALEFix<cr>

Expand Down Expand Up @@ -304,9 +308,9 @@ autocmd FileType json syntax match Comment +\/\/.\+$+
nnoremap <leader>rn <Plug>(coc-rename)
" Formatting selected code.
xnoremap <leader>f <Plug>(coc-format-selected)
vnoremap <leader>f <Plug>(coc-format-selected)
nnoremap <leader>f <Plug>(coc-format-selected)
" xnoremap <leader>f <Plug>(coc-format-selected)
" vnoremap <leader>f <Plug>(coc-format-selected)
" nnoremap <leader>f <Plug>(coc-format-selected)

augroup mygroup
autocmd!
Expand Down
2 changes: 2 additions & 0 deletions zsh/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ setopt share_history # share command history data

# load env variables
export LESS="-XFR"
export USE_GKE_GCLOUD_AUTH_PLUGIN=True # required for kubectl auth updates
export FZF_DEFAULT_COMMAND='rg' # make fzf use rg by default
# export ANSIBLE_VAULT_PASSWORD_FILE=~/.vault-pass.txt
# export ANSIBLE_HOST_KEY_CHECKING=False
# export GOPATH=/Users/robertjones/Code/go
Expand Down

0 comments on commit ac8f764

Please sign in to comment.