{"action":"created","issue":{"url":"https://api.github.com/repos/SirVer/ultisnips/issues/476","labels_url":"https://api.github.com/repos/SirVer/ultisnips/issues/476/labels{/name}","comments_url":"https://api.github.com/repos/SirVer/ultisnips/issues/476/comments","events_url":"https://api.github.com/repos/SirVer/ultisnips/issues/476/events","html_url":"https://github.com/SirVer/ultisnips/issues/476","id":66688634,"number":476,"title":"UltiSnip not working when Macvim initially launched","user":{"login":"pdoak","id":1565586,"avatar_url":"https://avatars.githubusercontent.com/u/1565586?v=3","gravatar_id":"","url":"https://api.github.com/users/pdoak","html_url":"https://github.com/pdoak","followers_url":"https://api.github.com/users/pdoak/followers","following_url":"https://api.github.com/users/pdoak/following{/other_user}","gists_url":"https://api.github.com/users/pdoak/gists{/gist_id}","starred_url":"https://api.github.com/users/pdoak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdoak/subscriptions","organizations_url":"https://api.github.com/users/pdoak/orgs","repos_url":"https://api.github.com/users/pdoak/repos","events_url":"https://api.github.com/users/pdoak/events{/privacy}","received_events_url":"https://api.github.com/users/pdoak/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-06T19:43:40Z","updated_at":"2015-04-23T06:26:21Z","closed_at":"2015-04-23T06:26:21Z","body":"I am using UltiSnip with MacVim  and YouCompleteMe. When I initially launch MacVim, UltiSnip does not work but if I issue the command: `UltiSnipEdit`, it will then work\r\n\r\nI have the following in my vimrc:\r\n\r\n```\r\n\"UltiSnips\r\nlet g:UltiSnipsEditSplit=\"vertical\"\r\n\" let g:UltiSnipsJumpForwardTrigger=\"<tab>\"\r\nlet g:UltiSnipsJumpBackwardTrigger=\"<s-tab>\"\r\n\"let g:UltiSnipsExpandTrigger=\"<c-tab>\"\r\n\r\n\" From stackoverflow http://stackoverflow.com/questions/14896327/ultisnips-and-youcompleteme\r\nfunction! g:UltiSnips_Complete()\r\n    call UltiSnips#ExpandSnippet()\r\n    if g:ulti_expand_res == 0\r\n        if pumvisible()\r\n            return \"\\<C-n>\"\r\n        else\r\n            call UltiSnips#JumpForwards()\r\n            if g:ulti_jump_forwards_res == 0\r\n               return \"\\<TAB>\"\r\n            endif\r\n        endif\r\n    endif\r\n    return \"\"\r\nendfunction\r\n\r\nau BufEnter * exec \"inoremap <silent> \" . g:UltiSnipsExpandTrigger . \" <C-R>=g:UltiSnips_Complete()<cr>\"\r\nlet g:UltiSnipsJumpForwardTrigger=\"<tab>\"\r\nlet g:UltiSnipsListSnippets=\"<c-e>\"\r\n\" this mapping Enter key to <C-y> to chose the current highlight item \r\n\" and close the selection list, same as other IDEs.\r\n\" CONFLICT with some plugins like tpope/Endwise\r\ninoremap <expr> <CR> pumvisible() ? \"\\<C-y>\" : \"\\<C-g>u\\<CR>\"\r\n\r\nfunction! g:UltiSnips_Reverse()\r\n  call UltiSnips#JumpBackwards()\r\n  if g:ulti_jump_backwards_res == 0\r\n    return \"\\<C-P>\"\r\n  endif\r\n  return \"\"\r\nendfunction\r\nau BufEnter * exec \"inoremap <silent> \" . g:UltiSnipsJumpBackwardTrigger . \" <C-R>=g:UltiSnips_Reverse()<cr>\"\r\n```\r\n\r\nAny ideas as to why this is not working initially?"},"comment":{"url":"https://api.github.com/repos/SirVer/ultisnips/issues/comments/95457314","html_url":"https://github.com/SirVer/ultisnips/issues/476#issuecomment-95457314","issue_url":"https://api.github.com/repos/SirVer/ultisnips/issues/476","id":95457314,"user":{"login":"SirVer","id":140115,"avatar_url":"https://avatars.githubusercontent.com/u/140115?v=3","gravatar_id":"","url":"https://api.github.com/users/SirVer","html_url":"https://github.com/SirVer","followers_url":"https://api.github.com/users/SirVer/followers","following_url":"https://api.github.com/users/SirVer/following{/other_user}","gists_url":"https://api.github.com/users/SirVer/gists{/gist_id}","starred_url":"https://api.github.com/users/SirVer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirVer/subscriptions","organizations_url":"https://api.github.com/users/SirVer/orgs","repos_url":"https://api.github.com/users/SirVer/repos","events_url":"https://api.github.com/users/SirVer/events{/privacy}","received_events_url":"https://api.github.com/users/SirVer/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T06:26:21Z","updated_at":"2015-04-23T06:26:21Z","body":"That config is broken - there is no vundle#end(). And I am pretty sure you need vundle#begin, not rc. Also you definitively need \r\n\r\n    filetype plugin indent on\r\n\r\nafter vundle end.\r\n\r\nPlease refer to the sample vimrc on https://github.com/gmarik/Vundle.vim. \r\n\r\nClosing this for now, please speak up if you have further trouble."}}