Friday, April 2, 2021

How to setup an external command to indent bash script?

I want to use shfmt to indent bash script in vim instead of using the
default vim indenter. Could anybody show me how to set this up in vim?

https://github.com/mvdan/sh#shfmt

shfmt -l -w script.sh

--
Regards,
Peng

--
--
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/CABrM6wnqDpnBdTnThC-Rv9HB2-WzLWqmgPgi3zFHyZ%3D862s_0g%40mail.gmail.com.

No comments:

Post a Comment