Vim + Transmit Remote Editing

I was having problems getting MacVim to work with Transmit’s remote editing feature - when I saved the file, it wasn’t uploaded. Turns out by default Vim can create it’s backup files by renaming the original as well as creating a copy - when it decides to rename, Transmit is left looking at the old file so never detects the updates. The solution is simple: add

 set backupcopy=yes 
to your ~/.vimrc . This will force vim to always create backups by copying, ensuring the original file gets updated.

3 notes

Show

  1. penree reblogged this from lstoll
  2. lstoll posted this

Blog comments powered by Disqus