Friday, April 2, 2021

Re: How to setup an external command to indent bash script?

On 4/2/21 4:16 PM, Peng Yu wrote:
> It can take the file from STDIN in this way. The output is to STDOUT.

Even better.

> Could you show me the commands...

I don't know as I've not used formatprg in recent memory.

I'd try interactively setting it and testing it with a file.

Quickly poking at things looks like:

:set formatprg=/path/to/shfmt

Give it a try. Please let us know what you find out.



--
Grant. . . .
unix || die

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/8bb7d206-f4c1-0174-56e4-513996070bbd%40spamtrap.tnetconsulting.net.

No comments: