{"action":"created","issue":{"url":"https://api.github.com/repos/CloudI/CloudI/issues/179","labels_url":"https://api.github.com/repos/CloudI/CloudI/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/CloudI/CloudI/issues/179/comments","events_url":"https://api.github.com/repos/CloudI/CloudI/issues/179/events","html_url":"https://github.com/CloudI/CloudI/pull/179","id":86305396,"number":179,"title":"Fix vim modified flag at opening file","user":{"login":"fmarchal","id":4107306,"avatar_url":"https://avatars.githubusercontent.com/u/4107306?v=3","gravatar_id":"","url":"https://api.github.com/users/fmarchal","html_url":"https://github.com/fmarchal","followers_url":"https://api.github.com/users/fmarchal/followers","following_url":"https://api.github.com/users/fmarchal/following{/other_user}","gists_url":"https://api.github.com/users/fmarchal/gists{/gist_id}","starred_url":"https://api.github.com/users/fmarchal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmarchal/subscriptions","organizations_url":"https://api.github.com/users/fmarchal/orgs","repos_url":"https://api.github.com/users/fmarchal/repos","events_url":"https://api.github.com/users/fmarchal/events{/privacy}","received_events_url":"https://api.github.com/users/fmarchal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-08T19:45:29Z","updated_at":"2015-06-09T20:19:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CloudI/CloudI/pulls/179","html_url":"https://github.com/CloudI/CloudI/pull/179","diff_url":"https://github.com/CloudI/CloudI/pull/179.diff","patch_url":"https://github.com/CloudI/CloudI/pull/179.patch"},"body":"Hello. I've changed no code, only `ex:` header settings.\r\n\r\nProblem and bug:\r\nWhen opening any file with `fenc=utf-8` within `ex:` header, vim marks the file as modified because of the transition from no fileencoding value to `utf-8`. It is very annoying to discard non-real changes every time the buffer is closed.\r\n\r\nSolution from Linux:\r\n```sh\r\nfind ~/git/CloudI/ -type f -exec sed -i 's|\\(^.\\+ ex:.* fenc=[^:]*\\)\\(:\\?\\)|\\1 nomod\\2|' '{}' \\;\r\nfind ~/git/CloudI/ -type f -exec sed -i 's|\\(^.\\+ ex:.* fileencoding=[^:]*\\)\\(:\\?\\)|\\1 nomodified\\2|' '{}' \\;\r\n```\r\nResult:\r\nNow files with `fileencoding` or `fenc` set to `utf-8`, have got a `nomodified` or `nomod` flag too, permitting files to be edited from a non-modified state at opening."},"comment":{"url":"https://api.github.com/repos/CloudI/CloudI/issues/comments/110493279","html_url":"https://github.com/CloudI/CloudI/pull/179#issuecomment-110493279","issue_url":"https://api.github.com/repos/CloudI/CloudI/issues/179","id":110493279,"user":{"login":"okeuday","id":61850,"avatar_url":"https://avatars.githubusercontent.com/u/61850?v=3","gravatar_id":"","url":"https://api.github.com/users/okeuday","html_url":"https://github.com/okeuday","followers_url":"https://api.github.com/users/okeuday/followers","following_url":"https://api.github.com/users/okeuday/following{/other_user}","gists_url":"https://api.github.com/users/okeuday/gists{/gist_id}","starred_url":"https://api.github.com/users/okeuday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okeuday/subscriptions","organizations_url":"https://api.github.com/users/okeuday/orgs","repos_url":"https://api.github.com/users/okeuday/repos","events_url":"https://api.github.com/users/okeuday/events{/privacy}","received_events_url":"https://api.github.com/users/okeuday/received_events","type":"User","site_admin":false},"created_at":"2015-06-09T20:19:33Z","updated_at":"2015-06-09T20:19:33Z","body":"Thank you for catching this.  I need to go through the changes next week because I had expected the shorter modeline format to be used now in all files, but all the changes as-is should be fine."}}