{"action":"opened","issue":{"url":"https://api.github.com/repos/tpope/vim-commentary/issues/72","repository_url":"https://api.github.com/repos/tpope/vim-commentary","labels_url":"https://api.github.com/repos/tpope/vim-commentary/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/tpope/vim-commentary/issues/72/comments","events_url":"https://api.github.com/repos/tpope/vim-commentary/issues/72/events","html_url":"https://github.com/tpope/vim-commentary/issues/72","id":162390841,"number":72,"title":"Conditionally comment single or multiple lines","user":{"login":"reubano","id":157864,"avatar_url":"https://avatars.githubusercontent.com/u/157864?v=3","gravatar_id":"","url":"https://api.github.com/users/reubano","html_url":"https://github.com/reubano","followers_url":"https://api.github.com/users/reubano/followers","following_url":"https://api.github.com/users/reubano/following{/other_user}","gists_url":"https://api.github.com/users/reubano/gists{/gist_id}","starred_url":"https://api.github.com/users/reubano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reubano/subscriptions","organizations_url":"https://api.github.com/users/reubano/orgs","repos_url":"https://api.github.com/users/reubano/repos","events_url":"https://api.github.com/users/reubano/events{/privacy}","received_events_url":"https://api.github.com/users/reubano/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-27T07:38:43Z","updated_at":"2016-06-27T07:38:43Z","closed_at":null,"body":"I have the following mapping in `vimrc`: `nmap <D-/> gc`. Unfortunately, this only works on multiple visually selected lines.  The solution is to map to `gc$`, but that having 2 mappings to comments doesn't seem correct. Is there a way to conditionally map to `gc` or `gc$` that works in the following cases:\r\n\r\n - comment current line\r\n - comment 1 visually selected line\r\n - comment 2 or more visually selected lines"}}
{"actor":{"display_login":"reubano"}}