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"