Using MacVim Almost Everywhere in Mac OS X
MacVim 7.1 snapshot 24 was released on 2008-March-14 and includes built-in [*] support for the ODB Editor Suite protocol. If you activate "External Editor" in the MacVim >Preferences > Integration panel, a menu item named "Edit in MacVim" will appear in the Edit menu of lots of Mac OS X applications, including the apps listed here. This is fantastic and has made Mac OS X much more fun for me. For example, I'm currently editing this blog item in Blogger running in Safari. If I want to mess around with the HTML of this blog item, I can do this:
Hashtag: # [?]
- Click the Blogger "Edit Html" tab.
- From the Safari Edit menu, choose Edit in MacVim.
- Use MacVim to edit the HTML and then use the Vim command :wq to write and quit.
- The focus returns to the Blogger blog item text box, which now contains the text that MacVim wrote out.
This makes Blogger blog editing infinitely easier and possibly means that I can stop my search for another blog editing tool. And maybe I'll start blogging more!
Tip 1: To tell MacVim that you are editing an HTML file, you can either use the following command within MacVim:
:set ft=htmlOr put this line in your .vimrc:
autocmd BufRead *.safari setfiletype htmlThis autocmd works because Safari uses the extension .safari for the name of the temporary file that is read by MacVim.
Tip 2: For more HTML+Vim tips, see the thread HTML editing and tag completion that I started in the vim_mac mailing list.
[*] In Snapshot 23 and earlier, the ODB Editor could not be activated in the Preferences panel but instead needed to be activated via a complicated sequence of commands.
Labels: blogger, html, macvim, osx, safari, vim
Hashtag: # [?]
Post & Read Comments (located elsewhere)
Post & Read Comments (located here)
Links to this page
Each item © Nancy McGough
Each comment © the author of the comment
Deflexion.com web site hosted
by DreamHost.com
←
More deflexions & reflexions, & feeds
available via the sidebar
top
&
For bookmarks & links, please use
Post a Comment