typeintandem / tandem

Typing in Tandem. Decentralized, cross-editor, collaborative text-editing!
Apache License 2.0
698 stars 20 forks source link

vim.command("enew") is broken #67

Closed rageandqq closed 6 years ago

rageandqq commented 6 years ago

After you run a Tandem session and stop it with "TandemStop", restarting it causes this issue:

Error detected while processing :
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "<string>", line 54, in start
  File "/Users/sameer/Documents/development/tandem/plugins/vim/tandem_lib.py", line 285, in start
    self._initialize()
  File "/Users/sameer/Documents/development/tandem/plugins/vim/tandem_lib.py", line 70, in _initialize
    vim.command('enew')
vim.error: Vim(enew):E37: No write since last change (add ! to override)
Press ENTER or type command to continue

Looks like the command is broken. Probably need to add "!" to overwrite it. As a side note, I had deleted all content on my buffer, so it probably didn't even need to do this in the first place.