Have you checked that you open/close the files correctly?
defer file.Close()?
Is it better than vim+tmux?
Don't you agree?