<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write(self, noautocmd=False):
 """Writes the file of the current buffer. Args: noautocmd (bool):
 If true, write will skip autocommands. Todo: We should consider whether ``SourceFileInfo`` can replace most usage of noautocmd. See #298 """

        cmd = 'noautocmd write' if noautocmd else 'write'
        self._vim.command(cmd)