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

Validate json after save #9

Open
gianarb opened this issue Apr 16, 2015 · 1 comment
Open

Validate json after save #9

gianarb opened this issue Apr 16, 2015 · 1 comment

Comments

@gianarb
Copy link

gianarb commented Apr 16, 2015

If filename is composer.json runs after saving command

composer validate

And if it return 0 (error) open horizontal split with command output

@gianarb gianarb self-assigned this Apr 16, 2015
@sensorario
Copy link
Member

Run a command after saving a file:
http://vimdoc.sourceforge.net/htmldoc/autocmd.html#FilterWritePost

Get current filename:
http://vimdoc.sourceforge.net/htmldoc/eval.html#expand()

Open horizontal split with command output
... I've seen :copen command, but I need a bit of investigation of it ...

@gianarb gianarb removed their assignment Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants