Skip to content

uncomment work unexpectly when single line has multi warp comment #175

@xyz1001

Description

@xyz1001

env

  1. Windows 11 + Windows Terminal + WSL2 + manjaro 21.2 + neovim 0.5.1 + caw 3aefcb
  2. Windows 11 + Windows Terminal + powershell + neovim 0.5.1 + caw 3aefcb

reproduce

  1. use gcwiw to comment multi word in single line;
  2. use gcuwiw to uncomment any word.

expect

the commented word under the cursor is uncommented

got

the first commented word is uncommented.

mininal vimrc

runtime macro/matchit.vim

if empty(glob('$HOME/.vim/autoload/plug.vim'))
    if has('win32')
        silent execute '!powershell "iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |` ni $HOME/.vim/autoload/plug.vim -Force"'
    else
        silent execute "!curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"
    endif
    autocmd VimEnter * PlugInstall | source $MYVIMRC
endif


call plug#begin('~/.vim/plugged')

Plug 'kana/vim-operator-user'
Plug 'tyru/caw.vim'

call plug#end()

let g:caw_operator_keymappings=1

caw

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions