I use the NerdTree plugin for MacVim religiously, and find myself often wanting to open a folder in the Finder to work with the files. An example would be wanting to preview and copy some images.
Is there a quick way to do this that doesn't involve changing the current directory? My perfect scenario would be:
- Move cursor to desired folder
- Press "some key"
- Folder opens up in the finder.
Best Answer
This is available out-of-the-box with NERDTree now as part of the fs_menu.vim plugin. In fact, this feature only works on the Mac:
Navigate to a node in the NERDTree view, type
m
to bring up the fs menu, theno
to open the current node. Directories will be opened in a new Finder window, files will be opened in the application you have set as the default editor for the file's type.This is accomplished compliments of the open command: