I use YouCompleteMe for auto-completion in Vim. It doesn’t work well together with VimShell, so I want to disable it, only within VimShell buffers.
How can I disable YouCompleteMe and enable NeoComplete from Vimscript?
I use YouCompleteMe for auto-completion in Vim. It doesn’t work well together with VimShell, so I want to disable it, only within VimShell buffers.
How can I disable YouCompleteMe and enable NeoComplete from Vimscript?
Copyright © 2021 Jogjafile Inc.
YouCompleteMe allows you to configure a filetype whitelist and blacklist that enables or disables completion for given filetypes.
https://github.com/Valloric/YouCompleteMe#the-gycm_filetype_whitelist-option
Neocomplete has a similar feature, with
NeoCompleteUnlock/NeoCompleteLock.https://github.com/Shougo/neocomplete.vim/blob/290b9532ae3a04b53f0d0ecdee34e2b664229939/doc/neocomplete.txt#L204
For example, to disable YouCompleteMe and enable NeoComplete for the vimshell filetype, you could use something like this in your .vimrc:
I cannot test this, as I do not use vimshell.