aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2014-06-09 11:30:28 -0400
committerTeddy Wing2014-06-09 11:30:28 -0400
commitc518cb7ea840ffbad576abfdc62bbf62fc00220b (patch)
tree0e354d9fccc6d492d58d830a16181cf745d62373
parent57782768b75fdf14b977c27e0389e8213c1d60e3 (diff)
downloaddotvim-c518cb7ea840ffbad576abfdc62bbf62fc00220b.tar.bz2
vimrc: fix 'open in Finder' mapping
I incorrectly set the mapping to open the current working directory instead of the current file's directory.
-rw-r--r--vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/vimrc b/vimrc
index de998dc..abf3f03 100644
--- a/vimrc
+++ b/vimrc
@@ -525,7 +525,7 @@ vnoremap <leader>c !tee >(pbcopy)<cr>
nnoremap <leader>om :execute '!mate ' . expand('%:p')<cr>
" Open current file in Finder
-nnoremap <leader>of :execute '!open ' . getcwd()<cr>
+nnoremap <leader>of :execute '!open ' . expand('%:p:h')<cr>