Reputation: 2182
So, I have reproduced it. Running:git ls-files|grep navbar.html|xargs vim
in my Git Bash
and exiting vim making my Git Bash
not accept keyboard inputs anymore. However my other Git Bash
windows working fine.
Any ideas how can I get arround this problem?
Upvotes: 3
Views: 6288
Reputation: 1069
Sometimes like when you are not on full screen and you insert command like
git log | git diff
or something like them that need a bigger window size to show bunch of data you'll get colon sign
:
that is for displaying data summary and you can scroll data to see more by using arrow keys. at the end you can quit this mode using q key
press "Q" keyword to exit.
Upvotes: 0
Reputation: 309
This is a common vim usage error (see also https://unix.stackexchange.com/questions/77395/grep-l-xargs-vim-generates-a-warning-why). This command will do what you want:
git ls-files | grep navbar.html | xargs sh -c 'vim "$@" <$0' /dev/tty
Upvotes: 0