aboutsummaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorTeddy Wing2014-06-19 14:40:47 -0400
committerTeddy Wing2014-06-19 14:40:47 -0400
commit1e39e52bad15c434315fcfa9ab56eefeea6c1f36 (patch)
tree35464fb4c283483cb01b7227f5d06e61dd8b6d67 /vimrc
parent0b62cb1da370d19eea46edab57dd8343acfe2648 (diff)
downloaddotvim-1e39e52bad15c434315fcfa9ab56eefeea6c1f36.tar.bz2
vimrc: fix Open in Textmate mapping
Allow paths with spaces.
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc5
1 files changed, 4 insertions, 1 deletions
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 <leader>sb :setlocal scrollbind!<cr>
vnoremap <leader>c !tee >(pbcopy)<cr>
" Open current file in TextMate
-nnoremap <leader>om :execute '!mate ' . expand('%:p')<cr>
+nnoremap <leader>om :execute '!mate "' . expand('%:p') . '"'<cr>
" Open current file in Finder
nnoremap <leader>of :execute '!open ' . expand('%:p:h')<cr>