tyru / open-browser-github.vim

Open GitHub URL of current file, etc. from Vim editor (supported GitHub Enterprise)
BSD 3-Clause "New" or "Revised" License
173 stars 14 forks source link

How do I set up a key mapping? #15

Closed akrabat closed 8 years ago

akrabat commented 8 years ago

i can't work out how to set up a key mapping to open the current file in github.

nmap gh <Plug>(openbrowser-github-file) didn't work…

akrabat commented 8 years ago

To answer my own question: nmap gh :OpenGithubFile<CR> works.