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

Can I select range of lines and open it on github? #9

Closed athom closed 10 years ago

athom commented 10 years ago

Typing the range number in the command line window is stupid sometimes, isn't it?

Does it any configuration I am missing to support this? Or maybe it is not implemented?

tyru commented 10 years ago
  1. Select lines in visual mode
  2. Type ":OpenGithubFile"

And you should be able to open Github page.

Typing the range number in the command line window is stupid sometimes, isn't it?

Does it any configuration I am missing to support this? Or maybe it is not implemented?

— Reply to this email directly or view it on GitHubhttps://github.com/tyru/open-browser-github.vim/issues/9 .

athom commented 10 years ago
  1. Select lines in visual mode
  2. Type ":OpenGithubFile"

sorry, when I type : after selecting some lines. the visual mode quit.

Any tricks?

tyru commented 10 years ago

please tell me the following command result.

verbose vmap :

2014/04/22 15:00 "yeer" notifications@github.com:

  1. Select lines in visual mode
  2. Type ":OpenGithubFile"

sorry, when I type : after selecting some lines. the visual mode quit.

Any tricks?

— Reply to this email directly or view it on GitHubhttps://github.com/tyru/open-browser-github.vim/issues/9#issuecomment-41006444 .

athom commented 10 years ago

http://screencast.com/t/KXsomAK2mTY

tyru commented 10 years ago

ah, sorry for too few explanation. See the colon (:). verbose vmap :

It seems your : behavior is different with default : behavior. So I guessed that : is mapped in anywhere by plugin, vimrc, and so on.

This is expected behavior of :. It enters command-line mode and inserts '<,'>. (sorry for too quick GIF because of low spec PC...)

athom commented 10 years ago

Hi, @tyru thanks for the snapshot.

I can make it now.

Now I found my problem, after selecting some lines, I press ESC before press : :(

I am so getting used to press : in the normal mode without realizing I had press ESC :p

sorry for the bothering and thanks for your dedicated work for this plugin, it's very useful.

tyru commented 10 years ago

No problem :) Thanks for your feedback! 2014/04/23 15:33 "yeer" notifications@github.com:

Hi, @tyru https://github.com/tyru thanks for the snapshot.

I can do it now.

Now I found my problem, after selecting some lines, I press ESC before press : :(

I am so getting used to press : in the normal mode without realizing I had press ESC :p

sorry for the bothering and thanks for your dedicated work for this plugin, it's very useful.

— Reply to this email directly or view it on GitHubhttps://github.com/tyru/open-browser-github.vim/issues/9#issuecomment-41129095 .