{"action":"created","issue":{"url":"https://api.github.com/repos/atom/vim-mode/issues/73","labels_url":"https://api.github.com/repos/atom/vim-mode/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/atom/vim-mode/issues/73/comments","events_url":"https://api.github.com/repos/atom/vim-mode/issues/73/events","html_url":"https://github.com/atom/vim-mode/issues/73","id":28446245,"number":73,"title":"Commands for changing case: ~, vu, vU, gu, gU, guu, gUU, etc","user":{"login":"wylieconlon","id":666475,"avatar_url":"https://avatars.githubusercontent.com/u/666475?v=3","gravatar_id":"","url":"https://api.github.com/users/wylieconlon","html_url":"https://github.com/wylieconlon","followers_url":"https://api.github.com/users/wylieconlon/followers","following_url":"https://api.github.com/users/wylieconlon/following{/other_user}","gists_url":"https://api.github.com/users/wylieconlon/gists{/gist_id}","starred_url":"https://api.github.com/users/wylieconlon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wylieconlon/subscriptions","organizations_url":"https://api.github.com/users/wylieconlon/orgs","repos_url":"https://api.github.com/users/wylieconlon/repos","events_url":"https://api.github.com/users/wylieconlon/events{/privacy}","received_events_url":"https://api.github.com/users/wylieconlon/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":3,"created_at":"2014-02-27T19:21:09Z","updated_at":"2015-09-01T10:24:12Z","closed_at":null,"body":"Most of these commands involve selecting a visual block where you can change the case of everything selected. More examples of commands from the [vim wiki on switching case](http://vim.wikia.com/wiki/Switching_case_of_characters):\r\n\r\n    ~\r\n    Toggle case of the character under the cursor, or all visually-selected characters.\r\n\r\n    3~\r\n    Toggle case of the next three characters.\r\n\r\n    g~3w\r\n    Toggle case of the next three words.\r\n\r\n    g~iw\r\n    Toggle case of the current word (inner word – cursor anywhere in word).\r\n\r\n    g~$\r\n    Toggle case of all characters to end of line.\r\n\r\n    g~~\r\n    Toggle case of the current line (same as V~).\r\n    The above uses ~ to toggle case. In each example, you can replace ~ with u to convert to lowercase, or with U to convert to uppercase. For example:\r\n\r\n    U\r\n    Uppercase the visually-selected text.\r\n    First press v or V then move to select text.\r\n    If you don't select text, pressing U will undo all changes to the current line.\r\n\r\n    gUU\r\n    Change the current line to uppercase (same as VU).\r\n\r\n    gUiw\r\n    Change current word to uppercase.\r\n\r\n    u\r\n    Lowercase the visually-selected text.\r\n    If you don't select text, pressing u will undo the last change.\r\n\r\n    guu\r\n    Change the current line to lowercase (same as Vu)."},"comment":{"url":"https://api.github.com/repos/atom/vim-mode/issues/comments/136666298","html_url":"https://github.com/atom/vim-mode/issues/73#issuecomment-136666298","issue_url":"https://api.github.com/repos/atom/vim-mode/issues/73","id":136666298,"user":{"login":"t9md","id":155205,"avatar_url":"https://avatars.githubusercontent.com/u/155205?v=3","gravatar_id":"","url":"https://api.github.com/users/t9md","html_url":"https://github.com/t9md","followers_url":"https://api.github.com/users/t9md/followers","following_url":"https://api.github.com/users/t9md/following{/other_user}","gists_url":"https://api.github.com/users/t9md/gists{/gist_id}","starred_url":"https://api.github.com/users/t9md/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t9md/subscriptions","organizations_url":"https://api.github.com/users/t9md/orgs","repos_url":"https://api.github.com/users/t9md/repos","events_url":"https://api.github.com/users/t9md/events{/privacy}","received_events_url":"https://api.github.com/users/t9md/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T10:24:12Z","updated_at":"2015-09-01T10:24:12Z","body":"As reference, my folked vim-mode now support this.\r\nhttps://github.com/t9md/vim-mode/commit/4b206accd1cae0f60ebf6aa1016d4c9f2a69d56f\r\nCurrent official vim-mode's have minor bug(gU, gu, g~ operator won't move cursor in Vim)."}}