Emmet stops working after pressing I/A/O in insert mode
10:31 25 Mar 2026

I've installed emmet-vim and I found an issue. I don't know if there's something wrong on my end or if this is a bug.

Bug description

Everything works fine until I press in normal mode I, A, O. Maybe some other keys trigger this issue as well.

Additionally, when I press ,, it inserts a character from the line above in the same column instead of triggering Emmet.

To use Emmet snippets normally again, I need to restart Vim.

My environment

  • OS: Ubuntu

  • Terminal emulator: Ghostty

  • Shell: fish

~/.vimrc:

set number relativenumber
set shell=/usr/bin/fish

set expandtab
set tabstop=2
set shiftwidth=2

set background=dark
colorscheme retrobox

autocmd BufWrite *.py silent Black
autocmd BufWrite * %substitute/\s\+$//e

nmap  :w:!clear && python3 %
nmap  :w:!clear && tcpp %
nmap  :w:!clear && dcpp %
cnoremap  
nnoremap   10<
nnoremap  10>
nnoremap     10+
nnoremap   10-

call plug#begin()
Plug 'psf/black', { 'branch': 'stable' }
Plug 'mattn/emmet-vim'
call plug#end()


" GUI
set guioptions-=m 
set guioptions-=T
set guioptions-=r
set guioptions-=L
set guifont=Monospace\ 12
vim vim-plugin emmet