Daily Vim Devotional
Open The Current Directory

If you want to open the directory of the file you’re editing on a Mac, type:

:!open %:p:h

This uses the open command with the path of the file you’re editing. You probably can come up with other creative ways to use %:p:h.

man open

(Source: vim.wikia.com)

blog comments powered by Disqus