{"action":"created","comment":{"url":"https://api.github.com/repos/spf13/spf13-vim/pulls/comments/37048413","id":37048413,"diff_hunk":"@@ -50,14 +50,61 @@\n         endif\n     \" }\n \n+    \" Config files {\n+        \" All config variables handle invisibility for you.\n+        \" This cuts down on a lot of `if` statements in all our startup files.\n+        \" So, use them like: g:spf13_vim_cache_home . 'foo/bar'\n+        \"               NOT: g:spf13_vim_cache_home . '.foo/bar'\n+\n+        let g:spf13_vimrc = $HOME . '.vimrc'\n+        let g:spf13_gvimrc_local = $HOME . '.gvimrc.local'\n+        \" Used for: vimrc.* files\n+        if $XDG_CONFIG_HOME != \"\"\n+            let g:spf13_vim_config_home = $XDG_CONFIG_HOME . '/vim/'\n+        else\n+            let g:spf13_vim_config_home = $HOME . '.'\n+        endif\n+\n+        \" Startup files {\n+            \" listed in the order in which they are loaded\n+            let g:spf13_vimrc_before = g:spf13_vim_config_home . 'vimrc.before'\n+            let g:spf13_vimrc_before_fork = g:spf13_vim_config_home . 'vimrc.before.fork'\n+            let g:spf13_vimrc_before_local = g:spf13_vim_config_home . 'vimrc.before.local'\n+            let g:spf13_vimrc_bundles = g:spf13_vim_config_home . 'vimrc.bundles'\n+            let g:spf13_vimrc_bundles_fork = g:spf13_vim_config_home . 'vimrc.bundles.fork'\n+            let g:spf13_vimrc_bundles_local = g:spf13_vim_config_home . 'vimrc.bundles.local'\n+            \" g:spf13_vimrc\n+            let g:spf13_vimrc_fork = g:spf13_vim_config_home . 'vimrc.fork'\n+            let g:spf13_vimrc_local = g:spf13_vim_config_home . 'vimrc.local'\n+            \" g:spf13_gvimrc\n+        \" }\n+\n+        \" Used for: bundles directory\n+        if $XDG_DATA_HOME != \"\"\n+            \" TODO: Even with setting rtp it seems like something is overriding\n+            \" where vim looks...\n+            let g:spf13_vim_data_home = $HOME . './vim'\n+        else\n+            let g:spf13_vim_data_home = $HOME . './vim'\n+        endif\n+\n+        \" Used for: vimbackup, vimviews, vimundo, and vimswap files/directories\n+        if $XDG_CACHE_HOME != \"\"\n+            let g:spf13_vim_cache_home = $XDG_CACHE_HOME . '/vim/'\n+        else\n+            \" No subdir because we might need to respect g:spf13_consolidated_directory\n+            let g:spf13_vim_cache_home = $HOME . '/.'\n+        endif\n+    \" }\n+\n     \" Windows Compatible {\n         \" On Windows, also use '.vim' instead of 'vimfiles'; this makes synchronization\n         \" across (heterogeneous) systems easier.\n         if WINDOWS()\n-          set runtimepath=$HOME/.vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,$HOME/.vim/after\n+            set runtimepath=$HOME/.vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,$HOME/.vim/after\n         endif\n     \" }\n-    \n+","path":".vimrc","position":60,"original_position":60,"commit_id":"c8c362cd5a0d903ef14d9c01e190f7a8482add50","original_commit_id":"c8c362cd5a0d903ef14d9c01e190f7a8482add50","user":{"login":"jrobeson","id":56908,"avatar_url":"https://avatars.githubusercontent.com/u/56908?v=3","gravatar_id":"","url":"https://api.github.com/users/jrobeson","html_url":"https://github.com/jrobeson","followers_url":"https://api.github.com/users/jrobeson/followers","following_url":"https://api.github.com/users/jrobeson/following{/other_user}","gists_url":"https://api.github.com/users/jrobeson/gists{/gist_id}","starred_url":"https://api.github.com/users/jrobeson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrobeson/subscriptions","organizations_url":"https://api.github.com/users/jrobeson/orgs","repos_url":"https://api.github.com/users/jrobeson/repos","events_url":"https://api.github.com/users/jrobeson/events{/privacy}","received_events_url":"https://api.github.com/users/jrobeson/received_events","type":"User","site_admin":false},"body":"remove this when rebasing also","created_at":"2015-08-14T04:16:08Z","updated_at":"2015-08-14T04:16:08Z","html_url":"https://github.com/spf13/spf13-vim/pull/814#discussion_r37048413","pull_request_url":"https://api.github.com/repos/spf13/spf13-vim/pulls/814","_links":{"self":{"href":"https://api.github.com/repos/spf13/spf13-vim/pulls/comments/37048413"},"html":{"href":"https://github.com/spf13/spf13-vim/pull/814#discussion_r37048413"},"pull_request":{"href":"https://api.github.com/repos/spf13/spf13-vim/pulls/814"}}},"pull_request":{"url":"https://api.github.com/repos/spf13/spf13-vim/pulls/814","id":42088295,"html_url":"https://github.com/spf13/spf13-vim/pull/814","diff_url":"https://github.com/spf13/spf13-vim/pull/814.diff","patch_url":"https://github.com/spf13/spf13-vim/pull/814.patch","issue_url":"https://api.github.com/repos/spf13/spf13-vim/issues/814","number":814,"state":"open","locked":false,"title":"*nix preliminary XDG support ","user":{"login":"mkwmms","id":2526129,"avatar_url":"https://avatars.githubusercontent.com/u/2526129?v=3","gravatar_id":"","url":"https://api.github.com/users/mkwmms","html_url":"https://github.com/mkwmms","followers_url":"https://api.github.com/users/mkwmms/followers","following_url":"https://api.github.com/users/mkwmms/following{/other_user}","gists_url":"https://api.github.com/users/mkwmms/gists{/gist_id}","starred_url":"https://api.github.com/users/mkwmms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkwmms/subscriptions","organizations_url":"https://api.github.com/users/mkwmms/orgs","repos_url":"https://api.github.com/users/mkwmms/repos","events_url":"https://api.github.com/users/mkwmms/events{/privacy}","received_events_url":"https://api.github.com/users/mkwmms/received_events","type":"User","site_admin":false},"body":"Need to test this on someone else's machine. On mine the colors seem to be screwed up even though I didn't touch that part of the code. ","created_at":"2015-08-11T02:59:30Z","updated_at":"2015-08-14T04:16:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7a9b230462de7ed55ed045f277440bc0e2901774","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spf13/spf13-vim/pulls/814/commits","review_comments_url":"https://api.github.com/repos/spf13/spf13-vim/pulls/814/comments","review_comment_url":"https://api.github.com/repos/spf13/spf13-vim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spf13/spf13-vim/issues/814/comments","statuses_url":"https://api.github.com/repos/spf13/spf13-vim/statuses/c8c362cd5a0d903ef14d9c01e190f7a8482add50","head":{"label":"mkwmms:3.0","ref":"3.0","sha":"c8c362cd5a0d903ef14d9c01e190f7a8482add50","user":{"login":"mkwmms","id":2526129,"avatar_url":"https://avatars.githubusercontent.com/u/2526129?v=3","gravatar_id":"","url":"https://api.github.com/users/mkwmms","html_url":"https://github.com/mkwmms","followers_url":"https://api.github.com/users/mkwmms/followers","following_url":"https://api.github.com/users/mkwmms/following{/other_user}","gists_url":"https://api.github.com/users/mkwmms/gists{/gist_id}","starred_url":"https://api.github.com/users/mkwmms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkwmms/subscriptions","organizations_url":"https://api.github.com/users/mkwmms/orgs","repos_url":"https://api.github.com/users/mkwmms/repos","events_url":"https://api.github.com/users/mkwmms/events{/privacy}","received_events_url":"https://api.github.com/users/mkwmms/received_events","type":"User","site_admin":false},"repo":{"id":40517943,"name":"spf13-vim","full_name":"mkwmms/spf13-vim","owner":{"login":"mkwmms","id":2526129,"avatar_url":"https://avatars.githubusercontent.com/u/2526129?v=3","gravatar_id":"","url":"https://api.github.com/users/mkwmms","html_url":"https://github.com/mkwmms","followers_url":"https://api.github.com/users/mkwmms/followers","following_url":"https://api.github.com/users/mkwmms/following{/other_user}","gists_url":"https://api.github.com/users/mkwmms/gists{/gist_id}","starred_url":"https://api.github.com/users/mkwmms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkwmms/subscriptions","organizations_url":"https://api.github.com/users/mkwmms/orgs","repos_url":"https://api.github.com/users/mkwmms/repos","events_url":"https://api.github.com/users/mkwmms/events{/privacy}","received_events_url":"https://api.github.com/users/mkwmms/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mkwmms/spf13-vim","description":"The ultimate vim distribution","fork":true,"url":"https://api.github.com/repos/mkwmms/spf13-vim","forks_url":"https://api.github.com/repos/mkwmms/spf13-vim/forks","keys_url":"https://api.github.com/repos/mkwmms/spf13-vim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mkwmms/spf13-vim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mkwmms/spf13-vim/teams","hooks_url":"https://api.github.com/repos/mkwmms/spf13-vim/hooks","issue_events_url":"https://api.github.com/repos/mkwmms/spf13-vim/issues/events{/number}","events_url":"https://api.github.com/repos/mkwmms/spf13-vim/events","assignees_url":"https://api.github.com/repos/mkwmms/spf13-vim/assignees{/user}","branches_url":"https://api.github.com/repos/mkwmms/spf13-vim/branches{/branch}","tags_url":"https://api.github.com/repos/mkwmms/spf13-vim/tags","blobs_url":"https://api.github.com/repos/mkwmms/spf13-vim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mkwmms/spf13-vim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mkwmms/spf13-vim/git/refs{/sha}","trees_url":"https://api.github.com/repos/mkwmms/spf13-vim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mkwmms/spf13-vim/statuses/{sha}","languages_url":"https://api.github.com/repos/mkwmms/spf13-vim/languages","stargazers_url":"https://api.github.com/repos/mkwmms/spf13-vim/stargazers","contributors_url":"https://api.github.com/repos/mkwmms/spf13-vim/contributors","subscribers_url":"https://api.github.com/repos/mkwmms/spf13-vim/subscribers","subscription_url":"https://api.github.com/repos/mkwmms/spf13-vim/subscription","commits_url":"https://api.github.com/repos/mkwmms/spf13-vim/commits{/sha}","git_commits_url":"https://api.github.com/repos/mkwmms/spf13-vim/git/commits{/sha}","comments_url":"https://api.github.com/repos/mkwmms/spf13-vim/comments{/number}","issue_comment_url":"https://api.github.com/repos/mkwmms/spf13-vim/issues/comments{/number}","contents_url":"https://api.github.com/repos/mkwmms/spf13-vim/contents/{+path}","compare_url":"https://api.github.com/repos/mkwmms/spf13-vim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mkwmms/spf13-vim/merges","archive_url":"https://api.github.com/repos/mkwmms/spf13-vim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mkwmms/spf13-vim/downloads","issues_url":"https://api.github.com/repos/mkwmms/spf13-vim/issues{/number}","pulls_url":"https://api.github.com/repos/mkwmms/spf13-vim/pulls{/number}","milestones_url":"https://api.github.com/repos/mkwmms/spf13-vim/milestones{/number}","notifications_url":"https://api.github.com/repos/mkwmms/spf13-vim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mkwmms/spf13-vim/labels{/name}","releases_url":"https://api.github.com/repos/mkwmms/spf13-vim/releases{/id}","created_at":"2015-08-11T02:53:41Z","updated_at":"2015-08-11T02:53:41Z","pushed_at":"2015-08-11T02:56:42Z","git_url":"git://github.com/mkwmms/spf13-vim.git","ssh_url":"git@github.com:mkwmms/spf13-vim.git","clone_url":"https://github.com/mkwmms/spf13-vim.git","svn_url":"https://github.com/mkwmms/spf13-vim","homepage":"http://vim.spf13.com","size":6984,"stargazers_count":0,"watchers_count":0,"language":"VimL","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"3.0"}},"base":{"label":"spf13:3.0","ref":"3.0","sha":"34300cb3ec028f4b91d367fdef659ac327aaca7e","user":{"login":"spf13","id":173412,"avatar_url":"https://avatars.githubusercontent.com/u/173412?v=3","gravatar_id":"","url":"https://api.github.com/users/spf13","html_url":"https://github.com/spf13","followers_url":"https://api.github.com/users/spf13/followers","following_url":"https://api.github.com/users/spf13/following{/other_user}","gists_url":"https://api.github.com/users/spf13/gists{/gist_id}","starred_url":"https://api.github.com/users/spf13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spf13/subscriptions","organizations_url":"https://api.github.com/users/spf13/orgs","repos_url":"https://api.github.com/users/spf13/repos","events_url":"https://api.github.com/users/spf13/events{/privacy}","received_events_url":"https://api.github.com/users/spf13/received_events","type":"User","site_admin":false},"repo":{"id":619849,"name":"spf13-vim","full_name":"spf13/spf13-vim","owner":{"login":"spf13","id":173412,"avatar_url":"https://avatars.githubusercontent.com/u/173412?v=3","gravatar_id":"","url":"https://api.github.com/users/spf13","html_url":"https://github.com/spf13","followers_url":"https://api.github.com/users/spf13/followers","following_url":"https://api.github.com/users/spf13/following{/other_user}","gists_url":"https://api.github.com/users/spf13/gists{/gist_id}","starred_url":"https://api.github.com/users/spf13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spf13/subscriptions","organizations_url":"https://api.github.com/users/spf13/orgs","repos_url":"https://api.github.com/users/spf13/repos","events_url":"https://api.github.com/users/spf13/events{/privacy}","received_events_url":"https://api.github.com/users/spf13/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/spf13/spf13-vim","description":"The ultimate vim distribution","fork":false,"url":"https://api.github.com/repos/spf13/spf13-vim","forks_url":"https://api.github.com/repos/spf13/spf13-vim/forks","keys_url":"https://api.github.com/repos/spf13/spf13-vim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spf13/spf13-vim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spf13/spf13-vim/teams","hooks_url":"https://api.github.com/repos/spf13/spf13-vim/hooks","issue_events_url":"https://api.github.com/repos/spf13/spf13-vim/issues/events{/number}","events_url":"https://api.github.com/repos/spf13/spf13-vim/events","assignees_url":"https://api.github.com/repos/spf13/spf13-vim/assignees{/user}","branches_url":"https://api.github.com/repos/spf13/spf13-vim/branches{/branch}","tags_url":"https://api.github.com/repos/spf13/spf13-vim/tags","blobs_url":"https://api.github.com/repos/spf13/spf13-vim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spf13/spf13-vim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spf13/spf13-vim/git/refs{/sha}","trees_url":"https://api.github.com/repos/spf13/spf13-vim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spf13/spf13-vim/statuses/{sha}","languages_url":"https://api.github.com/repos/spf13/spf13-vim/languages","stargazers_url":"https://api.github.com/repos/spf13/spf13-vim/stargazers","contributors_url":"https://api.github.com/repos/spf13/spf13-vim/contributors","subscribers_url":"https://api.github.com/repos/spf13/spf13-vim/subscribers","subscription_url":"https://api.github.com/repos/spf13/spf13-vim/subscription","commits_url":"https://api.github.com/repos/spf13/spf13-vim/commits{/sha}","git_commits_url":"https://api.github.com/repos/spf13/spf13-vim/git/commits{/sha}","comments_url":"https://api.github.com/repos/spf13/spf13-vim/comments{/number}","issue_comment_url":"https://api.github.com/repos/spf13/spf13-vim/issues/comments{/number}","contents_url":"https://api.github.com/repos/spf13/spf13-vim/contents/{+path}","compare_url":"https://api.github.com/repos/spf13/spf13-vim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spf13/spf13-vim/merges","archive_url":"https://api.github.com/repos/spf13/spf13-vim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spf13/spf13-vim/downloads","issues_url":"https://api.github.com/repos/spf13/spf13-vim/issues{/number}","pulls_url":"https://api.github.com/repos/spf13/spf13-vim/pulls{/number}","milestones_url":"https://api.github.com/repos/spf13/spf13-vim/milestones{/number}","notifications_url":"https://api.github.com/repos/spf13/spf13-vim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spf13/spf13-vim/labels{/name}","releases_url":"https://api.github.com/repos/spf13/spf13-vim/releases{/id}","created_at":"2010-04-20T16:20:16Z","updated_at":"2015-08-14T03:46:52Z","pushed_at":"2015-08-12T19:02:07Z","git_url":"git://github.com/spf13/spf13-vim.git","ssh_url":"git@github.com:spf13/spf13-vim.git","clone_url":"https://github.com/spf13/spf13-vim.git","svn_url":"https://github.com/spf13/spf13-vim","homepage":"http://vim.spf13.com","size":6984,"stargazers_count":5799,"watchers_count":5799,"language":"VimL","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1739,"mirror_url":null,"open_issues_count":178,"forks":1739,"open_issues":178,"watchers":5799,"default_branch":"3.0"}},"_links":{"self":{"href":"https://api.github.com/repos/spf13/spf13-vim/pulls/814"},"html":{"href":"https://github.com/spf13/spf13-vim/pull/814"},"issue":{"href":"https://api.github.com/repos/spf13/spf13-vim/issues/814"},"comments":{"href":"https://api.github.com/repos/spf13/spf13-vim/issues/814/comments"},"review_comments":{"href":"https://api.github.com/repos/spf13/spf13-vim/pulls/814/comments"},"review_comment":{"href":"https://api.github.com/repos/spf13/spf13-vim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spf13/spf13-vim/pulls/814/commits"},"statuses":{"href":"https://api.github.com/repos/spf13/spf13-vim/statuses/c8c362cd5a0d903ef14d9c01e190f7a8482add50"}}}}