From 1f8e240d419d522b3f6e226aad3ec3b9a8c271db Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 6 Jun 2014 22:09:17 -0400 Subject: vimrc: add mapping to open current file in TextMate Just in case. Can be useful to open the file in a different editor sometimes and if there's an easy way to do it all the better. --- vimrc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vimrc') 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 sb :setlocal scrollbind! " http://stackoverflow.com/a/17126375 vnoremap c !tee >(pbcopy) +" Open current file in TextMate +nnoremap om :execute '!mate ' . expand('%:p') + " Commands -- cgit v1.2.3