From c9db1e2f86277a084048e702c7d8d3f142ddedc4 Mon Sep 17 00:00:00 2001 From: James Dixon Date: Sat, 7 Nov 2020 15:11:20 -0500 Subject: [PATCH] add vim-rhubarb and keybinds --- files/vim/.vim/keybinds.vim | 3 ++- files/vim/.vim/plugins.vim | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/files/vim/.vim/keybinds.vim b/files/vim/.vim/keybinds.vim index da7782c..d8004d5 100644 --- a/files/vim/.vim/keybinds.vim +++ b/files/vim/.vim/keybinds.vim @@ -4,7 +4,7 @@ let mapleader=' ' "normal keybinds "-------------{{{ "paste and search -nnoremap :let @/ = "" +nnoremap :noh :let @/ = "" nnoremap i :set invpaste "toggles @@ -19,6 +19,7 @@ nnoremap dt :r !date "rc files nnoremap rc :vsplit $MYVIMRC nnoremap rck :vsplit ~/.vim/keybinds.vim +nnoremap rcb :vsplit ~/.vim/keybinds.vim nnoremap rcp :vsplit ~/.vim/plugins.vim nnoremap rcf :vsplit $HOME/.vim/after/ftplugin/ diff --git a/files/vim/.vim/plugins.vim b/files/vim/.vim/plugins.vim index 51be6e6..1e29002 100644 --- a/files/vim/.vim/plugins.vim +++ b/files/vim/.vim/plugins.vim @@ -26,6 +26,8 @@ call plug#begin(pluginDir) Plug 'tpope/vim-dispatch' "git Plug 'tpope/vim-fugitive' + Plug 'tpope/vim-rhubarb' + Plug 'airblade/vim-gitgutter' "fzf Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } Plug 'junegunn/fzf.vim' @@ -125,10 +127,18 @@ nmap agd (ale_go_to_definition) "vim-emmet let g:user_emmet_leader_key = ',' +"git-gutter +nnoremap ggt :GitGutterToggle + "vim-fugitive +nnoremap gw :Gwrite nnoremap gl :Glog nnoremap gs :Gstatus +nnoremap gd :Gdiffsplit nnoremap gp :Gpush +nnoremap ga :Git add % +nnoremap ga. :Git add . +nnoremap gcm :Gcommit "fzf nnoremap f :GitFiles