vim-notes
vim-notes copied to clipboard
Overzealous Auto-Complete
Reproduction Steps
Note: I'm using neovim
- Add this to your
init.vim
Plug 'xolox/vim-notes'
Plug 'xolox/vim-misc'
Plug 'ncm2/ncm2'
Plug 'roxma/nvim-yarp'
Plug 'ncm2/ncm2-bufword'
- Do the requisite
:PlugInstall - Start a new note and start typing. Once you've typed a few words, try typing a word that you've already added to the buffer (or another open buffer)
Expected Behavior
The suggestion pop-up should appear with possible completion options
Actual Behavior
The first suggestion in the list is automatically selected and inserted into the buffer.
Possible Causes
After some discussion here and some experimentation, it seems that the issue is caused be this line of code where completeopt has longest appended to it. This is causing the noinsert option (which ncm2's README specifies is necessary for it to operate properly) to have no effect (per the built-in vim documentation for completeopt).
Has anyone else experienced this?