aboutsummaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorTeddy Wing2014-06-09 11:20:47 -0400
committerTeddy Wing2014-06-09 11:20:47 -0400
commit57782768b75fdf14b977c27e0389e8213c1d60e3 (patch)
treef7b812b0bccc6f2ff37d000d00cd3af11aa110c3 /vimrc
parent1f8e240d419d522b3f6e226aad3ec3b9a8c271db (diff)
downloaddotvim-57782768b75fdf14b977c27e0389e8213c1d60e3.tar.bz2
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.
Diffstat (limited to 'vimrc')
-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