{"action":"created","issue":{"url":"https://api.github.com/repos/editorconfig/editorconfig-vim/issues/71","repository_url":"https://api.github.com/repos/editorconfig/editorconfig-vim","labels_url":"https://api.github.com/repos/editorconfig/editorconfig-vim/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/editorconfig/editorconfig-vim/issues/71/comments","events_url":"https://api.github.com/repos/editorconfig/editorconfig-vim/issues/71/events","html_url":"https://github.com/editorconfig/editorconfig-vim/issues/71","id":185112218,"number":71,"title":"tab_width breaks proper indentation","user":{"login":"Chilinot","id":1773227,"avatar_url":"https://avatars.githubusercontent.com/u/1773227?v=3","gravatar_id":"","url":"https://api.github.com/users/Chilinot","html_url":"https://github.com/Chilinot","followers_url":"https://api.github.com/users/Chilinot/followers","following_url":"https://api.github.com/users/Chilinot/following{/other_user}","gists_url":"https://api.github.com/users/Chilinot/gists{/gist_id}","starred_url":"https://api.github.com/users/Chilinot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chilinot/subscriptions","organizations_url":"https://api.github.com/users/Chilinot/orgs","repos_url":"https://api.github.com/users/Chilinot/repos","events_url":"https://api.github.com/users/Chilinot/events{/privacy}","received_events_url":"https://api.github.com/users/Chilinot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-10-25T13:07:16Z","updated_at":"2016-10-25T18:06:40Z","closed_at":null,"body":"When i'm using \"tab_width=4\" vim indents each level with two tabs instead of a single tab. If i remove the \"tab_width=4\" line, it indents the files properly with a single tab, but now each indentation level is equal to eight spaces.\r\n\r\nMy .editorconfig-file:\r\n```\r\n# top-most EditorConfig file, do not look any further!\r\nroot = true\r\n\r\n# General settings for all files\r\n[*]\r\nend_of_line = lf\r\ninsert_final_newline = false\r\ncharset = utf-8\r\ntrim_trailing_whitespace = true\r\ntab_width = 4\r\n\r\n# Tab indentation\r\n[{M,m}akefile,*.{xml,html,R}]\r\nindent_style = tab\r\n\r\n# 4 space indentation\r\n[*.{erl,js,py,rs,rb,rex,txt,java,vim,frag,vert,sh,enc}]\r\nindent_style = space\r\nindent_size = 4\r\n\r\n# 2 space indentation\r\n[*.{c,cpp,tex,bib,cl,h,hpp,pde,ino,wiki}]\r\nindent_style = space\r\nindent_size = 2\r\n```\r\nAnd in case i configured Vim incorrectly, here is my .vimrc:\r\nhttps://github.com/Chilinot/dotfiles/blob/master/.vimrc"},"comment":{"url":"https://api.github.com/repos/editorconfig/editorconfig-vim/issues/comments/256113585","html_url":"https://github.com/editorconfig/editorconfig-vim/issues/71#issuecomment-256113585","issue_url":"https://api.github.com/repos/editorconfig/editorconfig-vim/issues/71","id":256113585,"user":{"login":"xuhdev","id":325476,"avatar_url":"https://avatars.githubusercontent.com/u/325476?v=3","gravatar_id":"","url":"https://api.github.com/users/xuhdev","html_url":"https://github.com/xuhdev","followers_url":"https://api.github.com/users/xuhdev/followers","following_url":"https://api.github.com/users/xuhdev/following{/other_user}","gists_url":"https://api.github.com/users/xuhdev/gists{/gist_id}","starred_url":"https://api.github.com/users/xuhdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuhdev/subscriptions","organizations_url":"https://api.github.com/users/xuhdev/orgs","repos_url":"https://api.github.com/users/xuhdev/repos","events_url":"https://api.github.com/users/xuhdev/events{/privacy}","received_events_url":"https://api.github.com/users/xuhdev/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T18:06:40Z","updated_at":"2016-10-25T18:06:40Z","body":"@Chilinot I cannot reproduce your issue. The expected behavior should be 4-space indentation. Can you remove all other settings in your vimrc and see whether you can still reproduce the issue? I cannot spot any obvious issue in your vimrc."}}
{"actor":{"display_login":"xuhdev"}}