Update vimrc and zshrc

This commit is contained in:
Rob Watson 2021-03-24 09:16:09 +01:00
parent 5ccc2add3c
commit 0403e7ef1f
2 changed files with 8 additions and 3 deletions

9
vimrc
View File

@ -124,9 +124,12 @@ map <leader>m :marks<cr>
map <leader>R :ALERename<cr>
map <leader>v :vsplit<cr>
map <leader>s :split<cr>
map <leader>bl :Gblame<cr>
" ctrl-c to unload a buffer
nnoremap <silent> <c-q> :bp\|bd #<cr>
map <leader>ab :Gblame<cr>
map <leader>as :Gstatus<cr>
" yank filename of current buffer:
nmap <leader>f :let @" = expand("%")<cr>
" and into + register:
nmap <leader>F :let @+ = expand("%")<cr>
function! ToggleQuickFix()
if empty(filter(getwininfo(), 'v:val.quickfix'))

2
zshrc
View File

@ -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"