From c518cb7ea840ffbad576abfdc62bbf62fc00220b Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 9 Jun 2014 11:30:28 -0400 Subject: vimrc: fix 'open in Finder' mapping I incorrectly set the mapping to open the current working directory instead of the current file's directory. --- vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index de998dc..abf3f03 100644 --- a/vimrc +++ b/vimrc @@ -525,7 +525,7 @@ vnoremap c !tee >(pbcopy) nnoremap om :execute '!mate ' . expand('%:p') " Open current file in Finder -nnoremap of :execute '!open ' . getcwd() +nnoremap of :execute '!open ' . expand('%:p:h') -- cgit v1.2.3