{"action":"created","issue":{"url":"https://api.github.com/repos/tpope/vim-rsi/issues/13","labels_url":"https://api.github.com/repos/tpope/vim-rsi/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/tpope/vim-rsi/issues/13/comments","events_url":"https://api.github.com/repos/tpope/vim-rsi/issues/13/events","html_url":"https://github.com/tpope/vim-rsi/issues/13","id":31060738,"number":13,"title":"Alt maps break macros and mappings that use <esc> + char","user":{"login":"bruno-","id":1042682,"avatar_url":"https://avatars.githubusercontent.com/u/1042682?v=3","gravatar_id":"","url":"https://api.github.com/users/bruno-","html_url":"https://github.com/bruno-","followers_url":"https://api.github.com/users/bruno-/followers","following_url":"https://api.github.com/users/bruno-/following{/other_user}","gists_url":"https://api.github.com/users/bruno-/gists{/gist_id}","starred_url":"https://api.github.com/users/bruno-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruno-/subscriptions","organizations_url":"https://api.github.com/users/bruno-/orgs","repos_url":"https://api.github.com/users/bruno-/repos","events_url":"https://api.github.com/users/bruno-/events{/privacy}","received_events_url":"https://api.github.com/users/bruno-/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2014-04-08T10:55:20Z","updated_at":"2015-07-17T21:51:24Z","closed_at":null,"body":"Hi,\r\nfor the past week or so I was obsessed with setting up Alt mappings for all the possible keys based on the example provided in vim-rsi. I digged the idea of being able to use Alt as another modifier key. I even created a [plugin](https://github.com/bruno-/vim-alt-mappings) that enables that (it's a work in progress, but I probably won't bother to finalize it).\r\n\r\nSince then, I've learned that setting up alt mappings breaks 2 other things:\r\n- regular mappings that use `esc` + character and\r\n- macros that have `esc` + char\r\n\r\nHere's how the issues can be reproduced in vim-rsi:\r\n- the following macro doesn't work `istuff^[f.astuff^[`. `f.` does not do what it should because ^[ + f is recognized as <M-f>\r\n- this mapping does not work `imap <C-s> <Esc>ddi` (this example is obviously made up)\r\n\r\nBasically, anytime `<Esc>` + b, d, f, n or p (alt mappings from vim-rsi) is executed in a macro or a mapping, I *think* it won't work. And it will be dang hard to debug why.\r\n\r\nFor me personally, the biggest issue are `f` and `n` because they are used all to often in macros.\r\n\r\nNot sure if there's any solution to this, but I hope bringing this up helps."},"comment":{"url":"https://api.github.com/repos/tpope/vim-rsi/issues/comments/122428273","html_url":"https://github.com/tpope/vim-rsi/issues/13#issuecomment-122428273","issue_url":"https://api.github.com/repos/tpope/vim-rsi/issues/13","id":122428273,"user":{"login":"tpope","id":378,"avatar_url":"https://avatars.githubusercontent.com/u/378?v=3","gravatar_id":"","url":"https://api.github.com/users/tpope","html_url":"https://github.com/tpope","followers_url":"https://api.github.com/users/tpope/followers","following_url":"https://api.github.com/users/tpope/following{/other_user}","gists_url":"https://api.github.com/users/tpope/gists{/gist_id}","starred_url":"https://api.github.com/users/tpope/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpope/subscriptions","organizations_url":"https://api.github.com/users/tpope/orgs","repos_url":"https://api.github.com/users/tpope/repos","events_url":"https://api.github.com/users/tpope/events{/privacy}","received_events_url":"https://api.github.com/users/tpope/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T21:51:24Z","updated_at":"2015-07-17T21:51:24Z","body":"Oh, bleh, didn't catch the part about macros. I guess nuking the insert mode mappings entirely would be fine."}}