I'm attempting to use a tiny autocmd to format my code before saving:
autocmd BufWritePre *.cs :OmniSharpCodeFormat
I expected this to run the code formatter, and then save the output. Instead, it runs the code formatter, which correctly changes the code in my buffer, and yet the saved file is the original pre-formatted buffer.
Not quite sure what I'm doing wrong here! Open to any thoughts or suggestions.