From 0403e7ef1f1ffabf4bf4932e199942c34717a390 Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Wed, 24 Mar 2021 09:16:09 +0100 Subject: [PATCH] Update vimrc and zshrc --- vimrc | 9 ++++++--- zshrc | 2 ++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/vimrc b/vimrc index c983a92..0c32a99 100644 --- a/vimrc +++ b/vimrc @@ -124,9 +124,12 @@ map m :marks map R :ALERename map v :vsplit map s :split -map bl :Gblame -" ctrl-c to unload a buffer -nnoremap :bp\|bd # +map ab :Gblame +map as :Gstatus +" yank filename of current buffer: +nmap f :let @" = expand("%") +" and into + register: +nmap F :let @+ = expand("%") function! ToggleQuickFix() if empty(filter(getwininfo(), 'v:val.quickfix')) diff --git a/zshrc b/zshrc index aace759..ac4ee7b 100644 --- a/zshrc +++ b/zshrc @@ -129,6 +129,8 @@ git config --global alias.br branch # Other aliases alias c.="cd .." alias c-="cd -" +alias cdgit='cd $(git rev-parse --show-toplevel)' +alias cdg=cdgit alias ll="exa -l --group-directories-first --git" alias sysc="systemctl" alias zzz="sudo systemctl hibernate"