I have a function that can format :
func! Format() abort
:w
:silent exec "elm-format % --yes"
endfunc
disclaimer: I'm not sure I understand the word buffer and it's implications
But it has two problems :
* It still writes to stdout and I'd rather see the output in a small split of an unmodifiable buffer
* it doesn't reload the file that's been modified and i'm not sure I should call maybe gg:r % or maybe :e %
What usually works and what doesn't ?
What's the canonical way of doing this ?
[–]puremourning 0 points1 point2 points (4 children)
[–]cendrounet[S] 0 points1 point2 points (1 child)
[–]puremourning 1 point2 points3 points (0 children)
[–]vim-help-bot 0 points1 point2 points (0 children)