-
-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mapping no longer works if delimiteMate plugin is installed #133
Comments
It's this: delimitMate is creating a buffer local map before the buffer is initialized and before all plugins have loaded. This is, at best, a hack, and there's not a good way for Endwise to work around it. It worked in older versions because Endwise wasn't verifying the map it was combining with was global, but this caused other problems. But that's just the first problem. Endwise maps But luckily there's a workaround. If you define delimitMate's execute pathogen#infect()
set backspace=indent,eol,start
filetype plugin indent on
if empty(maparg('<CR>', 'i'))
imap <CR> <Plug>delimitMateCR
endif (The My recommendation to the delimitMate author, if they see this, is to switch to a global |
After commit e6d11b2, the mapping no longer works if the delimiteMate plugin is installed.
Minimal vimrc that exhibits problem:
Tested on:
Vim 8.2.4324
MacVim 8.2.3455 (172)
The text was updated successfully, but these errors were encountered: