{"action":"created","issue":{"url":"https://api.github.com/repos/fatih/vim-go/issues/481","labels_url":"https://api.github.com/repos/fatih/vim-go/issues/481/labels{/name}","comments_url":"https://api.github.com/repos/fatih/vim-go/issues/481/comments","events_url":"https://api.github.com/repos/fatih/vim-go/issues/481/events","html_url":"https://github.com/fatih/vim-go/issues/481","id":93816158,"number":481,"title":"GoImports undoable","user":{"login":"eatonphil","id":3925912,"avatar_url":"https://avatars.githubusercontent.com/u/3925912?v=3","gravatar_id":"","url":"https://api.github.com/users/eatonphil","html_url":"https://github.com/eatonphil","followers_url":"https://api.github.com/users/eatonphil/followers","following_url":"https://api.github.com/users/eatonphil/following{/other_user}","gists_url":"https://api.github.com/users/eatonphil/gists{/gist_id}","starred_url":"https://api.github.com/users/eatonphil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eatonphil/subscriptions","organizations_url":"https://api.github.com/users/eatonphil/orgs","repos_url":"https://api.github.com/users/eatonphil/repos","events_url":"https://api.github.com/users/eatonphil/events{/privacy}","received_events_url":"https://api.github.com/users/eatonphil/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-08T15:16:57Z","updated_at":"2015-07-08T19:51:30Z","closed_at":"2015-07-08T19:51:30Z","body":"It would be awesome if you could undo a GoImports deletion. I am always accidentally saving before I add a reference to a package I just added. I have to retype it instead of just hitting `u`."},"comment":{"url":"https://api.github.com/repos/fatih/vim-go/issues/comments/119712351","html_url":"https://github.com/fatih/vim-go/issues/481#issuecomment-119712351","issue_url":"https://api.github.com/repos/fatih/vim-go/issues/481","id":119712351,"user":{"login":"fatih","id":438920,"avatar_url":"https://avatars.githubusercontent.com/u/438920?v=3","gravatar_id":"","url":"https://api.github.com/users/fatih","html_url":"https://github.com/fatih","followers_url":"https://api.github.com/users/fatih/followers","following_url":"https://api.github.com/users/fatih/following{/other_user}","gists_url":"https://api.github.com/users/fatih/gists{/gist_id}","starred_url":"https://api.github.com/users/fatih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatih/subscriptions","organizations_url":"https://api.github.com/users/fatih/orgs","repos_url":"https://api.github.com/users/fatih/repos","events_url":"https://api.github.com/users/fatih/events{/privacy}","received_events_url":"https://api.github.com/users/fatih/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T19:51:30Z","updated_at":"2015-07-08T19:51:30Z","body":"Hi @eatonphil \r\n\r\nThanks for the idea, though this is something out of control and vim-go doesn't track any state between your previously formatted code and the latter one. What you could do is using `gofmt` command and call `:GoImports` whenever you feel it's safe. Otherwise just hit `u`, which is way simpler than tracking the state. Thanks."}}