From 60605d13d013d94d181b9e6c75ef4379b5b18f2c Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Fri, 5 Oct 2018 13:38:00 -0400 Subject: [PATCH] Tweak aliases --- aliases | 4 ++++ vimrc | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/aliases b/aliases index d5358cf..211b4c1 100644 --- a/aliases +++ b/aliases @@ -176,6 +176,10 @@ alias gcm="git commit -m" alias gcms="git commit -S -m" alias gco='git checkout' alias gco-='git checkout -' +git_checkout_build() { + git checkout "$1" ; b +} +alias gcoo=git_checkout_build alias gcob='git checkout -b' alias gcon='vi .git/config' alias gcp='git cherry-pick' diff --git a/vimrc b/vimrc index 854dfad..7bb6565 100644 --- a/vimrc +++ b/vimrc @@ -528,8 +528,10 @@ noremap :TagbarToggle " GITGUTTER """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +let g:gitgutter_enabled = 0 let g:gitgutter_highlight_lines = 1 -nmap ha GitGutterStageHunk +nmap ha GitGutterStageHunk +nmap hh :GitGutterToggle nmap [h GitGutterNextHunk nmap ]h GitGutterPrevHunk " Run on file save. Realtime update is disabled in after/plugins/gitgutter.vim @@ -845,7 +847,7 @@ noremap :call HideBuildResultsAndClearErrors() " Optimizations off nnoremap b :AsyncRun! -save=2 ./build* " Optimizations on -nnoremap bb :AsyncRun! -save=2 ./build* -o 1 +nnoremap bb :AsyncRun! -save=2 ./build -o 1 nnoremap :call SilentBuild() " Execute run script