{"action":"created","issue":{"url":"https://api.github.com/repos/dahu/vimple/issues/7","labels_url":"https://api.github.com/repos/dahu/vimple/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/dahu/vimple/issues/7/comments","events_url":"https://api.github.com/repos/dahu/vimple/issues/7/events","html_url":"https://github.com/dahu/vimple/issues/7","id":54707911,"number":7,"title":"vimple#options adding defaults resets escape code variables","user":{"login":"hardened-apple","id":4070620,"avatar_url":"https://avatars.githubusercontent.com/u/4070620?v=3","gravatar_id":"","url":"https://api.github.com/users/hardened-apple","html_url":"https://github.com/hardened-apple","followers_url":"https://api.github.com/users/hardened-apple/followers","following_url":"https://api.github.com/users/hardened-apple/following{/other_user}","gists_url":"https://api.github.com/users/hardened-apple/gists{/gist_id}","starred_url":"https://api.github.com/users/hardened-apple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hardened-apple/subscriptions","organizations_url":"https://api.github.com/users/hardened-apple/orgs","repos_url":"https://api.github.com/users/hardened-apple/repos","events_url":"https://api.github.com/users/hardened-apple/events{/privacy}","received_events_url":"https://api.github.com/users/hardened-apple/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-18T19:56:17Z","updated_at":"2015-01-18T23:05:19Z","closed_at":"2015-01-18T23:05:19Z","body":"I set the vim options 't_SI' and 't_EI' to xterm escape codes to change the\r\nappearence of the cursor when in insert mode and normal mode.\r\n\r\nsince commit https://github.com/dahu/vimple/commit/6c0d6643508033819def18920eb3e66774f96ca0,\r\nthe variables are cleared after loading vimple, so this doesn't work.\r\n\r\nI tried to see what's making the change, but I can't really tell, I know that\r\ncommenting out the code adding defaults in that commit (currently lines 69,81)\r\nin autoload/vimple/options.vim means the settings aren't reset, but I didn't \r\nget any further than that.\r\n\r\nI'm guessing the problem is something to do with the fact the settings are\r\nescape codes, maybe the regex to reset the values back to the original ones\r\nisn't matching them because of that.\r\n\r\nThe same thing happens with some settings I have to make <C-left> etc work in\r\ntmux (they're also escape codes)."},"comment":{"url":"https://api.github.com/repos/dahu/vimple/issues/comments/70431062","html_url":"https://github.com/dahu/vimple/issues/7#issuecomment-70431062","issue_url":"https://api.github.com/repos/dahu/vimple/issues/7","id":70431062,"user":{"login":"hardened-apple","id":4070620,"avatar_url":"https://avatars.githubusercontent.com/u/4070620?v=3","gravatar_id":"","url":"https://api.github.com/users/hardened-apple","html_url":"https://github.com/hardened-apple","followers_url":"https://api.github.com/users/hardened-apple/followers","following_url":"https://api.github.com/users/hardened-apple/following{/other_user}","gists_url":"https://api.github.com/users/hardened-apple/gists{/gist_id}","starred_url":"https://api.github.com/users/hardened-apple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hardened-apple/subscriptions","organizations_url":"https://api.github.com/users/hardened-apple/orgs","repos_url":"https://api.github.com/users/hardened-apple/repos","events_url":"https://api.github.com/users/hardened-apple/events{/privacy}","received_events_url":"https://api.github.com/users/hardened-apple/received_events","type":"User","site_admin":false},"created_at":"2015-01-18T23:05:19Z","updated_at":"2015-01-18T23:05:19Z","body":"Fixed by commit b9a6e3b3c92b452db14421cf8b1763bd9dd0bc3c Thanks."}}