This is a day I feel I have been waiting for ever since I got my first computer.
I managed to seamlessly share a text document between Windows XP and Mac OS X with vim using Google Drive. And it even works offline.
Once you have installed Google Drive, the procedure is very, very simple.
First assume that you sit in a bus or airplane without internet.
- On XP, open Cygwin, or whatever environment you use to run vim.
- Navigate to the Google Drive folder.
- Create a new document using vim.
- Save and close the document.
- When you get somewhere with internet just wake up your XP laptop, and wait for the synchronisation.
- While you wait, take out your Mac.
- Access the Mac's Google Drive folder using Terminal. The document is there.
- Open the document in vim and enjoy.
I should perhaps add that I use vim because it is quick and simple and has no disturbing elements. You should be able to use Notepad or Ultraedit and TextEdit or TextWrangler and do exactly the same thing.
...
Update 18 October 2018: There are now many more options, of course. You can use any Windows version with cygwin or any other environment with vim. You can use any kind of shared drive, like iCloud or OneDrive equally well as Google Drive. Life is much easier than it was half a dozen years ago.
...
Update 18 October 2018: There are now many more options, of course. You can use any Windows version with cygwin or any other environment with vim. You can use any kind of shared drive, like iCloud or OneDrive equally well as Google Drive. Life is much easier than it was half a dozen years ago.
No comments:
Post a Comment