Update vimrc and zshrc
This commit is contained in:
parent
5ccc2add3c
commit
0403e7ef1f
9
vimrc
9
vimrc
|
@ -124,9 +124,12 @@ map <leader>m :marks<cr>
|
||||||
map <leader>R :ALERename<cr>
|
map <leader>R :ALERename<cr>
|
||||||
map <leader>v :vsplit<cr>
|
map <leader>v :vsplit<cr>
|
||||||
map <leader>s :split<cr>
|
map <leader>s :split<cr>
|
||||||
map <leader>bl :Gblame<cr>
|
map <leader>ab :Gblame<cr>
|
||||||
" ctrl-c to unload a buffer
|
map <leader>as :Gstatus<cr>
|
||||||
nnoremap <silent> <c-q> :bp\|bd #<cr>
|
" yank filename of current buffer:
|
||||||
|
nmap <leader>f :let @" = expand("%")<cr>
|
||||||
|
" and into + register:
|
||||||
|
nmap <leader>F :let @+ = expand("%")<cr>
|
||||||
|
|
||||||
function! ToggleQuickFix()
|
function! ToggleQuickFix()
|
||||||
if empty(filter(getwininfo(), 'v:val.quickfix'))
|
if empty(filter(getwininfo(), 'v:val.quickfix'))
|
||||||
|
|
2
zshrc
2
zshrc
|
@ -129,6 +129,8 @@ git config --global alias.br branch
|
||||||
# Other aliases
|
# Other aliases
|
||||||
alias c.="cd .."
|
alias c.="cd .."
|
||||||
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 ll="exa -l --group-directories-first --git"
|
||||||
alias sysc="systemctl"
|
alias sysc="systemctl"
|
||||||
alias zzz="sudo systemctl hibernate"
|
alias zzz="sudo systemctl hibernate"
|
||||||
|
|
Loading…
Reference in New Issue