Export current buffer with foldings, listchars, etc.