{"action":"created","issue":{"url":"https://api.github.com/repos/machakann/vim-columnmove/issues/1","labels_url":"https://api.github.com/repos/machakann/vim-columnmove/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/machakann/vim-columnmove/issues/1/comments","events_url":"https://api.github.com/repos/machakann/vim-columnmove/issues/1/events","html_url":"https://github.com/machakann/vim-columnmove/issues/1","id":95033556,"number":1,"title":"Error when moving past multi byte characters","user":{"login":"lervag","id":998898,"avatar_url":"https://avatars.githubusercontent.com/u/998898?v=3","gravatar_id":"","url":"https://api.github.com/users/lervag","html_url":"https://github.com/lervag","followers_url":"https://api.github.com/users/lervag/followers","following_url":"https://api.github.com/users/lervag/following{/other_user}","gists_url":"https://api.github.com/users/lervag/gists{/gist_id}","starred_url":"https://api.github.com/users/lervag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lervag/subscriptions","organizations_url":"https://api.github.com/users/lervag/orgs","repos_url":"https://api.github.com/users/lervag/repos","events_url":"https://api.github.com/users/lervag/events{/privacy}","received_events_url":"https://api.github.com/users/lervag/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-14T20:33:07Z","updated_at":"2015-07-15T04:56:15Z","closed_at":null,"body":"I was made aware of this plugin due to [this](https://vi.stackexchange.com/questions/3929/column-wise-f-f-t-t) question on vi.stackexchage.com. It seems like a very nice plugin!\r\n\r\nWhen testing it, I noticed that the columnwise motions are wrong when there are multi byte characters (or something similar). That is:\r\n\r\n```\r\naa|a\r\naaa\r\n\r\nbbb\r\nøbb\r\n\r\nccc\r\nccc\r\n```\r\n\r\nLet `|` denote where the cursor is (i.e. first line column two). Now do `<m-w>` twice. This should leave the cursor on the second column on the sixth line, but instead I end up at the first column. The reason is that `ø` is a multi byte character or something like that."},"comment":{"url":"https://api.github.com/repos/machakann/vim-columnmove/issues/comments/121487841","html_url":"https://github.com/machakann/vim-columnmove/issues/1#issuecomment-121487841","issue_url":"https://api.github.com/repos/machakann/vim-columnmove/issues/1","id":121487841,"user":{"login":"machakann","id":480049,"avatar_url":"https://avatars.githubusercontent.com/u/480049?v=3","gravatar_id":"","url":"https://api.github.com/users/machakann","html_url":"https://github.com/machakann","followers_url":"https://api.github.com/users/machakann/followers","following_url":"https://api.github.com/users/machakann/following{/other_user}","gists_url":"https://api.github.com/users/machakann/gists{/gist_id}","starred_url":"https://api.github.com/users/machakann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/machakann/subscriptions","organizations_url":"https://api.github.com/users/machakann/orgs","repos_url":"https://api.github.com/users/machakann/repos","events_url":"https://api.github.com/users/machakann/events{/privacy}","received_events_url":"https://api.github.com/users/machakann/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T04:56:15Z","updated_at":"2015-07-15T04:56:15Z","body":"Great! Your advice is quite correct, that is the best way to map keys in operator-pending mode. I also do this kind of \"column-wise cut\" frequently.\r\n\r\nI take a glance at the source code. Since the process for the lines containing multibyte characters is heavy in general way, I put several short-cut conditions for simple cases to make faster. But one of them has been failed. Now it has fixed (4b218642fc43a097ea971f691daeb0a43cdd0b8d), please check."}}