From 1e39e52bad15c434315fcfa9ab56eefeea6c1f36 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 19 Jun 2014 14:40:47 -0400 Subject: vimrc: fix Open in Textmate mapping Allow paths with spaces. --- vimrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index abf3f03..3c13724 100644 --- a/vimrc +++ b/vimrc @@ -209,6 +209,9 @@ " for quickly modifying the filename or interacting with the file " directly in other ways. " +" 2014.06.19: +" * Fix 'Open in TextMate' mapping: allow paths with spaces +" " Pathogen @@ -522,7 +525,7 @@ nnoremap sb :setlocal scrollbind! vnoremap c !tee >(pbcopy) " Open current file in TextMate -nnoremap om :execute '!mate ' . expand('%:p') +nnoremap om :execute '!mate "' . expand('%:p') . '"' " Open current file in Finder nnoremap of :execute '!open ' . expand('%:p:h') -- cgit v1.2.3