Closed MatusGasparik closed 1 year ago
Navigate to any line and select multiple lines with
V
/shift-v
and the desired movement (e.g. withj
orG
/shift-g
)
- Now, press
I
/shift-i
to insert at the beginning of the visual block, type anything and hit<escape>
.
This is not how column insert works in vim (neither in a terminal nor in jupyter). Instead:
ctrl-v
and the desired movement (e.g. with j
or G
/ shift-g
and l
or h
)I
/ shift-i
to insert at the beginning of the visual block or press A
/ shift-a
to insert after the visual block, type anything and hit <escape>
.Thanks @lukashergt for your reply. I guess you are right. I just realized that it works for me in VSCode with the vim extension, but that has probably to do with the multi-line cursor functionality of the editor. I tried the same in vanilla VIM editor and indeed I need to use the column visual selection (ctrl-v
) to make it work.
Another related question: is it in any way possible to use vim-commentary
(https://github.com/tpope/vim-commentary) in the jupyterlab-vim
extension?
Closing as this is a non-issue.
Description
When selecting multiple lines using the vim's visual mode the inserting (with
I
/shift-i
) or appending (withA
/shift-a
) doesn't work. The inserting happens only on the current line, but not the entire selected block. The appending at the end of each line doesn't even work for the current line (it simply does the "normal"a
append at the cursor possition).Reproduce
Using some multi-line dummy text:
V
/shift-v
and the desired movement (e.g. withj
orG
/shift-g
)I
/shift-i
to insert at the beginning of the visual block, type anything and hit<escape>
.What you get is this:
Expected behavior
...instead of this:
Context
Python package version:
Extension version:
jupyter labextension list
Operating System and its version:
macOS 12.6.2. (Apple M1 Max Chip)
Browser and its version:
Version 113.0.5672.92 (Official Build) (arm64)
Command Line Output
Web Browser Output