]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1742: complete: preinsert does not work well with preinsert v9.1.1742
authorGirish Palya <girishji@gmail.com>
Mon, 8 Sep 2025 19:23:29 +0000 (15:23 -0400)
committerChristian Brabandt <cb@256bit.org>
Mon, 8 Sep 2025 19:23:29 +0000 (15:23 -0400)
commitfa6fd41a943e6442c1a2ce6b0a237298b00ecca0
treeb813a46c1fae42b75c69d2343080003719031f28
parent4ed19fd336c4672989170992c3fe53cc74392476
patch 9.1.1742: complete: preinsert does not work well with preinsert

Problem:  complete: preinsert does not work well with preinsert
Solution: Make "preinsert" completeopt value work with autocompletion
          (Girish Palya)

This change extends Insert mode autocompletion so that 'preinsert' also
works when 'autocomplete' is enabled.

Try: `:set ac cot=preinsert`

See `:help 'cot'` for more details.

closes: #18213

Signed-off-by: Girish Palya <girishji@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
14 files changed:
runtime/doc/insert.txt
runtime/doc/options.txt
runtime/doc/syntax.txt
runtime/doc/tags
runtime/syntax/vim.vim
src/edit.c
src/highlight.c
src/insexpand.c
src/optiondefs.h
src/proto/insexpand.pro
src/testdir/test_cmdline.vim
src/testdir/test_ins_complete.vim
src/version.c
src/vim.h