{"action":"created","issue":{"url":"https://api.github.com/repos/atom/vim-mode/issues/629","labels_url":"https://api.github.com/repos/atom/vim-mode/issues/629/labels{/name}","comments_url":"https://api.github.com/repos/atom/vim-mode/issues/629/comments","events_url":"https://api.github.com/repos/atom/vim-mode/issues/629/events","html_url":"https://github.com/atom/vim-mode/issues/629","id":69323504,"number":629,"title":"[cdy]iW macro works like [cdy]W instead","user":{"login":"atsepkov","id":2549997,"avatar_url":"https://avatars.githubusercontent.com/u/2549997?v=3","gravatar_id":"","url":"https://api.github.com/users/atsepkov","html_url":"https://github.com/atsepkov","followers_url":"https://api.github.com/users/atsepkov/followers","following_url":"https://api.github.com/users/atsepkov/following{/other_user}","gists_url":"https://api.github.com/users/atsepkov/gists{/gist_id}","starred_url":"https://api.github.com/users/atsepkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atsepkov/subscriptions","organizations_url":"https://api.github.com/users/atsepkov/orgs","repos_url":"https://api.github.com/users/atsepkov/repos","events_url":"https://api.github.com/users/atsepkov/events{/privacy}","received_events_url":"https://api.github.com/users/atsepkov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/vim-mode/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-18T16:18:41Z","updated_at":"2015-08-26T14:24:03Z","closed_at":null,"body":"In vim, prefixing 'w' macro with 'i' applies the command to the entire word rather than the remainder of the word past the cursor. In atom with vim-mode this works correctly for lower-case 'w'. However, for upper-case 'W', the i-prefix is ignored. The upper-case 'W' uses only whitespace as delimiters rather than all punctuation like 'w', which is very useful in programming.\r\n\r\nHere is an example of this bug, let's assume the cursor is over 'e' in the word 'key':\r\n\r\n    a = hash['key']      # original (assume cursor is over letter 'e')\r\n    a = hash['k']        # both vim and atom w/ vim-mode after 'dw' command\r\n    a = hash['']         # both vim and atom w/ vim-mode after 'diw' command\r\n    a = hash['k          # both vim and atom w/ vim-mode after 'dW' command\r\n    a =                  # vim after 'diW' command\r\n    a = hash['k          # atom w/ vim-mode after 'diW' command (bug)\r\n"},"comment":{"url":"https://api.github.com/repos/atom/vim-mode/issues/comments/135038538","html_url":"https://github.com/atom/vim-mode/issues/629#issuecomment-135038538","issue_url":"https://api.github.com/repos/atom/vim-mode/issues/629","id":135038538,"user":{"login":"jacekkopecky","id":807315,"avatar_url":"https://avatars.githubusercontent.com/u/807315?v=3","gravatar_id":"","url":"https://api.github.com/users/jacekkopecky","html_url":"https://github.com/jacekkopecky","followers_url":"https://api.github.com/users/jacekkopecky/followers","following_url":"https://api.github.com/users/jacekkopecky/following{/other_user}","gists_url":"https://api.github.com/users/jacekkopecky/gists{/gist_id}","starred_url":"https://api.github.com/users/jacekkopecky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacekkopecky/subscriptions","organizations_url":"https://api.github.com/users/jacekkopecky/orgs","repos_url":"https://api.github.com/users/jacekkopecky/repos","events_url":"https://api.github.com/users/jacekkopecky/events{/privacy}","received_events_url":"https://api.github.com/users/jacekkopecky/received_events","type":"User","site_admin":false},"created_at":"2015-08-26T14:24:03Z","updated_at":"2015-08-26T14:24:03Z","body":"`iW` has been there for a while, so has `i(`, but not `ib`"}}