{"action":"created","issue":{"url":"https://api.github.com/repos/vim-latex/vim-latex/issues/50","repository_url":"https://api.github.com/repos/vim-latex/vim-latex","labels_url":"https://api.github.com/repos/vim-latex/vim-latex/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/vim-latex/vim-latex/issues/50/comments","events_url":"https://api.github.com/repos/vim-latex/vim-latex/issues/50/events","html_url":"https://github.com/vim-latex/vim-latex/issues/50","id":151201943,"number":50,"title":"IMAP cannot override","user":{"login":"chantisnake","id":10100995,"avatar_url":"https://avatars.githubusercontent.com/u/10100995?v=3","gravatar_id":"","url":"https://api.github.com/users/chantisnake","html_url":"https://github.com/chantisnake","followers_url":"https://api.github.com/users/chantisnake/followers","following_url":"https://api.github.com/users/chantisnake/following{/other_user}","gists_url":"https://api.github.com/users/chantisnake/gists{/gist_id}","starred_url":"https://api.github.com/users/chantisnake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chantisnake/subscriptions","organizations_url":"https://api.github.com/users/chantisnake/orgs","repos_url":"https://api.github.com/users/chantisnake/repos","events_url":"https://api.github.com/users/chantisnake/events{/privacy}","received_events_url":"https://api.github.com/users/chantisnake/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-26T18:10:14Z","updated_at":"2016-04-26T19:27:23Z","closed_at":"2016-04-26T19:27:23Z","body":"I tried to override the original EFI map:\r\n```vim\r\ncall IMAP('EFI', '\\begin{figure}[<+htpb+>]\\<CR>\\centering<CR>\\includegraphics[height=2in]{<+eps file+>}<CR>\\caption{<+caption text+>}<CR>\\label{fig:<+label+>}<CR>\\end{figure}<++>', '')\r\n```\r\nwhich does not work..."},"comment":{"url":"https://api.github.com/repos/vim-latex/vim-latex/issues/comments/214859098","html_url":"https://github.com/vim-latex/vim-latex/issues/50#issuecomment-214859098","issue_url":"https://api.github.com/repos/vim-latex/vim-latex/issues/50","id":214859098,"user":{"login":"gerw","id":80192,"avatar_url":"https://avatars.githubusercontent.com/u/80192?v=3","gravatar_id":"","url":"https://api.github.com/users/gerw","html_url":"https://github.com/gerw","followers_url":"https://api.github.com/users/gerw/followers","following_url":"https://api.github.com/users/gerw/following{/other_user}","gists_url":"https://api.github.com/users/gerw/gists{/gist_id}","starred_url":"https://api.github.com/users/gerw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gerw/subscriptions","organizations_url":"https://api.github.com/users/gerw/orgs","repos_url":"https://api.github.com/users/gerw/repos","events_url":"https://api.github.com/users/gerw/events{/privacy}","received_events_url":"https://api.github.com/users/gerw/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T19:27:23Z","updated_at":"2016-04-26T19:27:23Z","body":"The problem is that the original mapping for EFI is defined via `IMAP('EFI', 'barfoo', 'tex')`, i.e., only for the tex-filetype. This overrules your mapping which is defined for all filetypes. Hence, you could do `IMAP('EFI','barfoo','tex')` to override the original mapping.\r\n\r\nHowever, it is recommended (http://vim-latex.sourceforge.net/documentation/latex-suite/customizing-macros.html#Tex_Env_name) to use\r\n\r\n    let g:Tex_Env_figure = \"\\\\begin{figure}\\<cr>...\"\r\n\r\n(You should also be careful with escaping the backslashes and line breaks.)"}}