[vim/vim] block visual mode insert not working (Issue #10069)

249 views
Skip to first unread message

李亚夫

unread,
Apr 3, 2022, 1:22:05 AM4/3/22
to vim/vim, Subscribed

Steps to reproduce

  1. ctrl + v enter the visual mode
  2. select some lines
  3. enter I(shift+i)
  4. enter #
  5. esc
  6. nothing to insert

Expected behaviour

insert a '#' in the beginning of every selected line.

Version of Vim

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Feb 24 2022 18:41:57)

Environment

Manjaro Linux x86_64
Kernel: 5.10.105-1-MANJARO
Gnome terminal/gvim
xterm-256color

Logs and stack traces

No response


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/10069@github.com>

Bram Moolenaar

unread,
Apr 3, 2022, 7:11:21 AM4/3/22
to vim/vim, Subscribed

Works just fine for me. Did you start with "vim --clean" ?


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/10069/1086839830@github.com>

Christian Brabandt

unread,
Apr 4, 2022, 11:22:21 AM4/4/22
to vim/vim, Subscribed

It may also depend on the lines. Can you please give an example with the content to be commented out?


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/10069/1087695102@github.com>

李亚夫

unread,
Apr 19, 2022, 3:29:24 AM4/19/22
to vim/vim, Subscribed

Works just fine for me. Did you start with "vim --clean" ?

vim --clean works fine.


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/10069/1102198672@github.com>

李亚夫

unread,
Apr 19, 2022, 3:30:22 AM4/19/22
to vim/vim, Subscribed

It may also depend on the lines. Can you please give an example with the content to be commented out?

What I should do? as @brammool say, when I run vim --clean, it works fine.


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/10069/1102200098@github.com>

Christian Brabandt

unread,
Apr 19, 2022, 7:55:20 AM4/19/22
to vim/vim, Subscribed

reproduce with a minimal vimrc without problems. See https://vimhelp.org/vim_faq.txt.html#faq-2.5

And show the content of the file where you are trying to use the block insert.


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/10069/1102549168@github.com>

Bram Moolenaar

unread,
Apr 19, 2022, 10:50:38 AM4/19/22
to vim/vim, Subscribed

Most likely a plugin is interfering. Disable all your plugins (how depends on how you installed them).
You can also try to set 'filetype' to see if that makes a difference.


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/10069/1102749607@github.com>

李亚夫

unread,
Apr 19, 2022, 11:10:06 AM4/19/22
to vim/vim, Subscribed

Thanks, every one.


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/10069/1102771029@github.com>

李亚夫

unread,
Apr 19, 2022, 11:10:18 AM4/19/22
to vim/vim, Subscribed

Closed #10069.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/10069/issue_event/6456199973@github.com>

Reply all
Reply to author
Forward
0 new messages