{"action":"created","issue":{"url":"https://api.github.com/repos/jaredpar/VsVim/issues/1563","labels_url":"https://api.github.com/repos/jaredpar/VsVim/issues/1563/labels{/name}","comments_url":"https://api.github.com/repos/jaredpar/VsVim/issues/1563/comments","events_url":"https://api.github.com/repos/jaredpar/VsVim/issues/1563/events","html_url":"https://github.com/jaredpar/VsVim/issues/1563","id":57714528,"number":1563,"title":"i [ESC] A closes currently open file","user":{"login":"Azendale","id":1024258,"avatar_url":"https://avatars.githubusercontent.com/u/1024258?v=3","gravatar_id":"","url":"https://api.github.com/users/Azendale","html_url":"https://github.com/Azendale","followers_url":"https://api.github.com/users/Azendale/followers","following_url":"https://api.github.com/users/Azendale/following{/other_user}","gists_url":"https://api.github.com/users/Azendale/gists{/gist_id}","starred_url":"https://api.github.com/users/Azendale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azendale/subscriptions","organizations_url":"https://api.github.com/users/Azendale/orgs","repos_url":"https://api.github.com/users/Azendale/repos","events_url":"https://api.github.com/users/Azendale/events{/privacy}","received_events_url":"https://api.github.com/users/Azendale/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-15T02:13:09Z","updated_at":"2015-02-15T02:25:58Z","closed_at":null,"body":"Leaving insert mode, and then doing a command such as \"A\" closes the current file.\r\n\r\nThis does not happen if you do a motion command before the \"A\" command. So while 'i [ESC] A' closes the current document, 'i [ESC] w A' would not.\r\n\r\nThis does not seem to be limited to \"A\", other \"insert motion\" commands run right after leaving insert trip this. So 'i [ESC] C' will also close the current file.\r\n\r\nInterestingly, it appears that the command after [ESC] is executed, but after the current file is closed. So if you have files A & B open, and are working in A, and do 'i [ESC] C', you will find yourself in file B, whereever you were last editing B.\r\n\r\nThis is happening with VS 2013. I left the VsVim handling vs Visual Studio handling at defaults, (basically, all handled by Visual Studio). "},"comment":{"url":"https://api.github.com/repos/jaredpar/VsVim/issues/comments/74401124","html_url":"https://github.com/jaredpar/VsVim/issues/1563#issuecomment-74401124","issue_url":"https://api.github.com/repos/jaredpar/VsVim/issues/1563","id":74401124,"user":{"login":"Azendale","id":1024258,"avatar_url":"https://avatars.githubusercontent.com/u/1024258?v=3","gravatar_id":"","url":"https://api.github.com/users/Azendale","html_url":"https://github.com/Azendale","followers_url":"https://api.github.com/users/Azendale/followers","following_url":"https://api.github.com/users/Azendale/following{/other_user}","gists_url":"https://api.github.com/users/Azendale/gists{/gist_id}","starred_url":"https://api.github.com/users/Azendale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azendale/subscriptions","organizations_url":"https://api.github.com/users/Azendale/orgs","repos_url":"https://api.github.com/users/Azendale/repos","events_url":"https://api.github.com/users/Azendale/events{/privacy}","received_events_url":"https://api.github.com/users/Azendale/received_events","type":"User","site_admin":false},"created_at":"2015-02-15T02:25:58Z","updated_at":"2015-02-15T02:25:58Z","body":"Ok, had an idea looking at and writing the original bug report. Did a binary search of the handle with VsVim versus handle with VisualStudio. If handle with Visual Studio is set for Shift+ESC, this bug happens, if it is set to handle with VsVim it does not happen. But I'm not pressing Shift+ESC. (I made myself type one fingered to be sure of this :) ). I'm pressing ESC (letting the ESC key up), then pressing shift."}}