{"action":"created","issue":{"url":"https://api.github.com/repos/vim-latex/vim-latex/issues/72","repository_url":"https://api.github.com/repos/vim-latex/vim-latex","labels_url":"https://api.github.com/repos/vim-latex/vim-latex/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/vim-latex/vim-latex/issues/72/comments","events_url":"https://api.github.com/repos/vim-latex/vim-latex/issues/72/events","html_url":"https://github.com/vim-latex/vim-latex/issues/72","id":195760139,"number":72,"title":"No way to disable annoying IMAPs","user":{"login":"jwakely","id":1254480,"avatar_url":"https://avatars.githubusercontent.com/u/1254480?v=3","gravatar_id":"","url":"https://api.github.com/users/jwakely","html_url":"https://github.com/jwakely","followers_url":"https://api.github.com/users/jwakely/followers","following_url":"https://api.github.com/users/jwakely/following{/other_user}","gists_url":"https://api.github.com/users/jwakely/gists{/gist_id}","starred_url":"https://api.github.com/users/jwakely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwakely/subscriptions","organizations_url":"https://api.github.com/users/jwakely/orgs","repos_url":"https://api.github.com/users/jwakely/repos","events_url":"https://api.github.com/users/jwakely/events{/privacy}","received_events_url":"https://api.github.com/users/jwakely/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-15T09:48:27Z","updated_at":"2016-12-15T12:45:57Z","closed_at":null,"body":"The following mapping are extremely annoying when trying to edit the [LaTeX sources of the C++ standard](https://github.com/cplusplus/draft/) because most of them are very common sequences in C++ code:\r\n\r\n\tcall IMAP ('__', '_{<++>}<++>', \"tex\")\r\n\tcall IMAP ('()', '(<++>)<++>', \"tex\")\r\n\tcall IMAP ('[]', '[<++>]<++>', \"tex\")\r\n\tcall IMAP ('{}', '{<++>}<++>', \"tex\")\r\n\tcall IMAP ('^^', '^{<++>}<++>', \"tex\")\r\n\tcall IMAP ('$$', '$<++>$<++>', \"tex\")\r\n\tcall IMAP ('==', '&=& ', \"tex\")\r\n\tcall IMAP ('~~', '&\\approx& ', \"tex\")\r\n\tcall IMAP ('=~', '\\approx', \"tex\")\r\n\tcall IMAP ('::', '\\dots', \"tex\")\r\n\tcall IMAP ('((', '\\left( <++> \\right)<++>', \"tex\")\r\n\tcall IMAP ('[[', '\\left[ <++> \\right]<++>', \"tex\")\r\n\tcall IMAP ('{{', '\\left\\{ <++> \\right\\}<++>', \"tex\")\r\n\r\nFor example, it's not possible to write `std::string` in the C++ source because it gets changed to `std\\dotsstring` (which isn't even valid LaTeX!)\r\n\r\nThese mappings should be optional, instead of assuming that every user of the latex-suite files wants them.\r\n\r\nThe mappings that start with Tex_Leader are OK, as they don't happen while entering plain text, so they don't hijack normal keys."},"comment":{"url":"https://api.github.com/repos/vim-latex/vim-latex/issues/comments/267319131","html_url":"https://github.com/vim-latex/vim-latex/issues/72#issuecomment-267319131","issue_url":"https://api.github.com/repos/vim-latex/vim-latex/issues/72","id":267319131,"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-12-15T12:45:57Z","updated_at":"2016-12-15T12:45:57Z","body":"I think there are more LaTeX users that do not edit the sources of the C++ standard than those who edit these sources. Hence, it is reasonable to assume that every user wants those mappings.\r\n\r\nHowever, there could be an option to disable them. Until this is the case, you could disable the mappings by doing\r\n`call IMAP('__','__')` in your `.vim/after/tex.vim`.\r\nIt would also be nice to have an `IUNMAP`-function."}}
{"actor":{"display_login":"gerw"}}