Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use :!<command> #4920

Closed
bnovc opened this issue May 31, 2020 · 2 comments · Fixed by #4989
Closed

Unable to use :!<command> #4920

bnovc opened this issue May 31, 2020 · 2 comments · Fixed by #4989

Comments

@bnovc
Copy link

bnovc commented May 31, 2020

Unable to use :!

Would be great to support this. I very frequently do things like :!git grep bla | grep -v bla | ...

@iankamin
Copy link

iankamin commented Jun 4, 2020

I would also love to have this functionality

@tagniam
Copy link
Contributor

tagniam commented Jun 5, 2020

I'll look into implementing this, but in the meantime this should work with neovim integration enabled.

J-Fields pushed a commit that referenced this issue Jul 6, 2020
This PR ports the :!{cmd} bang command from Vim, allowing external shell commands to be run directly from Vim's command mode.

Key features:
- :!{cmd} executes the shell command
- :{range}!{cmd} executes the shell command, pipes the line range to stdin, and replaces the line range with the output from stdout and stderr
- Embedded bangs are replaced with the previous bang command (e.g. :!dir => :!echo ! will execute echo dir)
- Cross-platform, supports Unix and Windows shells

Fixes #3154, fixes #3136, fixes #3069, fixes #4920
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants