MD. Mohiuddin Ahmed
MD. Mohiuddin Ahmed

Reputation: 2182

Git Bash: Not accepting my keyboard input

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

Answers (3)

ARiyou Jahan
ARiyou Jahan

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

Johannes Schindelin
Johannes Schindelin

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

user7330717
user7330717

Reputation:

If you execute reset, it will be fixed.

Upvotes: 5

Related Questions