Open TyOverby opened 9 years ago
You can run rustfmt
on every save. It is fast enough to do not disturb.
Unfortunately I have Vim set up to save every half-second. It might be annoying if rustfmt triggers in the middle of some editing...
Isn't it better to enable persistent undo than saving each half-second?
I like being able to alt-tab and run builds without having to save manually.
I think that manually hitting save is pretty archaic and should go away now that we have SSDs that are essentially 0-latency.
My flow is quite different:
<leader>rt
and I have save, split and tests at once)The only thing that I am thinking about is to use NeoVim :terminal
instead of Vimux, but it works for me now.
EDIT: You can save ex. when losing focus.
I'm planning on switching to NeoVim :terminal
too, but I'll probably keep save-on-edit even when I do.
I really like not having to think about "is that file on my hard drive up to date with what I have in vim?" because it literally always is.
I'm using rustfmt to format the code. Ideally, you should run this before every push, but I don't really care that much.