-
Notifications
You must be signed in to change notification settings - Fork 620
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
<CR> mapping change #813
Comments
The |
While I understand what you're saying (and it's not my project, so who am I to complain?), the problem I found is interfering with base vim functionality - ie, popup auto-complete menus like spellcheck. It's not that it's clashing with some other plugin or my my own random stuff. As such, it looks to me that the mapping should try and avoid the problem. As it stands, this mapping breaks every single vim instance; not just my particular configuration, so it seems "wrong" to have to define an external mapping to get round the problem, especially as that external mapping would have to be aware of internal vimwiki workings (in order to set the mapping to correctly point to 'VimWikiReturn') |
I was thinking it was related to another completion plugin. I agree we shouldn't break default vim behavior if possible. |
@Rich-YoYo can you make a PR ? |
I'm sorry, github (indeed, git) is a bit of a mystery to me; it seems to work counter to any other vcs I've ever used - I'm not even sure what a "pull request" is. I don't think I can contribute anything beyond the suggested patch that I posted (which may or may not be correct?) |
…vimwiki#813) Problem: When pum opened, the mapping of <CR> is triggered but user want the default behaviour: to choose a completion item Solution: Conditional mapping: inoremap <expr><silent><buffer> <CR> pumvisible() ? '<CR>' : ':<Esc>:VimwikiReturn 1 5<Cr>' The previous mapping -----------------^
…vimwiki#813) Problem: When pum opened, the mapping of <CR> is triggered but user want the default behaviour: to choose a completion item Solution: Conditional mapping: inoremap <expr><silent><buffer> <CR> pumvisible() ? '<CR>' : ':<Esc>:VimwikiReturn 1 5<Cr>' The previous mapping -----------------^
@Rich-YoYo fixed by: e4186ad (or last commit in dev referring this issue) Thank you for the commented path it worked like charm and I learned the Good job ! |
…vimwiki#813) Problem: When pum opened, the mapping of <CR> is triggered but user want the default behaviour: to choose a completion item Solution: Conditional mapping: inoremap <expr><silent><buffer> <CR> pumvisible() ? '<CR>' : ':<Esc>:VimwikiReturn 1 5<Cr>' The previous mapping -----------------^
…vimwiki#813) Problem: When pum opened, the mapping of <CR> is triggered but user want the default behaviour: to choose a completion item Solution: Conditional mapping: inoremap <expr><silent><buffer> <CR> pumvisible() ? '<CR>' : ':<Esc>:VimwikiReturn 1 5<Cr>' The previous mapping -----------------^
I found that a mapping defined in vimwiki was interfering with use of the popup/completion menu. The following change fixes it for the completion menu, but as I'm not quite sure what it's supposed to do in vimwiki, I can't be sure I've not broken the existing mapping. Anyway, it's at line 570 in ./ftplugin/vimwiki.vim;-
The text was updated successfully, but these errors were encountered: