{"action":"created","issue":{"url":"https://api.github.com/repos/1995eaton/chromium-vim/issues/321","labels_url":"https://api.github.com/repos/1995eaton/chromium-vim/issues/321/labels{/name}","comments_url":"https://api.github.com/repos/1995eaton/chromium-vim/issues/321/comments","events_url":"https://api.github.com/repos/1995eaton/chromium-vim/issues/321/events","html_url":"https://github.com/1995eaton/chromium-vim/issues/321","id":89929548,"number":321,"title":"Possible to switch to tab N by just pressing N?","user":{"login":"endrebak","id":5526486,"avatar_url":"https://avatars.githubusercontent.com/u/5526486?v=3","gravatar_id":"","url":"https://api.github.com/users/endrebak","html_url":"https://github.com/endrebak","followers_url":"https://api.github.com/users/endrebak/followers","following_url":"https://api.github.com/users/endrebak/following{/other_user}","gists_url":"https://api.github.com/users/endrebak/gists{/gist_id}","starred_url":"https://api.github.com/users/endrebak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endrebak/subscriptions","organizations_url":"https://api.github.com/users/endrebak/orgs","repos_url":"https://api.github.com/users/endrebak/repos","events_url":"https://api.github.com/users/endrebak/events{/privacy}","received_events_url":"https://api.github.com/users/endrebak/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-21T16:18:40Z","updated_at":"2015-08-09T21:40:37Z","closed_at":"2015-08-09T21:40:37Z","body":"I want to quickly change tabs by just pressing the number of the tab I want to go to. Is this possible? If so, I haven't been able to work out how... I know this won't work if you use other commands starting with numbers or have more than 9 tabs, but I never do.\r\n\r\n(Thanks for cvim by the way, I have been playing around with all day and am impressed. Finally a vimlike browser complete enough to switch from Firefox).\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/1995eaton/chromium-vim/issues/comments/129243967","html_url":"https://github.com/1995eaton/chromium-vim/issues/321#issuecomment-129243967","issue_url":"https://api.github.com/repos/1995eaton/chromium-vim/issues/321","id":129243967,"user":{"login":"1995eaton","id":5422476,"avatar_url":"https://avatars.githubusercontent.com/u/5422476?v=3","gravatar_id":"","url":"https://api.github.com/users/1995eaton","html_url":"https://github.com/1995eaton","followers_url":"https://api.github.com/users/1995eaton/followers","following_url":"https://api.github.com/users/1995eaton/following{/other_user}","gists_url":"https://api.github.com/users/1995eaton/gists{/gist_id}","starred_url":"https://api.github.com/users/1995eaton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1995eaton/subscriptions","organizations_url":"https://api.github.com/users/1995eaton/orgs","repos_url":"https://api.github.com/users/1995eaton/repos","events_url":"https://api.github.com/users/1995eaton/events{/privacy}","received_events_url":"https://api.github.com/users/1995eaton/received_events","type":"User","site_admin":false},"created_at":"2015-08-09T21:40:37Z","updated_at":"2015-08-09T21:40:37Z","body":"Pressing numbers repeats commands `<N>` times by default. You can change this behavior by mapping each number individually to a custom function to switch to tab `<N>`. Example:\r\n\r\n'''vim\r\nswitchTab(n) -> {{ RUNTIME('goToTab', {index: n - 1}); }}\r\nmap 1 :call switchTab(1)<CR>\r\nmap 2 :call switchTab(2)<CR>\r\nmap 3 :call switchTab(3)<CR>\r\nmap 4 :call switchTab(4)<CR>\r\nmap 5 :call switchTab(5)<CR>\r\nmap 6 :call switchTab(6)<CR>\r\nmap 7 :call switchTab(7)<CR>\r\nmap 8 :call switchTab(8)<CR>\r\nmap 9 :call switchTab(9)<CR>\r\n'''"}}