tag:blogger.com,1999:blog-59413252008-04-23T19:51:47.778ZDeflexion.comNMnoreply@blogger.comBlogger2125tag:blogger.com,1999:blog-5941325.post-19028228942041130052008-03-21T17:37:00.007Z2008-03-21T21:01:33.306ZUsing MacVim Almost Everywhere in Mac OS X<a href="http://code.google.com/p/macvim/">MacVim</a> 7.1 snapshot 24 was released on 2008-March-14 and includes built-in [*] support for the <a href="http://www.barebones.com/support/develop/odbsuite.shtml">ODB Editor Suite</a> 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 <a title="TextMateAwarePrograms" href="http://wiki.macromates.com/Main/TextMateAwarePrograms">here</a>. 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: <ol><li>Click the Blogger "Edit Html" tab.</li><li>From the Safari Edit menu, choose Edit in MacVim.</li><li>Use MacVim to edit the HTML and then use the Vim command :wq to write and quit.</li><li>The focus returns to the Blogger blog item text box, which now contains the text that MacVim wrote out.</li></ol><div>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!</div><div><br /></div><div><b><i>Tip 1:</i></b> To tell MacVim that you are editing an HTML file, you can either use the following command within MacVim:<pre>:set ft=html</pre>Or put this line in your .vimrc: <pre>autocmd BufRead *.safari setfiletype html</pre> This autocmd works because Safari uses the extension .safari for the name of the temporary file that is read by MacVim.<br /> </div><div> <b><i>Tip 2: </i></b>For more HTML+Vim tips, see the thread <a href="http://groups.google.com/group/vim_mac/browse_thread/thread/21a49b487f02d448/1404633ee5504ad4">HTML editing and tag completion</a> that I started in the <a href="http://groups.google.com/group/vim_mac">vim_mac mailing list</a>.<br /></div><br /><div>[*] 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.<br /></div>NMnoreply@blogger.comtag:blogger.com,1999:blog-5941325.post-18900447358736399262007-07-17T12:57:00.000Z2007-07-18T11:35:42.849ZSafari 3 Pros and ConsI'm continuing to <a href="http://deflexion.com/2006/10/dancing-with-web-browsers">dance with lots of web browsers</a> and for the past couple weeks I've had <a href="http://www.apple.com/safari/">Safari 3</a> set as my primary browser. Here's what I like about Safari 3.<br /><br /><b><u>Pros</u></b> <ul><li>stretchable form fields - this is great for editing the del.icio.us Notes field, the Blogger "Edit Html" field (but unfortunately not the Blogger WYSIWYG "Compose" field), and lots of other form fields</li><li>nice built-in PDF viewer (which I've now set as the default PDF viewer on my system) </li><li>built-in RSS reader</li><li>cross platform -- <a href="http://www.apple.com/iphone/">iPhone</a>, <a href="http://www.apple.com/safari/download/">Mac OS X, and MS Windows</a> (but not Linux)</li><li>can email a web page via File> Mail Contents of This Page</li><li>can turn off Flash by unchecking Safari> Preferences> Security> Web Content> Enable plug-ins</li><li>can <a href="http://developer.apple.com/internet/safari/faq.html#anchor14">activate the Debug menu</a></li><li>based on <a href="http://webkit.org/">WebKit</a>, which is FLOSS (LGPL and BSD licenses)<br /></li><li><a href="http://webkit.org/blog/">blog (for WebKit)</a></li><li><a href="http://trac.webkit.org/projects/webkit/wiki">wiki (for WebKit)</a></li><li><a href="http://discussions.apple.com/category.jspa?categoryID=169">discussion groups</a></li></ul><br />And here's what I don't like.<br /><br /><b><u>Cons</u></b> <ul><li>can't change the built-in search engine from Google</li><li>can't remove the Google search field from the Toolbar because it is connected to the Address field, which I need</li><li>can't right-click on an image and choose "View Image" or "Block Images from This Server" or "Properties", all of which I use all the time in <a href="http://deflexion.com/2006/04/seamonkey-suite-101-and-send-this-page">SeaMonkey</a></li><li>can't easily toggle Flash on and off</li><li>can't turn off animated gifs</li><li>can't tell if I've already subscribed to a feed by looking at the address field's blue RSS icon (because it looks the same whether I'm subscribed or unsubscribed)</li><li>can't initiate a page search with <b>/</b> (forward slash) but instead must use <span class="Apple-style-span" style="font-weight: bold;">Cmd+F</span></li><li>the keyboard shortcuts for cycling through tabs suck because they are 3 keystrokes, <span class="Apple-style-span" style="font-weight: bold;">Cmd+Shift+]</span> and <span class="Apple-style-span" style="font-weight: bold;">Cmd+Shift+[</span></li><li>no favicons in tabs</li><li>can't set it up to automatically delete cookies on exit</li><li>no blog or wiki specifically about Safari</li><li>can't participate in Safari discussion groups via email, NNTP, or other standard messaging protocol</li></ul>For now the Cons outweigh the Pros and I'm no longer using Safari as my default browser. I am, however, going to continue to use it for writing blog posts because I love being able to stretch the Blogger "Edit HTML" field to the size of the browser window -- that was the main thing I liked about <a href="http://deflexion.com/2006/01/using-performancing-for-blogging">using Performancing (aka ScribeFire) for blogging</a>.<br /><br />If you have any thoughts or tips about Safari 3, please post a comment.<div><br /></div><div><b><i>See Also:</i></b> Wikipedia.org: <a href="http://en.wikipedia.org/wiki/Safari_(web_browser)">Safari (web browser)</a></div>NMnoreply@blogger.com