[vim/vim] leading whitespaces are not cleared with autocomplete, expandtab and `o<esc>` (Issue #18560)

9 views
Skip to first unread message

Maxim Kim

unread,
Oct 12, 2025, 11:27:02 PM (23 hours ago) Oct 12
to vim/vim, Subscribed
habamax created an issue (vim/vim#18560)

Steps to reproduce

  1. vim --clean +"set expandtab ac complete+=o list listchars=space:." test.vim
  2. type def Hello()
  3. press o<ESC>

Expected behaviour

Leading spaces should be removed.

https://asciinema.org/a/4OIJmPfuhqbhqxLUbpkz7YN9f

ping @girishji

Note, this is not happening without expandtab or if you press Enter after def Hello().

Version of Vim

9.1.1852

Environment

debian13, bash

Logs and stack traces


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/18560@github.com>

Maxim Kim

unread,
1:19 AM (21 hours ago) 1:19 AM
to vim/vim, Subscribed
habamax left a comment (vim/vim#18560)

I don't get popupmenu if there is no indent:

https://asciinema.org/a/tH8vuodhB7nNEaaReXHmXmmfl


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/18560/3395891551@github.com>

Maxim Kim

unread,
1:39 AM (21 hours ago) 1:39 AM
to vim/vim, Subscribed
habamax left a comment (vim/vim#18560)

I have updated vim's omnicomplete to not start completion on empty prefix: #18561


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/18560/3395926781@github.com>

Maxim Kim

unread,
6:37 PM (4 hours ago) 6:37 PM
to vim/vim, Subscribed
habamax left a comment (vim/vim#18560)

Simplified min repro steps:

  1. vim --clean +"set et ai ac"
  2. i<tab>hello<esc>o<esc>

https://asciinema.org/a/lrthxJacliRBFB4eWxIc8xbc3


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/18560/3399271712@github.com>

Reply all
Reply to author
Forward
0 new messages