{"action":"created","issue":{"url":"https://api.github.com/repos/junegunn/vim-plug/issues/407","repository_url":"https://api.github.com/repos/junegunn/vim-plug","labels_url":"https://api.github.com/repos/junegunn/vim-plug/issues/407/labels{/name}","comments_url":"https://api.github.com/repos/junegunn/vim-plug/issues/407/comments","events_url":"https://api.github.com/repos/junegunn/vim-plug/issues/407/events","html_url":"https://github.com/junegunn/vim-plug/issues/407","id":133381167,"number":407,"title":"Add FAQ entry about \"E116: Invalid arguments for function <SNR>2_add\"","user":{"login":"nicolaiskogheim","id":2117636,"avatar_url":"https://avatars.githubusercontent.com/u/2117636?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolaiskogheim","html_url":"https://github.com/nicolaiskogheim","followers_url":"https://api.github.com/users/nicolaiskogheim/followers","following_url":"https://api.github.com/users/nicolaiskogheim/following{/other_user}","gists_url":"https://api.github.com/users/nicolaiskogheim/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolaiskogheim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolaiskogheim/subscriptions","organizations_url":"https://api.github.com/users/nicolaiskogheim/orgs","repos_url":"https://api.github.com/users/nicolaiskogheim/repos","events_url":"https://api.github.com/users/nicolaiskogheim/events{/privacy}","received_events_url":"https://api.github.com/users/nicolaiskogheim/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-13T01:07:54Z","updated_at":"2016-02-13T17:58:08Z","closed_at":"2016-02-13T17:58:08Z","body":"This is an example of loading a plugin on-demand:\r\n\r\n```vim\r\nPlug 'junegunn/goyo.vim', { 'on' : 'Goyo' }\r\n```\r\n\r\nBut, if you forget the comma (`,`), like this\r\n\r\n```vim\r\nPlug 'junegunn/goyo.vim' { 'on' : 'Goyo' }\r\n```\r\n\r\nyou get a nasty message:\r\n\r\n```\r\nError detected while processing /path/to/.vimrc:\r\nline  119:\r\nE116: Invalid arguments for function <SNR>2_add\r\n```\r\n\r\nI know this most probably is vimscript-specific, and that you can get this kind of error from any function-call (if that is what `Plug` is), but I imagine *vim-plug* has a lot of users that are new to Vim, and wouldn't know what to do. The error message points to the line, but the missing comma can be hard to spot none the less.\r\n\r\nJust bringing it up in case you wanted to put a note about it in the FAQ."},"comment":{"url":"https://api.github.com/repos/junegunn/vim-plug/issues/comments/183714921","html_url":"https://github.com/junegunn/vim-plug/issues/407#issuecomment-183714921","issue_url":"https://api.github.com/repos/junegunn/vim-plug/issues/407","id":183714921,"user":{"login":"nicolaiskogheim","id":2117636,"avatar_url":"https://avatars.githubusercontent.com/u/2117636?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolaiskogheim","html_url":"https://github.com/nicolaiskogheim","followers_url":"https://api.github.com/users/nicolaiskogheim/followers","following_url":"https://api.github.com/users/nicolaiskogheim/following{/other_user}","gists_url":"https://api.github.com/users/nicolaiskogheim/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolaiskogheim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolaiskogheim/subscriptions","organizations_url":"https://api.github.com/users/nicolaiskogheim/orgs","repos_url":"https://api.github.com/users/nicolaiskogheim/repos","events_url":"https://api.github.com/users/nicolaiskogheim/events{/privacy}","received_events_url":"https://api.github.com/users/nicolaiskogheim/received_events","type":"User","site_admin":false},"created_at":"2016-02-13T17:58:08Z","updated_at":"2016-02-13T17:58:08Z","body":"Looks good to me :)"}}