{"action":"created","issue":{"url":"https://api.github.com/repos/fatih/vim-go/issues/308","labels_url":"https://api.github.com/repos/fatih/vim-go/issues/308/labels{/name}","comments_url":"https://api.github.com/repos/fatih/vim-go/issues/308/comments","events_url":"https://api.github.com/repos/fatih/vim-go/issues/308/events","html_url":"https://github.com/fatih/vim-go/pull/308","id":56910886,"number":308,"title":"Use shiftwidth() instead of 'shiftwidth'","user":{"login":"fd0","id":123276,"avatar_url":"https://avatars.githubusercontent.com/u/123276?v=3","gravatar_id":"","url":"https://api.github.com/users/fd0","html_url":"https://github.com/fd0","followers_url":"https://api.github.com/users/fd0/followers","following_url":"https://api.github.com/users/fd0/following{/other_user}","gists_url":"https://api.github.com/users/fd0/gists{/gist_id}","starred_url":"https://api.github.com/users/fd0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fd0/subscriptions","organizations_url":"https://api.github.com/users/fd0/orgs","repos_url":"https://api.github.com/users/fd0/repos","events_url":"https://api.github.com/users/fd0/events{/privacy}","received_events_url":"https://api.github.com/users/fd0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-07T13:13:48Z","updated_at":"2015-02-07T21:47:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/fatih/vim-go/pulls/308","html_url":"https://github.com/fatih/vim-go/pull/308","diff_url":"https://github.com/fatih/vim-go/pull/308.diff","patch_url":"https://github.com/fatih/vim-go/pull/308.patch"},"body":"I'm using vim-sleuth[1] from tpope to automatically detect indent\r\nsettings for files that I edit. The latest version sets 'shiftwidth' to\r\nzero for files that are detected to be indented only with hard tabs, so\r\nthat the value of 'tabstop' is used instead of 'shiftwidth'. This\r\nchange[2] was done to allow people setting 'tabstop' to their preferred\r\nvalue, and to have 'shiftwidth' automatically follow.\r\n\r\nThe vim documentation about 'shiftwidth' states:\r\n\r\n     When zero the 'ts' value will be used.  Use the shiftwidth()\r\n     function to get the effective shiftwidth value.\r\n\r\nTherefore this commit changes using 'sw' directly and instead calls\r\nshiftwidth().\r\n\r\n[1] https://github.com/tpope/vim-sleuth\r\n[2] https://github.com/tpope/vim-sleuth/commit/b6b4c3b237678f1214ea2eca0e3e50eaafb30e3a"},"comment":{"url":"https://api.github.com/repos/fatih/vim-go/issues/comments/73384755","html_url":"https://github.com/fatih/vim-go/pull/308#issuecomment-73384755","issue_url":"https://api.github.com/repos/fatih/vim-go/issues/308","id":73384755,"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-02-07T21:47:02Z","updated_at":"2015-02-07T21:47:02Z","body":"What is the current value of `&sw` ? Still `tabstop` or something else ?"}}