{"action":"created","issue":{"url":"https://api.github.com/repos/jalcine/cmake.vim/issues/52","labels_url":"https://api.github.com/repos/jalcine/cmake.vim/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/jalcine/cmake.vim/issues/52/comments","events_url":"https://api.github.com/repos/jalcine/cmake.vim/issues/52/events","html_url":"https://github.com/jalcine/cmake.vim/issues/52","id":59698206,"number":52,"title":"Commands not being defined/sourced","user":{"login":"jeetsukumaran","id":26183,"avatar_url":"https://avatars.githubusercontent.com/u/26183?v=3","gravatar_id":"","url":"https://api.github.com/users/jeetsukumaran","html_url":"https://github.com/jeetsukumaran","followers_url":"https://api.github.com/users/jeetsukumaran/followers","following_url":"https://api.github.com/users/jeetsukumaran/following{/other_user}","gists_url":"https://api.github.com/users/jeetsukumaran/gists{/gist_id}","starred_url":"https://api.github.com/users/jeetsukumaran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeetsukumaran/subscriptions","organizations_url":"https://api.github.com/users/jeetsukumaran/orgs","repos_url":"https://api.github.com/users/jeetsukumaran/repos","events_url":"https://api.github.com/users/jeetsukumaran/events{/privacy}","received_events_url":"https://api.github.com/users/jeetsukumaran/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jalcine/cmake.vim/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-03-03T20:11:05Z","updated_at":"2015-03-06T01:24:54Z","closed_at":null,"body":"Hi,\r\n\r\nI cannot figure this out. No matter what sort of file I open, in whatever directory, I cannot seem to get the '`CMake*`' commands available.\r\n\r\nI have to manually call:\r\n\r\n    call cmake#commands#apply_global_commands()\r\n    call cmake#commands#apply_buffer_commands()\r\n\r\nAnd then I get the  various commands available, but the few I tried do not work because some buffer variables are not defined. \r\n\r\nBasically, it seems that the plugin for some reason or another does not see any of files as part of a valid CMake project.\r\n\r\nI have tried this with a clean configuration (i.e., with cmake.vim being the only plugin and no vimrc, and get the same results.). \r\n\r\nAny ideas what might be going on?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jalcine/cmake.vim/issues/comments/77489384","html_url":"https://github.com/jalcine/cmake.vim/issues/52#issuecomment-77489384","issue_url":"https://api.github.com/repos/jalcine/cmake.vim/issues/52","id":77489384,"user":{"login":"jeetsukumaran","id":26183,"avatar_url":"https://avatars.githubusercontent.com/u/26183?v=3","gravatar_id":"","url":"https://api.github.com/users/jeetsukumaran","html_url":"https://github.com/jeetsukumaran","followers_url":"https://api.github.com/users/jeetsukumaran/followers","following_url":"https://api.github.com/users/jeetsukumaran/following{/other_user}","gists_url":"https://api.github.com/users/jeetsukumaran/gists{/gist_id}","starred_url":"https://api.github.com/users/jeetsukumaran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeetsukumaran/subscriptions","organizations_url":"https://api.github.com/users/jeetsukumaran/orgs","repos_url":"https://api.github.com/users/jeetsukumaran/repos","events_url":"https://api.github.com/users/jeetsukumaran/events{/privacy}","received_events_url":"https://api.github.com/users/jeetsukumaran/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T01:24:54Z","updated_at":"2015-03-06T01:24:54Z","body":">> This is my fault for not populating the documentation adquetely but have you tried setting g:cmake_build_directories?\r\n> No! That might be the problem. Does this need to be defined before a buffer is loaded, e.g., in ~/.vimrc?\r\nOk, just tried:\r\n\r\n    let g:cmake_build_directories = ['build']\r\n\r\nin my ~/.vimrc and no joy on the C++ project."}}