aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vimrc8
1 files changed, 8 insertions, 0 deletions
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 <leader>c !tee >(pbcopy)<cr>
" Open current file in TextMate
nnoremap <leader>om :execute '!mate ' . expand('%:p')<cr>
+" Open current file in Finder
+nnoremap <leader>of :execute '!open ' . getcwd()<cr>
+
" Commands