Skip to content

Instantly share code, notes, and snippets.

@pgchamberlin
Last active August 29, 2015 14:02
Show Gist options
  • Save pgchamberlin/00c28f859a1c0fe19879 to your computer and use it in GitHub Desktop.
Save pgchamberlin/00c28f859a1c0fe19879 to your computer and use it in GitHub Desktop.
Vim command to open file in Chrome
# Open the current file in Chrome in OSX from Vim
# Add this to ~/.vimrc
# Usage: `:Browse`
command Browse execute "!/usr/bin/open -a \"/Applications/Google Chrome.app\"" expand('%:p')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment