aboutsummaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index b436055..ef6fa15 100644
--- a/vimrc
+++ b/vimrc
@@ -201,6 +201,8 @@
" 2014.06.06:
" * Add Visual mode mapping to copy selected text to the OS X clipboard
" since I'm using stock vim not compiled with clipboard support.
+" * Add mapping to open the current file in TextMate. Occasionally it's
+" useful to open the file in a different editor.
"
@@ -514,6 +516,9 @@ nnoremap <leader>sb :setlocal scrollbind!<cr>
" http://stackoverflow.com/a/17126375
vnoremap <leader>c !tee >(pbcopy)<cr>
+" Open current file in TextMate
+nnoremap <leader>om :execute '!mate ' . expand('%:p')<cr>
+
" Commands