diff --git a/.gitconfig b/.gitconfig index 4ca97cd..a746219 100644 --- a/.gitconfig +++ b/.gitconfig @@ -19,6 +19,7 @@ blame = "gblame" reabsorb = rebase -i --autosquash flog = "!f() { git ls-tree -r --full-name HEAD | awk '{print $4}' | xargs -i sh -c 'echo $(git log --oneline {} | wc -l) {}'; }; f" + fileprimary = "!f() { git blame --line-porcelain $@ | grep \"author \" | cut -d \" \" -f 2- | sort | uniq -c | sort -n | tail -n 1 | sed -e 's/\\s\\+[0-9]\\+ //g'; }; f" [diff] renamelimit = 0 diff --git a/.vimrc b/.vimrc index 0266a43..1ef2de6 100644 --- a/.vimrc +++ b/.vimrc @@ -651,7 +651,8 @@ nnoremap gK :bdelete! " I use gn/gp to cycle through open tabs/buffers nnoremap gn :bn nnoremap gp :bp -nnoremap gz :pclose +"nnoremap gz :pclose +nnoremap gz :!zeal ""& " The single most handy way to get around a file. Cursor over a word, and then " type g* -- you'll go to the next instance of that word in the file. Make it " easier to reach by calling it gw (go-word) instead of hidden away.