{"action":"created","issue":{"url":"https://api.github.com/repos/itchyny/lightline.vim/issues/102","labels_url":"https://api.github.com/repos/itchyny/lightline.vim/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/itchyny/lightline.vim/issues/102/comments","events_url":"https://api.github.com/repos/itchyny/lightline.vim/issues/102/events","html_url":"https://github.com/itchyny/lightline.vim/issues/102","id":77382453,"number":102,"title":"MacVim display issue when reloading .vimrc","user":{"login":"PhilG","id":907766,"avatar_url":"https://avatars.githubusercontent.com/u/907766?v=3","gravatar_id":"","url":"https://api.github.com/users/PhilG","html_url":"https://github.com/PhilG","followers_url":"https://api.github.com/users/PhilG/followers","following_url":"https://api.github.com/users/PhilG/following{/other_user}","gists_url":"https://api.github.com/users/PhilG/gists{/gist_id}","starred_url":"https://api.github.com/users/PhilG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhilG/subscriptions","organizations_url":"https://api.github.com/users/PhilG/orgs","repos_url":"https://api.github.com/users/PhilG/repos","events_url":"https://api.github.com/users/PhilG/events{/privacy}","received_events_url":"https://api.github.com/users/PhilG/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-17T19:52:10Z","updated_at":"2015-05-18T08:48:12Z","closed_at":null,"body":"Hi,\r\nI'm getting this issue on MacVim which should be resolved by using `set t_Co=256` . This only happens when I source the vimrc automatically after changing it. Normally starting MacVim displays lightline correctly!\r\n\r\nAny ideas why this is happening or what I should investigate?"},"comment":{"url":"https://api.github.com/repos/itchyny/lightline.vim/issues/comments/102979082","html_url":"https://github.com/itchyny/lightline.vim/issues/102#issuecomment-102979082","issue_url":"https://api.github.com/repos/itchyny/lightline.vim/issues/102","id":102979082,"user":{"login":"PhilG","id":907766,"avatar_url":"https://avatars.githubusercontent.com/u/907766?v=3","gravatar_id":"","url":"https://api.github.com/users/PhilG","html_url":"https://github.com/PhilG","followers_url":"https://api.github.com/users/PhilG/followers","following_url":"https://api.github.com/users/PhilG/following{/other_user}","gists_url":"https://api.github.com/users/PhilG/gists{/gist_id}","starred_url":"https://api.github.com/users/PhilG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhilG/subscriptions","organizations_url":"https://api.github.com/users/PhilG/orgs","repos_url":"https://api.github.com/users/PhilG/repos","events_url":"https://api.github.com/users/PhilG/events{/privacy}","received_events_url":"https://api.github.com/users/PhilG/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T08:48:12Z","updated_at":"2015-05-18T08:48:12Z","body":"It was not solved by changing to `syntax enable` but it is indeed not a lighten issue! I did some more digging around and found that Powerline kind of has the same issue just much more apparent on Stackoverflow.\r\n\r\nYou should always be using the `nested` flag for `autocmd` when sourcing your vimrc file! Using:\r\n\r\n```vim\r\naugroup reload_vimrc \" {\r\n    autocmd!\r\n    autocmd BufWritePost $MYVIMRC nested source $MYVIMRC\r\naugroup END \" }\r\n```\r\n\r\nfixed this."}}