{"action":"created","comment":{"url":"https://api.github.com/repos/neovim/neovim/pulls/comments/23495948","id":23495948,"diff_hunk":"@@ -143,32 +138,32 @@ func <SID>GetPage(...)\n       endwhile\n     endif\n     if &filetype != \"man\"\n-      new\n-      setl nonu fdc=0\n+      tabnew\n+      setlocal nonumber foldcolumn=0\n     endif\n   endif\n   silent exec \"edit $HOME/\".page.\".\".sect.\"~\"\n   \" Avoid warning for editing the dummy file twice\n-  setl buftype=nofile noswapfile\n+  setlocal buftype=nofile noswapfile\n \n-  setl ma nonu nornu nofen\n-  silent exec \"norm 1GdG\"\n+  setlocal modifiable nonumber norelativenumber nofoldenable\n+  silent norm! 1GdG\n   let $MANWIDTH = winwidth(0)\n   silent exec \"r!/usr/bin/man \".s:GetCmdArg(sect, page).\" | col -b\"\n   \" Remove blank lines from top and bottom.\n   while getline(1) =~ '^\\s*$'\n-    silent norm ggdd\n+    silent norm! ggdd\n   endwhile\n   while getline('$') =~ '^\\s*$'\n-    silent norm Gdd\n+    silent norm! Gdd\n   endwhile\n   1\n-  setl ft=man nomod\n-  setl bufhidden=hide\n-  setl nobuflisted\n+  setlocal ft=man nomodified nomodifiable readonly bufhidden=hide nobuflisted\n+  setlocal tabstop=8 nolist colorcolumn=0\n+  nnoremap <nowait><buffer> q <c-w>c","path":"runtime/ftplugin/man.vim","position":105,"original_position":96,"commit_id":"2e71dbd46064cae427c6c5d65defc10934b6355a","original_commit_id":"449da227c240c4a8b040b73aeaf38115f41ba93b","user":{"login":"aktau","id":189413,"avatar_url":"https://avatars.githubusercontent.com/u/189413?v=3","gravatar_id":"","url":"https://api.github.com/users/aktau","html_url":"https://github.com/aktau","followers_url":"https://api.github.com/users/aktau/followers","following_url":"https://api.github.com/users/aktau/following{/other_user}","gists_url":"https://api.github.com/users/aktau/gists{/gist_id}","starred_url":"https://api.github.com/users/aktau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aktau/subscriptions","organizations_url":"https://api.github.com/users/aktau/orgs","repos_url":"https://api.github.com/users/aktau/repos","events_url":"https://api.github.com/users/aktau/events{/privacy}","received_events_url":"https://api.github.com/users/aktau/received_events","type":"User","site_admin":false},"body":"I most definitely would press q, out of habit.","created_at":"2015-01-24T11:56:56Z","updated_at":"2015-01-24T11:56:56Z","html_url":"https://github.com/neovim/neovim/pull/1878#discussion_r23495948","pull_request_url":"https://api.github.com/repos/neovim/neovim/pulls/1878","_links":{"self":{"href":"https://api.github.com/repos/neovim/neovim/pulls/comments/23495948"},"html":{"href":"https://github.com/neovim/neovim/pull/1878#discussion_r23495948"},"pull_request":{"href":"https://api.github.com/repos/neovim/neovim/pulls/1878"}}},"pull_request":{"url":"https://api.github.com/repos/neovim/neovim/pulls/1878","id":27962647,"html_url":"https://github.com/neovim/neovim/pull/1878","diff_url":"https://github.com/neovim/neovim/pull/1878.diff","patch_url":"https://github.com/neovim/neovim/pull/1878.patch","issue_url":"https://api.github.com/repos/neovim/neovim/issues/1878","number":1878,"state":"open","locked":false,"title":"use :Man instead of `man` for K","user":{"login":"justinmk","id":1359421,"avatar_url":"https://avatars.githubusercontent.com/u/1359421?v=3","gravatar_id":"","url":"https://api.github.com/users/justinmk","html_url":"https://github.com/justinmk","followers_url":"https://api.github.com/users/justinmk/followers","following_url":"https://api.github.com/users/justinmk/following{/other_user}","gists_url":"https://api.github.com/users/justinmk/gists{/gist_id}","starred_url":"https://api.github.com/users/justinmk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinmk/subscriptions","organizations_url":"https://api.github.com/users/justinmk/orgs","repos_url":"https://api.github.com/users/justinmk/repos","events_url":"https://api.github.com/users/justinmk/events{/privacy}","received_events_url":"https://api.github.com/users/justinmk/received_events","type":"User","site_admin":false},"body":"The `man.vim` ftplugin included with n/vim can be used instead of `man` in the shell. Since neovim doesn't support interactive shell yet (https://github.com/neovim/neovim/issues/1496), this can be used to provide `K` functionality where `man` would have been called instead.\r\n\r\nIMO this is actually better than shelling out to `man` anyways (e.g., nice syntax highlighting), but maybe there is a disadvantage I haven't thought of.\r\n\r\nTodo:\r\n\r\n- [X] change the behavior of `K` to call `:Man` instead of shelling out to `man`\r\n- [X] new feature: if `'keywordprg'` begins with \":\", it is invoked as a Vim ex command instead of a shell command\r\n- [X] update docs\r\n- [ ] source `ftplugin/man.vim` on initial invocation of `K`\r\n- [ ] modify `:Man` to accept a range (and use that as the section number)\r\n- [ ] write tests","created_at":"2015-01-23T22:58:19Z","updated_at":"2015-01-24T11:56:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f3181171c65a7d0269ee4daced4a8f2f93348d83","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/neovim/neovim/pulls/1878/commits","review_comments_url":"https://api.github.com/repos/neovim/neovim/pulls/1878/comments","review_comment_url":"https://api.github.com/repos/neovim/neovim/pulls/comments/{number}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/1878/comments","statuses_url":"https://api.github.com/repos/neovim/neovim/statuses/2e71dbd46064cae427c6c5d65defc10934b6355a","head":{"label":"justinmk:man.vim","ref":"man.vim","sha":"2e71dbd46064cae427c6c5d65defc10934b6355a","user":{"login":"justinmk","id":1359421,"avatar_url":"https://avatars.githubusercontent.com/u/1359421?v=3","gravatar_id":"","url":"https://api.github.com/users/justinmk","html_url":"https://github.com/justinmk","followers_url":"https://api.github.com/users/justinmk/followers","following_url":"https://api.github.com/users/justinmk/following{/other_user}","gists_url":"https://api.github.com/users/justinmk/gists{/gist_id}","starred_url":"https://api.github.com/users/justinmk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinmk/subscriptions","organizations_url":"https://api.github.com/users/justinmk/orgs","repos_url":"https://api.github.com/users/justinmk/repos","events_url":"https://api.github.com/users/justinmk/events{/privacy}","received_events_url":"https://api.github.com/users/justinmk/received_events","type":"User","site_admin":false},"repo":{"id":17302877,"name":"neovim","full_name":"justinmk/neovim","owner":{"login":"justinmk","id":1359421,"avatar_url":"https://avatars.githubusercontent.com/u/1359421?v=3","gravatar_id":"","url":"https://api.github.com/users/justinmk","html_url":"https://github.com/justinmk","followers_url":"https://api.github.com/users/justinmk/followers","following_url":"https://api.github.com/users/justinmk/following{/other_user}","gists_url":"https://api.github.com/users/justinmk/gists{/gist_id}","starred_url":"https://api.github.com/users/justinmk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinmk/subscriptions","organizations_url":"https://api.github.com/users/justinmk/orgs","repos_url":"https://api.github.com/users/justinmk/repos","events_url":"https://api.github.com/users/justinmk/events{/privacy}","received_events_url":"https://api.github.com/users/justinmk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/justinmk/neovim","description":"vim's rebirth for the 21st century","fork":true,"url":"https://api.github.com/repos/justinmk/neovim","forks_url":"https://api.github.com/repos/justinmk/neovim/forks","keys_url":"https://api.github.com/repos/justinmk/neovim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/justinmk/neovim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/justinmk/neovim/teams","hooks_url":"https://api.github.com/repos/justinmk/neovim/hooks","issue_events_url":"https://api.github.com/repos/justinmk/neovim/issues/events{/number}","events_url":"https://api.github.com/repos/justinmk/neovim/events","assignees_url":"https://api.github.com/repos/justinmk/neovim/assignees{/user}","branches_url":"https://api.github.com/repos/justinmk/neovim/branches{/branch}","tags_url":"https://api.github.com/repos/justinmk/neovim/tags","blobs_url":"https://api.github.com/repos/justinmk/neovim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/justinmk/neovim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/justinmk/neovim/git/refs{/sha}","trees_url":"https://api.github.com/repos/justinmk/neovim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/justinmk/neovim/statuses/{sha}","languages_url":"https://api.github.com/repos/justinmk/neovim/languages","stargazers_url":"https://api.github.com/repos/justinmk/neovim/stargazers","contributors_url":"https://api.github.com/repos/justinmk/neovim/contributors","subscribers_url":"https://api.github.com/repos/justinmk/neovim/subscribers","subscription_url":"https://api.github.com/repos/justinmk/neovim/subscription","commits_url":"https://api.github.com/repos/justinmk/neovim/commits{/sha}","git_commits_url":"https://api.github.com/repos/justinmk/neovim/git/commits{/sha}","comments_url":"https://api.github.com/repos/justinmk/neovim/comments{/number}","issue_comment_url":"https://api.github.com/repos/justinmk/neovim/issues/comments/{number}","contents_url":"https://api.github.com/repos/justinmk/neovim/contents/{+path}","compare_url":"https://api.github.com/repos/justinmk/neovim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/justinmk/neovim/merges","archive_url":"https://api.github.com/repos/justinmk/neovim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/justinmk/neovim/downloads","issues_url":"https://api.github.com/repos/justinmk/neovim/issues{/number}","pulls_url":"https://api.github.com/repos/justinmk/neovim/pulls{/number}","milestones_url":"https://api.github.com/repos/justinmk/neovim/milestones{/number}","notifications_url":"https://api.github.com/repos/justinmk/neovim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/justinmk/neovim/labels{/name}","releases_url":"https://api.github.com/repos/justinmk/neovim/releases{/id}","created_at":"2014-02-28T23:17:54Z","updated_at":"2014-12-29T18:58:05Z","pushed_at":"2015-01-24T01:03:18Z","git_url":"git://github.com/justinmk/neovim.git","ssh_url":"git@github.com:justinmk/neovim.git","clone_url":"https://github.com/justinmk/neovim.git","svn_url":"https://github.com/justinmk/neovim","homepage":"http://neovim.org/","size":27428,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"neovim:master","ref":"master","sha":"d84cbfa4dc8b6d1ba7b9c72ad7fb9c40e05ae1d9","user":{"login":"neovim","id":6471485,"avatar_url":"https://avatars.githubusercontent.com/u/6471485?v=3","gravatar_id":"","url":"https://api.github.com/users/neovim","html_url":"https://github.com/neovim","followers_url":"https://api.github.com/users/neovim/followers","following_url":"https://api.github.com/users/neovim/following{/other_user}","gists_url":"https://api.github.com/users/neovim/gists{/gist_id}","starred_url":"https://api.github.com/users/neovim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neovim/subscriptions","organizations_url":"https://api.github.com/users/neovim/orgs","repos_url":"https://api.github.com/users/neovim/repos","events_url":"https://api.github.com/users/neovim/events{/privacy}","received_events_url":"https://api.github.com/users/neovim/received_events","type":"Organization","site_admin":false},"repo":{"id":16408992,"name":"neovim","full_name":"neovim/neovim","owner":{"login":"neovim","id":6471485,"avatar_url":"https://avatars.githubusercontent.com/u/6471485?v=3","gravatar_id":"","url":"https://api.github.com/users/neovim","html_url":"https://github.com/neovim","followers_url":"https://api.github.com/users/neovim/followers","following_url":"https://api.github.com/users/neovim/following{/other_user}","gists_url":"https://api.github.com/users/neovim/gists{/gist_id}","starred_url":"https://api.github.com/users/neovim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neovim/subscriptions","organizations_url":"https://api.github.com/users/neovim/orgs","repos_url":"https://api.github.com/users/neovim/repos","events_url":"https://api.github.com/users/neovim/events{/privacy}","received_events_url":"https://api.github.com/users/neovim/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/neovim/neovim","description":"vim out of the box","fork":false,"url":"https://api.github.com/repos/neovim/neovim","forks_url":"https://api.github.com/repos/neovim/neovim/forks","keys_url":"https://api.github.com/repos/neovim/neovim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neovim/neovim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neovim/neovim/teams","hooks_url":"https://api.github.com/repos/neovim/neovim/hooks","issue_events_url":"https://api.github.com/repos/neovim/neovim/issues/events{/number}","events_url":"https://api.github.com/repos/neovim/neovim/events","assignees_url":"https://api.github.com/repos/neovim/neovim/assignees{/user}","branches_url":"https://api.github.com/repos/neovim/neovim/branches{/branch}","tags_url":"https://api.github.com/repos/neovim/neovim/tags","blobs_url":"https://api.github.com/repos/neovim/neovim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neovim/neovim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neovim/neovim/git/refs{/sha}","trees_url":"https://api.github.com/repos/neovim/neovim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neovim/neovim/statuses/{sha}","languages_url":"https://api.github.com/repos/neovim/neovim/languages","stargazers_url":"https://api.github.com/repos/neovim/neovim/stargazers","contributors_url":"https://api.github.com/repos/neovim/neovim/contributors","subscribers_url":"https://api.github.com/repos/neovim/neovim/subscribers","subscription_url":"https://api.github.com/repos/neovim/neovim/subscription","commits_url":"https://api.github.com/repos/neovim/neovim/commits{/sha}","git_commits_url":"https://api.github.com/repos/neovim/neovim/git/commits{/sha}","comments_url":"https://api.github.com/repos/neovim/neovim/comments{/number}","issue_comment_url":"https://api.github.com/repos/neovim/neovim/issues/comments/{number}","contents_url":"https://api.github.com/repos/neovim/neovim/contents/{+path}","compare_url":"https://api.github.com/repos/neovim/neovim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neovim/neovim/merges","archive_url":"https://api.github.com/repos/neovim/neovim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neovim/neovim/downloads","issues_url":"https://api.github.com/repos/neovim/neovim/issues{/number}","pulls_url":"https://api.github.com/repos/neovim/neovim/pulls{/number}","milestones_url":"https://api.github.com/repos/neovim/neovim/milestones{/number}","notifications_url":"https://api.github.com/repos/neovim/neovim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neovim/neovim/labels{/name}","releases_url":"https://api.github.com/repos/neovim/neovim/releases{/id}","created_at":"2014-01-31T13:39:22Z","updated_at":"2015-01-24T09:16:16Z","pushed_at":"2015-01-24T09:16:52Z","git_url":"git://github.com/neovim/neovim.git","ssh_url":"git@github.com:neovim/neovim.git","clone_url":"https://github.com/neovim/neovim.git","svn_url":"https://github.com/neovim/neovim","homepage":"http://neovim.org","size":49503,"stargazers_count":11624,"watchers_count":11624,"language":"VimL","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":739,"mirror_url":null,"open_issues_count":347,"forks":739,"open_issues":347,"watchers":11624,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/neovim/neovim/pulls/1878"},"html":{"href":"https://github.com/neovim/neovim/pull/1878"},"issue":{"href":"https://api.github.com/repos/neovim/neovim/issues/1878"},"comments":{"href":"https://api.github.com/repos/neovim/neovim/issues/1878/comments"},"review_comments":{"href":"https://api.github.com/repos/neovim/neovim/pulls/1878/comments"},"review_comment":{"href":"https://api.github.com/repos/neovim/neovim/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/neovim/neovim/pulls/1878/commits"},"statuses":{"href":"https://api.github.com/repos/neovim/neovim/statuses/2e71dbd46064cae427c6c5d65defc10934b6355a"}}}}