Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cursors with 'keyboard' kind Selections #5050

Closed
wants to merge 10 commits into from

Conversation

berknam
Copy link
Contributor

@berknam berknam commented Jul 20, 2020

What this PR does / why we need it:

  • Selection change events not triggered by us of type 'Keyboard' will
    now enter visual mode (if they are not empty selections).
  • This allows entering visual mode with shift+arrowKeys or shift+end,
    shift+home even when on insert mode and with multi cursors.

Which issue(s) this PR fixes
fixes #2094
related to #1806

Special notes for your reviewer:
This PR is built on top and depends on PR #5015 and should not be merged before that on is merged first. This has now been rebased to master and is ready to merge.

@TravisBuddy
Copy link

Travis tests have failed

Hey @berknam,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Node.js: 12

View build log

if [[ $(git diff-index HEAD -- *.js *.ts *.md) ]]; then git diff; echo "Prettier Failed. Run `gulp forceprettier` and commit changes to resolve."; exit 1; fi
The command "if [[ $(git diff-index HEAD -- *.js *.ts *.md) ]]; then git diff; echo "Prettier Failed. Run `gulp forceprettier` and commit changes to resolve."; exit 1; fi" exited with 0.
$ gulp build
[04:12:55] Using gulpfile ~/build/VSCodeVim/Vim/gulpfile.js
[04:12:55] Starting 'build'...
[04:12:55] Starting 'prettier'...
[04:12:55] Finished 'prettier' after 11 ms
[04:12:55] Starting 'webpack'...
[04:12:55] Starting 'tslint'...
(node:5635) [DEP0097] DeprecationWarning: Using a domain property in MakeCallback is deprecated. Use the async_context variant of MakeCallback or the AsyncResource class instead.
[04:13:25] Version: webpack 4.43.0
Built at: 07/20/2020 4:13:25 AM
           Asset      Size  Chunks                   Chunk Names
    extension.js   807 KiB       0  [emitted]        main
extension.js.map  3.22 MiB       0  [emitted] [dev]  main
Entrypoint main = extension.js extension.js.map
[04:13:25] Finished 'webpack' after 30 s
[04:13:27] Finished 'tslint' after 32 s
[04:13:27] Starting 'commit-hash'...
[04:13:27] Finished 'commit-hash' after 52 ms
[04:13:27] Finished 'build' after 32 s
The command "gulp build" exited with 0.
$ gulp prepare-test
[04:13:27] Using gulpfile ~/build/VSCodeVim/Vim/gulpfile.js
[04:13:27] Starting 'prepare-test'...
[04:13:27] Starting 'tsc'...
[04:13:27] Starting 'copyPackageJson'...
[04:13:28] Finished 'copyPackageJson' after 138 ms
[04:13:41] Finished 'tsc' after 13 s
[04:13:41] Finished 'prepare-test' after 13 s
The command "gulp prepare-test" exited with 0.
$ npm test

> vim@1.15.0 test /home/travis/build/VSCodeVim/Vim
> node ./out/test/runTest.js

Downloading VS Code 1.47.2 from https://update.code.visualstudio.com/1.47.2/linux-x64/stable
Downloaded VS Code 1.47.2 into .vscode-test/vscode-1.47.2
Warning: 'sandbox' is not in the list of known options, but still passed to Electron/Chromium.

[main 2020-07-20T04:13:49.732Z] update#setState idle

bash: cannot set terminal process group (-1): Inappropriate ioctl for device

bash: no job control in this shell

(node:5745) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information

(node:5745) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information

(node:5745) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information

(node:5745) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information

(node:5745) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information

(node:5745) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information

(node:6283) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information

(node:6283) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information



  base action

    ✓ compare key presses
    ✓ couldActionApply 1D keys positive

    ✓ couldActionApply 1D keys negative
    ✓ couldActionApply 2D keys positive
    ✓ couldActionApply 2D keys negative
    ✓ doesActionApply 1D keys positive
    ✓ doesActionApply 1D keys negative

    ✓ doesActionApply 2D keys positive

    ✓ doesActionApply 2D keys negative

  bang (!) cmd_line

    parsing

      ✓ simple ! (201ms)

      ✓ simple ! with space between bang and command (113ms)

      ✓ ! with line (104ms)

      ✓ ! with line range (146ms)

    previous external commands (embedded bangs)

      ✓ !! should execute previous command (177ms)

      ✓ !! should support command concatenation (156ms)

      ✓ any ! in cmd is replaced with previous external command (105ms)

      ✓ only the ! character can be unescaped, with a backslash (109ms)

    stdin/stdout/stderr

      ✓ ! can read from stdin (97ms)

      ✓ :{line}!{cmd} should pass in line as stdin (79ms)

      ✓ :{range}!{cmd} should pass in line range as stdin (99ms)

      ✓ ! with commands expecting stdin do not block when no stdin is supplied (45ms)

      ✓ ! can read from both stdout and stderr (84ms)

      ✓ piping commands works (75ms)

  cmd_line/search command

    ✓ command <C-w> can remove word in cmd line

    ✓ command <C-w> can remove word in search mode

    ✓ command <C-w> can remove word in cmd line while retrain cmd on the right of the cursor

    ✓ command <C-w> can remove word in search mode while retrain cmd on the right of the cursor

    ✓ <C-u> deletes from cursor to first character

    ✓ <C-b> puts cursor at start of command line

    ✓ <Home> puts cursor at start of command line

    ✓ <C-e> puts cursor at end of command line

    ✓ <End> puts cursor at end of command line

    ✓ <C-p>/<C-n> go to the previous/next command

    ✓ <C-r> <C-w> insert word under cursor on command line (51ms)

    ✓ <C-r> <C-w> insert word right of cursor on command line (84ms)

    ✓ <C-r> <C-w> insert word under cursor in search mode (51ms)

    ✓ <C-p> go to previous search string

  cursor location

    ✓ cursor location in command line

    ✓ cursor location in search

  HistoryFile

    ✓ add command

    ✓ add empty command (43ms)

    ✓ add command over configuration.history (43ms)

    ✓ add command that exists in history (42ms)

    ✓ file system (39ms)

    ✓ change configuration.history (79ms)

  command-line lexer
    ✓ can lex empty string
    ✓ can lex comma
    ✓ can lex percent
    ✓ can lex dollar
    ✓ can lex dot
    ✓ can lex one number
    ✓ can lex longer number
    ✓ can lex plus
    ✓ can lex minus
    ✓ can lex forward search
    ✓ can lex forward search escaping
    ✓ can lex reverse search

    ✓ can lex reverse search escaping

    ✓ can lex command name

    ✓ can lex command args

    ✓ can lex command args with leading whitespace

    ✓ can lex long command name and args

    ✓ can lex left and right line refs

  :only command

    ✓ Run :only (1253ms)

  command-line parser

    ✓ can parse empty string

    ✓ can parse left - dot

    ✓ can parse left - dollar

    ✓ can parse left - percent

    ✓ can parse separator - comma

    ✓ can parse right - dollar

  put cmd_line

    ✓ put in empty file (42ms)

    ✓ put in middle of file (222ms)

    ✓ put at end of file (57ms)

    ✓ put ignores current indentation (66ms)

    ✓ put text with newlines (79ms)

    ✓ put from specified register (49ms)

    ✓ put in visual mode executes at cursor end position (100ms)

    ✓ put forces linewise put regardless of register mode (160ms)

    ✓ put! puts before current line (57ms)

    ✓ put leaves cursor on last line, first non-whitespace character of pasted content

    ✓ put! leaves cursor on last line, first non-whitespace character of pasted content (40ms)

    ✓ put with specified line (64ms)

    ✓ put! with specified line (79ms)

    ✓ put with line range should insert at ending line (70ms)

  command line scanner

    ✓ ctor

    ✓ can detect EOF with empty input

    ✓ next() returns EOF at EOF

    ✓ can scan

    ✓ can emit

    ✓ can ignore

    ✓ can skip whitespace

    ✓ can skip whitespace with one char before EOF

    ✓ can skip whitespace at EOF

    ✓ nextWord() return EOF at EOF

    ✓ nextWord() return word before trailing spaces
    ✓ nextWord() can skip whitespaces and return word 

    ✓ nextWord() return word before EOF

    ✓ can expect one of a set

    ✓ can expect only one of a set

  Smile command

    ✓ :smile creates new tab (548ms)

    ✓ :smile editor contains smile text (545ms)

  Basic sort

    ✓ Sort whole file, asc (94ms)

    ✓ Sort whole file, asc, ignoreCase (106ms)

    ✓ Sort whole file, dsc (83ms)

    ✓ Sort whole file, dsc, ignoreCase (95ms)

    ✓ Sort range, asc (141ms)

    ✓ Sort range, asc, ignoreCase (115ms)

    ✓ Sort range, dsc (138ms)

    ✓ Sort range, dsc, ignoreCase (213ms)

TaskQueue: error: Error running task. .

    ✓ Sort whole file, asc, unique (139ms)

  Horizontal split

    ✓ :sp creates a second split (84ms)

    ✓ :split creates a second split (74ms)

    ✓ :new creates a second split (268ms)

  :close args parser

    ✓ can parse empty args

    ✓ ignores trailing white space

    ✓ can parse !
    ✓ throws if space before !
    ✓ ignores space after !
    ✓ throws if bad input
  :quit args parser

    ✓ can parse empty args

    ✓ ignores trailing white space

    ✓ can parse !

    ✓ throws if space before !

    ✓ ignores space after !

    ✓ throws if bad input

  :substitute args parser

    ✓ can parse pattern, replace, and flags

    ✓ can parse count

    ✓ can parse custom delimiter

    ✓ can escape delimiter

    ✓ can parse flag KeepPreviousFlags

  :tabm[ove] args parser

    ✓ has :tabm alias

    ✓ can parse empty args

    ✓ can parse an absolute position

    ✓ can parse a relative position

    ✓ fails with invalid inputs

  getParser

    ✓ empty

    ✓ :marks

    ✓ :ju

    ✓ :sh

    ✓ :write

    ✓ :nohlsearch

    ✓ :quitall

    :write args parser

      ✓ can parse empty args

      ✓ can parse ++opt

      ✓ throws if bad ++opt name

      ✓ can parse bang

      ✓ can parse ' !cmd'

      ✓ can parse ' !cmd' when cmd is empty

  Basic substitute

    ✓ Replace single word once (66ms)

    ✓ Replace with `g` flag (58ms)

    ✓ Replace with flags AND count (85ms)

    ✓ Replace with `c` flag (69ms)

    ✓ Replace with `gc` flag (85ms)

    ✓ Replace across all lines (79ms)

    ✓ Replace on specific single line (79ms)

    ✓ Replace on current line using dot (76ms)

    ✓ Replace single relative line using dot and plus (87ms)

    ✓ Replace across specific line range (88ms)

    ✓ Replace across relative line range using dot, plus, and minus (79ms)

    ✓ Replace across relative line range using numLines+colon shorthand (67ms)

    ✓ Repeat replacement across relative line range (106ms)

    ✓ Replace with range AND count but no flags (75ms)

    ✓ Undocumented: operator without LHS assumes dot as LHS (55ms)

    ✓ Undocumented: multiple consecutive operators use 1 as RHS (68ms)

    ✓ Undocumented: trailing operators use 1 as RHS (68ms)

    ✓ Replace specific single equal lines (77ms)

    ✓ Replace current line with no active selection (90ms)

    ✓ Replace text in selection (134ms)

    ✓ Substitute support marks (90ms)

    Effects of gdefault=true

      ✓ Replace all matches in the line (50ms)

      ✓ Replace with `g` flag inverts global flag (59ms)

      ✓ Replace with `c` flag inverts global flag (86ms)

      ✓ Replace multiple lines (116ms)

      ✓ Replace across specific lines (97ms)

      ✓ Replace current line with no active selection (101ms)

      ✓ Replace text in selection (144ms)

      ✓ Substitute support marks (113ms)

      ✓ Substitute with escaped delimiter (61ms)
    Substitute should use various previous search/substitute states

      ✓ Substitute with previous search using * (209ms)

      ✓ Substitute with previous search using # (167ms)

      ✓ Substitute with previous search using / (255ms)

      ✓ Substitute with parameters should update search state (107ms)

      ✓ Substitute with empty replacement should delete previous substitution (all variants) and accepts flags (243ms)

      ✓ Substitute with no pattern should repeat previous substitution and not alter search state (112ms)

      ✓ Substitute repeat previous should accept flags (73ms)

      ✓ Substitute with empty search string should use last searched pattern (226ms)

      ✓ Ampersand (&) should repeat the last substitution (59ms)

  cmd_line tab

    ✓ tabe with no arguments when not in workspace opens an untitled file

    ✓ tabedit with no arguments when not in workspace opens an untitled file

    ✓ tabe with absolute path when not in workspace opens file (77ms)

    ✓ tabe with current file path does nothing (62ms)

  cmd_line tabComplete

    ✓ command line command tab completion (70ms)

    ✓ command line command shift+tab

    ✓ command line file tab completion with no base path

    ✓ command line file tab completion with / as base path

    ✓ command line file tab completion with ~/ as base path

    ✓ command line file tab completion with ./ as base path

    ✓ command line file tab completion with ../ as base path

    ✓ command line file tab completion directory with / at the end

    ✓ command line file navigate tab completion

    ✓ command line tab completion on the content on the left of the cursor

    ✓ command line file tab completion with . (45ms)

    ✓ command line file tab completion with space in file path (152ms)

  Undo command

    ✓ undoes last action after insert mode (50ms)

  Vertical split

    ✓ :vs creates a second split (75ms)

    ✓ :vsp creates a second split (73ms)

    ✓ :vsplit creates a second split (66ms)

    ✓ :vnew creates a second split (268ms)

    ✓ :vne creates a second split (226ms)

  Basic write-quit

    ✓ Run write and quit (74ms)

  Provide line completions
    Line Completion Provider unit tests

      ✓ Can complete lines in file, prioritizing above cursor, near cursor

      ✓ Can complete lines in file with different indentation (38ms)

      ✓ Returns no completions for unmatched line (42ms)

  Configuration

    ✓ remappings are normalized

    ✓ whichwrap is parsed into wrapKeys

    ✓ Can handle long key chords

  Notation

    ✓ Normalize
  Remapper

    ✓ getLongestedRemappedKeySequence (96ms)

    ✓ getMatchingRemap (75ms)

    ✓ jj -> <Esc> through modehandler (97ms)

[main 2020-07-20T04:14:19.738Z] update#setState checking for updates

    ✓ 0 -> :wq through modehandler (107ms)

[main 2020-07-20T04:14:19.819Z] update#setState idle

    ✓ <c-e> -> <esc> in insert mode should go to normal mode (97ms)

    ✓ leader, w -> closeActiveEditor in normal mode through modehandler (82ms)

    ✓ leader, c -> closeActiveEditor in visual mode through modehandler (101ms)

    ✓ d -> black hole register delete in normal mode through modehandler (136ms)

    ✓ d -> black hole register delete in normal mode through modehandler (476ms)

    ✓ jj -> <Esc> after ciw operator through modehandler (157ms)

    ✓ jj -> <Esc> after using <Count>i=jj should insert === (163ms)

    ✓ jj -> <Esc> does not leave behind character a j (153ms)

    ✓ jj -> <Esc> does not modify undo stack (162ms)

  Neovim Validator

    ✓ neovim enabled without path

    ✓ neovim enabled with nvim in path

    ✓ neovim disabled

  Remapping Validator

    ✓ no remappings

    ✓ jj->esc

    ✓ remapping missing after and command

    ✓ remappings are de-duped

  Vimrc

    ✓ Can expand $HOME to user's home directory

    ✓ Can expand ~ to user's home directory

  VimrcKeyRemappingBuilder

    ✓ Build IKeyRemapping objects from .vimrc lines

  Error
    ✓ error code has message
  package.json

    ✓ all keys have handlers

    ✓ all defined configurations in package.json have handlers
  historyTracker unit tests

    addMark

      ✓ can create lowercase mark

      ✓ can create uppercase mark

      ✓ shares uppercase marks between editor instances

      ✓ does not share lower marks between editor instances

  Record and navigate jumps

    Jump Tracker unit tests

      ✓ Can record jumps between files

      ✓ Can handle file jump events sent by vscode in response to recordJumpBack

      ✓ Can record jumps between files after switching files

      ✓ Can handle jumps to the same file multiple times

      ✓ Can record up to 100 jumps, the fixed length in vanilla Vim

      ✓ Can handle text deleted from a file

    Can record jumps for actions the same as vanilla Vim

      Can track basic jumps

        ✓ Can track jumps for keys: Ggg

        ✓ Can track jumps for keys: GggG

        ✓ Can track jumps for keys: GggGgg

        ✓ Can track jumps for keys: /b<CR>n (48ms)

        ✓ Can track jumps for keys: G?b<CR>ggG (51ms)

        ✓ Can track jumps for keys: j%% (48ms)

      Can track jumps with back/forward

        ✓ Can track jumps for keys: j%%<C-o>

        ✓ Can track jumps for keys: j%%<C-o><C-i>

        ✓ Can track jumps for keys: j%%<C-o>%

        ✓ Can track jumps for keys: j%%<C-o>gg (45ms)

        ✓ Can track jumps for keys: j%%<C-o><C-o>gg

        ✓ Can track jumps for keys: /^<CR>nnn<C-o><C-o><C-o><C-i>gg (145ms)

        ✓ Can enter number to jump back multiple times (56ms)

        ✓ Can track one-line `` jumps (71ms)

        ✓ Can track one-line double `` jumps (61ms)

        ✓ Can track one-line '' jumps (75ms)

        ✓ Can track one-line double '' jumps (181ms)

        ✓ Can handle '' jumps with no previous jump

      Can shifts jump lines up after deleting a line with Visual Line Mode

        ✓ Can track jumps for keys: /^<CR>nnnkkdd (72ms)

        ✓ Can track jumps for keys: /^<CR>nnnkdd (67ms)

        ✓ Can track jumps for keys: /^<CR>nnnnn<C-o><C-o><C-o><C-o>dd (68ms)

        ✓ Can track jumps for keys: /a4<CR>/a5<CR>kkkdd (80ms)

      Can shifts jump lines up after deleting a line with Visual Mode

        ✓ Can track jumps for keys: /^<CR>nnnkklvjjhx (92ms)

      Can shift jump lines down after inserting a line

        ✓ Can track jumps for keys: /^<CR>nnnkkoINSERTED<Esc>0 (120ms)

        ✓ Can track jumps for keys: /^<CR>nnnkoINSERTED<Esc>0 (154ms)

        ✓ Can track jumps for keys: /^<CR>nnnkOINSERTED<Esc>0 (152ms)

        ✓ Can track jumps for keys: /a4<CR>/a5<CR>kkkoINSERTED<Esc>0 (154ms)

      Can track jumps from substitutes

        ✓ Can track jumps for keys: :%s/a/b<CR> (48ms)

      Can track jumps from macros

        ✓ Can track jumps for keys: qq/^<CR>nq@q@q<C-o><C-o> (110ms)

      Can track jumps from marks

        ✓ Can track jumps for keys: maG`a

  Record and execute a macro

    ✓ Can record and execute (145ms)

    ✓ Can repeat last invoked macro (183ms)

    ✓ Can play back with count (322ms)

    ✓ Can play back with count, abort when a motion fails (366ms)

    ✓ Repeat change on contiguous lines (149ms)

    ✓ Append command to a macro (245ms)

    ✓ Append command to a not yet created register creates a new register (137ms)

    ✓ Can handle calling an uppercase register (121ms)

    ✓ Can handle calling a non existing macro (39ms)

    ✓ Can handle calling a non existing macro with uppercase letter

    ✓ Can record Ctrl Keys and repeat (118ms)

    ✓ Can execute macros with dot commands properly (117ms)

    ✓ : (command) register can be used as a macro (84ms)

    ✓ Can record and execute macro that handles multiple lines (233ms)

  Mode Handler

    ✓ ctor

    ✓ can set current mode

  Mode Handler Map

    ✓ getOrCreate

    ✓ get

  Mode Insert

    ✓ can be activated (83ms)

    ✓ can handle key events

    ✓ <Esc> should change cursor position (42ms)

    ✓ <C-c> can exit insert (63ms)

    ✓ <Esc> can exit insert (52ms)

    ✓ Stay in insert when entering characters (60ms)

    ✓ Can handle 'O' (61ms)

    ✓ 'i' puts you in insert mode before the cursor (52ms)

    ✓ 'I' puts you in insert mode at start of line (44ms)

    ✓ 'a' puts you in insert mode after the cursor (51ms)

    ✓ 'A' appends to end of line

    ✓ '<C-w>' deletes a word (49ms)

    ✓ Can handle <C-w> on leading whitespace (48ms)

    ✓ Can handle <C-w> at beginning of line (41ms)

    ✓ <C-u> deletes to start of line (46ms)

    ✓ Can handle <C-u> on leading characters (41ms)

    ✓ Can handle <C-u> on leading whitespace (157ms)

    ✓ Correctly places the cursor after deleting the previous line break (75ms)

    ✓ will not remove leading spaces input by user

    ✓ will remove closing bracket (66ms)

    ✓ Backspace works on whitespace only lines (72ms)

    ✓ Backspace works on end of whitespace only lines (43ms)

    ✓ Backspace works at beginning of file (46ms)

    ✓ Delete works in insert mode (129ms)

    ✓ Delete works at line end (84ms)

    ✓ Delete works at end of file (39ms)

    ✓ Delete works with repeat (174ms)

    ✓ Repeat insert by count times with dot (115ms)

    ✓ Can <Esc> after entering insert mode from <ctrl+o>

    ✓ Can perform <ctrl+o> to exit and perform one command in normal (92ms)

    ✓ Can <ctrl-o> after entering insert mode from <ctrl-o>

    ✓ Can perform <ctrl+o> to exit and perform one command in normal at the beginning of a row (67ms)

    ✓ Can perform insert command prefixed with count (152ms)

    ✓ Can perform append command prefixed with count (47ms)

    ✓ Can perform insert at start of line command prefixed with count (49ms)

    ✓ Can perform append to end of line command prefixed with count (53ms)

    ✓ Can perform change char (s) command prefixed with count (66ms)

    ✓ Can perform command prefixed with count with <C-[> (47ms)

    ✓ Can handle 'o' with count (111ms)

    ✓ Can handle 'O' with count (78ms)

    ✓ Can handle backspace at beginning of line with all spaces (73ms)

    ✓ Can handle digraph insert (103ms)

    ✓ Can handle custom digraph insert

    ✓ Can insert last inserted text (99ms)

    ✓ Can handle no inserted text yet when executing <ctrl-a>

  Mode Normal

    ✓ Can be activated

    ✓ Can handle dw (47ms)

    ✓ Can handle dw (39ms)

    ✓ Can handle dw (41ms)

    ✓ Can handle dw across lines (1) (42ms)

    ✓ Can handle dw across lines (2)

    ✓ Can handle dd last line (48ms)

    ✓ Can handle dd single line (44ms)

    ✓ Can handle dd (38ms)

    ✓ Can handle 3dd

    ✓ Can handle 3dd off end of document

    ✓ Can handle d2d (40ms)

    ✓ Can handle dd empty line (61ms)

    ✓ Can handle ddp (52ms)

    ✓ Can handle 'de' (51ms)

    ✓ Can handle 'de' then 'de' again (61ms)

    ✓ Can handle 'db'

    ✓ Can handle 'db then 'db' again (56ms)

    ✓ Can handle 'dl' at end of line (61ms)

    ✓ Can handle 'dF' (48ms)

    ✓ Can handle 'dT' (48ms)

    ✓ Can handle 'd3' then <enter>

    ✓ Can handle 'dj'

    ✓ Can handle 'dk' (39ms)

    ✓ Can handle 'd])' without deleting closing parenthesis

    ✓ Can handle 'd]}' without deleting closing bracket (61ms)

    ✓ Can handle 'd/' (67ms)

    ✓ Can handle 'd/' with count ([count]d/[word]) (55ms)

    ✓ Can handle 'd/' with count (d[count]/[word]) (46ms)

    ✓ Can handle 'cw' (137ms)

    ✓ Can handle 'cw' without deleting following white spaces

    ✓ Can handle 'c2w'

    ✓ Can handle 'cw' without removing EOL (51ms)

    ✓ Can handle 'c])' without deleting closing parenthesis (57ms)

    ✓ Can handle 'c]}' without deleting closing bracket (48ms)

    ✓ Can handle 's' (50ms)

    ✓ Can handle 'yiw' with correct cursor ending position (53ms)

    ✓ Can handle 'ciw' (166ms)

    ✓ Can handle 'ciw' on blanks (81ms)

    ✓ Can handle 'caw' (54ms)

    ✓ Can handle 'caw' on first letter (66ms)

    ✓ Can handle 'caw' on blanks (55ms)

    ✓ Can handle 'caw' on blanks (49ms)

    ✓ Can handle 'cae' (85ms)

    ✓ Can handle 'cae' with caret at document's top (46ms)

    ✓ Can handle 'cae' with caret at document's end (89ms)

    ✓ Can handle 'cie' on blank content

    ✓ Can handle 'cie' with leading space (59ms)

    ✓ Can handle 'cie' with trailing space (49ms)

    ✓ Can handle 'cie' with both leading and trailing space (89ms)

    ✓ Can handle 'cie' on blank content

    ✓ Can handle 'ci(' on first parentheses (48ms)

    ✓ Can handle 'ci(' with nested parentheses (56ms)

    ✓ Can handle 'ci(' backwards through nested parens (44ms)

    ✓ Can handle 'cib' on first parentheses (42ms)

    ✓ Can handle 'ci(' across multiple lines with last character at beginning

    ✓ Can handle count prefixed 'ci)' (52ms)

    ✓ Can handle count prefixed 'ca)' (47ms)

    ✓ Can handle 'ca(' spanning multiple lines (50ms)

    ✓ Can handle 'cab' spanning multiple lines (51ms)

    ✓ Can handle 'ci{' spanning multiple lines

    ✓ Can handle 'ci{' spanning multiple lines and handle whitespaces correctly (48ms)

    ✓ Can handle 'ci{' spanning multiple lines and handle whitespaces correctly (40ms)

    ✓ Can handle 'ci(' on the closing bracket (196ms)

    ✓ Can handle 'ciB' spanning multiple lines

    ✓ will fail when ca( with no ()

    ✓ will fail when ca{ with no {}

    ✓ will fail when caB with no {}

    ✓ Can handle 'ci[' spanning multiple lines (50ms)

    ✓ Can handle 'ci]' on first bracket (41ms)

    ✓ Can handle 'ca[' on first bracket (43ms)

    ✓ Can handle 'ca]' on first bracket

    ✓ Can handle 'ci'' on first quote

    ✓ Can handle 'ci'' inside quoted string (43ms)

    ✓ Can handle 'ci'' on closing quote (53ms)

    ✓ Can handle 'ci'' when string is ahead (49ms)

    ✓ Can handle 'ci"' on opening quote (41ms)

    ✓ Can handle 'ci"' starting behind the quoted word (38ms)

    ✓ Can handle 'ca"' starting behind the quoted word (51ms)

    ✓ Can handle 'ca"' starting on the opening quote

    ✓ Can handle 'ci"' with escaped quotes (48ms)

    ✓ Can handle 'ci"' with a single escaped quote

    ✓ Can handle 'ci"' with a single escaped quote behind (60ms)

    ✓ Can handle 'ci"' with an escaped backslash (51ms)

    ✓ Can handle 'ci"' with an escaped backslash on closing quote

    ✓ Can handle 'ca"' starting on the closing quote (50ms)

    ✓ Can handle 'ci"' with complex escape sequences (50ms)

    ✓ Can pick the correct open quote between two strings for 'ci"' (48ms)

    ✓ will fail when ca" ahead of quoted string

    ✓ Can handle 'ca`' inside word (46ms)

    ✓ can handle cj (80ms)

    ✓ can handle ck (90ms)

    ✓ can handle c2j (67ms)

    ✓ can handle c2k (89ms)

    ✓ can handle cj on last line (66ms)

    ✓ can handle ck on first line (111ms)

    ✓ can handle c2j on last line (69ms)

    ✓ can handle c2k on first line (91ms)

    ✓ Can handle 'daw' on word with cursor inside spaces (61ms)

    ✓ Can handle 'daw' on word with trailing spaces (43ms)

    ✓ Can handle 'daw' on word with leading spaces (75ms)

    ✓ Can handle 'daw' on word with numeric prefix

    ✓ Can handle 'daw' on word with numeric prefix and across lines (70ms)

    ✓ Can handle 'daw' on word with numeric prefix and across lines (47ms)

    ✓ Can handle 'daw' on word with numeric prefix and across lines, containing words end with `.` (50ms)

    ✓ Can handle 'daw' on end of word (51ms)

    ✓ Can handle 'daw' on words at beginning of line with leading whitespace

    ✓ Can handle 'daw' on words at ends of lines in the middle of whitespace (42ms)

    ✓ Can handle 'daw' on word at beginning of file

    ✓ Can handle 'daw' on word at beginning of line

    ✓ Can handle 'daw' on word at end of line with trailing whitespace (38ms)

    ✓ Can handle 'daw' around word at end of line (40ms)

    ✓ Can handle 'daW' on big word with cursor inside spaces (43ms)

    ✓ Can handle 'daW' around word at whitespace

    ✓ Can handle 'daW' on word with trailing spaces (47ms)

    ✓ Can handle 'daW' on word with leading spaces (50ms)

    ✓ Can handle 'daW' on word with numeric prefix (38ms)

    ✓ Can handle 'daW' on word with numeric prefix and across lines (59ms)

    ✓ Can handle 'daW' on beginning of word

    ✓ Can handle 'daW' on end of one line (54ms)

    ✓ Can handle 'daW' around word at the last WORD (t|wo) (39ms)

    ✓ Can handle 'daW' around word at the last WORD (tw|o) (42ms)

    ✓ Can handle 'daW' around word at the last WORD (class="btn"|>) (53ms)

    ✓ Can handle 'daW' around word at the last WORD of the end of document (class="btn"|>) (48ms)

    ✓ Can handle 'daW' around word at the last WORD (c|lass="btn">) (41ms)

    ✓ Can handle 'daW' around word at the last WORD of the end of document (c|lass="btn">) (48ms)

    ✓ Can handle 'diw' on word with cursor inside spaces (42ms)

    ✓ Can handle 'diw' on word (38ms)

    ✓ Can handle 'diw' on word with numeric prefix

    ✓ Can handle 'diw' on trailing spaces at the end of line (62ms)

    ✓ Can handle 'diw' on word with numeric prefix and across lines (63ms)

    ✓ Can handle 'diw' on word with numeric prefix and across lines, containing words end with `.` (55ms)

    ✓ Can handle 'diW' on big word with cursor inside spaces (45ms)

    ✓ Can handle 'diW' on word with trailing spaces (45ms)

    ✓ Can handle 'diW' on word with leading spaces (54ms)

    ✓ Can handle 'diW' on word with numeric prefix (42ms)

    ✓ Can handle 'diW' on word with numeric prefix and across lines (55ms)

    ✓ Can handle 'diW' on beginning of word

    ✓ Can handle 'dae' (84ms)

    ✓ Can handle 'dae' with caret at document's top

    ✓ Can handle 'dae' with caret at document's end (94ms)

    ✓ Can handle 'die' on blank content

    ✓ Can handle 'die' with leading space

    ✓ Can handle 'die' with trailing space (41ms)

    ✓ Can handle 'die' with both leading and trailing space (57ms)

    ✓ Can handle 'die' on blank content

    ✓ Can handle d} at beginning of line

    ✓ Can handle y} at beginning of line

    ✓ Can handle d} when not at beginning of line

    ✓ Can handle } with operator and count, at beginning of line

    ✓ Can handle } with operator and count, and not at beginning of line

    ✓ Can handle dip (63ms)

    ✓ Can handle dip on empty lines (41ms)

    ✓ Can handle dap

    ✓ Can handle dap with two blank lines (46ms)

    ✓ Can handle dap one single line with two blank lines

    ✓ Select sentence with trailing spaces (75ms)

    ✓ Select sentence with leading spaces (84ms)

    ✓ Select inner sentence with trailing spaces (44ms)

    ✓ Select inner sentence with leading spaces (55ms)

    ✓ Select spaces between sentences (79ms)

    ✓ Can handle 'df'

    ✓ Can handle 'dt' (38ms)

    ✓ Can handle backspace

    ✓ Can handle backspace across lines

    ✓ Can handle A and backspace

    ✓ A should update desiredColumn

    ✓ I should updated desiredColumn (54ms)

    ✓ leaving insert mode should update desired column when entered with a (71ms)

    ✓ leaving insert mode should update desired column when entered with i (69ms)

    ✓ Can handle 'yy' without changing cursor position

    ✓ Can handle 'P' after 'yy'

    ✓ Can handle 'p' after 'yy'

    ✓ Can handle 'P' after 'Nyy' (38ms)

    ✓ Can handle 'p' after 'Nyy' (45ms)

    ✓ Can handle 'p' after 'yy' with correct cursor position

    ✓ Can handle 'gp' after 'yy' (41ms)

    ✓ Can handle 'gp' after 'Nyy' (39ms)

    ✓ Can handle 'gp' after 'Nyy' if pasting more than three lines (39ms)

    ✓ Can handle 'gp' after 'Nyy' if cursor is on the last line (48ms)

    ✓ Can handle 'gP' after 'yy' (50ms)

    ✓ Can handle 'gP' after 'Nyy' (38ms)

    ✓ Can handle 'gP' after 'Nyy' if pasting more than three lines (44ms)

    ✓ Can handle ']p' after yy

    ✓ Can handle ']p' after 'Nyy' (43ms)

    ✓ Can handle ']p' after 'Nyy' and indent with tabs first

    ✓ Can handle ']p' after 'Nyy' and decrease indents if possible (38ms)

    ✓ Can handle '[p' after yy

    ✓ Can handle '[p' after 'Nyy' (50ms)

    ✓ Can handle '[p' after 'Nyy' and indent with tabs first (44ms)

    ✓ Can handle '[p' after 'Nyy' and decrease indents if possible (39ms)

    ✓ Can handle 'p' after y'a

    ✓ Can handle 'p' after 'y])' without including closing parenthesis (49ms)

    ✓ Can handle 'p' after 'y]}' without including closing bracket (45ms)

    ✓ Can handle pasting in visual mode over selection (71ms)

    ✓ Can repeat w

    ✓ Can repeat p

    ✓ I works correctly (99ms)

    ✓ gI works correctly (54ms)

    ✓ gi works correctly (107ms)

    ✓ `. works correctly (70ms)

    ✓ '. works correctly (71ms)

    ✓ g; works correctly (195ms)

    ✓ g, works correctly (75ms)

    ✓ g_ works correctly

    ✓ 3g_ works correctly

    ✓ gq handles spaces after single line comments correctly (157ms)

    ✓ gq handles spaces before single line comments correctly (136ms)

    ✓ gq handles tabs before single line comments correctly (162ms)

    ✓ gq work correctly with cursor in the middle of a line (99ms)

    ✓ Can handle space

    ✓ Can handle space (56ms)

    ✓ Undo 1 (85ms)

    ✓ Undo 2 (76ms)

    ✓ Undo cursor (127ms)

    ✓ Undo cursor 2 (124ms)

    ✓ Undo cursor 3 (155ms)

    ✓ Undo with movement first (96ms)

    ✓ Can handle 'U' (45ms)

    ✓ Can handle 'U' for multiple changes (96ms)

    ✓ Can handle 'U' for new line below (83ms)

    ✓ Can handle 'U' for new line above (75ms)

    ✓ Can handle 'U' for consecutive changes only (114ms)

    ✓ Can handle 'u' to undo 'U' (58ms)

    ✓ Can handle 'U' to undo 'U' (53ms)

    ✓ Can handle 'u' after :s/abc/def (66ms)

    ✓ Can handle undo delete (56ms)

    ✓ Can handle undo delete twice (62ms)

    ✓ Can handle undo delete with count (60ms)

    ✓ Can handle undo delete with count and redo (141ms)

    ✓ Redo (80ms)

    ✓ Redo (88ms)

    ✓ Redo (113ms)

    ✓ Can handle u (42ms)

    ✓ Can handle guw

    ✓ Can handle guae

    ✓ Can handle guie (43ms)

    ✓ Can handle gUw

    ✓ Can handle gUae (39ms)

    ✓ Can handle gUie

    ✓ Can handle u over line breaks (49ms)

    ✓ can handle s in visual mode (52ms)

    ✓ can handle p with selection (52ms)

    ✓ can handle P with selection (86ms)

    ✓ can handle p in visual to end of line (102ms)

    ✓ can repeat backspace twice (88ms)

    ✓ Can repeat dw (40ms)

    ✓ Can repeat dw with count (57ms)

    ✓ can delete linewise with d2G

    ✓ can delete with + motion and count (43ms)

    ✓ can delete with - motion and count (50ms)

    ✓ can delete with count before and after operator, 2d12w deletes 24 words

    ✓ can dE correctly

    ✓ can dE correctly

    ✓ can dE correctly (57ms)

    ✓ can ctrl-a correctly behind a word

    ✓ can ctrl-a the right word (always the one AFTER the cursor)

    ✓ can ctrl-a on word

    ✓ can ctrl-a on a hex number

    ✓ can ctrl-a on decimal (92ms)

    ✓ can ctrl-a with numeric prefix (56ms)

    ✓ can ctrl-a on a decimal (39ms)

    ✓ can ctrl-a on an octal 

    ✓ Correctly increments in the middle of a number

    ✓ can ctrl-a on a hex number behind a word

    ✓ can ctrl-a distinguish fake hex number

    ✓ can ctrl-a preserve leading zeros of octal

    ✓ can ctrl-a trim leading zeros of decimal (42ms)

    ✓ can ctrl-a process `-0x0` correctly

    ✓ can ctrl-a regard `0` as decimal

    ✓ can ctrl-a on octal ignore negative sign

    ✓ can ctrl-a on octal ignore positive sign

    ✓ can ctrl-a on hex number ignore negative sign

    ✓ can ctrl-a on hex number ignore positive sign (49ms)

    ✓ can ctrl-x correctly behind a word

    ✓ can ctrl-a on an number with word before 

    ✓ can ctrl-a on an number with word before and after 

    ✓ can ctrl-x on a negative number with word before and after  (44ms)

    ✓ can ctrl-a properly on multiple lines

    ✓ can <C-a> on word with multiple numbers (incrementing first number)

    ✓ can <C-a> on word with multiple numbers (incrementing second number)

    ✓ can <C-a> on word with - in front of it

    ✓ <C-a> in visual mode (60ms)

    ✓ <C-a> in visual line mode (55ms)

    ✓ <C-a> in visual block mode (93ms)

    ✓ <C-a> in visual block mode does not go past selection (39ms)

    ✓ g<C-a> in visual mode (68ms)

    ✓ g<C-a> in visual line mode (77ms)

    ✓ g<C-a> in visual block mode (82ms)

    ✓ can do Y

    ✓ can do [count]Y (44ms)

    ✓ can do [count]Y if count is larger than EOF

    ✓ Can do S (40ms)

    ✓ / does not affect mark (47ms)

    ✓ / can search with regex (52ms)

    ✓ / can search with newline (48ms)

    ✓ / can search through multiple newlines (98ms)

    ✓ / with noignorecase, nosmartcase (71ms)

    ✓ / matches ^ per line (46ms)

    ✓ / matches $ per line

    ✓ Can search for forward slash (38ms)

    ✓ Can search backward for question mark (41ms)

    ✓ /\c forces case insensitive search (43ms)

    ✓ /\C forces case sensitive search (48ms)

    ✓ <BS> deletes the last character in search in progress mode (53ms)

    ✓ <S-BS> deletes the last character in search in progress mode

    ✓ <C-h> deletes the last character in search in progress mode

    ✓ Can delete with search forward (50ms)

    ✓ Can delete with search backward (313ms)

    ✓ Can do C

    ✓ Can do cit on a matching tag (61ms)

    ✓ Ignores cit on a non-matching tag

    ✓ Ignores cit on a nested tag (62ms)

    ✓ Can do cit on a tag with an attribute tag (124ms)

    ✓ Can do cat on a matching tag (54ms)

    ✓ Can do cit on a multiline tag (64ms)

    ✓ Can do cit on a multiline tag with nested tags (138ms)

    ✓ Can do cit inside of a tag with another non closing tag inside tags (69ms)

    ✓ Can do cit inside of a tag with another empty closing tag inside tags (64ms)

    ✓ Can do dit on empty tag block, cursor moves to inside (49ms)

    ✓ Can do cit on empty tag block, cursor moves to inside (44ms)

    ✓ can do cit with self closing tags (65ms)

    ✓ yat yanks the correct tag when inside one (43ms)

    ✓ yat yanks the correct tag when cursor is on the opening angle bracket

    ✓ yat yanks the correct tag when cursor is between the beginning of the line and the tag (41ms)

    ✓ dat deletes the outer tag when there are other characters (not just WS) before the opening tag (46ms)

    ✓ dat deletes the outer tag when the cursor is after the inner tag (49ms)

    ✓ Respects indentation with cc

    ✓ Resets cursor to indent end with cc

    ✓ can handle 'cc' on empty line

    ✓ cc copies linewise (52ms)

    ✓ Indent current line with correct Vim Mode

    ✓ Can handle <Esc> and do nothing

    ✓ Can handle # on consecutive words (40ms)

    ✓ Can handle # on skipped words (68ms)

    ✓ Can 'D'elete the characters under the cursor until the end of the line (53ms)

    ✓ Can 'D'elete the characters under multiple cursors until the end of the line (69ms)

    ✓ cc on whitespace-only treats whitespace as indent

    ✓ Can do cai (72ms)

    ✓ Can do cii (38ms)

    ✓ Can do caI (63ms)

    ✓ Can do dai (64ms)

    ✓ Can do dii (47ms)

    ✓ Can do daI (55ms)

    ✓ Will fail 'cia' with no delimiters

    ✓ Will fail 'cia' with flipped delimiters

    ✓ Will fail 'cia' with separators but no delimiters

    ✓ Can do 'cia' in a single argument (38ms)

    ✓ Can do 'cia' in () with cursor at opening delimiter

    ✓ Can do 'cia' in () with cursor at closing delimiter (42ms)

    ✓ Can do 'cia' in (,) with cursor at opening delimiter

    ✓ Can do 'cia' in (,) with cursor at regular delimiter

    ✓ Can do 'cia' in (,) with cursor at closing delimiter (39ms)

    ✓ Can do 'cia' in (,,,) with cursor at regular delimiter

    ✓ Can do 'cia' in (,,,) with cursor at second-to-last delimiter (48ms)

    ✓ Can do 'cia' in (,,,) with cursor at closing delimiter (45ms)

    ✓ Can do 'cia' with nested parentheses in argument (51ms)

    ✓ Can do 'cia' in a single-line comma seperated list with cursor in first argument (46ms)

    ✓ Can do 'cia' in a single-line comma seperated list with cursor on opening delimiter (38ms)

    ✓ Can do 'cia' in a single-line comma seperated list with cursor in middle argument (47ms)

    ✓ Can do 'cia' in a single-line comma seperated list with cursor on regular delimiter (40ms)

    ✓ Can do 'cia' in a single-line comma seperated list with cursor in last argument (47ms)

    ✓ Can do 'cia' in a single-line comma seperated list with cursor on closing delimiter (52ms)

    ✓ Can do 'cia' in a whitespace-only argument (48ms)

    ✓ Can do 'cia' in a whitespace-only argument across multiple lines (48ms)

    ✓ Can do 'cia' with trailing whitespace after separator (40ms)

    ✓ Can do 'cia' with trailing whitespace after separator and empty line (51ms)

    ✓ Can do 'cia' in a multiline-line comma seperated list with cursor in first argument (47ms)

    ✓ Can do 'cia' in a multiline-line comma seperated list with cursor in center argument (50ms)

    ✓ Can do 'cia' in a multiline-line comma seperated list with cursor in last argument (53ms)

    ✓ Can do 'cia' in a multi-line indented statement with one argument. (52ms)

    ✓ Can do 'daa' in a single argument

    ✓ Will fail 'daa' in ()

    ✓ Can do 'daa' in a single-line comma seperated list with cursor in first argument

    ✓ Can do 'daa' in a single-line comma seperated list with cursor in middle argument (110ms)

    ✓ Can do 'daa' in a single-line comma seperated list with cursor in last argument (40ms)

    ✓ Can do 'daa' in a multiline-line comma seperated list with cursor in first argument

    ✓ Can do 'daa' in a multiline-line comma seperated list with cursor in center argument (48ms)

    ✓ Can do 'daa' in a multiline-line comma seperated list with cursor in last argument (43ms)

    ✓ `] go to the end of the previously operated or put text (69ms)

    ✓ '] go to the end of the previously operated or put text (72ms)

    ✓ `[ go to the start of the previously operated or put text (80ms)

    ✓ '[ go to the start of the previously operated or put text (76ms)

    ✓ can handle <C-u> when first line is visible and starting column is at the beginning

    ✓ can handle <C-u> when first line is visible and starting column is at the end (71ms)

    ✓ can handle <C-u> when first line is visible and starting column is in the middle (108ms)

    can handle gn

      ✓ gn selects the next match text (213ms)

      ✓ gn selects the current word at |hello (251ms)

      ✓ gn selects the current word at h|ello (266ms)

      ✓ gn selects the current word at hel|lo (247ms)

      ✓ gn selects the current word at hell|o (213ms)

      ✓ gn selects the next word at hello| (223ms)

    can handle dgn

      ✓ dgn deletes the next match text (from first line) (56ms)

      ✓ dgn deletes the current word when cursor is at |hello (50ms)

      ✓ dgn deletes the current word when cursor is at h|ello (49ms)

      ✓ dgn deletes the current word when cursor is at hel|lo (48ms)

      ✓ dgn deletes the current word when cursor is at hell|o (54ms)

      ✓ dgn deletes the next word when cursor is at hello| (66ms)

    can handle cgn

      ✓ cgn deletes the next match text (from first line) (64ms)

      ✓ cgn deletes the current word when cursor is at |hello (157ms)

      ✓ cgn deletes the current word when cursor is at h|ello (81ms)

      ✓ cgn deletes the current word when cursor is at hel|lo (50ms)

      ✓ cgn deletes the current word when cursor is at hell|o (66ms)

      ✓ cgn deletes the next word when cursor is at hello| (61ms)

    can handle gN

      ✓ gN selects the previous match text (508ms)

      ✓ gN selects the current word at hell|o (218ms)

      ✓ gN selects the current word at hel|lo (293ms)

      ✓ gN selects the current word at h|ello (238ms)

      ✓ gN selects the current word at |hello (220ms)

      ✓ gN selects the previous word at | hello (261ms)

    can handle dgN

      ✓ dgN deletes the previous match text (from first line) (67ms)

      ✓ dgN deletes the current word when cursor is at hell|o (66ms)

      ✓ dgN deletes the current word when cursor is at hel|lo (77ms)

      ✓ dgN deletes the current word when cursor is at h|ello (69ms)

      ✓ dgN deletes the current word when cursor is at |hello (75ms)

      ✓ dgN deletes the previous word when cursor is at | hello (68ms)

    can handle cgN

      ✓ cgN deletes the previous match text (from first line) (66ms)

      ✓ cgN deletes the current word when cursor is at hell|o (71ms)

      ✓ cgN deletes the current word when cursor is at hel|lo (67ms)

      ✓ cgN deletes the current word when cursor is at h|ello (66ms)

      ✓ cgN deletes the current word when cursor is at |hello (77ms)

      ✓ cgN deletes the previous word when cursor is at | hello (72ms)

    marks

      ✓ capital marks can change the editors active document (138ms)

      ✓ can jump to lowercase mark (51ms)

  Mode Replace

    ✓ Can activate with <Insert> from Insert mode (39ms)

    ✓ Can activate with R from Normal mode

    ✓ Can handle R (49ms)

    ✓ Can handle R past current line (64ms)

    ✓ Can handle R and exit Replace Mode (50ms)

    ✓ Can handle R across lines (86ms)

    ✓ Can handle R across lines and exit Replace Mode (91ms)

    ✓ Can handle R with {count} (437ms)

    ✓ Can handle backspace (75ms)

    ✓ Can handle backspace (80ms)

    ✓ Can handle backspace across lines (84ms)

    ✓ Can handle arrows (51ms)

    ✓ Can handle . (113ms)

    ✓ Can handle . across lines (146ms)

  Mode Visual

    ✓ can be activated

    ✓ Can handle w (154ms)

    ✓ Can handle wd (123ms)

    ✓ Can handle x (122ms)

    ✓ Can handle x across a selection (148ms)

    ✓ Can do vwd in middle of sentence (171ms)

    ✓ Can do vwd in middle of sentence (136ms)

    ✓ Can do vwd multiple times (233ms)

    ✓ handles case where we go from selecting on right side to selecting on left side (131ms)

    ✓ Can handle H key (53ms)

    ✓ Can handle backspace key (86ms)

    ✓ handles case where we delete over a newline (155ms)

    ✓ handles change operator (149ms)

    ✓ Can do vat on multiple matching tags (103ms)

    ✓ Can maintain selection on failure with vat on multiple matching tags (93ms)

    ✓ Can maintain selection on failure with repeat-prefixed vat on multiple matching tags (95ms)

    ✓ Repeat-prefixed vat does not bleed below (64ms)

    ✓ Failed vat does not expand or move selection, remains in visual mode (69ms)

    ✓ Can do vi) on a matching parenthesis (66ms)

    ✓ Can do vi) on multiple matching parens (67ms)

    ✓ Can do va) on a matching parenthesis (58ms)

    ✓ Can do va) on multiple matching parens (70ms)

    ✓ Failed va) does not expand or move selection, remains in visual mode (54ms)

    ✓ Repeat-prefixed va) does not bleed below (52ms)

    ✓ Can do va} on a matching bracket as first character (52ms)

    ✓ Can do va} on multiple matching brackets (70ms)

    ✓ Can do vi( on a matching bracket near first character (52ms)

    ✓ Can do vi{ on outer pair of nested braces (66ms)

    ✓ Can do vi{ on braces indented by 1 and preserve indent (52ms)

    ✓ Can do va] on multiple matching brackets (78ms)

    ✓ Can do repeat-prefixed vaf on multiple matching pairs of different types (165ms)

    ✓ Repeat-prefixed vaf does not bleed below (66ms)

    ✓ vaf only expands to enclosing pairs (61ms)

    ✓ Can use . to repeat indent in visual (51ms)

    ✓ Can do v_x to delete to first char (52ms)

    ✓ Can do vg_x to delete to last char with no EOL (74ms)

    ✓ Can do v3g_x to delete to last char with no EOL with count (59ms)

    ✓ Can do v$x to delete to last char including EOL (54ms)

    ✓ Can do gv to reselect previous selection (72ms)

    ✓ Can handle 'J' when the selected area spans multiple lines (54ms)

    ✓ Can handle 'gJ' when the entire selected area is on the same line (67ms)

    ✓ Can handle 'gJ' when the selected area spans multiple lines (57ms)

    ✓ Can handle 'gJ' when the selected area spans multiple lines and line has whitespaces (78ms)

    ✓ Can handle 'gJ' when start position of the selected area is below the stop (89ms)

    Vim's EOL handling is weird

      ✓ delete through eol (102ms)

      ✓ join 2 lines by deleting through eol (89ms)

      ✓ d$ doesn't delete whole line (81ms)

      ✓ vd$ does delete whole line (101ms)

      ✓ Paste over selection copies the selection (53ms)

      ✓ Paste over selection copies the selection linewise (401ms)

    Arrow keys work perfectly in Visual Mode

      ✓ Can handle <up> key (51ms)

      ✓ Can handle <down> key (48ms)

      ✓ Can handle <left> key (64ms)

      ✓ Can handle <right> key (87ms)

    Screen line motions in Visual Mode

      ✓ Can handle 'gk' (68ms)

      ✓ Can handle 'gj' (61ms)

      - Preserves cursor position when handling 'gk'
      - Preserves cursor position when handling 'gj'
    handles aw in visual mode

      ✓ Can handle 'vawd' on word with cursor inside spaces (65ms)

      ✓ Can handle 'vawd' on word with trailing spaces (65ms)

      ✓ Can handle 'vawd' on word with leading spaces (76ms)

      ✓ Can handle 'vawd' on word with numeric prefix (52ms)

      ✓ Can handle 'vawd' on word with numeric prefix and across lines (84ms)

      ✓ Can handle 'vawd' on word with numeric prefix and across lines, containing words end with `.` (87ms)

    handles aW in visual mode

      ✓ Can handle 'vaWd' on big word with cursor inside spaces (66ms)

      ✓ Can handle 'vaWd' on word with trailing spaces (52ms)

      ✓ Can handle 'vaWd' on word with leading spaces (65ms)

      ✓ Can handle 'vaWd' on word with numeric prefix (52ms)

      ✓ Can handle 'vaWd' on word with numeric prefix and across lines (95ms)

    handles aW in visual mode

      ✓ Can handle 'vaWd' on big word with cursor inside spaces (59ms)

      ✓ Can handle 'vaWd' on word with trailing spaces (66ms)

      ✓ Can handle 'vaWd' on word with leading spaces (113ms)

      ✓ Can handle 'vaWd' on word with numeric prefix (55ms)

      ✓ Can handle 'vaWd' on word with numeric prefix and across lines (163ms)

    handles aw in visual mode

      ✓ Can handle 'vawd' on word with cursor inside spaces (60ms)

      ✓ Can handle 'vawd' on word with trailing spaces (54ms)

      ✓ Can handle 'vawd' on word with leading spaces (65ms)

      ✓ Can handle 'vawd' on word with numeric prefix (61ms)

      ✓ Can handle 'vawd' on word with numeric prefix and across lines (78ms)

      ✓ Can handle 'vawd' on word with numeric prefix and across lines, containing words end with `.` (75ms)

    handles aW in visual mode

      ✓ Can handle 'vaWd' on big word with cursor inside spaces (67ms)

      ✓ Can handle 'vaWd' on word with trailing spaces (69ms)

      ✓ Can handle 'vaWd' on word with leading spaces (75ms)

      ✓ Can handle 'vaWd' on word with numeric prefix (53ms)

      ✓ Can handle 'vaWd' on word with numeric prefix and across lines (90ms)

      ✓ Can handle 'Y' in visual mode (58ms)

    handles as in visual mode

      ✓ Select sentence with trailing spaces in visual mode (76ms)

      ✓ Select sentence with leading spaces in visual mode (108ms)

      ✓ Select multiple sentences in visual mode (80ms)

    handles is in visual mode

      ✓ Select inner sentence with trailing spaces in visual mode (73ms)

      ✓ Select inner sentence with leading spaces in visual mode (82ms)

      ✓ Select spaces between sentences in visual mode (94ms)

    handles tag blocks in visual mode

      ✓ Can do vit on a matching tag (70ms)

      ✓ Count-prefixed vit alternates expanding selection between inner and outer tag brackets (81ms)

      ✓ Can do vat on a matching tag (63ms)

    handles replace in visual mode

      ✓ Can do a single line replace (63ms)

      ✓ Can do a multi line replace (52ms)

    D command will remove all selected lines

      ✓ D deletes all selected lines (56ms)

      ✓ D deletes the current line (73ms)

    handles indent blocks in visual mode

      ✓ Can do vai (83ms)

      ✓ Can do vii (55ms)

      ✓ Doesn't naively select the next line (54ms)

      ✓ Searches backwards if cursor line is empty (75ms)

      ✓ Can do vaI (79ms)

    visualstar

      ✓ Works with * (57ms)

      ✓ Works with # (55ms)

    search works in visual mode

      ✓ Works with / (66ms)

      ✓ Works with ? (72ms)

      ✓ Selects correct range (142ms)

    X will delete linewise

      ✓ normal selection (62ms)

      ✓ normal selection (58ms)

    C will delete linewise

      ✓ normal selection (59ms)

      ✓ normal selection (66ms)

    R will delete linewise

      ✓ normal selection (71ms)

      ✓ normal selection (251ms)

    Linewise Registers will be inserted properly

      ✓ downward selection (118ms)

      ✓ upward selection (84ms)

    Indent Tests using > on visual selections

      ✓ multiline indent top down selection (49ms)

      ✓ multiline indent bottom up selection (55ms)

      ✓ repeat multiline indent top down selection (89ms)

      ✓ repeat multiline indent bottom up selection (102ms)

    Outdent Tests using < on visual selections

      ✓ multiline outdent top down selection (61ms)

      ✓ multiline outdent bottom up selection (60ms)

      ✓ repeat multiline outdent top down selection (96ms)

      ✓ repeat multiline outdent bottom up selection (92ms)

    Non-darwin <C-c> tests

      ✓ <C-c> copies and sets mode to normal (129ms)

    vi{ will go to end of second to last line

      ✓ select (75ms)

    Transition between visual mode

      ✓ vv will back to normal mode

      ✓ vV will transit to visual line mode

      ✓ v<C-v> will transit to visual block mode

      ✓ Vv will transit to visual (char) mode

      ✓ VV will back to normal mode

      ✓ V<C-v> will transit to visual block mode

      ✓ <C-v>v will transit to visual (char) mode

      ✓ <C-v>V will back to visual line mode

      ✓ <C-v><C-v> will back to normal mode

    replace text in characterwise visual-mode with characterwise register content

      ✓ gv selects the last pasted text (which is shorter than original) (418ms)

      ✓ gv selects the last pasted text (which is longer than original) (390ms)

      ✓ gv selects the last pasted text (multiline) (199ms)

    can handle gn

      ✓ gn selects the next match text (195ms)

      ✓ gn selects the current word at |hello (200ms)

      ✓ gn selects the current word at h|ello (206ms)

      ✓ gn selects the current word at hel|lo (315ms)

      ✓ gn selects the next word at hell|o (214ms)

      ✓ gn selects the next word at hello| (205ms)

    can prepend text with I

      ✓ multiline insert from bottom up selection (50ms)

      ✓ multiline insert from top down selection (40ms)

      ✓ skips blank lines (54ms)

    can append text with A

      ✓ multiline append from bottom up selection (78ms)

      ✓ multiline append from top down selection (43ms)

      ✓ skips blank lines (105ms)

    Can handle u/gu, U/gU

      ✓ U/gU on single character (64ms)

      ✓ U/gU across a selection (78ms)

      ✓ U/gU across a selection (reverse) (97ms)

      ✓ u/gu on single character (60ms)

      ✓ u/gu across a selection (89ms)

      ✓ u/gu across a selection (reverse) (77ms)

    Can handle ~/g~

      ✓ ~/g~ on single character (109ms)

      ✓ ~/g~ across a selection (106ms)

    C, R, and S

      ✓ 'C' deletes selected lines and puts you into insert mode (55ms)

      ✓ 'C' deletes selected lines and puts you into insert mode (backward selection) (121ms)

      ✓ 'R' deletes selected lines and puts you into insert mode (53ms)

      ✓ 'R' deletes selected lines and puts you into insert mode (backward selection) (57ms)

      ✓ 'S' deletes selected lines and puts you into insert mode (72ms)

      ✓ 'S' deletes selected lines and puts you into insert mode (backward selection) (70ms)

    Visual mode with command editor.action.smartSelect.grow

      ✓ Command editor.action.smartSelect.grow enters visual mode (64ms)

      1) Command editor.action.smartSelect.grow enters visual mode and increases selection

      ✓ Command editor.action.smartSelect.grow enters visual mode on single character (85ms)

      ✓ Command editor.action.smartSelect.grow enters visual mode on multicursors (167ms)

    Visual mode with commands cursorRightSelect, cursorLeftSelect in Insert Mode

      ✓ Command cursorRightSelect enters visual mode (74ms)

      ✓ Command cursorLeftSelect enters visual mode (70ms)

      ✓ Command cursorUpSelect enters visual mode (81ms)

      ✓ Command cursorDownSelect enters visual mode (76ms)

      ✓ Command cursorRightSelect enters visual mode with multi cursors (149ms)

      ✓ Command cursorLeftSelect enters visual mode with multi cursors (240ms)

    Visual mode with commands cursorRightSelect, cursorLeftSelect in Normal Mode

      ✓ Command cursorRightSelect enters visual mode (73ms)

      ✓ Command cursorLeftSelect enters visual mode (76ms)

      ✓ Command cursorUpSelect enters visual mode (78ms)

      ✓ Command cursorDownSelect enters visual mode (70ms)

      ✓ Command cursorRightSelect enters visual mode with multi cursors (129ms)

      ✓ Command cursorLeftSelect enters visual mode with multi cursors (144ms)

  Mode Visual Block

    ✓ can be activated

    ✓ Can handle A forward select (87ms)

    ✓ Can handle A backwards select (79ms)

    ✓ `A` over shorter line adds necessary spaces (83ms)

    ✓ Can handle I forward select (85ms)

    ✓ Can handle I backwards select (80ms)

    ✓ Can handle I with empty lines on first character (inserts on empty line) (62ms)

    ✓ Can handle I with empty lines on non-first character (does not insert on empty line) (171ms)

    ✓ Can handle c forward select (99ms)

    ✓ Can handle c backwards select (68ms)

    ✓ Can handle C (80ms)

    ✓ Can do a multi line replace (81ms)

    ✓ Can handle 'D' (70ms)

    ✓ Can handle 'gj' (77ms)

    ✓ Properly add to end of lines j then $ (73ms)

    ✓ Properly add to end of lines $ then j (72ms)

    ✓ o works in visual block mode (64ms)

    ✓ d deletes block (65ms)

    ✓ x deletes block (91ms)

    ✓ X deletes block (85ms)

    ✓ Select register using " works in visual block mode (86ms)

    ✓ Can handle 'J' when the entire visual block is on the same line (56ms)

    ✓ Can handle 'J' when the visual block spans multiple lines (65ms)

    ✓ Can handle 'J' when start position of the visual block is below the stop (59ms)

    ✓ Can handle 'gJ' when the entire visual block is on the same line (61ms)

    ✓ Can handle 'gJ' when the visual block spans multiple lines (66ms)

    ✓ Can handle 'gJ' when the visual block spans multiple lines and line has whitespaces (70ms)

    ✓ Can handle 'gJ' when start position of the visual block is below the stop (59ms)

    ✓ Can handle ~/g~ in visual block mode (116ms)

    Non-darwin <C-c> tests

      ✓ <C-c> copies and sets mode to normal (191ms)

    R and S

      ✓ 'R' deletes selected lines and puts you into insert mode (65ms)

      ✓ 'R' deletes selected lines and puts you into insert mode (backward selection) (68ms)

      ✓ 'S' deletes selected lines and puts you into insert mode (56ms)

      ✓ 'S' deletes selected lines and puts you into insert mode (backward selection) (69ms)

  Mode Visual Line

    ✓ can be activated

    ✓ <count>V selects <count> lines (250ms)

    ✓ Can handle w (151ms)

    ✓ Can handle wd (130ms)

    ✓ Can handle x (137ms)

    ✓ Can handle x across a selection (134ms)

    ✓ Can do vwd in middle of sentence (173ms)

    ✓ Can do vwd in middle of sentence (175ms)

    ✓ Can do vwd multiple times (217ms)

    ✓ handles case where we go from selecting on right side to selecting on left side (141ms)

    ✓ handles case where we delete over a newline (184ms)

    ✓ handles change operator (128ms)

    ✓ Vp updates register content (78ms)

    ✓ "xVp only updates default register content (123ms)

    ✓ Vp does not append unnecessary newlines (first line) (419ms)

    ✓ Vp does not append unnecessary newlines (middle line) (50ms)

    ✓ Vp does not append unnecessary newlines (last line) (56ms)

    ✓ Vp places the cursor on first non-whitespace character on line (70ms)

    ✓ Exiting via <Esc> returns cursor to original column (282ms)

    ✓ Exiting via `VV` returns cursor to original column (120ms)

    ✓ Can handle 'J' when the selected area spans multiple lines (56ms)

    ✓ Can handle 'gJ' when the entire selected area is on the same line (62ms)

    ✓ Can handle 'gJ' when the selected area spans multiple lines (77ms)

    ✓ Can handle 'gJ' when the selected area spans multiple lines and line has whitespaces (60ms)

    ✓ Can handle 'gJ' when start position of the selected area is below the stop (66ms)

    Vim's EOL handling is weird

      ✓ delete through eol (112ms)

      ✓ join 2 lines by deleting through eol (124ms)

      ✓ d$ doesn't delete whole line (85ms)

      ✓ vd$ does delete whole line (117ms)

    Arrow keys work perfectly in Visual Line Mode

      ✓ Can handle <up> key (63ms)

      ✓ Can handle <down> key (70ms)

    Screen line motions in Visual Line Mode

      ✓ Can handle 'gk' (51ms)

      ✓ Can handle 'gj' (59ms)

    Can handle d/c correctly in Visual Line Mode

      ✓ Can handle d key (77ms)

      ✓ Can handle d key (60ms)

      ✓ Can handle d key (68ms)

      ✓ Can handle d key (66ms)

      ✓ can handle 'c' (56ms)

    handles replace in visual line mode

      ✓ Can do a single line replace (61ms)

      ✓ Can do a multi visual line replace (62ms)

      ✓ Can do a multi visual line replace from the bottom up (63ms)

    search works in visual line mode

      ✓ Works with / (68ms)

      ✓ Works with ? (93ms)

    Non-darwin <C-c> tests

      ✓ <C-c> copies and sets mode to normal (158ms)

    replace text in linewise visual-mode with linewise register content

      ✓ yyVp does not change the content but changes cursor position (64ms)

      ✓ linewise visual put works also in the end of document (67ms)

      ✓ gv selects the last pasted text (which is shorter than original) (426ms)

      ✓ gv selects the last pasted text (which is longer than original) (431ms)

      ✓ gv selects the last pasted text (multiline) (230ms)

    can prepend text with I

      ✓ multiline insert from bottom up selection (53ms)

      ✓ multiline insert from top down selection (59ms)

      ✓ skips blank lines (59ms)

    can append text with A

      ✓ multiline append from bottom up selection (57ms)

      ✓ multiline append from top down selection (56ms)

      ✓ skips blank lines (62ms)

      ✓ updates desired column correctly (66ms)

    Can handle ~/g~ in visual line mode

      ✓ ~/g~ on single line (86ms)

      ✓ ~/g~ on multiple lines (87ms)

    C, R, and S

      ✓ 'C' deletes selected lines and puts you into insert mode (49ms)

      ✓ 'C' deletes selected lines and puts you into insert mode (backward selection) (65ms)

      ✓ 'R' deletes selected lines and puts you into insert mode (64ms)

      ✓ 'R' deletes selected lines and puts you into insert mode (backward selection) (53ms)

      ✓ 'S' deletes selected lines and puts you into insert mode (60ms)

      ✓ 'S' deletes selected lines and puts you into insert mode (backward selection) (82ms)

  Mode Normal

    ✓ Can handle 'x'

    ✓ Can handle 'Nx' (39ms)

    ✓ Can handle 'Nx' and paste (58ms)

    ✓ Can handle 'x' at end of line (95ms)

    ✓ 'x' with count does not go over EOL (40ms)

    ✓ Can handle 'Ns' (47ms)

    ✓ Can handle 'Ns' at end of line (46ms)

    ✓ Can handle '<Del>' (39ms)

    ✓ Can handle '<Del>' with counts, which removes the last character of the count (39ms)

    ✓ Can handle '<Del>' at end of line (87ms)

    ✓ Can handle 'cc' (52ms)

    ✓ Can handle 'Ncc' (76ms)

    ✓ Can handle 'yy' (57ms)

    ✓ Can handle 'D' (45ms)

    ✓ Can handle 'D' on empty lines (101ms)

    ✓ Can handle 'D' with count 1 (39ms)

    ✓ Can handle 'D' with count 3 (53ms)

    ✓ Can handle 'D' with count exceeding max number of rows

    ✓ Can handle 'D' with count when end position is on blank line

    ✓ Can handle 'DD' (47ms)

    ✓ Can handle 'C' (47ms)

    ✓ Can handle 'NC' (55ms)

    ✓ Can handle 'NC' and put (52ms)

    ✓ Can handle 'r' (42ms)

    ✓ Can handle '<Count>r' (58ms)

    ✓ Can handle '<Count>r' (38ms)

    ✓ Can handle 'r' after 'dd' (72ms)

    ✓ Can handle 'r
' (52ms)

    ✓ Can handle '<Count>r
' (55ms)

    ✓ Can handle 'J' once

    ✓ Can handle 'J' twice (65ms)

    ✓ Can handle 'J' with empty last line (41ms)

    ✓ Can handle 'J's with multiple empty last lines (97ms)

    ✓ Can handle 'J' with leading white space on next line (39ms)

    ✓ Can handle 'J' with only white space on next line

    ✓ Can handle 'J' with TWO indented lines (51ms)

    ✓ Can handle 'J' with ')' first character on next line (43ms)

    ✓ Can handle 'J' with a following delete (58ms)

    ✓ Can handle 'J' with count (42ms)

    ✓ Can handle 'J' with count if count is larger than EOF (72ms)

    ✓ Can handle 'J' in Visual Line mode (52ms)

    ✓ Can handle 'gJ' once (63ms)

    ✓ Can handle 'gJ' once when line has whitespaces

    ✓ Can handle 'gJ' with count

    ✓ Can handle 'gJ' with count when line has whitespaces (43ms)

    ✓ Can handle 'gJ' with count and end position is blank line (42ms)

    ✓ Can handle 'gJ' with count exceeding max number of rows (55ms)

    ✓ Can handle '~' (47ms)

    ✓ Can handle 'g~{motion}' (44ms)

    ✓ Can handle 'g~~' (46ms)

    ✓ Can handle '<BS>' in insert mode (49ms)

    ✓ Can handle undo with P (109ms)

    ✓ Can handle 'ge' in multiple lines case1

    ✓ Can handle 'ge' in multiple lines case2 (46ms)

  Dot Operator

    ✓ Can repeat '~' with <num> (66ms)

    ✓ Can repeat '~' with dot (79ms)

    ✓ Can repeat 'x'

    ✓ Can repeat 'J' (41ms)

    ✓ Can handle dot with A (128ms)

    ✓ Can handle dot with I (81ms)

    ✓ Can repeat actions that require selections (92ms)

  Repeat content change

    ✓ Can repeat '<C-t>' (88ms)

    ✓ Can repeat insert change and '<C-t>' (89ms)

    ✓ Can repeat change by `<C-a>` (99ms)

    ✓ Only one arrow key can be repeated in Insert Mode (113ms)

    ✓ Cached content change will be cleared by arrow keys (95ms)

  Dot Operator repeat with remap

    ✓ Can repeat content change using 'jjk' mapped to '<Esc>' without trailing characters (105ms)

    ✓ Can repeat '<leader>w' when mapped to 'dw' (45ms)

  Matching Bracket (%)

    ✓ before opening parenthesis (44ms)

    ✓ inside parenthesis

    ✓ nested parenthesis beginning (40ms)

    ✓ nested parenthesis end (42ms)

    ✓ nested bracket and parenthesis beginning

    ✓ nested bracket, parenthesis, braces beginning (112ms)

    ✓ nested bracket, parenthesis, braces end (73ms)

    ✓ parentheses after >

    ✓ parentheses after " (53ms)

  Motions in Normal Mode

    ✓ Can handle [( (60ms)

    ✓ Can handle nested [( (45ms)

    ✓ Can handle <number>[(

    ✓ Can handle [( and character under cursor exclusive (59ms)

    ✓ Can handle ])

    ✓ Can handle nested ])

    ✓ Can handle <number>])

    ✓ Can handle ]) and character under cursor exclusive

    ✓ Can handle [{ (50ms)

    ✓ Can handle nested [{ (43ms)

    ✓ Can handle <number>[{ (45ms)

    ✓ Can handle [{ and character under cursor exclusive

    ✓ Can handle ]} (44ms)

    ✓ Can handle nested ]}

    ✓ Can handle <number>]} (41ms)

    ✓ Can handle ]} and character under cursor exclusive

    ✓ Can handle 'ge' (101ms)

    ✓ Can handle 'gg' (45ms)

    ✓ Can handle 'gg' to first non blank char on random line (54ms)

    ✓ Can handle 'gg' to first non blank char on first line

    ✓ 'gg' obeys startofline

    ✓ Retain same column when moving up/down (61ms)

    ✓ Can handle <enter> (44ms)

    ✓ $ always keeps cursor on EOL (44ms)

    ✓ Can handle $ with a count

    ✓ Can handle $ with a count at end of file

    ✓ Can handle <End> with a count

    ✓ Can handle <D-right> with a count

    ✓ Can handle 'f' (44ms)

    ✓ Can handle 'f' twice (51ms)

    ✓ Can handle 'f' with <tab>

    ✓ Can handle 'f' and find back search (55ms)

    ✓ Can handle 'F'

    ✓ Can handle 'F' twice (46ms)

    ✓ Can handle 'F' and find back search (38ms)

    ✓ Can handle 'f' and multiple back searches (43ms)

    ✓ Can handle 't'

    ✓ Can handle 't' twice (40ms)

    ✓ Can handle 't' and find back search

    ✓ Can handle 'T' (46ms)

    ✓ Can handle 'T' twice (65ms)

    ✓ Can handle 'T' and find back search

    ✓ Can run a forward search (38ms)

    ✓ Can run a forward and find next search (41ms)

    ✓ Can run a forward and find previous search from end of word (43ms)

    ✓ Can run a forward search with count 1 (43ms)

    ✓ Can run a forward search with count 3 (49ms)

    ✓ Can run a forward search with count exceeding max number of matches (92ms)

    ✓ Can run a reverse search (55ms)

    ✓ Can run a reverse and find next search (51ms)

    ✓ Can run a reverse search with count 1 (80ms)

    ✓ Can run a reverse search with count 3 (81ms)

    ✓ Can run a reverse search with count exceeding max number of matches (60ms)

    ✓ cancelled search reverts to previous search state (76ms)

    ✓ Backspace on empty search cancels (51ms)

    ✓ Search offsets: b does nothing (415ms)

    ✓ Search offsets: b2 goes 2 to the right (39ms)

    ✓ Search offsets: b+3 goes 3 to the right (56ms)

    ✓ Search offsets: e goes to the end (63ms)

    ✓ Search offsets: character offset goes across line boundaries (55ms)

    ✓ Search offsets: 2 goes 2 down (47ms)

    ✓ Search offsets: -2 goes 2 up (49ms)

    ✓ maintains column position correctly

    ✓ maintains column position correctly with $

    ✓ Can handle G 

    ✓ Can handle G with number prefix

    ✓ Can handle G with number prefix

    ✓ Can handle gg (65ms)

    ✓ Can handle gg with number prefix

    ✓ Can handle 0 (43ms)

    ✓ Can handle 0 as part of a repeat

    ✓ Can handle g*

    ✓ Can handle g*n

    ✓ Can handle *

    ✓ Can handle **

    ✓ * ignores smartcase (ignorecase=true) (69ms)

    ✓ * ignores smartcase (ignorecase=false)

    ✓ * skips over word separators

    ✓ * uses word separator if no word characters found before EOL (45ms)

    ✓ * does not go over line boundaries (44ms)

    ✓ Can handle # on whitespace (49ms)

    ✓ Can handle # on EOL

    ✓ Can handle g# (43ms)

    ✓ Can handle g#n (38ms)

    ✓ Can handle # (38ms)

    ✓ Can handle # already on the word

    ✓ Can handle ## (58ms)

    ✓ * adds to search history (81ms)

    ✓ # adds to search history (89ms)

    ✓ Can handle | (81ms)

    ✓ Can handle <number> | (112ms)

    ✓ Can handle + (65ms)

    ✓ Can handle + indent

    ✓ Can handle + with count prefix (60ms)

    ✓ Can handle -

    ✓ Can handle - indent

    ✓ Can handle - with count prefix

    ✓ Can handle _

    ✓ Can handle _ with count prefix (40ms)

    ✓ Can handle g_

    ✓ Can handle g_ with count prefix (40ms)

    ✓ Can handle <up> key

    ✓ Can handle <down> key (64ms)

    ✓ Can handle <left> key (47ms)

    ✓ Can handle <right> key

    ✓ Can handle 'gk' (55ms)

    ✓ Can handle 'gj'

    - Preserves cursor position when handling 'gk'

    - Preserves cursor position when handling 'gj'

    doesn't update desiredColumn when it shouldn't

      ✓ Preserves desired cursor position when pressing zz (88ms)

      ✓ Preserves desired cursor position when pressing zt (90ms)

      ✓ Preserves desired cursor position when pressing zb (64ms)

      ✓ Preserves desired cursor position when pressing <C-e> (98ms)

      ✓ Preserves desired cursor position when pressing <C-y> (101ms)

  basic motion

    ✓ char right: should move one column right

    ✓ char right

    ✓ char left: should move cursor one column left

    ✓ char left: left-most column should stay at the same location

    ✓ line down: should move cursor one line down

    ✓ line down: bottom-most line should stay at the same location

    ✓ line begin

    ✓ line end

    ✓ document begin

    ✓ document end

    ✓ line begin cursor on first non-blank character

    ✓ last line begin cursor on first non-blank character

    line up

      ✓ should move cursor one line up

      ✓ top-most line should stay at the same location

  word motion

    ✓ line begin cursor on first non-blank character

    ✓ last line begin cursor on first non-blank character

    word right

      ✓ move to word right

      ✓ last word should move to next line

      ✓ last word should move to next line stops on empty line

      ✓ last word should move to next line skips whitespace only line

      ✓ last word on last line should go to end of document (special case!)

    word left

      ✓ move cursor word left across spaces

      ✓ move cursor word left within word

      ✓ first word should move to previous line, beginning of last word

      ✓ first word should move to previous line, stops on empty line

      ✓ first word should move to previous line, skips whitespace only line

    WORD right

      ✓ move to WORD right

      ✓ last WORD should move to next line

      ✓ last WORD should move to next line stops on empty line
      ✓ last WORD should move to next line skips whitespace only line
    WORD left
      ✓ move cursor WORD left across spaces
      ✓ move cursor WORD left within WORD
      ✓ first WORD should move to previous line, beginning of last WORD

      ✓ first WORD should move to previous line, stops on empty line
      ✓ first WORD should move to previous line, skips whitespace only line

    end of word right

      ✓ move to end of current word right

      ✓ move to end of next word right

      ✓ end of last word should move to next line

      ✓ end of last word should move to next line skips empty line

      ✓ end of last word should move to next line skips whitespace only line

    end of WORD right

      ✓ move to end of current WORD right

      ✓ move to end of next WORD right

      ✓ end of last WORD should move to next line

      ✓ end of last WORD should move to next line skips empty line

      ✓ end of last WORD should move to next line skips whitespace only line

  unicode word motion

    word right

      ✓ move cursor word right stops at different kind of character (ideograph -> hiragana)

      ✓ move cursor word right stops at different kind of character (katakana -> ascii)

      ✓ move cursor word right stops at different kind of chararacter (ascii -> punctuation)

      ✓ move cursor word right on non-ascii text

      ✓ move cursor word right recognizes a latin string which has diacritics as a single word

      ✓ move cursor word right recognizes a latin-1 symbol as punctuation

      ✓ move cursor word right recognizes a sequence of latin-1 symbols and other symbols as a word

    word left

      ✓ move cursor word left across the different char kind
      ✓ move cursor word left within the same char kind

      ✓ move cursor word left across spaces on non-ascii text

      ✓ move cursor word left within word on non-ascii text

      ✓ move cursor word left recognizes a latin string which has diacritics as a single word

  sentence motion

    sentence forward

      ✓ next concrete sentence

      ✓ next sentence that ends with paragraph ending

      ✓ next sentence when cursor is at the end of previous paragraph

      ✓ next sentence when paragraph contains a line of whilte spaces

    sentence backward

      ✓ current sentence begin

      ✓ sentence forward when cursor is at the beginning of the second sentence

      ✓ current sentence begin with no concrete sentense inside

      ✓ current sentence begin when it's not the same as current paragraph begin

      ✓ current sentence begin when previous line ends with a concrete sentence

  paragraph motion

    paragraph down

      ✓ move down normally

      ✓ move down longer paragraph

      ✓ move down starting inside empty line

      ✓ paragraph at end of document

    paragraph up

      ✓ move up short paragraph

      ✓ move up longer paragraph

      ✓ move up starting inside empty line

  motion line wrapping

    whichwrap enabled
      normal mode

        ✓ h wraps to previous line

        ✓ l wraps to next line (40ms)

        ✓ <left> wraps to previous line

        ✓ <right> wraps to next line

      insert mode

        ✓ <left> wraps to previous line (38ms)

        ✓ <right> once goes to end of line (78ms)

        ✓ <right> twice wraps to next line (54ms)

    whichwrap disabled

      normal mode

        ✓ h does not wrap to previous line (42ms)

        ✓ l does not wrap to next line

        ✓ <left> does not wrap to previous line

        ✓ <right> does not wrap to next line

      insert mode

        ✓ <left> does not wrap to previous line

        ✓ <right> does not wrap to next line (41ms)

    wrapscan enabled

      ✓ search wraps around the end of the file (41ms)

      ✓ search wraps around the start of the file (70ms)

    wrapscan disabled

      ✓ search stops at the end of the file (40ms)

      ✓ search stops at the start of the file (88ms)

  Multicursor

    ✓ can add multiple cursors below (117ms)

    ✓ can add multiple cursors above (123ms)

    ✓ viwd with multicursors deletes the words and keeps the cursors (355ms)

    ✓ vibd with multicursors deletes the content between brackets and keeps the cursors (456ms)

    ✓ vi[d with multicursors deletes the content between brackets and keeps the cursors (454ms)

    ✓ vitd with multicursors deletes the content between tags and keeps the cursors (394ms)

  Multicursor with remaps

    ✓ Using 'jjk' mapped to '<Esc>' doesn't leave trailing characters (152ms)

  numeric string

    ✓ fails on non-string

    ✓ handles hex round trip
    ✓ handles decimal round trip
    ✓ handles octal trip
  comment operator

    ✓ gcc comments out current line (289ms)

    ✓ gcj comments in current and next line (162ms)

    ✓ block comment with motion (443ms)

    ✓ block comment in Visual Mode (188ms)

    ✓ comment in visual line mode (97ms)

    ✓ comment in visual block mode (72ms)

  filter operator

    ✓ !! with no count (128ms)

    ✓ !! with whitespace moves cursor to first non-whitespace character (110ms)

    ✓ !! with count (94ms)

    ✓ !{forwards motion}{filter} (108ms)

    ✓ !{backwards motion}{filter} (152ms)

    ✓ v!{filter} (231ms)

    ✓ V!{filter} (137ms)

    ✓ <Ctrl-v>!{filter} (157ms)

  format operator

    ✓ == formats current line (466ms)

    ✓ =$ formats entire line (208ms)

    ✓ =j formats two lines (56ms)

    ✓ 3=k formats three lines (69ms)

    ✓ =gg formats to top of file (98ms)

    ✓ =G formats to bottom of file (85ms)

    ✓ =ip formats paragraph (86ms)

    ✓ format in visual mode (95ms)

  put operator

    ✓ basic put test (323ms)

    ✓ test yy end of line (77ms)

    ✓ test yy first line (42ms)

    ✓ test yy middle line (79ms)

    ✓ test yy with correct positon movement (68ms)

    ✓ test visual block single line yank p (64ms)

    ✓ test visual block single line yank P (95ms)

    ✓ test visual block single line delete p (113ms)

    ✓ test visual block single line delete P (74ms)

  rot13 operator

    ✓ rot13() unit test

    ✓ g?j works

    ✓ g? in visual mode works (84ms)

    ✓ g? in visual line mode works (52ms)

    ✓ g? in visual block mode works (45ms)

  shift operator

    ✓ basic shift left test (76ms)

    ✓ shift left goto end test

    ✓ shift left goto line test (64ms)

    ✓ shift right goto end test

    ✓ shift right goto line test

  camelCaseMotion plugin if not enabled

    ✓ basic motion doesn't work (68ms)

  camelCaseMotion plugin
    handles <leader>w for camelCaseText

      ✓ step over whitespace

      ✓ step to Camel word

      ✓ step to CAP word (50ms)

      ✓ step after CAP word (100ms)

      ✓ step from middle of word to Camel word (71ms)

      ✓ step to number word (44ms)

      ✓ step to operator word (102ms)

      ✓ step from inside operator word (80ms)

      ✓ step to operator and then over

    handles <leader>w for underscore_var

      ✓ step to _word (72ms)

      ✓ step over whitespace to word

      ✓ step from inside word to _word (39ms)

      ✓ step form _word to number

      ✓ step from nubmer word to _word

      ✓ step from in whitespace to word (38ms)

      ✓ step in ALL_CAPS_WORD (62ms)

    handles d<leader>w

      ✓ delete from start of camelWord (92ms)

      ✓ delete from middle of camelWord (73ms)

      ✓ delete from start of CamelWord (80ms)

      ✓ delete two words from camelWord

      ✓ delete from start of underscore_word (65ms)

      ✓ delete from middle of underscore_word (77ms)

      ✓ delete two words from camel_word (45ms)

    handles di<leader>w

      ✓ delete from start of camelWord (65ms)

      ✓ delete from middle of camelWord (66ms)

      ✓ delete from start of CamelWord (86ms)

      ✓ delete two words from camelWord (82ms)

      ✓ delete from start of underscore_word (75ms)

      ✓ delete from middle of underscore_word (40ms)

      ✓ delete two words from camel_word (70ms)

    handles <leader>b

      ✓ back from middle of word (46ms)

      ✓ back over whitespace to camelWord (40ms)

      ✓ back twice over operator (47ms)

    handles <leader>e

      ✓ from start to middle of underscore_word (66ms)

      ✓ from middle to end of underscore_word (45ms)

      ✓ twice to end of word over operator (59ms)

  easymotion plugin

    ✓ Can handle s move (95ms)

    ✓ Can handle 2s move (84ms)

    ✓ Can handle f move (449ms)

    ✓ Can handle 2f move (124ms)

    ✓ Can handle F move (87ms)

    ✓ Can handle 2F move (92ms)

    ✓ Can handle t move (109ms)

    ✓ Can handle bd-t move (109ms)

    ✓ Can handle 2t move (115ms)

    ✓ Can handle bd-t2 move (96ms)

    ✓ Can handle T move (68ms)

    ✓ Can handle 2T move (128ms)

    ✓ Can handle w move (47ms)

    ✓ Can handle bd-w move (83ms)

    ✓ Can handle b move (68ms)

    ✓ Can handle e move (90ms)

    ✓ Can handle bd-e move (112ms)

    ✓ Can handle ge move (74ms)

    ✓ Can handle n-char move (123ms)

    ✓ Can handle j move (107ms)

    ✓ Can handle k move (83ms)

    ✓ Can handle bd-jk move (1) (65ms)

    ✓ Can handle bd-jk move (2) (67ms)

    ✓ Can handle lineforward move (1) (81ms)

    ✓ Can handle lineforward move (2) (99ms)

    ✓ Can handle linebackward move (1) (94ms)

    ✓ Can handle linebackward move (2) (79ms)

    ✓ Can handle searching for backslash (\) (75ms)

    ✓ Can handle searching for carat (^) (59ms)

    ✓ Can handle searching for dot (.) (90ms)

  Input method plugin

    ✓ use default im in insert mode

    ✓ use other im in insert mode

  replaceWithRegister plugin

    ✓ Replaces within inner word (81ms)

    ✓ Replaces within inner Word (55ms)

    ✓ Replaces within '' (64ms)

    ✓ Replaces within '' including spaces (93ms)

    ✓ Replaces within () (54ms)

    ✓ Replaces within () including spaces (98ms)

    ✓ Replaces within a paragraph (82ms)

    ✓ Replaces using a specified register (109ms)

    ✓ Replaces within {} over multiple lines (68ms)

    ✓ Replaces a multiline register within {} over multiple lines (94ms)

    ✓ Replaces a multiline register within {} over multiple lines (94ms)

    ✓ Yanking inside {} then replacing inside {} in a noop, besides the cursor movement (91ms)

    ✓ grr replaces the entire line with the register (59ms)

    ✓ grr can replace multiple lines (97ms)

    ✓ Replaces in visual mode (95ms)

    ✓ Replaces in visual mode using a specified register (92ms)

    ✓ Replaces in visual line mode (73ms)

    ✓ grj is linewise (96ms)

  sneak plugin

    ✓ Can handle s motion (47ms)

    ✓ Can handle S motion (75ms)

    ✓ Can handle <operator>z motion (50ms)

    ✓ Can handle <operator>Z motion (102ms)

    ✓ Can handle s; motion (148ms)

    ✓ Can handle s, motion (44ms)

    ✓ Can handle S; motion (90ms)

    ✓ Can handle S, motion (46ms)

    ✓ Can handle single letter s motion (49ms)

    ✓ Can handle single letter S motion (56ms)

    ✓ Can handle single letter <operator>z motion (49ms)

    ✓ Can handle single letter <operator>Z motion (410ms)

    ✓ Can handle single letter s; motion (228ms)

    ✓ Can handle single letter s, motion (72ms)

    ✓ Can handle single letter S; motion (47ms)

    ✓ Can handle single letter S, motion (48ms)

    ✓ Can handle multiline single char <number>s motion (76ms)

    ✓ Can go back using <C-o> once when going forward (53ms)

    ✓ Can go back using <C-o> once when going backward (58ms)

    ✓ Can go back using <C-o> when repeating forward movement (77ms)

    ✓ Can go back using <C-o> when repeating backward movement (46ms)

  sneakReplacesF

    ✓ sneakReplacesF forward (43ms)

    ✓ sneakReplacesF backward

  surround plugin

    ✓ 'ysiw)' surrounds word without space (94ms)

    ✓ 'ysiw(' surrounds word with space (113ms)

    ✓ 'ysw)' surrounds word without space (112ms)

    ✓ 'ysw(' surrounds word with space (73ms)

    ✓ 'ysaw)' surrounds word without space (112ms)

    ✓ 'ysaw(' surrounds word with space (82ms)

    ✓ 'ysiw(' surrounds word with space and ignores punctuation (117ms)

    ✓ 'ysiw<' surrounds word with tags (78ms)

    ✓ 'ysiw<' surrounds word with tags and attributes (125ms)

    ✓ 'cst<' surrounds word with tags that have a dot in them (121ms)

    ✓ 'yss)' surrounds entire line respecting whitespace (125ms)

    ✓ change surround (175ms)

    ✓ change surround with two pairs of quotes (89ms)

    ✓ change surround with two pairs of parens (99ms)

    ✓ change surround with alias (111ms)

    ✓ 'ysiwb' surrounds word with alias without space (85ms)

    ✓ 'ysiwB' surrounds word with alias without space (124ms)

    ✓ 'ysiwr' surrounds word with alias without space (119ms)

    ✓ 'ysiwa' surrounds word with alias without space (78ms)

    ✓ change surround to tags (117ms)

    ✓ delete surround (95ms)

    ✓ delete surround with quotes (119ms)

    ✓ delete surround with nested of quotes (208ms)

    ✓ delete surround with inconsistent quotes (127ms)

    ✓ delete surround with mixed quotes (114ms)

    ✓ delete surround with empty quotes cursor at start (43ms)

    ✓ delete surround with empty quotes cursor at end (67ms)

    ✓ don't delete surround if cursor is after closing match (186ms)

    ✓ delete surround if cursor is before opening match (159ms)

    ✓ delete surround with two pairs of parens (79ms)

    ✓ delete surround with alias (58ms)

    ✓ delete surround with tags (118ms)

    ✓ change surround brackets at end of line (135ms)

    ✓ changing brackets with surround works again (158ms)

    ✓ change surround with tags that contain an attribute and preserve them (264ms)

    ✓ change surround with tags that contain an attribute and remove them (225ms)

    ✓ performing surround after cancelling surround action with <Esc> does not move the cursor (153ms)

    ✓ 'S)' surrounds visual selection without space (166ms)

    ✓ 'S(' surrounds visual selection with space (182ms)

    ✓ 'S<div>' surrounds selection with <div></div> (155ms)

    ✓ 'S)' surrounds visual line selection without space (105ms)

    ✓ 'S(' surrounds visual line selection with space (424ms)

    ✓ 'S<div>' surrounds visual line selection with <div></div> (247ms)

  register

    ✓ Can copy to a register (71ms)

    ✓ Can use two registers together (112ms)

    ✓ Can use black hole register (108ms)

    ✓ System clipboard works with chinese characters (64ms)

    ✓ Yank stores text in Register '0' (265ms)

    ✓ Multiline yank (`[count]yy`) stores text in Register '0' (207ms)

    ✓ Multiline yank (`[count]Y`) stores text in Register '0' (225ms)

    ✓ Register '1'-'9' stores delete content (349ms)

    ✓ "A appends linewise text to "a (320ms)

    ✓ "A appends character wise text to "a (251ms)

    ✓ Can put and get to register

    ✓ Small deletion using x is stored in small delete register (254ms)

    ✓ Small deletion using Del is stored in small delete register (243ms)

    ✓ Small deletion using X is stored in small delete register (271ms)

    ✓ Search register (/) is set by forward search (529ms)

    ✓ Search register (/) is set by backward search (424ms)

    ✓ Search register (/) is set by star search (345ms)

    ✓ Command register (:) is set by command line (79ms)

    ✓ Read-only registers cannot be written to (258ms)

    clipboard

      ✓ Can access '*' (clipboard) register (73ms)

      ✓ Can access '+' (clipboard) register (45ms)

  Repeatable movements with f and t

    ✓ Can repeat f<character>

    ✓ Can repeat reversed F<character> (46ms)

    ✓ Can repeat t<character> (55ms)

    ✓ Can repeat N times reversed t<character>

  sentence motion

    [count] sentences backward

      ✓ move one sentence backward (46ms)

      ✓ move one sentence backward (66ms)

      ✓ move [count] sentences backward (85ms)

      ✓ move one sentence backward single line - middle (47ms)

      ✓ move one sentence backward no space (50ms)

      ✓ move one sentence backward no space - middle (49ms)

      ✓ move one sentence backward - multiline (58ms)

      ✓ move one sentence backward - multiline - period (42ms)

      ✓ move one sentence backward - multiline - previous line (48ms)

      ✓ move one sentence backward - multiline - previous line - period

  VimState

    ✓ de-dupes cursors

    ✓ cursorStart/cursorStop should be first cursor in cursors

  text editor

    ✓ insert 'Hello World'

    ✓ replace 'World' with 'Foo Bar'

    ✓ delete `Hello`

    ✓ delete the whole line

    ✓ try to read lines that don't exist

  util path
    separatePath

      ✓ can separate drive letter path on Windows

      ✓ can separate UNC path on Windows
      ✓ can separate relative path on Windows
      ✓ can separate absolute path on posix

      ✓ can separate relative path on posix

    resolveUri

      ✓ posix

      ✓ win32

  1593 passing (5m)
  4 pending

  1 failing
  1) Mode Visual
       Visual mode with command editor.action.smartSelect.grow
         Command editor.action.smartSelect.grow enters visual mode and increases selection:

      Document content does not match.
      + expected - actual

       "vim.normalModeKeyBindingsNonRecursive": [
         {
      -    "": ["j"],
      +    
           "after": ["g", "j"],
         },
       ]
      
  	at newTest (out/test/testSimplifier.js:47:34)


Error: 1 tests failed.

Error: 1 tests failed.

Exit code:   1
Done

Failed
Failed to run tests
npm ERR! Test failed.  See above for more details.
The command "npm test" exited with 1.
store build cache
changes detected (content changed, file is created, or file is deleted):\n/home/travis/.npm/anonymous-cli-metrics.json
/home/travis/.npm/_cacache/index-v5/05/f2/5efeceaf581d5b606bdafad32623ddd75352cb1942290a9cd93d48923be6
/home/travis/.npm/_cacache/index-v5/34/8e/30c54cce758990bcd1b33114c4aa8a9e5a25c152ac39d9feab22b7e13e00\n
changes detected, packing new archive
uploading PR.5050/cache--linux-xenial-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--node-12.tgz
cache uploaded


Done. Your build exited with 1.
npm test
> vim@1.15.0 test /home/travis/build/VSCodeVim/Vim
> node ./out/test/runTest.js

Downloading VS Code 1.47.2 from https://update.code.visualstudio.com/1.47.2/linux-x64/stable
Downloaded VS Code 1.47.2 into .vscode-test/vscode-1.47.2
Warning: 'sandbox' is not in the list of known options, but still passed to Electron/Chromium.

[main 2020-07-20T04:13:49.732Z] update#setState idle

bash: cannot set terminal process group (-1): Inappropriate ioctl for device

bash: no job control in this shell

(node:5745) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information

(node:5745) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information

(node:5745) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information

(node:5745) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information

(node:5745) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information

(node:5745) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information

(node:6283) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information

(node:6283) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information



  base action

    ✓ compare key presses
    ✓ couldActionApply 1D keys positive

    ✓ couldActionApply 1D keys negative
    ✓ couldActionApply 2D keys positive
    ✓ couldActionApply 2D keys negative
    ✓ doesActionApply 1D keys positive
    ✓ doesActionApply 1D keys negative

    ✓ doesActionApply 2D keys positive

    ✓ doesActionApply 2D keys negative

  bang (!) cmd_line

    parsing

      ✓ simple ! (201ms)

      ✓ simple ! with space between bang and command (113ms)

      ✓ ! with line (104ms)

      ✓ ! with line range (146ms)

    previous external commands (embedded bangs)

      ✓ !! should execute previous command (177ms)

      ✓ !! should support command concatenation (156ms)

      ✓ any ! in cmd is replaced with previous external command (105ms)

      ✓ only the ! character can be unescaped, with a backslash (109ms)

    stdin/stdout/stderr

      ✓ ! can read from stdin (97ms)

      ✓ :{line}!{cmd} should pass in line as stdin (79ms)

      ✓ :{range}!{cmd} should pass in line range as stdin (99ms)

      ✓ ! with commands expecting stdin do not block when no stdin is supplied (45ms)

      ✓ ! can read from both stdout and stderr (84ms)

      ✓ piping commands works (75ms)

  cmd_line/search command

    ✓ command <C-w> can remove word in cmd line

    ✓ command <C-w> can remove word in search mode

    ✓ command <C-w> can remove word in cmd line while retrain cmd on the right of the cursor

    ✓ command <C-w> can remove word in search mode while retrain cmd on the right of the cursor

    ✓ <C-u> deletes from cursor to first character

    ✓ <C-b> puts cursor at start of command line

    ✓ <Home> puts cursor at start of command line

    ✓ <C-e> puts cursor at end of command line

    ✓ <End> puts cursor at end of command line

    ✓ <C-p>/<C-n> go to the previous/next command

    ✓ <C-r> <C-w> insert word under cursor on command line (51ms)

    ✓ <C-r> <C-w> insert word right of cursor on command line (84ms)

    ✓ <C-r> <C-w> insert word under cursor in search mode (51ms)

    ✓ <C-p> go to previous search string

  cursor location

    ✓ cursor location in command line

    ✓ cursor location in search

  HistoryFile

    ✓ add command

    ✓ add empty command (43ms)

    ✓ add command over configuration.history (43ms)

    ✓ add command that exists in history (42ms)

    ✓ file system (39ms)

    ✓ change configuration.history (79ms)

  command-line lexer
    ✓ can lex empty string
    ✓ can lex comma
    ✓ can lex percent
    ✓ can lex dollar
    ✓ can lex dot
    ✓ can lex one number
    ✓ can lex longer number
    ✓ can lex plus
    ✓ can lex minus
    ✓ can lex forward search
    ✓ can lex forward search escaping
    ✓ can lex reverse search

    ✓ can lex reverse search escaping

    ✓ can lex command name

    ✓ can lex command args

    ✓ can lex command args with leading whitespace

    ✓ can lex long command name and args

    ✓ can lex left and right line refs

  :only command

    ✓ Run :only (1253ms)

  command-line parser

    ✓ can parse empty string

    ✓ can parse left - dot

    ✓ can parse left - dollar

    ✓ can parse left - percent

    ✓ can parse separator - comma

    ✓ can parse right - dollar

  put cmd_line

    ✓ put in empty file (42ms)

    ✓ put in middle of file (222ms)

    ✓ put at end of file (57ms)

    ✓ put ignores current indentation (66ms)

    ✓ put text with newlines (79ms)

    ✓ put from specified register (49ms)

    ✓ put in visual mode executes at cursor end position (100ms)

    ✓ put forces linewise put regardless of register mode (160ms)

    ✓ put! puts before current line (57ms)

    ✓ put leaves cursor on last line, first non-whitespace character of pasted content

    ✓ put! leaves cursor on last line, first non-whitespace character of pasted content (40ms)

    ✓ put with specified line (64ms)

    ✓ put! with specified line (79ms)

    ✓ put with line range should insert at ending line (70ms)

  command line scanner

    ✓ ctor

    ✓ can detect EOF with empty input

    ✓ next() returns EOF at EOF

    ✓ can scan

    ✓ can emit

    ✓ can ignore

    ✓ can skip whitespace

    ✓ can skip whitespace with one char before EOF

    ✓ can skip whitespace at EOF

    ✓ nextWord() return EOF at EOF

    ✓ nextWord() return word before trailing spaces
    ✓ nextWord() can skip whitespaces and return word 

    ✓ nextWord() return word before EOF

    ✓ can expect one of a set

    ✓ can expect only one of a set

  Smile command

    ✓ :smile creates new tab (548ms)

    ✓ :smile editor contains smile text (545ms)

  Basic sort

    ✓ Sort whole file, asc (94ms)

    ✓ Sort whole file, asc, ignoreCase (106ms)

    ✓ Sort whole file, dsc (83ms)

    ✓ Sort whole file, dsc, ignoreCase (95ms)

    ✓ Sort range, asc (141ms)

    ✓ Sort range, asc, ignoreCase (115ms)

    ✓ Sort range, dsc (138ms)

    ✓ Sort range, dsc, ignoreCase (213ms)

TaskQueue: error: Error running task. .

    ✓ Sort whole file, asc, unique (139ms)

  Horizontal split

    ✓ :sp creates a second split (84ms)

    ✓ :split creates a second split (74ms)

    ✓ :new creates a second split (268ms)

  :close args parser

    ✓ can parse empty args

    ✓ ignores trailing white space

    ✓ can parse !
    ✓ throws if space before !
    ✓ ignores space after !
    ✓ throws if bad input
  :quit args parser

    ✓ can parse empty args

    ✓ ignores trailing white space

    ✓ can parse !

    ✓ throws if space before !

    ✓ ignores space after !

    ✓ throws if bad input

  :substitute args parser

    ✓ can parse pattern, replace, and flags

    ✓ can parse count

    ✓ can parse custom delimiter

    ✓ can escape delimiter

    ✓ can parse flag KeepPreviousFlags

  :tabm[ove] args parser

    ✓ has :tabm alias

    ✓ can parse empty args

    ✓ can parse an absolute position

    ✓ can parse a relative position

    ✓ fails with invalid inputs

  getParser

    ✓ empty

    ✓ :marks

    ✓ :ju

    ✓ :sh

    ✓ :write

    ✓ :nohlsearch

    ✓ :quitall

    :write args parser

      ✓ can parse empty args

      ✓ can parse ++opt

      ✓ throws if bad ++opt name

      ✓ can parse bang

      ✓ can parse ' !cmd'

      ✓ can parse ' !cmd' when cmd is empty

  Basic substitute

    ✓ Replace single word once (66ms)

    ✓ Replace with `g` flag (58ms)

    ✓ Replace with flags AND count (85ms)

    ✓ Replace with `c` flag (69ms)

    ✓ Replace with `gc` flag (85ms)

    ✓ Replace across all lines (79ms)

    ✓ Replace on specific single line (79ms)

    ✓ Replace on current line using dot (76ms)

    ✓ Replace single relative line using dot and plus (87ms)

    ✓ Replace across specific line range (88ms)

    ✓ Replace across relative line range using dot, plus, and minus (79ms)

    ✓ Replace across relative line range using numLines+colon shorthand (67ms)

    ✓ Repeat replacement across relative line range (106ms)

    ✓ Replace with range AND count but no flags (75ms)

    ✓ Undocumented: operator without LHS assumes dot as LHS (55ms)

    ✓ Undocumented: multiple consecutive operators use 1 as RHS (68ms)

    ✓ Undocumented: trailing operators use 1 as RHS (68ms)

    ✓ Replace specific single equal lines (77ms)

    ✓ Replace current line with no active selection (90ms)

    ✓ Replace text in selection (134ms)

    ✓ Substitute support marks (90ms)

    Effects of gdefault=true

      ✓ Replace all matches in the line (50ms)

      ✓ Replace with `g` flag inverts global flag (59ms)

      ✓ Replace with `c` flag inverts global flag (86ms)

      ✓ Replace multiple lines (116ms)

      ✓ Replace across specific lines (97ms)

      ✓ Replace current line with no active selection (101ms)

      ✓ Replace text in selection (144ms)

      ✓ Substitute support marks (113ms)

      ✓ Substitute with escaped delimiter (61ms)
    Substitute should use various previous search/substitute states

      ✓ Substitute with previous search using * (209ms)

      ✓ Substitute with previous search using # (167ms)

      ✓ Substitute with previous search using / (255ms)

      ✓ Substitute with parameters should update search state (107ms)

      ✓ Substitute with empty replacement should delete previous substitution (all variants) and accepts flags (243ms)

      ✓ Substitute with no pattern should repeat previous substitution and not alter search state (112ms)

      ✓ Substitute repeat previous should accept flags (73ms)

      ✓ Substitute with empty search string should use last searched pattern (226ms)

      ✓ Ampersand (&) should repeat the last substitution (59ms)

  cmd_line tab

    ✓ tabe with no arguments when not in workspace opens an untitled file

    ✓ tabedit with no arguments when not in workspace opens an untitled file

    ✓ tabe with absolute path when not in workspace opens file (77ms)

    ✓ tabe with current file path does nothing (62ms)

  cmd_line tabComplete

    ✓ command line command tab completion (70ms)

    ✓ command line command shift+tab

    ✓ command line file tab completion with no base path

    ✓ command line file tab completion with / as base path

    ✓ command line file tab completion with ~/ as base path

    ✓ command line file tab completion with ./ as base path

    ✓ command line file tab completion with ../ as base path

    ✓ command line file tab completion directory with / at the end

    ✓ command line file navigate tab completion

    ✓ command line tab completion on the content on the left of the cursor

    ✓ command line file tab completion with . (45ms)

    ✓ command line file tab completion with space in file path (152ms)

  Undo command

    ✓ undoes last action after insert mode (50ms)

  Vertical split

    ✓ :vs creates a second split (75ms)

    ✓ :vsp creates a second split (73ms)

    ✓ :vsplit creates a second split (66ms)

    ✓ :vnew creates a second split (268ms)

    ✓ :vne creates a second split (226ms)

  Basic write-quit

    ✓ Run write and quit (74ms)

  Provide line completions
    Line Completion Provider unit tests

      ✓ Can complete lines in file, prioritizing above cursor, near cursor

      ✓ Can complete lines in file with different indentation (38ms)

      ✓ Returns no completions for unmatched line (42ms)

  Configuration

    ✓ remappings are normalized

    ✓ whichwrap is parsed into wrapKeys

    ✓ Can handle long key chords

  Notation

    ✓ Normalize
  Remapper

    ✓ getLongestedRemappedKeySequence (96ms)

    ✓ getMatchingRemap (75ms)

    ✓ jj -> <Esc> through modehandler (97ms)

[main 2020-07-20T04:14:19.738Z] update#setState checking for updates

    ✓ 0 -> :wq through modehandler (107ms)

[main 2020-07-20T04:14:19.819Z] update#setState idle

    ✓ <c-e> -> <esc> in insert mode should go to normal mode (97ms)

    ✓ leader, w -> closeActiveEditor in normal mode through modehandler (82ms)

    ✓ leader, c -> closeActiveEditor in visual mode through modehandler (101ms)

    ✓ d -> black hole register delete in normal mode through modehandler (136ms)

    ✓ d -> black hole register delete in normal mode through modehandler (476ms)

    ✓ jj -> <Esc> after ciw operator through modehandler (157ms)

    ✓ jj -> <Esc> after using <Count>i=jj should insert === (163ms)

    ✓ jj -> <Esc> does not leave behind character a j (153ms)

    ✓ jj -> <Esc> does not modify undo stack (162ms)

  Neovim Validator

    ✓ neovim enabled without path

    ✓ neovim enabled with nvim in path

    ✓ neovim disabled

  Remapping Validator

    ✓ no remappings

    ✓ jj->esc

    ✓ remapping missing after and command

    ✓ remappings are de-duped

  Vimrc

    ✓ Can expand $HOME to user's home directory

    ✓ Can expand ~ to user's home directory

  VimrcKeyRemappingBuilder

    ✓ Build IKeyRemapping objects from .vimrc lines

  Error
    ✓ error code has message
  package.json

    ✓ all keys have handlers

    ✓ all defined configurations in package.json have handlers
  historyTracker unit tests

    addMark

      ✓ can create lowercase mark

      ✓ can create uppercase mark

      ✓ shares uppercase marks between editor instances

      ✓ does not share lower marks between editor instances

  Record and navigate jumps

    Jump Tracker unit tests

      ✓ Can record jumps between files

      ✓ Can handle file jump events sent by vscode in response to recordJumpBack

      ✓ Can record jumps between files after switching files

      ✓ Can handle jumps to the same file multiple times

      ✓ Can record up to 100 jumps, the fixed length in vanilla Vim

      ✓ Can handle text deleted from a file

    Can record jumps for actions the same as vanilla Vim

      Can track basic jumps

        ✓ Can track jumps for keys: Ggg

        ✓ Can track jumps for keys: GggG

        ✓ Can track jumps for keys: GggGgg

        ✓ Can track jumps for keys: /b<CR>n (48ms)

        ✓ Can track jumps for keys: G?b<CR>ggG (51ms)

        ✓ Can track jumps for keys: j%% (48ms)

      Can track jumps with back/forward

        ✓ Can track jumps for keys: j%%<C-o>

        ✓ Can track jumps for keys: j%%<C-o><C-i>

        ✓ Can track jumps for keys: j%%<C-o>%

        ✓ Can track jumps for keys: j%%<C-o>gg (45ms)

        ✓ Can track jumps for keys: j%%<C-o><C-o>gg

        ✓ Can track jumps for keys: /^<CR>nnn<C-o><C-o><C-o><C-i>gg (145ms)

        ✓ Can enter number to jump back multiple times (56ms)

        ✓ Can track one-line `` jumps (71ms)

        ✓ Can track one-line double `` jumps (61ms)

        ✓ Can track one-line '' jumps (75ms)

        ✓ Can track one-line double '' jumps (181ms)

        ✓ Can handle '' jumps with no previous jump

      Can shifts jump lines up after deleting a line with Visual Line Mode

        ✓ Can track jumps for keys: /^<CR>nnnkkdd (72ms)

        ✓ Can track jumps for keys: /^<CR>nnnkdd (67ms)

        ✓ Can track jumps for keys: /^<CR>nnnnn<C-o><C-o><C-o><C-o>dd (68ms)

        ✓ Can track jumps for keys: /a4<CR>/a5<CR>kkkdd (80ms)

      Can shifts jump lines up after deleting a line with Visual Mode

        ✓ Can track jumps for keys: /^<CR>nnnkklvjjhx (92ms)

      Can shift jump lines down after inserting a line

        ✓ Can track jumps for keys: /^<CR>nnnkkoINSERTED<Esc>0 (120ms)

        ✓ Can track jumps for keys: /^<CR>nnnkoINSERTED<Esc>0 (154ms)

        ✓ Can track jumps for keys: /^<CR>nnnkOINSERTED<Esc>0 (152ms)

        ✓ Can track jumps for keys: /a4<CR>/a5<CR>kkkoINSERTED<Esc>0 (154ms)

      Can track jumps from substitutes

        ✓ Can track jumps for keys: :%s/a/b<CR> (48ms)

      Can track jumps from macros

        ✓ Can track jumps for keys: qq/^<CR>nq@q@q<C-o><C-o> (110ms)

      Can track jumps from marks

        ✓ Can track jumps for keys: maG`a

  Record and execute a macro

    ✓ Can record and execute (145ms)

    ✓ Can repeat last invoked macro (183ms)

    ✓ Can play back with count (322ms)

    ✓ Can play back with count, abort when a motion fails (366ms)

    ✓ Repeat change on contiguous lines (149ms)

    ✓ Append command to a macro (245ms)

    ✓ Append command to a not yet created register creates a new register (137ms)

    ✓ Can handle calling an uppercase register (121ms)

    ✓ Can handle calling a non existing macro (39ms)

    ✓ Can handle calling a non existing macro with uppercase letter

    ✓ Can record Ctrl Keys and repeat (118ms)

    ✓ Can execute macros with dot commands properly (117ms)

    ✓ : (command) register can be used as a macro (84ms)

    ✓ Can record and execute macro that handles multiple lines (233ms)

  Mode Handler

    ✓ ctor

    ✓ can set current mode

  Mode Handler Map

    ✓ getOrCreate

    ✓ get

  Mode Insert

    ✓ can be activated (83ms)

    ✓ can handle key events

    ✓ <Esc> should change cursor position (42ms)

    ✓ <C-c> can exit insert (63ms)

    ✓ <Esc> can exit insert (52ms)

    ✓ Stay in insert when entering characters (60ms)

    ✓ Can handle 'O' (61ms)

    ✓ 'i' puts you in insert mode before the cursor (52ms)

    ✓ 'I' puts you in insert mode at start of line (44ms)

    ✓ 'a' puts you in insert mode after the cursor (51ms)

    ✓ 'A' appends to end of line

    ✓ '<C-w>' deletes a word (49ms)

    ✓ Can handle <C-w> on leading whitespace (48ms)

    ✓ Can handle <C-w> at beginning of line (41ms)

    ✓ <C-u> deletes to start of line (46ms)

    ✓ Can handle <C-u> on leading characters (41ms)

    ✓ Can handle <C-u> on leading whitespace (157ms)

    ✓ Correctly places the cursor after deleting the previous line break (75ms)

    ✓ will not remove leading spaces input by user

    ✓ will remove closing bracket (66ms)

    ✓ Backspace works on whitespace only lines (72ms)

    ✓ Backspace works on end of whitespace only lines (43ms)

    ✓ Backspace works at beginning of file (46ms)

    ✓ Delete works in insert mode (129ms)

    ✓ Delete works at line end (84ms)

    ✓ Delete works at end of file (39ms)

    ✓ Delete works with repeat (174ms)

    ✓ Repeat insert by count times with dot (115ms)

    ✓ Can <Esc> after entering insert mode from <ctrl+o>

    ✓ Can perform <ctrl+o> to exit and perform one command in normal (92ms)

    ✓ Can <ctrl-o> after entering insert mode from <ctrl-o>

    ✓ Can perform <ctrl+o> to exit and perform one command in normal at the beginning of a row (67ms)

    ✓ Can perform insert command prefixed with count (152ms)

    ✓ Can perform append command prefixed with count (47ms)

    ✓ Can perform insert at start of line command prefixed with count (49ms)

    ✓ Can perform append to end of line command prefixed with count (53ms)

    ✓ Can perform change char (s) command prefixed with count (66ms)

    ✓ Can perform command prefixed with count with <C-[> (47ms)

    ✓ Can handle 'o' with count (111ms)

    ✓ Can handle 'O' with count (78ms)

    ✓ Can handle backspace at beginning of line with all spaces (73ms)

    ✓ Can handle digraph insert (103ms)

    ✓ Can handle custom digraph insert

    ✓ Can insert last inserted text (99ms)

    ✓ Can handle no inserted text yet when executing <ctrl-a>

  Mode Normal

    ✓ Can be activated

    ✓ Can handle dw (47ms)

    ✓ Can handle dw (39ms)

    ✓ Can handle dw (41ms)

    ✓ Can handle dw across lines (1) (42ms)

    ✓ Can handle dw across lines (2)

    ✓ Can handle dd last line (48ms)

    ✓ Can handle dd single line (44ms)

    ✓ Can handle dd (38ms)

    ✓ Can handle 3dd

    ✓ Can handle 3dd off end of document

    ✓ Can handle d2d (40ms)

    ✓ Can handle dd empty line (61ms)

    ✓ Can handle ddp (52ms)

    ✓ Can handle 'de' (51ms)

    ✓ Can handle 'de' then 'de' again (61ms)

    ✓ Can handle 'db'

    ✓ Can handle 'db then 'db' again (56ms)

    ✓ Can handle 'dl' at end of line (61ms)

    ✓ Can handle 'dF' (48ms)

    ✓ Can handle 'dT' (48ms)

    ✓ Can handle 'd3' then <enter>

    ✓ Can handle 'dj'

    ✓ Can handle 'dk' (39ms)

    ✓ Can handle 'd])' without deleting closing parenthesis

    ✓ Can handle 'd]}' without deleting closing bracket (61ms)

    ✓ Can handle 'd/' (67ms)

    ✓ Can handle 'd/' with count ([count]d/[word]) (55ms)

    ✓ Can handle 'd/' with count (d[count]/[word]) (46ms)

    ✓ Can handle 'cw' (137ms)

    ✓ Can handle 'cw' without deleting following white spaces

    ✓ Can handle 'c2w'

    ✓ Can handle 'cw' without removing EOL (51ms)

    ✓ Can handle 'c])' without deleting closing parenthesis (57ms)

    ✓ Can handle 'c]}' without deleting closing bracket (48ms)

    ✓ Can handle 's' (50ms)

    ✓ Can handle 'yiw' with correct cursor ending position (53ms)

    ✓ Can handle 'ciw' (166ms)

    ✓ Can handle 'ciw' on blanks (81ms)

    ✓ Can handle 'caw' (54ms)

    ✓ Can handle 'caw' on first letter (66ms)

    ✓ Can handle 'caw' on blanks (55ms)

    ✓ Can handle 'caw' on blanks (49ms)

    ✓ Can handle 'cae' (85ms)

    ✓ Can handle 'cae' with caret at document's top (46ms)

    ✓ Can handle 'cae' with caret at document's end (89ms)

    ✓ Can handle 'cie' on blank content

    ✓ Can handle 'cie' with leading space (59ms)

    ✓ Can handle 'cie' with trailing space (49ms)

    ✓ Can handle 'cie' with both leading and trailing space (89ms)

    ✓ Can handle 'cie' on blank content

    ✓ Can handle 'ci(' on first parentheses (48ms)

    ✓ Can handle 'ci(' with nested parentheses (56ms)

    ✓ Can handle 'ci(' backwards through nested parens (44ms)

    ✓ Can handle 'cib' on first parentheses (42ms)

    ✓ Can handle 'ci(' across multiple lines with last character at beginning

    ✓ Can handle count prefixed 'ci)' (52ms)

    ✓ Can handle count prefixed 'ca)' (47ms)

    ✓ Can handle 'ca(' spanning multiple lines (50ms)

    ✓ Can handle 'cab' spanning multiple lines (51ms)

    ✓ Can handle 'ci{' spanning multiple lines

    ✓ Can handle 'ci{' spanning multiple lines and handle whitespaces correctly (48ms)

    ✓ Can handle 'ci{' spanning multiple lines and handle whitespaces correctly (40ms)

    ✓ Can handle 'ci(' on the closing bracket (196ms)

    ✓ Can handle 'ciB' spanning multiple lines

    ✓ will fail when ca( with no ()

    ✓ will fail when ca{ with no {}

    ✓ will fail when caB with no {}

    ✓ Can handle 'ci[' spanning multiple lines (50ms)

    ✓ Can handle 'ci]' on first bracket (41ms)

    ✓ Can handle 'ca[' on first bracket (43ms)

    ✓ Can handle 'ca]' on first bracket

    ✓ Can handle 'ci'' on first quote

    ✓ Can handle 'ci'' inside quoted string (43ms)

    ✓ Can handle 'ci'' on closing quote (53ms)

    ✓ Can handle 'ci'' when string is ahead (49ms)

    ✓ Can handle 'ci"' on opening quote (41ms)

    ✓ Can handle 'ci"' starting behind the quoted word (38ms)

    ✓ Can handle 'ca"' starting behind the quoted word (51ms)

    ✓ Can handle 'ca"' starting on the opening quote

    ✓ Can handle 'ci"' with escaped quotes (48ms)

    ✓ Can handle 'ci"' with a single escaped quote

    ✓ Can handle 'ci"' with a single escaped quote behind (60ms)

    ✓ Can handle 'ci"' with an escaped backslash (51ms)

    ✓ Can handle 'ci"' with an escaped backslash on closing quote

    ✓ Can handle 'ca"' starting on the closing quote (50ms)

    ✓ Can handle 'ci"' with complex escape sequences (50ms)

    ✓ Can pick the correct open quote between two strings for 'ci"' (48ms)

    ✓ will fail when ca" ahead of quoted string

    ✓ Can handle 'ca`' inside word (46ms)

    ✓ can handle cj (80ms)

    ✓ can handle ck (90ms)

    ✓ can handle c2j (67ms)

    ✓ can handle c2k (89ms)

    ✓ can handle cj on last line (66ms)

    ✓ can handle ck on first line (111ms)

    ✓ can handle c2j on last line (69ms)

    ✓ can handle c2k on first line (91ms)

    ✓ Can handle 'daw' on word with cursor inside spaces (61ms)

    ✓ Can handle 'daw' on word with trailing spaces (43ms)

    ✓ Can handle 'daw' on word with leading spaces (75ms)

    ✓ Can handle 'daw' on word with numeric prefix

    ✓ Can handle 'daw' on word with numeric prefix and across lines (70ms)

    ✓ Can handle 'daw' on word with numeric prefix and across lines (47ms)

    ✓ Can handle 'daw' on word with numeric prefix and across lines, containing words end with `.` (50ms)

    ✓ Can handle 'daw' on end of word (51ms)

    ✓ Can handle 'daw' on words at beginning of line with leading whitespace

    ✓ Can handle 'daw' on words at ends of lines in the middle of whitespace (42ms)

    ✓ Can handle 'daw' on word at beginning of file

    ✓ Can handle 'daw' on word at beginning of line

    ✓ Can handle 'daw' on word at end of line with trailing whitespace (38ms)

    ✓ Can handle 'daw' around word at end of line (40ms)

    ✓ Can handle 'daW' on big word with cursor inside spaces (43ms)

    ✓ Can handle 'daW' around word at whitespace

    ✓ Can handle 'daW' on word with trailing spaces (47ms)

    ✓ Can handle 'daW' on word with leading spaces (50ms)

    ✓ Can handle 'daW' on word with numeric prefix (38ms)

    ✓ Can handle 'daW' on word with numeric prefix and across lines (59ms)

    ✓ Can handle 'daW' on beginning of word

    ✓ Can handle 'daW' on end of one line (54ms)

    ✓ Can handle 'daW' around word at the last WORD (t|wo) (39ms)

    ✓ Can handle 'daW' around word at the last WORD (tw|o) (42ms)

    ✓ Can handle 'daW' around word at the last WORD (class="btn"|>) (53ms)

    ✓ Can handle 'daW' around word at the last WORD of the end of document (class="btn"|>) (48ms)

    ✓ Can handle 'daW' around word at the last WORD (c|lass="btn">) (41ms)

    ✓ Can handle 'daW' around word at the last WORD of the end of document (c|lass="btn">) (48ms)

    ✓ Can handle 'diw' on word with cursor inside spaces (42ms)

    ✓ Can handle 'diw' on word (38ms)

    ✓ Can handle 'diw' on word with numeric prefix

    ✓ Can handle 'diw' on trailing spaces at the end of line (62ms)

    ✓ Can handle 'diw' on word with numeric prefix and across lines (63ms)

    ✓ Can handle 'diw' on word with numeric prefix and across lines, containing words end with `.` (55ms)

    ✓ Can handle 'diW' on big word with cursor inside spaces (45ms)

    ✓ Can handle 'diW' on word with trailing spaces (45ms)

    ✓ Can handle 'diW' on word with leading spaces (54ms)

    ✓ Can handle 'diW' on word with numeric prefix (42ms)

    ✓ Can handle 'diW' on word with numeric prefix and across lines (55ms)

    ✓ Can handle 'diW' on beginning of word

    ✓ Can handle 'dae' (84ms)

    ✓ Can handle 'dae' with caret at document's top

    ✓ Can handle 'dae' with caret at document's end (94ms)

    ✓ Can handle 'die' on blank content

    ✓ Can handle 'die' with leading space

    ✓ Can handle 'die' with trailing space (41ms)

    ✓ Can handle 'die' with both leading and trailing space (57ms)

    ✓ Can handle 'die' on blank content

    ✓ Can handle d} at beginning of line

    ✓ Can handle y} at beginning of line

    ✓ Can handle d} when not at beginning of line

    ✓ Can handle } with operator and count, at beginning of line

    ✓ Can handle } with operator and count, and not at beginning of line

    ✓ Can handle dip (63ms)

    ✓ Can handle dip on empty lines (41ms)

    ✓ Can handle dap

    ✓ Can handle dap with two blank lines (46ms)

    ✓ Can handle dap one single line with two blank lines

    ✓ Select sentence with trailing spaces (75ms)

    ✓ Select sentence with leading spaces (84ms)

    ✓ Select inner sentence with trailing spaces (44ms)

    ✓ Select inner sentence with leading spaces (55ms)

    ✓ Select spaces between sentences (79ms)

    ✓ Can handle 'df'

    ✓ Can handle 'dt' (38ms)

    ✓ Can handle backspace

    ✓ Can handle backspace across lines

    ✓ Can handle A and backspace

    ✓ A should update desiredColumn

    ✓ I should updated desiredColumn (54ms)

    ✓ leaving insert mode should update desired column when entered with a (71ms)

    ✓ leaving insert mode should update desired column when entered with i (69ms)

    ✓ Can handle 'yy' without changing cursor position

    ✓ Can handle 'P' after 'yy'

    ✓ Can handle 'p' after 'yy'

    ✓ Can handle 'P' after 'Nyy' (38ms)

    ✓ Can handle 'p' after 'Nyy' (45ms)

    ✓ Can handle 'p' after 'yy' with correct cursor position

    ✓ Can handle 'gp' after 'yy' (41ms)

    ✓ Can handle 'gp' after 'Nyy' (39ms)

    ✓ Can handle 'gp' after 'Nyy' if pasting more than three lines (39ms)

    ✓ Can handle 'gp' after 'Nyy' if cursor is on the last line (48ms)

    ✓ Can handle 'gP' after 'yy' (50ms)

    ✓ Can handle 'gP' after 'Nyy' (38ms)

    ✓ Can handle 'gP' after 'Nyy' if pasting more than three lines (44ms)

    ✓ Can handle ']p' after yy

    ✓ Can handle ']p' after 'Nyy' (43ms)

    ✓ Can handle ']p' after 'Nyy' and indent with tabs first

    ✓ Can handle ']p' after 'Nyy' and decrease indents if possible (38ms)

    ✓ Can handle '[p' after yy

    ✓ Can handle '[p' after 'Nyy' (50ms)

    ✓ Can handle '[p' after 'Nyy' and indent with tabs first (44ms)

    ✓ Can handle '[p' after 'Nyy' and decrease indents if possible (39ms)

    ✓ Can handle 'p' after y'a

    ✓ Can handle 'p' after 'y])' without including closing parenthesis (49ms)

    ✓ Can handle 'p' after 'y]}' without including closing bracket (45ms)

    ✓ Can handle pasting in visual mode over selection (71ms)

    ✓ Can repeat w

    ✓ Can repeat p

    ✓ I works correctly (99ms)

    ✓ gI works correctly (54ms)

    ✓ gi works correctly (107ms)

    ✓ `. works correctly (70ms)

    ✓ '. works correctly (71ms)

    ✓ g; works correctly (195ms)

    ✓ g, works correctly (75ms)

    ✓ g_ works correctly

    ✓ 3g_ works correctly

    ✓ gq handles spaces after single line comments correctly (157ms)

    ✓ gq handles spaces before single line comments correctly (136ms)

    ✓ gq handles tabs before single line comments correctly (162ms)

    ✓ gq work correctly with cursor in the middle of a line (99ms)

    ✓ Can handle space

    ✓ Can handle space (56ms)

    ✓ Undo 1 (85ms)

    ✓ Undo 2 (76ms)

    ✓ Undo cursor (127ms)

    ✓ Undo cursor 2 (124ms)

    ✓ Undo cursor 3 (155ms)

    ✓ Undo with movement first (96ms)

    ✓ Can handle 'U' (45ms)

    ✓ Can handle 'U' for multiple changes (96ms)

    ✓ Can handle 'U' for new line below (83ms)

    ✓ Can handle 'U' for new line above (75ms)

    ✓ Can handle 'U' for consecutive changes only (114ms)

    ✓ Can handle 'u' to undo 'U' (58ms)

    ✓ Can handle 'U' to undo 'U' (53ms)

    ✓ Can handle 'u' after :s/abc/def (66ms)

    ✓ Can handle undo delete (56ms)

    ✓ Can handle undo delete twice (62ms)

    ✓ Can handle undo delete with count (60ms)

    ✓ Can handle undo delete with count and redo (141ms)

    ✓ Redo (80ms)

    ✓ Redo (88ms)

    ✓ Redo (113ms)

    ✓ Can handle u (42ms)

    ✓ Can handle guw

    ✓ Can handle guae

    ✓ Can handle guie (43ms)

    ✓ Can handle gUw

    ✓ Can handle gUae (39ms)

    ✓ Can handle gUie

    ✓ Can handle u over line breaks (49ms)

    ✓ can handle s in visual mode (52ms)

    ✓ can handle p with selection (52ms)

    ✓ can handle P with selection (86ms)

    ✓ can handle p in visual to end of line (102ms)

    ✓ can repeat backspace twice (88ms)

    ✓ Can repeat dw (40ms)

    ✓ Can repeat dw with count (57ms)

    ✓ can delete linewise with d2G

    ✓ can delete with + motion and count (43ms)

    ✓ can delete with - motion and count (50ms)

    ✓ can delete with count before and after operator, 2d12w deletes 24 words

    ✓ can dE correctly

    ✓ can dE correctly

    ✓ can dE correctly (57ms)

    ✓ can ctrl-a correctly behind a word

    ✓ can ctrl-a the right word (always the one AFTER the cursor)

    ✓ can ctrl-a on word

    ✓ can ctrl-a on a hex number

    ✓ can ctrl-a on decimal (92ms)

    ✓ can ctrl-a with numeric prefix (56ms)

    ✓ can ctrl-a on a decimal (39ms)

    ✓ can ctrl-a on an octal 

    ✓ Correctly increments in the middle of a number

    ✓ can ctrl-a on a hex number behind a word

    ✓ can ctrl-a distinguish fake hex number

    ✓ can ctrl-a preserve leading zeros of octal

    ✓ can ctrl-a trim leading zeros of decimal (42ms)

    ✓ can ctrl-a process `-0x0` correctly

    ✓ can ctrl-a regard `0` as decimal

    ✓ can ctrl-a on octal ignore negative sign

    ✓ can ctrl-a on octal ignore positive sign

    ✓ can ctrl-a on hex number ignore negative sign

    ✓ can ctrl-a on hex number ignore positive sign (49ms)

    ✓ can ctrl-x correctly behind a word

    ✓ can ctrl-a on an number with word before 

    ✓ can ctrl-a on an number with word before and after 

    ✓ can ctrl-x on a negative number with word before and after  (44ms)

    ✓ can ctrl-a properly on multiple lines

    ✓ can <C-a> on word with multiple numbers (incrementing first number)

    ✓ can <C-a> on word with multiple numbers (incrementing second number)

    ✓ can <C-a> on word with - in front of it

    ✓ <C-a> in visual mode (60ms)

    ✓ <C-a> in visual line mode (55ms)

    ✓ <C-a> in visual block mode (93ms)

    ✓ <C-a> in visual block mode does not go past selection (39ms)

    ✓ g<C-a> in visual mode (68ms)

    ✓ g<C-a> in visual line mode (77ms)

    ✓ g<C-a> in visual block mode (82ms)

    ✓ can do Y

    ✓ can do [count]Y (44ms)

    ✓ can do [count]Y if count is larger than EOF

    ✓ Can do S (40ms)

    ✓ / does not affect mark (47ms)

    ✓ / can search with regex (52ms)

    ✓ / can search with newline (48ms)

    ✓ / can search through multiple newlines (98ms)

    ✓ / with noignorecase, nosmartcase (71ms)

    ✓ / matches ^ per line (46ms)

    ✓ / matches $ per line

    ✓ Can search for forward slash (38ms)

    ✓ Can search backward for question mark (41ms)

    ✓ /\c forces case insensitive search (43ms)

    ✓ /\C forces case sensitive search (48ms)

    ✓ <BS> deletes the last character in search in progress mode (53ms)

    ✓ <S-BS> deletes the last character in search in progress mode

    ✓ <C-h> deletes the last character in search in progress mode

    ✓ Can delete with search forward (50ms)

    ✓ Can delete with search backward (313ms)

    ✓ Can do C

    ✓ Can do cit on a matching tag (61ms)

    ✓ Ignores cit on a non-matching tag

    ✓ Ignores cit on a nested tag (62ms)

    ✓ Can do cit on a tag with an attribute tag (124ms)

    ✓ Can do cat on a matching tag (54ms)

    ✓ Can do cit on a multiline tag (64ms)

    ✓ Can do cit on a multiline tag with nested tags (138ms)

    ✓ Can do cit inside of a tag with another non closing tag inside tags (69ms)

    ✓ Can do cit inside of a tag with another empty closing tag inside tags (64ms)

    ✓ Can do dit on empty tag block, cursor moves to inside (49ms)

    ✓ Can do cit on empty tag block, cursor moves to inside (44ms)

    ✓ can do cit with self closing tags (65ms)

    ✓ yat yanks the correct tag when inside one (43ms)

    ✓ yat yanks the correct tag when cursor is on the opening angle bracket

    ✓ yat yanks the correct tag when cursor is between the beginning of the line and the tag (41ms)

    ✓ dat deletes the outer tag when there are other characters (not just WS) before the opening tag (46ms)

    ✓ dat deletes the outer tag when the cursor is after the inner tag (49ms)

    ✓ Respects indentation with cc

    ✓ Resets cursor to indent end with cc

    ✓ can handle 'cc' on empty line

    ✓ cc copies linewise (52ms)

    ✓ Indent current line with correct Vim Mode

    ✓ Can handle <Esc> and do nothing

    ✓ Can handle # on consecutive words (40ms)

    ✓ Can handle # on skipped words (68ms)

    ✓ Can 'D'elete the characters under the cursor until the end of the line (53ms)

    ✓ Can 'D'elete the characters under multiple cursors until the end of the line (69ms)

    ✓ cc on whitespace-only treats whitespace as indent

    ✓ Can do cai (72ms)

    ✓ Can do cii (38ms)

    ✓ Can do caI (63ms)

    ✓ Can do dai (64ms)

    ✓ Can do dii (47ms)

    ✓ Can do daI (55ms)

    ✓ Will fail 'cia' with no delimiters

    ✓ Will fail 'cia' with flipped delimiters

    ✓ Will fail 'cia' with separators but no delimiters

    ✓ Can do 'cia' in a single argument (38ms)

    ✓ Can do 'cia' in () with cursor at opening delimiter

    ✓ Can do 'cia' in () with cursor at closing delimiter (42ms)

    ✓ Can do 'cia' in (,) with cursor at opening delimiter

    ✓ Can do 'cia' in (,) with cursor at regular delimiter

    ✓ Can do 'cia' in (,) with cursor at closing delimiter (39ms)

    ✓ Can do 'cia' in (,,,) with cursor at regular delimiter

    ✓ Can do 'cia' in (,,,) with cursor at second-to-last delimiter (48ms)

    ✓ Can do 'cia' in (,,,) with cursor at closing delimiter (45ms)

    ✓ Can do 'cia' with nested parentheses in argument (51ms)

    ✓ Can do 'cia' in a single-line comma seperated list with cursor in first argument (46ms)

    ✓ Can do 'cia' in a single-line comma seperated list with cursor on opening delimiter (38ms)

    ✓ Can do 'cia' in a single-line comma seperated list with cursor in middle argument (47ms)

    ✓ Can do 'cia' in a single-line comma seperated list with cursor on regular delimiter (40ms)

    ✓ Can do 'cia' in a single-line comma seperated list with cursor in last argument (47ms)

    ✓ Can do 'cia' in a single-line comma seperated list with cursor on closing delimiter (52ms)

    ✓ Can do 'cia' in a whitespace-only argument (48ms)

    ✓ Can do 'cia' in a whitespace-only argument across multiple lines (48ms)

    ✓ Can do 'cia' with trailing whitespace after separator (40ms)

    ✓ Can do 'cia' with trailing whitespace after separator and empty line (51ms)

    ✓ Can do 'cia' in a multiline-line comma seperated list with cursor in first argument (47ms)

    ✓ Can do 'cia' in a multiline-line comma seperated list with cursor in center argument (50ms)

    ✓ Can do 'cia' in a multiline-line comma seperated list with cursor in last argument (53ms)

    ✓ Can do 'cia' in a multi-line indented statement with one argument. (52ms)

    ✓ Can do 'daa' in a single argument

    ✓ Will fail 'daa' in ()

    ✓ Can do 'daa' in a single-line comma seperated list with cursor in first argument

    ✓ Can do 'daa' in a single-line comma seperated list with cursor in middle argument (110ms)

    ✓ Can do 'daa' in a single-line comma seperated list with cursor in last argument (40ms)

    ✓ Can do 'daa' in a multiline-line comma seperated list with cursor in first argument

    ✓ Can do 'daa' in a multiline-line comma seperated list with cursor in center argument (48ms)

    ✓ Can do 'daa' in a multiline-line comma seperated list with cursor in last argument (43ms)

    ✓ `] go to the end of the previously operated or put text (69ms)

    ✓ '] go to the end of the previously operated or put text (72ms)

    ✓ `[ go to the start of the previously operated or put text (80ms)

    ✓ '[ go to the start of the previously operated or put text (76ms)

    ✓ can handle <C-u> when first line is visible and starting column is at the beginning

    ✓ can handle <C-u> when first line is visible and starting column is at the end (71ms)

    ✓ can handle <C-u> when first line is visible and starting column is in the middle (108ms)

    can handle gn

      ✓ gn selects the next match text (213ms)

      ✓ gn selects the current word at |hello (251ms)

      ✓ gn selects the current word at h|ello (266ms)

      ✓ gn selects the current word at hel|lo (247ms)

      ✓ gn selects the current word at hell|o (213ms)

      ✓ gn selects the next word at hello| (223ms)

    can handle dgn

      ✓ dgn deletes the next match text (from first line) (56ms)

      ✓ dgn deletes the current word when cursor is at |hello (50ms)

      ✓ dgn deletes the current word when cursor is at h|ello (49ms)

      ✓ dgn deletes the current word when cursor is at hel|lo (48ms)

      ✓ dgn deletes the current word when cursor is at hell|o (54ms)

      ✓ dgn deletes the next word when cursor is at hello| (66ms)

    can handle cgn

      ✓ cgn deletes the next match text (from first line) (64ms)

      ✓ cgn deletes the current word when cursor is at |hello (157ms)

      ✓ cgn deletes the current word when cursor is at h|ello (81ms)

      ✓ cgn deletes the current word when cursor is at hel|lo (50ms)

      ✓ cgn deletes the current word when cursor is at hell|o (66ms)

      ✓ cgn deletes the next word when cursor is at hello| (61ms)

    can handle gN

      ✓ gN selects the previous match text (508ms)

      ✓ gN selects the current word at hell|o (218ms)

      ✓ gN selects the current word at hel|lo (293ms)

      ✓ gN selects the current word at h|ello (238ms)

      ✓ gN selects the current word at |hello (220ms)

      ✓ gN selects the previous word at | hello (261ms)

    can handle dgN

      ✓ dgN deletes the previous match text (from first line) (67ms)

      ✓ dgN deletes the current word when cursor is at hell|o (66ms)

      ✓ dgN deletes the current word when cursor is at hel|lo (77ms)

      ✓ dgN deletes the current word when cursor is at h|ello (69ms)

      ✓ dgN deletes the current word when cursor is at |hello (75ms)

      ✓ dgN deletes the previous word when cursor is at | hello (68ms)

    can handle cgN

      ✓ cgN deletes the previous match text (from first line) (66ms)

      ✓ cgN deletes the current word when cursor is at hell|o (71ms)

      ✓ cgN deletes the current word when cursor is at hel|lo (67ms)

      ✓ cgN deletes the current word when cursor is at h|ello (66ms)

      ✓ cgN deletes the current word when cursor is at |hello (77ms)

      ✓ cgN deletes the previous word when cursor is at | hello (72ms)

    marks

      ✓ capital marks can change the editors active document (138ms)

      ✓ can jump to lowercase mark (51ms)

  Mode Replace

    ✓ Can activate with <Insert> from Insert mode (39ms)

    ✓ Can activate with R from Normal mode

    ✓ Can handle R (49ms)

    ✓ Can handle R past current line (64ms)

    ✓ Can handle R and exit Replace Mode (50ms)

    ✓ Can handle R across lines (86ms)

    ✓ Can handle R across lines and exit Replace Mode (91ms)

    ✓ Can handle R with {count} (437ms)

    ✓ Can handle backspace (75ms)

    ✓ Can handle backspace (80ms)

    ✓ Can handle backspace across lines (84ms)

    ✓ Can handle arrows (51ms)

    ✓ Can handle . (113ms)

    ✓ Can handle . across lines (146ms)

  Mode Visual

    ✓ can be activated

    ✓ Can handle w (154ms)

    ✓ Can handle wd (123ms)

    ✓ Can handle x (122ms)

    ✓ Can handle x across a selection (148ms)

    ✓ Can do vwd in middle of sentence (171ms)

    ✓ Can do vwd in middle of sentence (136ms)

    ✓ Can do vwd multiple times (233ms)

    ✓ handles case where we go from selecting on right side to selecting on left side (131ms)

    ✓ Can handle H key (53ms)

    ✓ Can handle backspace key (86ms)

    ✓ handles case where we delete over a newline (155ms)

    ✓ handles change operator (149ms)

    ✓ Can do vat on multiple matching tags (103ms)

    ✓ Can maintain selection on failure with vat on multiple matching tags (93ms)

    ✓ Can maintain selection on failure with repeat-prefixed vat on multiple matching tags (95ms)

    ✓ Repeat-prefixed vat does not bleed below (64ms)

    ✓ Failed vat does not expand or move selection, remains in visual mode (69ms)

    ✓ Can do vi) on a matching parenthesis (66ms)

    ✓ Can do vi) on multiple matching parens (67ms)

    ✓ Can do va) on a matching parenthesis (58ms)

    ✓ Can do va) on multiple matching parens (70ms)

    ✓ Failed va) does not expand or move selection, remains in visual mode (54ms)

    ✓ Repeat-prefixed va) does not bleed below (52ms)

    ✓ Can do va} on a matching bracket as first character (52ms)

    ✓ Can do va} on multiple matching brackets (70ms)

    ✓ Can do vi( on a matching bracket near first character (52ms)

    ✓ Can do vi{ on outer pair of nested braces (66ms)

    ✓ Can do vi{ on braces indented by 1 and preserve indent (52ms)

    ✓ Can do va] on multiple matching brackets (78ms)

    ✓ Can do repeat-prefixed vaf on multiple matching pairs of different types (165ms)

    ✓ Repeat-prefixed vaf does not bleed below (66ms)

    ✓ vaf only expands to enclosing pairs (61ms)

    ✓ Can use . to repeat indent in visual (51ms)

    ✓ Can do v_x to delete to first char (52ms)

    ✓ Can do vg_x to delete to last char with no EOL (74ms)

    ✓ Can do v3g_x to delete to last char with no EOL with count (59ms)

    ✓ Can do v$x to delete to last char including EOL (54ms)

    ✓ Can do gv to reselect previous selection (72ms)

    ✓ Can handle 'J' when the selected area spans multiple lines (54ms)

    ✓ Can handle 'gJ' when the entire selected area is on the same line (67ms)

    ✓ Can handle 'gJ' when the selected area spans multiple lines (57ms)

    ✓ Can handle 'gJ' when the selected area spans multiple lines and line has whitespaces (78ms)

    ✓ Can handle 'gJ' when start position of the selected area is below the stop (89ms)

    Vim's EOL handling is weird

      ✓ delete through eol (102ms)

      ✓ join 2 lines by deleting through eol (89ms)

      ✓ d$ doesn't delete whole line (81ms)

      ✓ vd$ does delete whole line (101ms)

      ✓ Paste over selection copies the selection (53ms)

      ✓ Paste over selection copies the selection linewise (401ms)

    Arrow keys work perfectly in Visual Mode

      ✓ Can handle <up> key (51ms)

      ✓ Can handle <down> key (48ms)

      ✓ Can handle <left> key (64ms)

      ✓ Can handle <right> key (87ms)

    Screen line motions in Visual Mode

      ✓ Can handle 'gk' (68ms)

      ✓ Can handle 'gj' (61ms)

      - Preserves cursor position when handling 'gk'
      - Preserves cursor position when handling 'gj'
    handles aw in visual mode

      ✓ Can handle 'vawd' on word with cursor inside spaces (65ms)

      ✓ Can handle 'vawd' on word with trailing spaces (65ms)

      ✓ Can handle 'vawd' on word with leading spaces (76ms)

      ✓ Can handle 'vawd' on word with numeric prefix (52ms)

      ✓ Can handle 'vawd' on word with numeric prefix and across lines (84ms)

      ✓ Can handle 'vawd' on word with numeric prefix and across lines, containing words end with `.` (87ms)

    handles aW in visual mode

      ✓ Can handle 'vaWd' on big word with cursor inside spaces (66ms)

      ✓ Can handle 'vaWd' on word with trailing spaces (52ms)

      ✓ Can handle 'vaWd' on word with leading spaces (65ms)

      ✓ Can handle 'vaWd' on word with numeric prefix (52ms)

      ✓ Can handle 'vaWd' on word with numeric prefix and across lines (95ms)

    handles aW in visual mode

      ✓ Can handle 'vaWd' on big word with cursor inside spaces (59ms)

      ✓ Can handle 'vaWd' on word with trailing spaces (66ms)

      ✓ Can handle 'vaWd' on word with leading spaces (113ms)

      ✓ Can handle 'vaWd' on word with numeric prefix (55ms)

      ✓ Can handle 'vaWd' on word with numeric prefix and across lines (163ms)

    handles aw in visual mode

      ✓ Can handle 'vawd' on word with cursor inside spaces (60ms)

      ✓ Can handle 'vawd' on word with trailing spaces (54ms)

      ✓ Can handle 'vawd' on word with leading spaces (65ms)

      ✓ Can handle 'vawd' on word with numeric prefix (61ms)

      ✓ Can handle 'vawd' on word with numeric prefix and across lines (78ms)

      ✓ Can handle 'vawd' on word with numeric prefix and across lines, containing words end with `.` (75ms)

    handles aW in visual mode

      ✓ Can handle 'vaWd' on big word with cursor inside spaces (67ms)

      ✓ Can handle 'vaWd' on word with trailing spaces (69ms)

      ✓ Can handle 'vaWd' on word with leading spaces (75ms)

      ✓ Can handle 'vaWd' on word with numeric prefix (53ms)

      ✓ Can handle 'vaWd' on word with numeric prefix and across lines (90ms)

      ✓ Can handle 'Y' in visual mode (58ms)

    handles as in visual mode

      ✓ Select sentence with trailing spaces in visual mode (76ms)

      ✓ Select sentence with leading spaces in visual mode (108ms)

      ✓ Select multiple sentences in visual mode (80ms)

    handles is in visual mode

      ✓ Select inner sentence with trailing spaces in visual mode (73ms)

      ✓ Select inner sentence with leading spaces in visual mode (82ms)

      ✓ Select spaces between sentences in visual mode (94ms)

    handles tag blocks in visual mode

      ✓ Can do vit on a matching tag (70ms)

      ✓ Count-prefixed vit alternates expanding selection between inner and outer tag brackets (81ms)

      ✓ Can do vat on a matching tag (63ms)

    handles replace in visual mode

      ✓ Can do a single line replace (63ms)

      ✓ Can do a multi line replace (52ms)

    D command will remove all selected lines

      ✓ D deletes all selected lines (56ms)

      ✓ D deletes the current line (73ms)

    handles indent blocks in visual mode

      ✓ Can do vai (83ms)

      ✓ Can do vii (55ms)

      ✓ Doesn't naively select the next line (54ms)

      ✓ Searches backwards if cursor line is empty (75ms)

      ✓ Can do vaI (79ms)

    visualstar

      ✓ Works with * (57ms)

      ✓ Works with # (55ms)

    search works in visual mode

      ✓ Works with / (66ms)

      ✓ Works with ? (72ms)

      ✓ Selects correct range (142ms)

    X will delete linewise

      ✓ normal selection (62ms)

      ✓ normal selection (58ms)

    C will delete linewise

      ✓ normal selection (59ms)

      ✓ normal selection (66ms)

    R will delete linewise

      ✓ normal selection (71ms)

      ✓ normal selection (251ms)

    Linewise Registers will be inserted properly

      ✓ downward selection (118ms)

      ✓ upward selection (84ms)

    Indent Tests using > on visual selections

      ✓ multiline indent top down selection (49ms)

      ✓ multiline indent bottom up selection (55ms)

      ✓ repeat multiline indent top down selection (89ms)

      ✓ repeat multiline indent bottom up selection (102ms)

    Outdent Tests using < on visual selections

      ✓ multiline outdent top down selection (61ms)

      ✓ multiline outdent bottom up selection (60ms)

      ✓ repeat multiline outdent top down selection (96ms)

      ✓ repeat multiline outdent bottom up selection (92ms)

    Non-darwin <C-c> tests

      ✓ <C-c> copies and sets mode to normal (129ms)

    vi{ will go to end of second to last line

      ✓ select (75ms)

    Transition between visual mode

      ✓ vv will back to normal mode

      ✓ vV will transit to visual line mode

      ✓ v<C-v> will transit to visual block mode

      ✓ Vv will transit to visual (char) mode

      ✓ VV will back to normal mode

      ✓ V<C-v> will transit to visual block mode

      ✓ <C-v>v will transit to visual (char) mode

      ✓ <C-v>V will back to visual line mode

      ✓ <C-v><C-v> will back to normal mode

    replace text in characterwise visual-mode with characterwise register content

      ✓ gv selects the last pasted text (which is shorter than original) (418ms)

      ✓ gv selects the last pasted text (which is longer than original) (390ms)

      ✓ gv selects the last pasted text (multiline) (199ms)

    can handle gn

      ✓ gn selects the next match text (195ms)

      ✓ gn selects the current word at |hello (200ms)

      ✓ gn selects the current word at h|ello (206ms)

      ✓ gn selects the current word at hel|lo (315ms)

      ✓ gn selects the next word at hell|o (214ms)

      ✓ gn selects the next word at hello| (205ms)

    can prepend text with I

      ✓ multiline insert from bottom up selection (50ms)

      ✓ multiline insert from top down selection (40ms)

      ✓ skips blank lines (54ms)

    can append text with A

      ✓ multiline append from bottom up selection (78ms)

      ✓ multiline append from top down selection (43ms)

      ✓ skips blank lines (105ms)

    Can handle u/gu, U/gU

      ✓ U/gU on single character (64ms)

      ✓ U/gU across a selection (78ms)

      ✓ U/gU across a selection (reverse) (97ms)

      ✓ u/gu on single character (60ms)

      ✓ u/gu across a selection (89ms)

      ✓ u/gu across a selection (reverse) (77ms)

    Can handle ~/g~

      ✓ ~/g~ on single character (109ms)

      ✓ ~/g~ across a selection (106ms)

    C, R, and S

      ✓ 'C' deletes selected lines and puts you into insert mode (55ms)

      ✓ 'C' deletes selected lines and puts you into insert mode (backward selection) (121ms)

      ✓ 'R' deletes selected lines and puts you into insert mode (53ms)

      ✓ 'R' deletes selected lines and puts you into insert mode (backward selection) (57ms)

      ✓ 'S' deletes selected lines and puts you into insert mode (72ms)

      ✓ 'S' deletes selected lines and puts you into insert mode (backward selection) (70ms)

    Visual mode with command editor.action.smartSelect.grow

      ✓ Command editor.action.smartSelect.grow enters visual mode (64ms)

      1) Command editor.action.smartSelect.grow enters visual mode and increases selection

      ✓ Command editor.action.smartSelect.grow enters visual mode on single character (85ms)

      ✓ Command editor.action.smartSelect.grow enters visual mode on multicursors (167ms)

    Visual mode with commands cursorRightSelect, cursorLeftSelect in Insert Mode

      ✓ Command cursorRightSelect enters visual mode (74ms)

      ✓ Command cursorLeftSelect enters visual mode (70ms)

      ✓ Command cursorUpSelect enters visual mode (81ms)

      ✓ Command cursorDownSelect enters visual mode (76ms)

      ✓ Command cursorRightSelect enters visual mode with multi cursors (149ms)

      ✓ Command cursorLeftSelect enters visual mode with multi cursors (240ms)

    Visual mode with commands cursorRightSelect, cursorLeftSelect in Normal Mode

      ✓ Command cursorRightSelect enters visual mode (73ms)

      ✓ Command cursorLeftSelect enters visual mode (76ms)

      ✓ Command cursorUpSelect enters visual mode (78ms)

      ✓ Command cursorDownSelect enters visual mode (70ms)

      ✓ Command cursorRightSelect enters visual mode with multi cursors (129ms)

      ✓ Command cursorLeftSelect enters visual mode with multi cursors (144ms)

  Mode Visual Block

    ✓ can be activated

    ✓ Can handle A forward select (87ms)

    ✓ Can handle A backwards select (79ms)

    ✓ `A` over shorter line adds necessary spaces (83ms)

    ✓ Can handle I forward select (85ms)

    ✓ Can handle I backwards select (80ms)

    ✓ Can handle I with empty lines on first character (inserts on empty line) (62ms)

    ✓ Can handle I with empty lines on non-first character (does not insert on empty line) (171ms)

    ✓ Can handle c forward select (99ms)

    ✓ Can handle c backwards select (68ms)

    ✓ Can handle C (80ms)

    ✓ Can do a multi line replace (81ms)

    ✓ Can handle 'D' (70ms)

    ✓ Can handle 'gj' (77ms)

    ✓ Properly add to end of lines j then $ (73ms)

    ✓ Properly add to end of lines $ then j (72ms)

    ✓ o works in visual block mode (64ms)

    ✓ d deletes block (65ms)

    ✓ x deletes block (91ms)

    ✓ X deletes block (85ms)

    ✓ Select register using " works in visual block mode (86ms)

    ✓ Can handle 'J' when the entire visual block is on the same line (56ms)

    ✓ Can handle 'J' when the visual block spans multiple lines (65ms)

    ✓ Can handle 'J' when start position of the visual block is below the stop (59ms)

    ✓ Can handle 'gJ' when the entire visual block is on the same line (61ms)

    ✓ Can handle 'gJ' when the visual block spans multiple lines (66ms)

    ✓ Can handle 'gJ' when the visual block spans multiple lines and line has whitespaces (70ms)

    ✓ Can handle 'gJ' when start position of the visual block is below the stop (59ms)

    ✓ Can handle ~/g~ in visual block mode (116ms)

    Non-darwin <C-c> tests

      ✓ <C-c> copies and sets mode to normal (191ms)

    R and S

      ✓ 'R' deletes selected lines and puts you into insert mode (65ms)

      ✓ 'R' deletes selected lines and puts you into insert mode (backward selection) (68ms)

      ✓ 'S' deletes selected lines and puts you into insert mode (56ms)

      ✓ 'S' deletes selected lines and puts you into insert mode (backward selection) (69ms)

  Mode Visual Line

    ✓ can be activated

    ✓ <count>V selects <count> lines (250ms)

    ✓ Can handle w (151ms)

    ✓ Can handle wd (130ms)

    ✓ Can handle x (137ms)

    ✓ Can handle x across a selection (134ms)

    ✓ Can do vwd in middle of sentence (173ms)

    ✓ Can do vwd in middle of sentence (175ms)

    ✓ Can do vwd multiple times (217ms)

    ✓ handles case where we go from selecting on right side to selecting on left side (141ms)

    ✓ handles case where we delete over a newline (184ms)

    ✓ handles change operator (128ms)

    ✓ Vp updates register content (78ms)

    ✓ "xVp only updates default register content (123ms)

    ✓ Vp does not append unnecessary newlines (first line) (419ms)

    ✓ Vp does not append unnecessary newlines (middle line) (50ms)

    ✓ Vp does not append unnecessary newlines (last line) (56ms)

    ✓ Vp places the cursor on first non-whitespace character on line (70ms)

    ✓ Exiting via <Esc> returns cursor to original column (282ms)

    ✓ Exiting via `VV` returns cursor to original column (120ms)

    ✓ Can handle 'J' when the selected area spans multiple lines (56ms)

    ✓ Can handle 'gJ' when the entire selected area is on the same line (62ms)

    ✓ Can handle 'gJ' when the selected area spans multiple lines (77ms)

    ✓ Can handle 'gJ' when the selected area spans multiple lines and line has whitespaces (60ms)

    ✓ Can handle 'gJ' when start position of the selected area is below the stop (66ms)

    Vim's EOL handling is weird

      ✓ delete through eol (112ms)

      ✓ join 2 lines by deleting through eol (124ms)

      ✓ d$ doesn't delete whole line (85ms)

      ✓ vd$ does delete whole line (117ms)

    Arrow keys work perfectly in Visual Line Mode

      ✓ Can handle <up> key (63ms)

      ✓ Can handle <down> key (70ms)

    Screen line motions in Visual Line Mode

      ✓ Can handle 'gk' (51ms)

      ✓ Can handle 'gj' (59ms)

    Can handle d/c correctly in Visual Line Mode

      ✓ Can handle d key (77ms)

      ✓ Can handle d key (60ms)

      ✓ Can handle d key (68ms)

      ✓ Can handle d key (66ms)

      ✓ can handle 'c' (56ms)

    handles replace in visual line mode

      ✓ Can do a single line replace (61ms)

      ✓ Can do a multi visual line replace (62ms)

      ✓ Can do a multi visual line replace from the bottom up (63ms)

    search works in visual line mode

      ✓ Works with / (68ms)

      ✓ Works with ? (93ms)

    Non-darwin <C-c> tests

      ✓ <C-c> copies and sets mode to normal (158ms)

    replace text in linewise visual-mode with linewise register content

      ✓ yyVp does not change the content but changes cursor position (64ms)

      ✓ linewise visual put works also in the end of document (67ms)

      ✓ gv selects the last pasted text (which is shorter than original) (426ms)

      ✓ gv selects the last pasted text (which is longer than original) (431ms)

      ✓ gv selects the last pasted text (multiline) (230ms)

    can prepend text with I

      ✓ multiline insert from bottom up selection (53ms)

      ✓ multiline insert from top down selection (59ms)

      ✓ skips blank lines (59ms)

    can append text with A

      ✓ multiline append from bottom up selection (57ms)

      ✓ multiline append from top down selection (56ms)

      ✓ skips blank lines (62ms)

      ✓ updates desired column correctly (66ms)

    Can handle ~/g~ in visual line mode

      ✓ ~/g~ on single line (86ms)

      ✓ ~/g~ on multiple lines (87ms)

    C, R, and S

      ✓ 'C' deletes selected lines and puts you into insert mode (49ms)

      ✓ 'C' deletes selected lines and puts you into insert mode (backward selection) (65ms)

      ✓ 'R' deletes selected lines and puts you into insert mode (64ms)

      ✓ 'R' deletes selected lines and puts you into insert mode (backward selection) (53ms)

      ✓ 'S' deletes selected lines and puts you into insert mode (60ms)

      ✓ 'S' deletes selected lines and puts you into insert mode (backward selection) (82ms)

  Mode Normal

    ✓ Can handle 'x'

    ✓ Can handle 'Nx' (39ms)

    ✓ Can handle 'Nx' and paste (58ms)

    ✓ Can handle 'x' at end of line (95ms)

    ✓ 'x' with count does not go over EOL (40ms)

    ✓ Can handle 'Ns' (47ms)

    ✓ Can handle 'Ns' at end of line (46ms)

    ✓ Can handle '<Del>' (39ms)

    ✓ Can handle '<Del>' with counts, which removes the last character of the count (39ms)

    ✓ Can handle '<Del>' at end of line (87ms)

    ✓ Can handle 'cc' (52ms)

    ✓ Can handle 'Ncc' (76ms)

    ✓ Can handle 'yy' (57ms)

    ✓ Can handle 'D' (45ms)

    ✓ Can handle 'D' on empty lines (101ms)

    ✓ Can handle 'D' with count 1 (39ms)

    ✓ Can handle 'D' with count 3 (53ms)

    ✓ Can handle 'D' with count exceeding max number of rows

    ✓ Can handle 'D' with count when end position is on blank line

    ✓ Can handle 'DD' (47ms)

    ✓ Can handle 'C' (47ms)

    ✓ Can handle 'NC' (55ms)

    ✓ Can handle 'NC' and put (52ms)

    ✓ Can handle 'r' (42ms)

    ✓ Can handle '<Count>r' (58ms)

    ✓ Can handle '<Count>r' (38ms)

    ✓ Can handle 'r' after 'dd' (72ms)

    ✓ Can handle 'r
' (52ms)

    ✓ Can handle '<Count>r
' (55ms)

    ✓ Can handle 'J' once

    ✓ Can handle 'J' twice (65ms)

    ✓ Can handle 'J' with empty last line (41ms)

    ✓ Can handle 'J's with multiple empty last lines (97ms)

    ✓ Can handle 'J' with leading white space on next line (39ms)

    ✓ Can handle 'J' with only white space on next line

    ✓ Can handle 'J' with TWO indented lines (51ms)

    ✓ Can handle 'J' with ')' first character on next line (43ms)

    ✓ Can handle 'J' with a following delete (58ms)

    ✓ Can handle 'J' with count (42ms)

    ✓ Can handle 'J' with count if count is larger than EOF (72ms)

    ✓ Can handle 'J' in Visual Line mode (52ms)

    ✓ Can handle 'gJ' once (63ms)

    ✓ Can handle 'gJ' once when line has whitespaces

    ✓ Can handle 'gJ' with count

    ✓ Can handle 'gJ' with count when line has whitespaces (43ms)

    ✓ Can handle 'gJ' with count and end position is blank line (42ms)

    ✓ Can handle 'gJ' with count exceeding max number of rows (55ms)

    ✓ Can handle '~' (47ms)

    ✓ Can handle 'g~{motion}' (44ms)

    ✓ Can handle 'g~~' (46ms)

    ✓ Can handle '<BS>' in insert mode (49ms)

    ✓ Can handle undo with P (109ms)

    ✓ Can handle 'ge' in multiple lines case1

    ✓ Can handle 'ge' in multiple lines case2 (46ms)

  Dot Operator

    ✓ Can repeat '~' with <num> (66ms)

    ✓ Can repeat '~' with dot (79ms)

    ✓ Can repeat 'x'

    ✓ Can repeat 'J' (41ms)

    ✓ Can handle dot with A (128ms)

    ✓ Can handle dot with I (81ms)

    ✓ Can repeat actions that require selections (92ms)

  Repeat content change

    ✓ Can repeat '<C-t>' (88ms)

    ✓ Can repeat insert change and '<C-t>' (89ms)

    ✓ Can repeat change by `<C-a>` (99ms)

    ✓ Only one arrow key can be repeated in Insert Mode (113ms)

    ✓ Cached content change will be cleared by arrow keys (95ms)

  Dot Operator repeat with remap

    ✓ Can repeat content change using 'jjk' mapped to '<Esc>' without trailing characters (105ms)

    ✓ Can repeat '<leader>w' when mapped to 'dw' (45ms)

  Matching Bracket (%)

    ✓ before opening parenthesis (44ms)

    ✓ inside parenthesis

    ✓ nested parenthesis beginning (40ms)

    ✓ nested parenthesis end (42ms)

    ✓ nested bracket and parenthesis beginning

    ✓ nested bracket, parenthesis, braces beginning (112ms)

    ✓ nested bracket, parenthesis, braces end (73ms)

    ✓ parentheses after >

    ✓ parentheses after " (53ms)

  Motions in Normal Mode

    ✓ Can handle [( (60ms)

    ✓ Can handle nested [( (45ms)

    ✓ Can handle <number>[(

    ✓ Can handle [( and character under cursor exclusive (59ms)

    ✓ Can handle ])

    ✓ Can handle nested ])

    ✓ Can handle <number>])

    ✓ Can handle ]) and character under cursor exclusive

    ✓ Can handle [{ (50ms)

    ✓ Can handle nested [{ (43ms)

    ✓ Can handle <number>[{ (45ms)

    ✓ Can handle [{ and character under cursor exclusive

    ✓ Can handle ]} (44ms)

    ✓ Can handle nested ]}

    ✓ Can handle <number>]} (41ms)

    ✓ Can handle ]} and character under cursor exclusive

    ✓ Can handle 'ge' (101ms)

    ✓ Can handle 'gg' (45ms)

    ✓ Can handle 'gg' to first non blank char on random line (54ms)

    ✓ Can handle 'gg' to first non blank char on first line

    ✓ 'gg' obeys startofline

    ✓ Retain same column when moving up/down (61ms)

    ✓ Can handle <enter> (44ms)

    ✓ $ always keeps cursor on EOL (44ms)

    ✓ Can handle $ with a count

    ✓ Can handle $ with a count at end of file

    ✓ Can handle <End> with a count

    ✓ Can handle <D-right> with a count

    ✓ Can handle 'f' (44ms)

    ✓ Can handle 'f' twice (51ms)

    ✓ Can handle 'f' with <tab>

    ✓ Can handle 'f' and find back search (55ms)

    ✓ Can handle 'F'

    ✓ Can handle 'F' twice (46ms)

    ✓ Can handle 'F' and find back search (38ms)

    ✓ Can handle 'f' and multiple back searches (43ms)

    ✓ Can handle 't'

    ✓ Can handle 't' twice (40ms)

    ✓ Can handle 't' and find back search

    ✓ Can handle 'T' (46ms)

    ✓ Can handle 'T' twice (65ms)

    ✓ Can handle 'T' and find back search

    ✓ Can run a forward search (38ms)

    ✓ Can run a forward and find next search (41ms)

    ✓ Can run a forward and find previous search from end of word (43ms)

    ✓ Can run a forward search with count 1 (43ms)

    ✓ Can run a forward search with count 3 (49ms)

    ✓ Can run a forward search with count exceeding max number of matches (92ms)

    ✓ Can run a reverse search (55ms)

    ✓ Can run a reverse and find next search (51ms)

    ✓ Can run a reverse search with count 1 (80ms)

    ✓ Can run a reverse search with count 3 (81ms)

    ✓ Can run a reverse search with count exceeding max number of matches (60ms)

    ✓ cancelled search reverts to previous search state (76ms)

    ✓ Backspace on empty search cancels (51ms)

    ✓ Search offsets: b does nothing (415ms)

    ✓ Search offsets: b2 goes 2 to the right (39ms)

    ✓ Search offsets: b+3 goes 3 to the right (56ms)

    ✓ Search offsets: e goes to the end (63ms)

    ✓ Search offsets: character offset goes across line boundaries (55ms)

    ✓ Search offsets: 2 goes 2 down (47ms)

    ✓ Search offsets: -2 goes 2 up (49ms)

    ✓ maintains column position correctly

    ✓ maintains column position correctly with $

    ✓ Can handle G 

    ✓ Can handle G with number prefix

    ✓ Can handle G with number prefix

    ✓ Can handle gg (65ms)

    ✓ Can handle gg with number prefix

    ✓ Can handle 0 (43ms)

    ✓ Can handle 0 as part of a repeat

    ✓ Can handle g*

    ✓ Can handle g*n

    ✓ Can handle *

    ✓ Can handle **

    ✓ * ignores smartcase (ignorecase=true) (69ms)

    ✓ * ignores smartcase (ignorecase=false)

    ✓ * skips over word separators

    ✓ * uses word separator if no word characters found before EOL (45ms)

    ✓ * does not go over line boundaries (44ms)

    ✓ Can handle # on whitespace (49ms)

    ✓ Can handle # on EOL

    ✓ Can handle g# (43ms)

    ✓ Can handle g#n (38ms)

    ✓ Can handle # (38ms)

    ✓ Can handle # already on the word

    ✓ Can handle ## (58ms)

    ✓ * adds to search history (81ms)

    ✓ # adds to search history (89ms)

    ✓ Can handle | (81ms)

    ✓ Can handle <number> | (112ms)

    ✓ Can handle + (65ms)

    ✓ Can handle + indent

    ✓ Can handle + with count prefix (60ms)

    ✓ Can handle -

    ✓ Can handle - indent

    ✓ Can handle - with count prefix

    ✓ Can handle _

    ✓ Can handle _ with count prefix (40ms)

    ✓ Can handle g_

    ✓ Can handle g_ with count prefix (40ms)

    ✓ Can handle <up> key

    ✓ Can handle <down> key (64ms)

    ✓ Can handle <left> key (47ms)

    ✓ Can handle <right> key

    ✓ Can handle 'gk' (55ms)

    ✓ Can handle 'gj'

    - Preserves cursor position when handling 'gk'

    - Preserves cursor position when handling 'gj'

    doesn't update desiredColumn when it shouldn't

      ✓ Preserves desired cursor position when pressing zz (88ms)

      ✓ Preserves desired cursor position when pressing zt (90ms)

      ✓ Preserves desired cursor position when pressing zb (64ms)

      ✓ Preserves desired cursor position when pressing <C-e> (98ms)

      ✓ Preserves desired cursor position when pressing <C-y> (101ms)

  basic motion

    ✓ char right: should move one column right

    ✓ char right

    ✓ char left: should move cursor one column left

    ✓ char left: left-most column should stay at the same location

    ✓ line down: should move cursor one line down

    ✓ line down: bottom-most line should stay at the same location

    ✓ line begin

    ✓ line end

    ✓ document begin

    ✓ document end

    ✓ line begin cursor on first non-blank character

    ✓ last line begin cursor on first non-blank character

    line up

      ✓ should move cursor one line up

      ✓ top-most line should stay at the same location

  word motion

    ✓ line begin cursor on first non-blank character

    ✓ last line begin cursor on first non-blank character

    word right

      ✓ move to word right

      ✓ last word should move to next line

      ✓ last word should move to next line stops on empty line

      ✓ last word should move to next line skips whitespace only line

      ✓ last word on last line should go to end of document (special case!)

    word left

      ✓ move cursor word left across spaces

      ✓ move cursor word left within word

      ✓ first word should move to previous line, beginning of last word

      ✓ first word should move to previous line, stops on empty line

      ✓ first word should move to previous line, skips whitespace only line

    WORD right

      ✓ move to WORD right

      ✓ last WORD should move to next line

      ✓ last WORD should move to next line stops on empty line
      ✓ last WORD should move to next line skips whitespace only line
    WORD left
      ✓ move cursor WORD left across spaces
      ✓ move cursor WORD left within WORD
      ✓ first WORD should move to previous line, beginning of last WORD

      ✓ first WORD should move to previous line, stops on empty line
      ✓ first WORD should move to previous line, skips whitespace only line

    end of word right

      ✓ move to end of current word right

      ✓ move to end of next word right

      ✓ end of last word should move to next line

      ✓ end of last word should move to next line skips empty line

      ✓ end of last word should move to next line skips whitespace only line

    end of WORD right

      ✓ move to end of current WORD right

      ✓ move to end of next WORD right

      ✓ end of last WORD should move to next line

      ✓ end of last WORD should move to next line skips empty line

      ✓ end of last WORD should move to next line skips whitespace only line

  unicode word motion

    word right

      ✓ move cursor word right stops at different kind of character (ideograph -> hiragana)

      ✓ move cursor word right stops at different kind of character (katakana -> ascii)

      ✓ move cursor word right stops at different kind of chararacter (ascii -> punctuation)

      ✓ move cursor word right on non-ascii text

      ✓ move cursor word right recognizes a latin string which has diacritics as a single word

      ✓ move cursor word right recognizes a latin-1 symbol as punctuation

      ✓ move cursor word right recognizes a sequence of latin-1 symbols and other symbols as a word

    word left

      ✓ move cursor word left across the different char kind
      ✓ move cursor word left within the same char kind

      ✓ move cursor word left across spaces on non-ascii text

      ✓ move cursor word left within word on non-ascii text

      ✓ move cursor word left recognizes a latin string which has diacritics as a single word

  sentence motion

    sentence forward

      ✓ next concrete sentence

      ✓ next sentence that ends with paragraph ending

      ✓ next sentence when cursor is at the end of previous paragraph

      ✓ next sentence when paragraph contains a line of whilte spaces

    sentence backward

      ✓ current sentence begin

      ✓ sentence forward when cursor is at the beginning of the second sentence

      ✓ current sentence begin with no concrete sentense inside

      ✓ current sentence begin when it's not the same as current paragraph begin

      ✓ current sentence begin when previous line ends with a concrete sentence

  paragraph motion

    paragraph down

      ✓ move down normally

      ✓ move down longer paragraph

      ✓ move down starting inside empty line

      ✓ paragraph at end of document

    paragraph up

      ✓ move up short paragraph

      ✓ move up longer paragraph

      ✓ move up starting inside empty line

  motion line wrapping

    whichwrap enabled
      normal mode

        ✓ h wraps to previous line

        ✓ l wraps to next line (40ms)

        ✓ <left> wraps to previous line

        ✓ <right> wraps to next line

      insert mode

        ✓ <left> wraps to previous line (38ms)

        ✓ <right> once goes to end of line (78ms)

        ✓ <right> twice wraps to next line (54ms)

    whichwrap disabled

      normal mode

        ✓ h does not wrap to previous line (42ms)

        ✓ l does not wrap to next line

        ✓ <left> does not wrap to previous line

        ✓ <right> does not wrap to next line

      insert mode

        ✓ <left> does not wrap to previous line

        ✓ <right> does not wrap to next line (41ms)

    wrapscan enabled

      ✓ search wraps around the end of the file (41ms)

      ✓ search wraps around the start of the file (70ms)

    wrapscan disabled

      ✓ search stops at the end of the file (40ms)

      ✓ search stops at the start of the file (88ms)

  Multicursor

    ✓ can add multiple cursors below (117ms)

    ✓ can add multiple cursors above (123ms)

    ✓ viwd with multicursors deletes the words and keeps the cursors (355ms)

    ✓ vibd with multicursors deletes the content between brackets and keeps the cursors (456ms)

    ✓ vi[d with multicursors deletes the content between brackets and keeps the cursors (454ms)

    ✓ vitd with multicursors deletes the content between tags and keeps the cursors (394ms)

  Multicursor with remaps

    ✓ Using 'jjk' mapped to '<Esc>' doesn't leave trailing characters (152ms)

  numeric string

    ✓ fails on non-string

    ✓ handles hex round trip
    ✓ handles decimal round trip
    ✓ handles octal trip
  comment operator

    ✓ gcc comments out current line (289ms)

    ✓ gcj comments in current and next line (162ms)

    ✓ block comment with motion (443ms)

    ✓ block comment in Visual Mode (188ms)

    ✓ comment in visual line mode (97ms)

    ✓ comment in visual block mode (72ms)

  filter operator

    ✓ !! with no count (128ms)

    ✓ !! with whitespace moves cursor to first non-whitespace character (110ms)

    ✓ !! with count (94ms)

    ✓ !{forwards motion}{filter} (108ms)

    ✓ !{backwards motion}{filter} (152ms)

    ✓ v!{filter} (231ms)

    ✓ V!{filter} (137ms)

    ✓ <Ctrl-v>!{filter} (157ms)

  format operator

    ✓ == formats current line (466ms)

    ✓ =$ formats entire line (208ms)

    ✓ =j formats two lines (56ms)

    ✓ 3=k formats three lines (69ms)

    ✓ =gg formats to top of file (98ms)

    ✓ =G formats to bottom of file (85ms)

    ✓ =ip formats paragraph (86ms)

    ✓ format in visual mode (95ms)

  put operator

    ✓ basic put test (323ms)

    ✓ test yy end of line (77ms)

    ✓ test yy first line (42ms)

    ✓ test yy middle line (79ms)

    ✓ test yy with correct positon movement (68ms)

    ✓ test visual block single line yank p (64ms)

    ✓ test visual block single line yank P (95ms)

    ✓ test visual block single line delete p (113ms)

    ✓ test visual block single line delete P (74ms)

  rot13 operator

    ✓ rot13() unit test

    ✓ g?j works

    ✓ g? in visual mode works (84ms)

    ✓ g? in visual line mode works (52ms)

    ✓ g? in visual block mode works (45ms)

  shift operator

    ✓ basic shift left test (76ms)

    ✓ shift left goto end test

    ✓ shift left goto line test (64ms)

    ✓ shift right goto end test

    ✓ shift right goto line test

  camelCaseMotion plugin if not enabled

    ✓ basic motion doesn't work (68ms)

  camelCaseMotion plugin
    handles <leader>w for camelCaseText

      ✓ step over whitespace

      ✓ step to Camel word

      ✓ step to CAP word (50ms)

      ✓ step after CAP word (100ms)

      ✓ step from middle of word to Camel word (71ms)

      ✓ step to number word (44ms)

      ✓ step to operator word (102ms)

      ✓ step from inside operator word (80ms)

      ✓ step to operator and then over

    handles <leader>w for underscore_var

      ✓ step to _word (72ms)

      ✓ step over whitespace to word

      ✓ step from inside word to _word (39ms)

      ✓ step form _word to number

      ✓ step from nubmer word to _word

      ✓ step from in whitespace to word (38ms)

      ✓ step in ALL_CAPS_WORD (62ms)

    handles d<leader>w

      ✓ delete from start of camelWord (92ms)

      ✓ delete from middle of camelWord (73ms)

      ✓ delete from start of CamelWord (80ms)

      ✓ delete two words from camelWord

      ✓ delete from start of underscore_word (65ms)

      ✓ delete from middle of underscore_word (77ms)

      ✓ delete two words from camel_word (45ms)

    handles di<leader>w

      ✓ delete from start of camelWord (65ms)

      ✓ delete from middle of camelWord (66ms)

      ✓ delete from start of CamelWord (86ms)

      ✓ delete two words from camelWord (82ms)

      ✓ delete from start of underscore_word (75ms)

      ✓ delete from middle of underscore_word (40ms)

      ✓ delete two words from camel_word (70ms)

    handles <leader>b

      ✓ back from middle of word (46ms)

      ✓ back over whitespace to camelWord (40ms)

      ✓ back twice over operator (47ms)

    handles <leader>e

      ✓ from start to middle of underscore_word (66ms)

      ✓ from middle to end of underscore_word (45ms)

      ✓ twice to end of word over operator (59ms)

  easymotion plugin

    ✓ Can handle s move (95ms)

    ✓ Can handle 2s move (84ms)

    ✓ Can handle f move (449ms)

    ✓ Can handle 2f move (124ms)

    ✓ Can handle F move (87ms)

    ✓ Can handle 2F move (92ms)

    ✓ Can handle t move (109ms)

    ✓ Can handle bd-t move (109ms)

    ✓ Can handle 2t move (115ms)

    ✓ Can handle bd-t2 move (96ms)

    ✓ Can handle T move (68ms)

    ✓ Can handle 2T move (128ms)

    ✓ Can handle w move (47ms)

    ✓ Can handle bd-w move (83ms)

    ✓ Can handle b move (68ms)

    ✓ Can handle e move (90ms)

    ✓ Can handle bd-e move (112ms)

    ✓ Can handle ge move (74ms)

    ✓ Can handle n-char move (123ms)

    ✓ Can handle j move (107ms)

    ✓ Can handle k move (83ms)

    ✓ Can handle bd-jk move (1) (65ms)

    ✓ Can handle bd-jk move (2) (67ms)

    ✓ Can handle lineforward move (1) (81ms)

    ✓ Can handle lineforward move (2) (99ms)

    ✓ Can handle linebackward move (1) (94ms)

    ✓ Can handle linebackward move (2) (79ms)

    ✓ Can handle searching for backslash (\) (75ms)

    ✓ Can handle searching for carat (^) (59ms)

    ✓ Can handle searching for dot (.) (90ms)

  Input method plugin

    ✓ use default im in insert mode

    ✓ use other im in insert mode

  replaceWithRegister plugin

    ✓ Replaces within inner word (81ms)

    ✓ Replaces within inner Word (55ms)

    ✓ Replaces within '' (64ms)

    ✓ Replaces within '' including spaces (93ms)

    ✓ Replaces within () (54ms)

    ✓ Replaces within () including spaces (98ms)

    ✓ Replaces within a paragraph (82ms)

    ✓ Replaces using a specified register (109ms)

    ✓ Replaces within {} over multiple lines (68ms)

    ✓ Replaces a multiline register within {} over multiple lines (94ms)

    ✓ Replaces a multiline register within {} over multiple lines (94ms)

    ✓ Yanking inside {} then replacing inside {} in a noop, besides the cursor movement (91ms)

    ✓ grr replaces the entire line with the register (59ms)

    ✓ grr can replace multiple lines (97ms)

    ✓ Replaces in visual mode (95ms)

    ✓ Replaces in visual mode using a specified register (92ms)

    ✓ Replaces in visual line mode (73ms)

    ✓ grj is linewise (96ms)

  sneak plugin

    ✓ Can handle s motion (47ms)

    ✓ Can handle S motion (75ms)

    ✓ Can handle <operator>z motion (50ms)

    ✓ Can handle <operator>Z motion (102ms)

    ✓ Can handle s; motion (148ms)

    ✓ Can handle s, motion (44ms)

    ✓ Can handle S; motion (90ms)

    ✓ Can handle S, motion (46ms)

    ✓ Can handle single letter s motion (49ms)

    ✓ Can handle single letter S motion (56ms)

    ✓ Can handle single letter <operator>z motion (49ms)

    ✓ Can handle single letter <operator>Z motion (410ms)

    ✓ Can handle single letter s; motion (228ms)

    ✓ Can handle single letter s, motion (72ms)

    ✓ Can handle single letter S; motion (47ms)

    ✓ Can handle single letter S, motion (48ms)

    ✓ Can handle multiline single char <number>s motion (76ms)

    ✓ Can go back using <C-o> once when going forward (53ms)

    ✓ Can go back using <C-o> once when going backward (58ms)

    ✓ Can go back using <C-o> when repeating forward movement (77ms)

    ✓ Can go back using <C-o> when repeating backward movement (46ms)

  sneakReplacesF

    ✓ sneakReplacesF forward (43ms)

    ✓ sneakReplacesF backward

  surround plugin

    ✓ 'ysiw)' surrounds word without space (94ms)

    ✓ 'ysiw(' surrounds word with space (113ms)

    ✓ 'ysw)' surrounds word without space (112ms)

    ✓ 'ysw(' surrounds word with space (73ms)

    ✓ 'ysaw)' surrounds word without space (112ms)

    ✓ 'ysaw(' surrounds word with space (82ms)

    ✓ 'ysiw(' surrounds word with space and ignores punctuation (117ms)

    ✓ 'ysiw<' surrounds word with tags (78ms)

    ✓ 'ysiw<' surrounds word with tags and attributes (125ms)

    ✓ 'cst<' surrounds word with tags that have a dot in them (121ms)

    ✓ 'yss)' surrounds entire line respecting whitespace (125ms)

    ✓ change surround (175ms)

    ✓ change surround with two pairs of quotes (89ms)

    ✓ change surround with two pairs of parens (99ms)

    ✓ change surround with alias (111ms)

    ✓ 'ysiwb' surrounds word with alias without space (85ms)

    ✓ 'ysiwB' surrounds word with alias without space (124ms)

    ✓ 'ysiwr' surrounds word with alias without space (119ms)

    ✓ 'ysiwa' surrounds word with alias without space (78ms)

    ✓ change surround to tags (117ms)

    ✓ delete surround (95ms)

    ✓ delete surround with quotes (119ms)

    ✓ delete surround with nested of quotes (208ms)

    ✓ delete surround with inconsistent quotes (127ms)

    ✓ delete surround with mixed quotes (114ms)

    ✓ delete surround with empty quotes cursor at start (43ms)

    ✓ delete surround with empty quotes cursor at end (67ms)

    ✓ don't delete surround if cursor is after closing match (186ms)

    ✓ delete surround if cursor is before opening match (159ms)

    ✓ delete surround with two pairs of parens (79ms)

    ✓ delete surround with alias (58ms)

    ✓ delete surround with tags (118ms)

    ✓ change surround brackets at end of line (135ms)

    ✓ changing brackets with surround works again (158ms)

    ✓ change surround with tags that contain an attribute and preserve them (264ms)

    ✓ change surround with tags that contain an attribute and remove them (225ms)

    ✓ performing surround after cancelling surround action with <Esc> does not move the cursor (153ms)

    ✓ 'S)' surrounds visual selection without space (166ms)

    ✓ 'S(' surrounds visual selection with space (182ms)

    ✓ 'S<div>' surrounds selection with <div></div> (155ms)

    ✓ 'S)' surrounds visual line selection without space (105ms)

    ✓ 'S(' surrounds visual line selection with space (424ms)

    ✓ 'S<div>' surrounds visual line selection with <div></div> (247ms)

  register

    ✓ Can copy to a register (71ms)

    ✓ Can use two registers together (112ms)

    ✓ Can use black hole register (108ms)

    ✓ System clipboard works with chinese characters (64ms)

    ✓ Yank stores text in Register '0' (265ms)

    ✓ Multiline yank (`[count]yy`) stores text in Register '0' (207ms)

    ✓ Multiline yank (`[count]Y`) stores text in Register '0' (225ms)

    ✓ Register '1'-'9' stores delete content (349ms)

    ✓ "A appends linewise text to "a (320ms)

    ✓ "A appends character wise text to "a (251ms)

    ✓ Can put and get to register

    ✓ Small deletion using x is stored in small delete register (254ms)

    ✓ Small deletion using Del is stored in small delete register (243ms)

    ✓ Small deletion using X is stored in small delete register (271ms)

    ✓ Search register (/) is set by forward search (529ms)

    ✓ Search register (/) is set by backward search (424ms)

    ✓ Search register (/) is set by star search (345ms)

    ✓ Command register (:) is set by command line (79ms)

    ✓ Read-only registers cannot be written to (258ms)

    clipboard

      ✓ Can access '*' (clipboard) register (73ms)

      ✓ Can access '+' (clipboard) register (45ms)

  Repeatable movements with f and t

    ✓ Can repeat f<character>

    ✓ Can repeat reversed F<character> (46ms)

    ✓ Can repeat t<character> (55ms)

    ✓ Can repeat N times reversed t<character>

  sentence motion

    [count] sentences backward

      ✓ move one sentence backward (46ms)

      ✓ move one sentence backward (66ms)

      ✓ move [count] sentences backward (85ms)

      ✓ move one sentence backward single line - middle (47ms)

      ✓ move one sentence backward no space (50ms)

      ✓ move one sentence backward no space - middle (49ms)

      ✓ move one sentence backward - multiline (58ms)

      ✓ move one sentence backward - multiline - period (42ms)

      ✓ move one sentence backward - multiline - previous line (48ms)

      ✓ move one sentence backward - multiline - previous line - period

  VimState

    ✓ de-dupes cursors

    ✓ cursorStart/cursorStop should be first cursor in cursors

  text editor

    ✓ insert 'Hello World'

    ✓ replace 'World' with 'Foo Bar'

    ✓ delete `Hello`

    ✓ delete the whole line

    ✓ try to read lines that don't exist

  util path
    separatePath

      ✓ can separate drive letter path on Windows

      ✓ can separate UNC path on Windows
      ✓ can separate relative path on Windows
      ✓ can separate absolute path on posix

      ✓ can separate relative path on posix

    resolveUri

      ✓ posix

      ✓ win32

  1593 passing (5m)
  4 pending

  1 failing
  1) Mode Visual
       Visual mode with command editor.action.smartSelect.grow
         Command editor.action.smartSelect.grow enters visual mode and increases selection:

      Document content does not match.
      + expected - actual

       "vim.normalModeKeyBindingsNonRecursive": [
         {
      -    "": ["j"],
      +    
           "after": ["g", "j"],
         },
       ]
      
  	at newTest (out/test/testSimplifier.js:47:34)


Error: 1 tests failed.

Error: 1 tests failed.

Exit code:   1
Done

Failed
Failed to run tests
npm ERR! Test failed.  See above for more details.
TravisBuddy Request Identifier: 1aeb7e20-ca40-11ea-84bb-258f0278865c

@J-Fields
Copy link
Member

@berknam Could you resolve the conflicts when you have a chance?

- Selection change events not triggered by us of type 'Keyboard' will
now enter visual mode (if they are not empty selections).
- This allows entering visual mode with shift+arrowKeys or shift+end,
shift+home.
@berknam
Copy link
Contributor Author

berknam commented Jul 25, 2020

I had to rebase this correctly. Since github uses the squash and merge it no longer recognizes the previous commits. So I had to rebase it to master. But should be good now.

J-Fields and others added 2 commits July 25, 2020 14:21
- When selecting with shift to the left or up and then performing a
normal movent would result in the anchor moving to the right.
- This wasn't happening on multicursor because I had the selection
changing properly and was ignoring any intermediate selections
- Changed these situations to instead of changing the selection with the
ignore selection change flag, it calls the updateView and lets it draw the
selection which means that any resulting selection change event will be
properly ignored.
@berknam
Copy link
Contributor Author

berknam commented Jul 26, 2020

There was a bug when shift selecting to left/up and then making other movement without shift that I've now fixed. I had previously fixed it and then commented that out because the way I fixed it was by using the ignoreIntermediateSelections flag, which I didn't like much. Now I'm calling the updateView function letting it draw the selection. This way any resulting selection change will be properly ignored. I think it is a better way to deal with that.
I've also added tests for this situation, including multicursor tests.

@stevenguh
Copy link
Contributor

stevenguh commented Jul 26, 2020

I maintain the VSpaceCdoe extension which tries to mimic spacemacs experience in vscode. The extension has a binding to call smart selection grow with a key binding of <spc> v. With #5015, it fixes the issue with visual mode when using smart grow selection that's called by the extension, however, it seems to have a regression with the change in this PR.

Screen Recording

The bug doesn't occur when it is triggered by vscode shortcut directly. Is there any way I can help debug this?

@berknam
Copy link
Contributor Author

berknam commented Jul 26, 2020

@stevenguh Have you tried it with the latest version from this PR? Because I tried using the same remap just now and it works fine. There was a bug that I fixed on the last commit that might have been creating the issue you're seeing.

Also you can look at the developer tools console that should show some debug info related to the selections. If you can't figure it out, just post it here and I can have a look.

@stevenguh
Copy link
Contributor

stevenguh commented Jul 27, 2020

I think I figured it out. This is because this PR changed to

Vim/src/mode/modeHandler.ts

Lines 242 to 245 in 10701cf

// Here we need our updateView to draw the selection because we want vscode to include the initial
// character, and by doing it through out updateView we make sure that any resultant selection
// change event will be ignored.
await this.updateView(this.vimState);

from

await this.updateView(this.vimState, { drawSelection: false, revealRange: false });

The issue is more involved. VSpaceCode is a command that binds to vim.normalModeKeyBindingsNonRecursive and vim.visualModeKeyBindingsNonRecursive. The command return a Promise which awaits until the QuickPick menu exists. Because the command is executed by vim's key bindings, vim will "freeze" until the QuickPick menu from VSpaceCode exits. Therefore, all the commands like smart select grow executed in VSpaceCode's QuickPick menu are not reflected until the menu exits. When the menu exits, the selection operations are send to Vim to handle.

One fix I can do on my side is to not return a promise, so vim is not blocked because of keybinding execution.

@berknam
Copy link
Contributor Author

berknam commented Jul 27, 2020

That change doesn't seem to be the issue. I've tested this with your extension and that part of the code is never hit until you exit the QuickPick menu. The selection change events are being enqueued but they are not called until you exit the quickpick menu.

I've tested with the code from PR #5015 and the behavior from that PR and this PR are the same for me.

@stevenguh
Copy link
Contributor

stevenguh commented Jul 27, 2020

That's super weird. Changing that line definitely fixed it for me, and I am on 10701cf.

My steps to reproduce are

  1. <spc> v to do smart grow
  2. v to grow again
  3. esc
    EXPECTED: the correct highlighting
    ACTUAL: the first selection is highlighted

This is a highlighting problem for me, any operation after that will result in correct highlighting like moving the cursor to the left h or yanking y.

@berknam
Copy link
Contributor Author

berknam commented Jul 27, 2020

I see the problem. When creating the visual selection we need to change vscode selection so we need to call that line allowing the draw selection so that we ignore any resulting selection change events properly. Then when updating the selection since we are not changing it there was no need to call the updateView with draw selection. But in your case, all the events are coming at the end all in row, so what happens is we create the visual selection and change the vscode selection to the one we want (the initial selection) then on the following events we update our selection but don't change the vscode selection leaving it at the initial one. All we need to do is update vscode selection when updating our selection as well.

I'll push a fix for that in a moment.

berknam and others added 2 commits July 27, 2020 11:05
- We were not changin the vscode selection when we got a selection change
that updated an existing visual selection because vscode would have that
selection already, but when using the extension VSpaceCode we would get
all the events in a row at the end, meaning that the first event that
created the visual selection would change the vscode selection (to the
initial one) but the following events would not change it again which
would result in the final selection not being correct.
- Now we update vscode selection when updating the visual selection as
well.
@berknam
Copy link
Contributor Author

berknam commented Jul 27, 2020

@stevenguh That should be fixed now. At least the correct selection is shown after you exit the QuickPick menu, but you should probably not block until the user exits the QuickPick menu. Why do you need to await that promise?

@stevenguh
Copy link
Contributor

stevenguh commented Jul 27, 2020

That makes sense. Thank you for looking into this. I will update the extension later today so it's not blocking.

EDIT: The extension (vscode-which-key) which hosts the command VSpaceCdoe calls to create the QuickPick menu is updated to v0.7.4 so the menu is not blocking

@berknam
Copy link
Contributor Author

berknam commented Jul 29, 2020

That makes sense. Thank you for looking into this. I will update the extension later today so it's not blocking.

EDIT: The extension (vscode-which-key) which hosts the command VSpaceCdoe calls to create the QuickPick menu is updated to v0.7.4 so the menu is not blocking

Nice. That looks better.

@stevenguh By the way just a suggestion, but if you want the selection to look better (currently in some themes the inactive selection is barely noticeable) you can try to change the setting "editor.inactiveSelectionBackground" from "workbench.colorCustomizations" to ThemeColor('editor.selectionBackground') when opening the QuickPick menu and then change it back to whatever the user had it set or undefined if it wasn't set when closing the QuickPick menu. I haven't tested this but it should work.

@stevenguh
Copy link
Contributor

Thank you for the suggestion. I created an issue in vscode-which-key to track the work 👍 so we don't distract the convo in this PR.

@J-Fields J-Fields removed this from the 1.16.1 milestone Sep 21, 2020
@stevenguh
Copy link
Contributor

stevenguh commented Sep 30, 2020

Sorry to piggyback on this. With the latest vim update, the smart select from normal to visual mode works sometimes, and doesn't work robustly. I am wondering is this what we needed to have a robust smart selection to visual mode? Or should I be opening a new bug to track that.

EDIT: Never mind, #5250 seems to fix this issue I am experiencing. This is somewhat weird that this is happening with C# file with the official C# extension.

Rough repo:

  1. Open a C# file
  2. Smart select from normal to visual mode still works at this point
  3. Type something to trigger an error in syntax
  4. Back to normal mode
  5. Smart select failed to select in visual mode

@berknam
Copy link
Contributor Author

berknam commented Sep 30, 2020

Rough repo:

1. Open a C# file
2. Smart select from normal to visual mode still works at this point
3. Type something to trigger an error in syntax
4. Back to normal mode
5. Smart select failed to select in visual mode

I can't reproduce this. When this happens check the developer tools console to see if you have something like this:

[Extension Host] Extension Startup: debug: Selections: Ignoring selection: [37, 56; 37, 56], Count left: 0

That "Count left: 0" is the important part, it is supposed to always get back to 0, if it is always higher than 0 then something wrong happened and smartSelect won't work (including some other weird issues will show up). Now this usually happens when working with multicursors or snippets that create multicursors. Perhaps you typed some snippet? If that wasn't the case and you actually find a way to reproduce this without using multicursors or snippets please tell me!

@stevenguh
Copy link
Contributor

stevenguh commented Sep 30, 2020

This is weird. I can't consistently reproduce with those steps today, but I can still hit bug from time to time. I am not using multi cursor or snippets. I also checked out the log when I hit the bug, and the diagnostic array is empty. Also I can't find a way to recover it (meaning to have the smart selection working again for that editor) once i hit the bug. Even closing the file and reopening won't fix it. I have to restart the window. I will keep you posted if I found a consistent way to repo this.

@berknam
Copy link
Contributor Author

berknam commented Sep 30, 2020

I also checked out the log when I hit the bug, and the diagnostic array is empty.

Confirm if you have the setting "vim.debug.loggingLevelForConsole": "debug"

@stevenguh
Copy link
Contributor

stevenguh commented Oct 1, 2020

I just turned that option on, it is still empty when I am in the bug. I realized that it also happened in other type of files as well not just C# editor. I don't have a consistent repo yet.

EDIT: in one bugged instance, I have something like this. I smart select, and then press <h>. The selection will cancel once I any navigational keys
image
EDIT2: Another instance, with the log of the smart select
image

@J-Fields
Copy link
Member

@berknam Could you please resolve the merge conflict when you get a chance?

@berknam
Copy link
Contributor Author

berknam commented Nov 16, 2020

@berknam Could you please resolve the merge conflict when you get a chance?

I'm looking into this, but it wasn't a simple fix the conflict as I expected. We've made some other changes with selections required by some other issue that showed up in mean time and I need to see the best way to not create that issue again.

@berknam
Copy link
Contributor Author

berknam commented Nov 18, 2020

@J-Fields I've been thinking about this and I don't believe this is the right approach to this issue. I think it would be better to implement actions for the <S-right>, <S-left>, <S-up>, <S-down>, <S-home>, <S-end> keys that would behave according to 'keymodel' (this config would need to be implemented as well).

If we had 'keymodel' empty the shift right and left keys would behave like w and b respectively and the shifted home and end keys would behave like normal home and end keys.
If we had 'keymodel=startsel', then using this keys would start a selection and go to visual mode.
If we had 'keymodel=startsel,stopsel', then using this keys would start a selection and go to visual mode, but using the unshifted version of this keys would get out of visual mode.

This way it would make this ready for when we implement SelectMode, since then we would only have to implement the 'selectmode' config and if that one included 'key' while 'keymodel' included 'startsel' then those keys would start a selection in SelectMode instead of VisualMode.

This would also have the benefit that since we would start capturing these keys, then they will be available for remaps as well.

If you agree that this is the better way, then I can change this PR or create a new one. If not, I can try to fix this PR as it is just to get it working.

@berknam
Copy link
Contributor Author

berknam commented Nov 18, 2020

Another benefit would be removing this logic from the 'handleSelectionChange' function and reduce its complexity! 😄

@J-Fields
Copy link
Member

Ah nice, I wasn't aware of keymodel. This does sound like the right way to go about it - feel free to update this PR or scrap it and make a new one.

Another benefit would be removing this logic from the 'handleSelectionChange' function and reduce its complexity! 😄

Because we'd handle all these through custom commands and be able to ignore keyboard selection events?

@berknam
Copy link
Contributor Author

berknam commented Nov 18, 2020

Because we'd handle all these through custom commands and be able to ignore keyboard selection events?

Mostly yes! I would have to look still, because there are some instances that are marked as 'keyboard' selection events (like calling a cursorMove command I think). But when we are the ones calling those commands the corresponding selection change events are already ignored, so if we get one of those it will probably be either from another extension or from a custom user keybinding and in those cases it makes sense to overwrite our selection according to the new selection like we are doing now with the 'command' type selection events (like the editor.action.smartSelection.grow command for example).

I do have currently a potential fix for this PR that would make it work, but it is a little bit complex and for it to work well with multicursors I would have to copy that complexity to the multicursor logic as well. Also it doesn't keep the desired column when moving up/down and doesn't have any configuration tied in to let users opt out of it. Since it is partially done, if you want I can finish that and push it here, and then create a new PR for the other option. (I'm proposing this because I don't have any idea of how long it might take me to make the other option)

@J-Fields
Copy link
Member

J-Fields commented Jun 2, 2021

Closing as my understanding is that this is superseded by #5842. Please let me know if I'm mistaken, @berknam

@J-Fields J-Fields closed this Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Selection removed on <C-S-Right>
4 participants