Questions tagged [ins-completion]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
51 views

Filter file completion list

When I write markdown and want to insert an image, i_CTRL-X_CTRL-F comes in handy. I know that I can filter by typing a few characters that precede the filename, but actually what I want is either ...
1
vote
1answer
28 views

Can I disable insert-mode completion (ins-completion) key mapping (CTRL-X)?

Because the keys d and xare used in normal mode to delete letters, I map <ctrl-d> and <ctrl-x> in insert mode to delete and backspace. However, when I started to use completion plugin (I ...
1
vote
1answer
32 views

Cancel command line completion insert

I notice a different behavior in command line completion from the regular completion in a buffer. Usually even if I select and item from the completion menu, CTRL-E cancels the completion and reverts ...
0
votes
0answers
39 views

How to start insert-mode completion from select mode using Vimscript?

I have some text selected in select mode. I want to delete it and start insert-mode completion. When I type these keystrokes into Vim it works perfectly: gvc<C-X><C-U> gv switches to ...
2
votes
1answer
48 views

How to get insert mode map to work regardless of completion popup?

I have an insert mode mapping which calls a function to select some text and leave vim in select mode. inoremap <silent> <C-J> <C-\><C-O>:call MyFunction()<CR> This ...
0
votes
0answers
21 views

Mapping to have completion attempt one mode and fall back to another if no completions found

I am attempting to map ,<tab> in insert mode to first attempt omnicompletion then fall back to <c-p> or <c-x><c-p> completion. I have used this reference to successfully send ...
1
vote
0answers
53 views

Change the behavior of CTRL-X submode key bindings

I wanted to change the behavior of some keys in the :h i_CTRL-X submode. For example, I wanted to use the following: inoremap <expr> <C-f> pumvisible() ? "\<C-x>\<C-f>" : "<...
2
votes
0answers
22 views

How to omit dictionary source file in dictionary completion

<C-X><C-K> complete words with long dictionary file name, such as /home/xxx/.vim/mydict. I'd like to omit or shorten the descriptive info. I have googled but got no hints. Any advice?
0
votes
1answer
41 views

Explain `infercase` option

I don't understand what :h infercase is supposed to do. I tried out some scenarios, but still can't figure out the differences between when it is turned off and on. Can someone explain it to me, ...