From 57782768b75fdf14b977c27e0389e8213c1d60e3 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 9 Jun 2014 11:20:47 -0400 Subject: vimrc: add mapping to open current file's directory in Finder Useful for modifying the current file quickly. Did this manually a few times and it was kind of a pain. --- vimrc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'vimrc') diff --git a/vimrc b/vimrc index ef6fa15..de998dc 100644 --- a/vimrc +++ b/vimrc @@ -204,6 +204,11 @@ " * Add mapping to open the current file in TextMate. Occasionally it's " useful to open the file in a different editor. " +" 2014.06.09: +" * Add mapping to open the current file's directory in Finder. Useful +" for quickly modifying the filename or interacting with the file +" directly in other ways. +" " Pathogen @@ -519,6 +524,9 @@ vnoremap c !tee >(pbcopy) " Open current file in TextMate nnoremap om :execute '!mate ' . expand('%:p') +" Open current file in Finder +nnoremap of :execute '!open ' . getcwd() + " Commands -- cgit v1.2.3