Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xyz1001 opened this issue Dec 2, 2021 · 0 comments
Open

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

xyz1001 opened this issue Dec 2, 2021 · 0 comments

Comments

@xyz1001
Copy link

xyz1001 commented Dec 2, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant