If neither of those exist, you could create an issue requesting that on YouCompleteMeâs issue tracker. You would have to look in YCMâs documentation for an option that enables it, or a mapping that expands the completion list to include completions from other buffers. If completions from other buffers do not show up in that automatically-triggered list, YouCompleteMe probably does it on purpose so that normal typing wonât be slowed down too much. When there are no completion matches, nothing happens when I hit tab the cursor just sits there. I see that YouCompleteMe purports to offer completion without even needing to type Tab. The problem: with some frequency I find myself in a plain-text file wishing to type some text here.Other popular completion plugins probably support that feature too. With Supertab, I can successfully type Tab to complete a word from a different buffer. Supertab neocomplcache And thats not all. Change the settings for that plugin or disable it. YouCompleteMe is a fast, as-you-type, fuzzy-search code completion engine for Vim. If this functionality is not working for you with your normal vimrc, one of your installed plugins such as YouCompleteMe might be interfering with that behavior. YouCompleteMe is a fast, as-you-type, fuzzy-search code completion engine for Vim. âfiveâ will successfully be completed, even though the word âfiveâ is in a different buffer. This triggers the next autocomplete match â see Vimâs documentation for i_CTRL-N. Switch back to the first buffer with Ctrl- W W, then open a new line with o. Run :new to open another buffer, and type âfour five sixâ. In the empty buffer, type the text âone two threeâ. That launches Vim using that file as your vimrc, so you can test how Vim works without any plugins. You can see that with the following test:Ĭreate a file very-basic-vimrc with the following contents: set nocompatible Vimâs built-in completion with Ctrl- N in Insert Mode already supports this.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |