updated vim.sh

pull/16/head
Hari Sekhon 2 years ago
parent bdc19fdbee
commit b7263f1116

@ -66,6 +66,14 @@ grepvim(){
alias grepv=grepvim
alias vimgrep=grepvim
vimchanged(){
local git_root
git_root="$(git_root)"
# want splitting
# shellcheck disable=SC2046
vim "$@" $(git status --porcelain | awk '/^.M/ {$1=""; print}' | sed "s|^[[:space:]]|$git_root/|")
}
filesvim(){
local files=()
# mapfile not available on Mac and read -a only takes first result

Loading…
Cancel
Save