mirror of
https://github.com/VSCodeVim/Vim.git
synced 2024-11-11 06:39:50 +03:00
feat: add o command in visual block mode
This commit is contained in:
parent
b56c64a76b
commit
dcad524cb5
@ -1932,7 +1932,7 @@ class CommandBottomScrollFirstChar extends BaseCommand {
|
||||
|
||||
@RegisterAction
|
||||
class CommandGoToOtherEndOfHighlightedText extends BaseCommand {
|
||||
modes = [ModeName.Visual, ModeName.VisualLine];
|
||||
modes = [ModeName.Visual, ModeName.VisualLine, ModeName.VisualBlock];
|
||||
keys = ['o'];
|
||||
|
||||
public async exec(position: Position, vimState: VimState): Promise<VimState> {
|
||||
|
@ -152,4 +152,11 @@ suite('Mode Visual Block', () => {
|
||||
keysPressed: '<C-v>$4jAaa<Esc>',
|
||||
end: ['Doga|a', 'Angryaa', 'Dogaa', 'Angryaa', 'Dogaa'],
|
||||
});
|
||||
|
||||
newTest({
|
||||
title: 'o works in visual block mode',
|
||||
start: ['|foo', 'bar', 'baz'],
|
||||
keysPressed: '<C-v>jjllold',
|
||||
end: ['|f', 'b', 'b'],
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user