aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vimrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 40d20f0..fc73fa7 100644
--- a/vimrc
+++ b/vimrc
@@ -337,6 +337,9 @@
" 2015.08.18:
" * Add a mapping system copy the current file's path
"
+" 2015.10.28:
+" * Add a mapping to open the current file in Chrome
+"
" Pathogen
@@ -637,6 +640,9 @@ nnoremap <leader>of :execute '!open "' . expand('%:p:h') . '"'<cr>
" Open current file in ranger
nnoremap <leader>or :execute '!ranger "' . expand('%:p:h') . '"'<cr>
+" Open the current file in Chrome
+nnoremap <leader>oc :execute '!open -a Google\ Chrome\ Canary "' . expand('%:p') . '"'<cr>
+
" HTML
" Split outer tag on a single line to multiple lines
" Example: