Vim: Visual Block Mode: Tab does not indent

Created on 2 Jan 2017  Â·  4Comments  Â·  Source: VSCodeVim/Vim

What did you do?

Highlighted a column of text in Visual Block mode - e.g.

screen shot 2017-01-02 at 10 24 44 am

(Ctrl+V + jjjj + tab - incidentally I'd expect 4j to work too, but it doesn't)

What did you expect to happen?

All rows to be indented.

What happened instead?

Only indented the first row.

Double-tapping space works.

Technical details:

  • VSCode Version: Version 1.8.1 (1.8.1)
  • VsCodeVim Version: 0.4.10
  • OS: macOS Sierra - 10.12.2

Most helpful comment

FYI, native VSC shortcuts for indent are ⌘+] and ⌘+[ (CTRL instead of CMD on Windows/Linux) and it works in visual mode.

All 4 comments

This is not how Vim works, > is the command you are looking for (also takes a number if desired 3>

You're right - I'd gotten so used to neovim/vim-sensible (which looks to correct this).

Given that - is there a way to replicate in VS Code?

You could probably use our remapping feature to remap <tab> to something like i<tab>.

FYI, native VSC shortcuts for indent are ⌘+] and ⌘+[ (CTRL instead of CMD on Windows/Linux) and it works in visual mode.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

spinningarrow picture spinningarrow  Â·  3Comments

waltiam picture waltiam  Â·  3Comments

WangRongda picture WangRongda  Â·  3Comments

cckowin picture cckowin  Â·  3Comments

jaredly picture jaredly  Â·  3Comments