When in vim mode, Visual Block mode (ctrl+v) incorrectly manipulates tab characters as if they are of width one, rather than the width visually exposed.
Current behaviour
Screenshot (optional)
Provide steps to reproduce:
Create a document, such as a table, consisting of both tabs and spaces
|
\t|
set to use Vim mode and enter command mode (esc)
gg to go to the top
ctrl+v to enter visual block mode
G to go to the bottom row
A to append. Notice that rather than a clean block selection, a jagged edge is selected.
Is this a hackmd.io issue?
Read our Official tutorial
It's on https://hackmd.io/c/tutorials/
或是中文版 https://hackmd.io/c/tutorials-tw/
What's the problem
When in
vim
mode, Visual Block mode (ctrl+v
) incorrectly manipulates tab characters as if they are of width one, rather than the width visually exposed.Current behaviour
Provide steps to reproduce:
esc
)gg
to go to the topctrl+v
to enter visual block modeG
to go to the bottom rowA
to append. Notice that rather than a clean block selection, a jagged edge is selected.example note
Expected behaviour
Tabs should be treated with their rendered width, not width one.
Environment
I use HackMD on:
Desktop
Mobile n/a
Additional context
n/a