{"action":"opened","issue":{"url":"https://api.github.com/repos/Chiel92/vim-autoformat/issues/53","labels_url":"https://api.github.com/repos/Chiel92/vim-autoformat/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/Chiel92/vim-autoformat/issues/53/comments","events_url":"https://api.github.com/repos/Chiel92/vim-autoformat/issues/53/events","html_url":"https://github.com/Chiel92/vim-autoformat/issues/53","id":86376081,"number":53,"title":"Error when running Autoformat on Ruby file","user":{"login":"lashd","id":118616,"avatar_url":"https://avatars.githubusercontent.com/u/118616?v=3","gravatar_id":"","url":"https://api.github.com/users/lashd","html_url":"https://github.com/lashd","followers_url":"https://api.github.com/users/lashd/followers","following_url":"https://api.github.com/users/lashd/following{/other_user}","gists_url":"https://api.github.com/users/lashd/gists{/gist_id}","starred_url":"https://api.github.com/users/lashd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lashd/subscriptions","organizations_url":"https://api.github.com/users/lashd/orgs","repos_url":"https://api.github.com/users/lashd/repos","events_url":"https://api.github.com/users/lashd/events{/privacy}","received_events_url":"https://api.github.com/users/lashd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-08T23:50:13Z","updated_at":"2015-06-08T23:50:13Z","closed_at":null,"body":"I've googled for a solution and am sure that I am probably doing something silly, but when running `:Autoformat`\r\n\r\nI get the following output (verbosity turned on)\r\n```\r\nError detected while processing function <SNR>12_TryAllFormatters:\r\nline   27:\r\nE117: Unknown function: rbeautify\r\nE15: Invalid expression: rbeautify (&expandtab ? \"-s -c \".&shiftwidth : \"-t\")\r\nFormatter rbeautify has errors: /bin/sh: 0: command not found\r\n. Skipping.\r\nFailing config: '0'\r\n```\r\nThe ruby-beautify gem is installed and on the PATH variable. From what I can tell line, 122 of autoformat.vim `formatprg = vim.eval('&formatprg')` evaluates to '0' instead of 'rbeautify' which is what is causing the message `Formatter rbeautify has errors: /bin/sh: 0: command not found` to be put in to stderr and printed on line 134 of autoformat.vim.\r\n\r\nAgain, I know this is likely to come down to me having gotten something very basic wrong. Any idea what it is?\r\n\r\nMany thanks in advance.\r\n\r\n"}}