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

Add missing window keys (<C-w><C-[hjklovq]>) #2600

Merged
merged 10 commits into from
May 5, 2018

Conversation

tyru
Copy link
Contributor

@tyru tyru commented May 3, 2018

What this PR does / why we need it

Some commands are even implemented but only keymappings are missing.
This PR makes it to work just to add the keymappings to invoke the implementation.

Which issue(s) this PR fixes

Fixes #2582, #2467

Copy link
Member

@jpoon jpoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tyru. Changes here make sense. If you don't mind, it'd be great if you could re-organize these ctrl+<key> alphabetically to make it easier to read. If you could also delete any configs that are binding to more than one key combo (e.g. ctrl+w l) that would be awesome.

package.json Outdated
{
"key": "ctrl+h",
"command": "extension.vim_navigateCtrlH",
"when": "editorTextFocus && vim.active && vim.use<C-w> && !inDebugRepl"
Copy link
Member

@jpoon jpoon May 4, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be <C-h>

package.json Outdated
{
"key": "ctrl+l",
"command": "extension.vim_navigateCtrlL",
"when": "editorTextFocus && vim.active && vim.use<C-w> && !inDebugRepl"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<C-l> here

package.json Outdated
{
"key": "ctrl+j",
"command": "extension.vim_navigateCtrlJ",
"when": "editorTextFocus && vim.active && vim.use<C-w> && !inDebugRepl"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similar to above.

package.json Outdated
"key": "ctrl+j",
"command": "extension.vim_navigateCtrlJ",
"when": "editorTextFocus && vim.active && vim.use<C-w> && !inDebugRepl"
},
{
"key": "ctrl+w k",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, don't think these keybindings are removed. We should only be binding to one single key combo here so any keys with ctrl+<key> <key> don't belong here.

package.json Outdated
{
"key": "ctrl+k",
"command": "extension.vim_navigateCtrlK",
"when": "editorTextFocus && vim.active && vim.use<C-w> && !inDebugRepl"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vim.use<C-k>

package.json Outdated
{
"key": "ctrl+q",
"command": "extension.vim_winCtrlQ",
"when": "editorTextFocus && vim.active && vim.use<C-w> && !inDebugRepl"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vim.use<C-q>

package.json Outdated
{
"key": "ctrl+v",
"command": "extension.vim_winCtrlV",
"when": "editorTextFocus && vim.active && vim.use<C-w> && !inDebugRepl"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vim.use<C-w>

@tyru
Copy link
Contributor Author

tyru commented May 4, 2018

  • Fixed vim.use{key}
  • Removed all 2 key combos <key> <key>

it'd be great if you could re-organize these ctrl+ alphabetically to make it easier to read

Should I sort only added keys, or all keys in contributes.commands ?

@TravisBuddy
Copy link

Travis tests have failed

Hey @tyru,
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: 8

npm test --silent;
### VS Code Extension Test Run ###
Current working directory: /home/travis/build/VSCodeVim/Vim
Downloading VS Code into "/home/travis/build/VSCodeVim/Vim/.vscode-test/stable" from: https://vscode-update.azurewebsites.net/1.23.0/linux-x64/stable
Running extension tests: /home/travis/build/VSCodeVim/Vim/.vscode-test/stable/VSCode-linux-x64/code /home/travis/build/VSCodeVim/Vim/out/test --extensionDevelopmentPath=/home/travis/build/VSCodeVim/Vim --extensionTestsPath=/home/travis/build/VSCodeVim/Vim/out/test
Xlib:  extension "RANDR" missing on display ":99.0".

Xlib:  extension "RANDR" missing on display ":99.0".

[main 2:20:21 AM] update#setState idle

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

bash: no job control in this shell

nvm is not compatible with the "npm_config_prefix" environment variable: currently set to "/home/travis/.nvm/versions/node/v8.11.1"
Run `unset npm_config_prefix` to unset it.





  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



  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



  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



  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



  Basic sort

    ✓ Sort whole file, asc (314ms)

    ✓ Sort whole file, dsc (166ms)

    ✓ Sort range, asc (217ms)

    ✓ Sort range, dsc (214ms)



  :close args parser
    ✓ has all aliases

    ✓ can parse empty args
    ✓ ignores trailing white space

    ✓ can parse !

    ✓ throws if space before !

    ✓ ignores space after !

    ✓ throws if bad input



  :quit args parser

    ✓ has all aliases

    ✓ 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



  :write args parser

    ✓ has all aliases

    ✓ 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 (108ms)

    ✓ Replace with `g` flag (115ms)

    ✓ Replace multiple lines (193ms)

    ✓ Replace across specific lines (155ms)

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

    ✓ Replace text in selection (223ms)

    ✓ Substitute support marks (193ms)
    Effects of substituteGlobalFlag=true

      ✓ Replace all matches in the line (108ms)

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

      ✓ Replace multiple lines (166ms)

      ✓ Replace across specific lines (165ms)

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

      ✓ Replace text in selection (218ms)

      ✓ Substitute support marks (171ms)

      ✓ Substitute with escaped delimiter (128ms)

    Substitute with empty search string should use previous search

      ✓ Substitute with previous search using * (370ms)

      ✓ Substitute with previous search using # (327ms)

      ✓ Substitute with previous search using / (321ms)

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



  cmd_line tab

    ✓ tabe with no arguments when not in workspace opens an untitled file (54ms)

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

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

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



  Vertical split

    ✓ Run :vs (96ms)

    ✓ Run :vsp (77ms)


  Basic write-quit

    ✓ Run write and quit (495ms)



  Configuration

    ✓ remappings are normalized


  Notation
    ✓ Normalize

  Remapper

Something bad happened in removeChange

    ✓ jj -> <Esc>

    ✓ remapped command with leader 



  Error

    ✓ error code has message



  package.json

    ✓ all keys have handlers

    ✓ all defined configurations in package.json have handlers



  Record and execute a macro

    ✓ Can record and execute (263ms)

    ✓ Can repeat last invoked macro (339ms)

    ✓ Can play back with count (498ms)

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

    ✓ Repeat change on contiguous lines (251ms)

    ✓ Append command to a macro (269ms)

    ✓ Can record Ctrl Keys and repeat (202ms)

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


  Mode Handler

    ✓ ctor

    ✓ can set current mode



  Mode Handler Map
    ✓ getOrCreate

  Mode Insert

    ✓ can be activated (103ms)

    ✓ can handle key events

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

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

    ✓ <Esc> can exit insert (108ms)

    ✓ Stay in insert when entering characters (118ms)

    ✓ Can handle 'O' (81ms)

    ✓ Can handle 'i' (154ms)

    ✓ Can handle 'I' (119ms)

    ✓ Can handle 'a' (169ms)

    ✓ Can handle 'A' (65ms)

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

    ✓ Can handle '<C-w>' (138ms)

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

invalid value for set cursor position. This is probably bad?
invalid value for set cursor position. This is probably bad?

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

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

    ✓ will not remove leading spaces input by user (41ms)

    ✓ will remove closing bracket (70ms)

    ✓ Backspace works on whitespace only lines (115ms)

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

    ✓ Backspace works at beginning of file (58ms)

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

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

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

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

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

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

Text transformations are overlapping. Falling back to serial
           transformations. This is generally a very bad sign. Try to make
           your text transformations operate on non-overlapping ranges.

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

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

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

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


  Mode Normal

    ✓ Can be activated (46ms)

    ✓ Can handle % (42ms)

    ✓ Can handle % before opening brace (134ms)

    ✓ Can handle % nested inside parens (56ms)

    ✓ Can handle dw (96ms)

    ✓ Can handle dw (82ms)

    ✓ Can handle dw (78ms)

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

    ✓ Can handle dw across lines (2) (90ms)

    ✓ Can handle dd last line (56ms)

    ✓ Can handle dd single line (52ms)

    ✓ Can handle dd (60ms)

    ✓ Can handle 3dd (68ms)

    ✓ Can handle 3dd off end of document (97ms)

    ✓ Can handle d2d (50ms)

    ✓ Can handle dd empty line (64ms)

    ✓ Can handle ddp (68ms)

    ✓ Can handle 'de' (88ms)

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

    ✓ Can handle 'db' (108ms)

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

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

    ✓ Can handle 'dF' (146ms)

    ✓ Can handle 'dT' (105ms)

    ✓ Can handle 'd3' then <enter> (62ms)

    ✓ Can handle 'dj' (81ms)

    ✓ Can handle 'dk' (123ms)

    ✓ Can handle 'cw' (162ms)

    ✓ Can handle 'cw' without deleting following white spaces (47ms)

    ✓ Can handle 'c2w' (54ms)

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

    ✓ Can handle 's' (152ms)

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

    ✓ Can handle 'ciw' (159ms)

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

    ✓ Can handle 'caw' (208ms)

[main 2:20:51 AM] update#setState checking for updates

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

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

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

[main 2:20:52 AM] update#setState idle

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

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

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

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

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

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

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

    ✓ Can handle 'ci{' spanning multiple lines (45ms)

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

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

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

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

    ✓ will fail when ca( with no () (48ms)

    ✓ will fail when ca{ with no {} (43ms)

    ✓ will fail when caB with no {} (74ms)

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

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

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

    ✓ Can handle 'ca]' on first bracket (74ms)

    ✓ Can handle 'ci'' on first quote (66ms)

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

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

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

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

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

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

    ✓ Can handle 'ca"' starting on the opening quote (88ms)

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

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

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

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

    ✓ Can handle 'ci"' with an escaped backslash on closing quote (85ms)

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

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

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

    ✓ will fail when ca" ahead of quoted string (67ms)

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

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

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

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

    ✓ Can handle 'daw' on word with numeric prefix (97ms)

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

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

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

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

    ✓ Can handle 'daw' on words at beginning of line with leading whitespace (98ms)

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

    ✓ Can handle 'daw' on word at beginning of file (99ms)

    ✓ Can handle 'daw' on word at beginning of line (139ms)

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

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

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

    ✓ Can handle 'daW' around word at whitespace (113ms)

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

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

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

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

    ✓ Can handle 'daW' on beginning of word (96ms)

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

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

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

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

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

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

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

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

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

    ✓ Can handle 'diw' on word with numeric prefix (79ms)

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

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

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

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

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

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

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

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

    ✓ Can handle 'diW' on beginning of word (183ms)

    ✓ Can handle d} (67ms)

    ✓ Can handle y} at beginning of line (58ms)

    ✓ Select sentence with trailing spaces (190ms)

    ✓ Select sentence with leading spaces (327ms)

    ✓ Select inner sentence with trailing spaces (189ms)

    ✓ Select inner sentence with leading spaces (344ms)

    ✓ Select spaces between sentences (303ms)

    ✓ Can handle 'df' (175ms)

    ✓ Can handle 'dt' (149ms)

    ✓ Can handle backspace (84ms)

    ✓ Can handle backspace across lines (143ms)

    ✓ Can handle A and backspace (154ms)

    ✓ Can handle 'yy' without changing cursor position (89ms)

    ✓ Can handle 'P' after 'yy' (101ms)

    ✓ Can handle 'p' after 'yy' (106ms)

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

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

    ✓ Can handle 'p' after 'yy' with correct cursor position (77ms)

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

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

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

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

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

    ✓ Can handle ']p' after yy (106ms)

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

    ✓ Can handle ']p' after 'Nyy' and indent with tabs first (113ms)

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

    ✓ Can handle '[p' after yy (108ms)

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

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

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

    ✓ Can handle 'p' after y'a (101ms)

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

    ✓ Can repeat w (66ms)

    ✓ Can repeat p (80ms)

    ✓ I works correctly (211ms)

    ✓ gI works correctly (146ms)

    ✓ gi works correctly (200ms)

    ✓ `. works correctly (231ms)

    ✓ '. works correctly (175ms)

    ✓ g; works correctly (166ms)

    ✓ g, works correctly (204ms)

    ✓ g_ works correctly (88ms)

    ✓ 3g_ works correctly (115ms)

    ✓ Can handle space (83ms)

    ✓ Can handle space (104ms)

    ✓ Undo 1 (213ms)

    ✓ Undo 2 (206ms)

    ✓ Undo cursor (331ms)

    ✓ Undo cursor 2 (272ms)

    ✓ Undo cursor 3 (232ms)

    ✓ Undo with movement first (274ms)

    ✓ Can handle 'U' (180ms)

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

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

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

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

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

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

    ✓ Redo (272ms)

    ✓ Redo (263ms)

    ✓ Redo (285ms)

    ✓ Can handle u (77ms)

    ✓ Can handle guw (52ms)

    ✓ Can handle gUw (69ms)

    ✓ Can handle u over line breaks (126ms)

    ✓ can handle s in visual mode (189ms)

    ✓ can handle p with selection (132ms)

    ✓ can handle P with selection (141ms)

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

    ✓ can repeat backspace twice (188ms)

    ✓ can delete linewise with d2G (97ms)

    ✓ can dE correctly (96ms)

    ✓ can dE correctly (92ms)

    ✓ can dE correctly (173ms)

    ✓ can ctrl-a correctly behind a word (69ms)

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

    ✓ can ctrl-a on word (137ms)

    ✓ can ctrl-a on a hex number (83ms)

    ✓ can ctrl-a on decimal (59ms)

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

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

    ✓ can ctrl-a on an octal  (115ms)

    ✓ Correctly increments in the middle of a number (109ms)

    ✓ can ctrl-x correctly behind a word (83ms)

    ✓ can ctrl-a on an number with word before  (96ms)

    ✓ can ctrl-a on an number with word before and after  (76ms)

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

    ✓ can ctrl-a properly on multiple lines (140ms)

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

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

    ✓ can do Y (68ms)

    ✓ Can do S (171ms)

    ✓ / does not affect mark (101ms)

    ✓ / can search with regex (76ms)

    ✓ / can search with newline (81ms)

    ✓ / can search through multiple newlines (117ms)

    ✓ / matches ^ per line (87ms)

    ✓ / matches $ per line (87ms)

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

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

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

    ✓ <S-BS> deletes the last character in search in progress mode (126ms)

    ✓ <C-h> deletes the last character in search in progress mode (66ms)

    ✓ Can do C (86ms)

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

    ✓ Ignores cit on a non-matching tag (183ms)

    ✓ Ignores cit on a nested tag (177ms)

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

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

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

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

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

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

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

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

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

    ✓ Respects indentation with cc (176ms)

    ✓ can handle 'cc' on empty line (80ms)

    ✓ cc copies linewise (134ms)

    ✓ Indent current line with correct Vim Mode (97ms)

    ✓ Can handle <Esc> and do nothing (82ms)

    ✓ Can handle # on consecutive words (418ms)

    ✓ Can handle # on skipped words (554ms)

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

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

    ✓ cc on whitespace-only line clears line (103ms)

    ✓ Can do cai (371ms)

    ✓ Can do cii (126ms)

    ✓ Can do caI (402ms)

    ✓ Can do dai (373ms)

    ✓ Can do dii (125ms)

    ✓ Can do daI (334ms)

    can handle gn

      ✓ gn selects the next match text (545ms)

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

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

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

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

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

    can handle dgn

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

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

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

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

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

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

    can handle cgn

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

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

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

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

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

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

    can handle gN

      ✓ gN selects the previous match text (732ms)

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

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

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

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

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

    can handle dgN

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

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

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

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

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

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

    can handle cgN

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

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

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

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

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

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



  Mode Replace

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

    ✓ Can activate with R from Normal mode (242ms)

    ✓ Can handle R (265ms)

    ✓ Can handle R past current line (382ms)

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

    ✓ Can handle R across lines (383ms)

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

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

    ✓ Can handle backspace (266ms)

    ✓ Can handle backspace (373ms)

    ✓ Can handle backspace across lines (397ms)

    ✓ Can handle arrows (341ms)

    ✓ Can handle . (422ms)

    ✓ Can handle . across lines (534ms)



  Mode Visual

    ✓ can be activated

    ✓ Can handle w (471ms)

    ✓ Can handle wd (428ms)

    ✓ Can handle x (364ms)

    ✓ Can handle x across a selection (498ms)

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

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

    ✓ Can do vwd multiple times (699ms)

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

    ✓ Can handle H key (232ms)

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

    ✓ handles change operator (620ms)

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

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

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

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

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

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

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

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

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

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

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

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

    Vim's EOL handling is weird

      ✓ delete through eol (481ms)

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

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

      ✓ vd$ does delete whole line (339ms)

      ✓ Paste over selection copies the selection (250ms)

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

    Arrow keys work perfectly in Visual Mode

      ✓ Can handle <up> key (189ms)

      ✓ Can handle <down> key (187ms)

      ✓ Can handle <left> key (247ms)

      ✓ Can handle <right> key (185ms)

    handles aw in visual mode

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

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

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

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

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

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

    handles aW in visual mode

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

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

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

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

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

    handles aW in visual mode

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

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

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

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

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

    handles aw in visual mode

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

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

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

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

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

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

    handles aW in visual mode

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

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

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

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

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

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

    handles as in visual mode

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

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

      ✓ Select multiple sentences in visual mode (765ms)

    handles is in visual mode

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

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

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

    handles tag blocks in visual mode

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

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

    handles replace in visual mode

      ✓ Can do a single line replace (343ms)

      ✓ Can do a multi line replace (306ms)

    D command will remove all selected lines

      ✓ D deletes all selected lines (407ms)

      ✓ D deletes the current line (405ms)

    handles indent blocks in visual mode

      ✓ Can do vai (920ms)

      ✓ Can do vii (459ms)

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

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

      ✓ Can do vaI (928ms)

    visualstar

      ✓ Works with * (203ms)

      ✓ Works with # (277ms)

    search works in visual mode

      ✓ Works with / (275ms)

      ✓ Works with ? (305ms)

      ✓ Selects correct range (704ms)

    X will delete linewise

      ✓ normal selection (374ms)

      ✓ normal selection (343ms)

    C will delete linewise

      ✓ normal selection (297ms)

      ✓ normal selection (408ms)

    R will delete linewise

      ✓ normal selection (252ms)

      ✓ normal selection (368ms)

    Linewise Registers will be inserted properly

      ✓ downward selection (536ms)

      ✓ upward selection (742ms)

    Non-darwin <C-c> tests

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

    vi{ will go to end of second to last line

      ✓ select (446ms)

    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) (2110ms)

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

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

    can handle gn

      ✓ gn selects the next match text (1155ms)

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

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

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

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

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



  Mode Visual Block

    ✓ can be activated

    ✓ Can handle A forward select (306ms)

    ✓ Can handle A backwards select (469ms)

    ✓ Can handle I forward select (321ms)

    ✓ Can handle I backwards select (354ms)

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

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

    ✓ Can handle c forward select (334ms)

    ✓ Can handle c backwards select (477ms)

    ✓ Can handle C (429ms)

    ✓ Can do a multi line replace (441ms)

    ✓ Can handle 'D' (358ms)

    ✓ Can handle 'gj' (290ms)

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

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

    ✓ o works in visual block mode (283ms)

    Non-darwin <C-c> tests

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



  Mode Visual Line

    ✓ can be activated

    ✓ Can handle w (738ms)

    ✓ Can handle wd (563ms)

    ✓ Can handle x (528ms)

    ✓ Can handle U (457ms)

    ✓ Can handle x across a selection (547ms)

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

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

    ✓ Can do vwd multiple times (858ms)

    ✓ Can handle U across a selection (584ms)

    ✓ Can handle U across a selection in reverse order (562ms)

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

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

    ✓ handles change operator (522ms)

Text transformations are overlapping. Falling back to serial
           transformations. This is generally a very bad sign. Try to make
           your text transformations operate on non-overlapping ranges.

    1) Vp updates register content

    Vim's EOL handling is weird

      ✓ delete through eol (538ms)

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

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

      ✓ vd$ does delete whole line (422ms)

    Arrow keys work perfectly in Visual Line Mode

      ✓ Can handle <up> key (224ms)

      ✓ Can handle <down> key (239ms)

    Can handle d/c correctly in Visual Line Mode

      ✓ Can handle d key (267ms)

      ✓ Can handle d key (296ms)

      ✓ Can handle d key (481ms)

      ✓ Can handle d key (288ms)

      ✓ can handle 'c' (271ms)

    handles replace in visual line mode

      ✓ Can do a single line replace (254ms)

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

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

    search works in visual line mode

      ✓ Works with / (267ms)

      ✓ Works with ? (374ms)

    Non-darwin <C-c> tests

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

    replace text in linewise visual-mode with linewise register content

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

Text transformations are overlapping. Falling back to serial
           transformations. This is generally a very bad sign. Try to make
           your text transformations operate on non-overlapping ranges.

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

    replace text in linewise visual-mode with linewise register content

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

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

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



  Mode Normal

    ✓ Can handle 'x' (164ms)

Text transformations are overlapping. Falling back to serial
           transformations. This is generally a very bad sign. Try to make
           your text transformations operate on non-overlapping ranges.

    ✓ Can handle 'Nx' (183ms)

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

Text transformations are overlapping. Falling back to serial
           transformations. This is generally a very bad sign. Try to make
           your text transformations operate on non-overlapping ranges.

    ✓ Can handle 'Ns' (129ms)

Text transformations are overlapping. Falling back to serial
           transformations. This is generally a very bad sign. Try to make
           your text transformations operate on non-overlapping ranges.

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

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

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

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

    ✓ Can handle 'cc' (387ms)

    ✓ Can handle 'Ncc' (228ms)

    ✓ Can handle 'yy' (240ms)

    ✓ Can handle 'D' (311ms)

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

    ✓ Can handle 'DD' (302ms)

    ✓ Can handle 'C' (275ms)

    ✓ Can handle 'NC' (308ms)

    ✓ Can handle 'r' (202ms)

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

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

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

    ✓ Can handle 'J' once (299ms)

    ✓ Can handle 'J' twice (468ms)

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

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

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

    ✓ Can handle 'J' with only white space on next line (153ms)

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

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

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

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

    ✓ Can handle 'gJ' once (170ms)

    ✓ Can handle 'gJ' once and ALL WHITESPACE IS ELIMINATED (143ms)

    ✓ Can handle '~' (103ms)

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

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

    ✓ Can handle undo with P (265ms)



  Dot Operator

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

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

    ✓ Can repeat 'x' (112ms)

    ✓ Can repeat 'J' (133ms)

    ✓ Can handle dot with A (345ms)

    ✓ Can handle dot with I (299ms)

    ✓ Can repeat actions that require selections (363ms)



  Repeat content change

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

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

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?
invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?
invalid value for set cursor position. This is probably bad?

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

invalid value for set cursor position. This is probably bad?
invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?
invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?
invalid value for set cursor position. This is probably bad?

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

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

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

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



  Motions in Normal Mode

    ✓ Can handle % (72ms)

    ✓ Can handle % (217ms)

    ✓ Can handle % (89ms)

    ✓ Can handle % (95ms)

    ✓ Can handle % (122ms)

    ✓ Can handle % (409ms)

    ✓ Can handle [( (209ms)

    ✓ Can handle nested [( (254ms)

    ✓ Can handle <number>[( (212ms)

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

    ✓ Can handle ]) (233ms)

    ✓ Can handle nested ]) (184ms)

    ✓ Can handle <number>]) (227ms)

    ✓ Can handle ]) and character under cursor exclusive (329ms)

    ✓ Can handle [{ (189ms)

    ✓ Can handle nested [{ (402ms)

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

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

    ✓ Can handle ]} (140ms)

    ✓ Can handle nested ]} (221ms)

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

    ✓ Can handle ]} and character under cursor exclusive (223ms)

    ✓ Can handle 'ge' (303ms)

    ✓ Can handle 'gg' (363ms)

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

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

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

    ✓ Can handle <enter> (284ms)

    ✓ $ always keeps cursor on EOL (489ms)

    ✓ Can handle $ with a count (184ms)

    ✓ Can handle $ with a count at end of file (153ms)

    ✓ Can handle <end> with a count (172ms)

    ✓ Can handle <D-right> with a count (155ms)

    ✓ Can handle 'f' (280ms)

    ✓ Can handle 'f' twice (359ms)

    ✓ Can handle 'F' (315ms)

    ✓ Can handle 'F' twice (479ms)

    ✓ Can handle 't' (343ms)

    ✓ Can handle 't' twice (441ms)

    ✓ Can handle 'T' (318ms)

    ✓ Can handle 'T' twice (337ms)

    ✓ Can run a forward search (132ms)

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

    ✓ Can run a reverse search (589ms)

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

    ✓ maintains column position correctly (267ms)

    ✓ maintains column position correctly with $ (163ms)

    ✓ Can handle G  (133ms)

    ✓ Can handle G with number prefix (123ms)

    ✓ Can handle G with number prefix (107ms)

    ✓ Can handle gg (265ms)

    ✓ Can handle gg with number prefix (127ms)

    ✓ Can handle dot with A (406ms)

    ✓ Can handle dot with I (415ms)

    ✓ Can handle 0 (384ms)

    ✓ Can handle 0 as part of a repeat (108ms)

    ✓ Can handle g* (133ms)

    ✓ Can handle g*n (123ms)

    ✓ Can handle * (95ms)

    ✓ Can handle ** (98ms)

    ✓ Can handle # on whitespace (280ms)

    ✓ Can handle # on EOL (457ms)

    ✓ Can handle g# (617ms)

    ✓ Can handle g#n (519ms)

    ✓ Can handle # (461ms)

    ✓ Can handle # already on the word (173ms)

    ✓ Can handle ## (401ms)

    ✓ Can handle | (372ms)

    ✓ Can handle <number> | (418ms)

    ✓ Can handle + (91ms)

    ✓ Can handle + indent (86ms)

    ✓ Can handle + with count prefix (111ms)

    ✓ Can handle - (116ms)

    ✓ Can handle - indent (203ms)

    ✓ Can handle - with count prefix (103ms)

    ✓ Can handle _ (86ms)

    ✓ Can handle _ with count prefix (121ms)

    ✓ Can handle g_ (137ms)

    ✓ Can handle g_ with count prefix (132ms)

    ✓ Can handle <up> key (114ms)

    ✓ Can handle <down> key (157ms)

    ✓ Can handle <left> key (191ms)

    ✓ Can handle <right> key (105ms)



  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


  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



  numeric string

    ✓ fails on non-string

    ✓ handles hex round trip

    ✓ handles decimal round trip

    ✓ handles octal trip



  comment operator

    ✓ gcc comments out current line (341ms)

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

    ✓ block comment with motion (721ms)

    ✓ block comment in Visual Mode (490ms)


  put operator

    ✓ basic put test (642ms)

    ✓ test yy end of line (279ms)

    ✓ test yy first line (209ms)

    ✓ test yy middle line (201ms)

    ✓ test yy with correct positon movement (205ms)



  shift operator

    ✓ basic shift left test (273ms)

    ✓ shift left goto end test (239ms)

    ✓ shift left goto line test (235ms)

    ✓ shift right goto end test (171ms)

    ✓ shift right goto line test (159ms)



  easymotion plugin

    ✓ Can handle s move (159ms)

    ✓ Can handle 2s move (139ms)

    ✓ Can handle f move (153ms)

    ✓ Can handle 2f move (256ms)

    ✓ Can handle F move (241ms)

    ✓ Can handle 2F move (235ms)

    ✓ Can handle t move (207ms)

    ✓ Can handle bd-t move (189ms)

    ✓ Can handle 2t move (161ms)

    ✓ Can handle bd-t2 move (168ms)

    ✓ Can handle T move (212ms)

    ✓ Can handle 2T move (265ms)

    ✓ Can handle w move (238ms)

    ✓ Can handle bd-w move (188ms)

    ✓ Can handle b move (239ms)

    ✓ Can handle e move (284ms)

    ✓ Can handle bd-e move (199ms)

    ✓ Can handle ge move (239ms)

    ✓ Can handle n-char move (221ms)

    ✓ Can handle j move (179ms)

    ✓ Can handle k move (218ms)

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

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


  sneak plugin

    ✓ Can handle s motion (150ms)

    ✓ Can handle S motion (162ms)

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

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

    ✓ Can handle s; motion (143ms)

    ✓ Can handle s, motion (254ms)

    ✓ Can handle S; motion (383ms)

    ✓ Can handle S, motion (218ms)



  surround plugin

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

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

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

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

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

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

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

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

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

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

    ✓ change surround (336ms)

    ✓ change surround to tags (291ms)

    ✓ delete surround (334ms)

    ✓ delete surround with tags (387ms)

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

    ✓ changing brackets with surround works again (245ms)


  register

    ✓ Can copy to a register (110ms)

    ✓ Can use two registers together (159ms)

    ✓ Can use black hole register (148ms)

    ✓ System clipboard works with chinese characters (216ms)

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

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

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

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

    ✓ Can put and get to register

    clipboard

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

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



  Repeatable movements with f and t

    ✓ Can repeat f<character> (107ms)

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

    ✓ Can repeat t<character> (91ms)

    ✓ Can repeat N times reversed t<character> (129ms)


  text editor

    ✓ insert 'Hello World'

    ✓ replace 'World' with 'Foo Bar'

    ✓ delete `Hello`

    ✓ delete the whole line

    ✓ try to read lines that don't exist



  893 passing (5m)
  1 failing


  1) Mode Visual Line
       Vp updates register content:

      Content does not match; Expected=world. Actual=.
      + expected - actual

      +world
      
      at Suite.suite (test/mode/modeVisualLine.test.ts:319:3)





Tests exited with code: 1

@jpoon
Copy link
Member

jpoon commented May 4, 2018

If you could do all the ctrl keys that would be most appreciated. However, I would also understand if it's too much work.

package.json Outdated
@@ -330,11 +335,6 @@
"command": "list.collapse",
"when": "listFocus && !inputFocus"
},
{
"key": "g g",
Copy link
Member

@jpoon jpoon May 4, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need this one. g g will directly call a vscode command so we need this here. mind putting it back?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After removing this, gg seems to work.

I'm new to VSCode extension development and I'm not used to package.json and what should I write to contributes.commands. so please correct me if I'm wrong.
But unlike other VSCode extensions, I guess it's enough to lists only one key sequences here to send to VSCodeVim's state machine.
The state machine processes keys one by one, and fire the command if key sequence is matched.

@TravisBuddy
Copy link

Hey @tyru,
Something went wrong with the build.

TravisCI finished with status errored, which means the build failed because something unrelated to the tests, like a problem a dependency or the build process itself.

@tyru
Copy link
Contributor Author

tyru commented May 4, 2018

If you could do all the ctrl keys that would be most appreciated.

Okay, I'll try it :)

@tyru tyru changed the title Add missing window keys (<C-w><C-[hjklovq]>) WIP: Add missing window keys (<C-w><C-[hjklovq]>) May 4, 2018
@tyru
Copy link
Contributor Author

tyru commented May 4, 2018

Sorted contributes.commands alphabetically, but #2601 and another PR(s) have broken the master build.
Please wait merging this PR until the fix.

@TravisBuddy
Copy link

Travis tests have failed

Hey @tyru,
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: 8

npm test --silent;
### VS Code Extension Test Run ###
Current working directory: /home/travis/build/VSCodeVim/Vim
Downloading VS Code into "/home/travis/build/VSCodeVim/Vim/.vscode-test/stable" from: https://vscode-update.azurewebsites.net/1.23.0/linux-x64/stable
Running extension tests: /home/travis/build/VSCodeVim/Vim/.vscode-test/stable/VSCode-linux-x64/code /home/travis/build/VSCodeVim/Vim/out/test --extensionDevelopmentPath=/home/travis/build/VSCodeVim/Vim --extensionTestsPath=/home/travis/build/VSCodeVim/Vim/out/test
Xlib:  extension "RANDR" missing on display ":99.0".

Xlib:  extension "RANDR" missing on display ":99.0".

[main 3:28:55 AM] update#setState idle

bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell

nvm is not compatible with the "npm_config_prefix" environment variable: currently set to "/home/travis/.nvm/versions/node/v8.11.1"
Run `unset npm_config_prefix` to unset it.





  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



  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



  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



  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



  Basic sort

    ✓ Sort whole file, asc (359ms)

    ✓ Sort whole file, dsc (248ms)

    ✓ Sort range, asc (369ms)

    ✓ Sort range, dsc (344ms)


  :close args parser
    ✓ has all aliases
    ✓ can parse empty args
    ✓ ignores trailing white space
    ✓ can parse !
    ✓ throws if space before !
    ✓ ignores space after !
    ✓ throws if bad input


  :quit args parser

    ✓ has all aliases

    ✓ 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



  :write args parser

    ✓ has all aliases

    ✓ 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 (172ms)

    ✓ Replace with `g` flag (173ms)

    ✓ Replace multiple lines (267ms)

    ✓ Replace across specific lines (248ms)

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

    ✓ Replace text in selection (318ms)

    ✓ Substitute support marks (257ms)

    Effects of substituteGlobalFlag=true

      ✓ Replace all matches in the line (161ms)

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

      ✓ Replace multiple lines (210ms)

      ✓ Replace across specific lines (233ms)

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

      ✓ Replace text in selection (308ms)

      ✓ Substitute support marks (239ms)

      ✓ Substitute with escaped delimiter (174ms)

    Substitute with empty search string should use previous search

      ✓ Substitute with previous search using * (599ms)

      ✓ Substitute with previous search using # (562ms)

      ✓ Substitute with previous search using / (539ms)

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


  cmd_line tab

    ✓ tabe with no arguments when not in workspace opens an untitled file (90ms)

    ✓ tabedit with no arguments when not in workspace opens an untitled file (64ms)

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

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



  Vertical split

    ✓ Run :vs (114ms)

    ✓ Run :vsp (101ms)



  Basic write-quit

    ✓ Run write and quit (264ms)

  Configuration
    ✓ remappings are normalized

  Notation
    ✓ Normalize

  Remapper

Something bad happened in removeChange

    ✓ jj -> <Esc>

    ✓ remapped command with leader 



  Error

    ✓ error code has message



  package.json

    ✓ all keys have handlers

    ✓ all defined configurations in package.json have handlers



  Record and execute a macro

    ✓ Can record and execute (408ms)

    ✓ Can repeat last invoked macro (445ms)

    ✓ Can play back with count (760ms)

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

    ✓ Repeat change on contiguous lines (378ms)

    ✓ Append command to a macro (384ms)

    ✓ Can record Ctrl Keys and repeat (418ms)

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


  Mode Handler

    ✓ ctor

    ✓ can set current mode



  Mode Handler Map

    ✓ getOrCreate



  Mode Insert

    ✓ can be activated (133ms)

    ✓ can handle key events (70ms)

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

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

    ✓ <Esc> can exit insert (135ms)

    ✓ Stay in insert when entering characters (176ms)

    ✓ Can handle 'O' (149ms)

    ✓ Can handle 'i' (208ms)

    ✓ Can handle 'I' (194ms)

    ✓ Can handle 'a' (244ms)

    ✓ Can handle 'A' (165ms)

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

    ✓ Can handle '<C-w>' (255ms)

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

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

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

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

    ✓ will not remove leading spaces input by user (57ms)

    ✓ will remove closing bracket (96ms)

    ✓ Backspace works on whitespace only lines (124ms)

[main 3:29:25 AM] update#setState checking for updates

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

    ✓ Backspace works at beginning of file (116ms)

[main 3:29:25 AM] update#setState idle

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

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

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

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

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

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

Text transformations are overlapping. Falling back to serial
           transformations. This is generally a very bad sign. Try to make
           your text transformations operate on non-overlapping ranges.

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

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

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

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


  Mode Normal

    ✓ Can be activated (73ms)

    ✓ Can handle % (70ms)

    ✓ Can handle % before opening brace (61ms)

    ✓ Can handle % nested inside parens (70ms)

    ✓ Can handle dw (139ms)

    ✓ Can handle dw (176ms)

    ✓ Can handle dw (127ms)

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

    ✓ Can handle dw across lines (2) (123ms)

    ✓ Can handle dd last line (260ms)

    ✓ Can handle dd single line (74ms)

    ✓ Can handle dd (110ms)

    ✓ Can handle 3dd (123ms)

    ✓ Can handle 3dd off end of document (128ms)

    ✓ Can handle d2d (103ms)

    ✓ Can handle dd empty line (122ms)

    ✓ Can handle ddp (107ms)

    ✓ Can handle 'de' (198ms)

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

    ✓ Can handle 'db' (156ms)

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

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

    ✓ Can handle 'dF' (164ms)

    ✓ Can handle 'dT' (189ms)

    ✓ Can handle 'd3' then <enter> (129ms)

    ✓ Can handle 'dj' (131ms)

    ✓ Can handle 'dk' (136ms)

    ✓ Can handle 'cw' (272ms)

    ✓ Can handle 'cw' without deleting following white spaces (100ms)

    ✓ Can handle 'c2w' (114ms)

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

    ✓ Can handle 's' (275ms)

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

    ✓ Can handle 'ciw' (243ms)

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

    ✓ Can handle 'caw' (266ms)

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

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

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

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

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

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

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

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

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

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

    ✓ Can handle 'ci{' spanning multiple lines (128ms)

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

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

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

    ✓ Can handle 'ciB' spanning multiple lines (135ms)

    ✓ will fail when ca( with no () (74ms)

    ✓ will fail when ca{ with no {} (103ms)

    ✓ will fail when caB with no {} (89ms)

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

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

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

    ✓ Can handle 'ca]' on first bracket (128ms)

    ✓ Can handle 'ci'' on first quote (83ms)

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

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

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

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

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

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

    ✓ Can handle 'ca"' starting on the opening quote (229ms)

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

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

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

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

    ✓ Can handle 'ci"' with an escaped backslash on closing quote (215ms)

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

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

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

    ✓ will fail when ca" ahead of quoted string (216ms)

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

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

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

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

    ✓ Can handle 'daw' on word with numeric prefix (143ms)

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

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

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

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

    ✓ Can handle 'daw' on words at beginning of line with leading whitespace (128ms)

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

    ✓ Can handle 'daw' on word at beginning of file (160ms)

    ✓ Can handle 'daw' on word at beginning of line (172ms)

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

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

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

    ✓ Can handle 'daW' around word at whitespace (165ms)

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

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

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

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

    ✓ Can handle 'daW' on beginning of word (207ms)

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

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

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

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

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

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

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

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

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

    ✓ Can handle 'diw' on word with numeric prefix (277ms)

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

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

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

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

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

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

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

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

    ✓ Can handle 'diW' on beginning of word (200ms)

    ✓ Can handle d} (129ms)

    ✓ Can handle y} at beginning of line (147ms)

    ✓ Select sentence with trailing spaces (331ms)

    ✓ Select sentence with leading spaces (568ms)

    ✓ Select inner sentence with trailing spaces (261ms)

    ✓ Select inner sentence with leading spaces (570ms)

    ✓ Select spaces between sentences (517ms)

    ✓ Can handle 'df' (239ms)

    ✓ Can handle 'dt' (385ms)

    ✓ Can handle backspace (173ms)

    ✓ Can handle backspace across lines (133ms)

    ✓ Can handle A and backspace (134ms)

    ✓ Can handle 'yy' without changing cursor position (146ms)

    ✓ Can handle 'P' after 'yy' (205ms)

    ✓ Can handle 'p' after 'yy' (177ms)

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

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

    ✓ Can handle 'p' after 'yy' with correct cursor position (189ms)

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

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

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

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

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

    ✓ Can handle ']p' after yy (177ms)

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

    ✓ Can handle ']p' after 'Nyy' and indent with tabs first (171ms)

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

    ✓ Can handle '[p' after yy (206ms)

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

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

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

    ✓ Can handle 'p' after y'a (208ms)

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

    ✓ Can repeat w (97ms)

    ✓ Can repeat p (128ms)

    ✓ I works correctly (291ms)

    ✓ gI works correctly (187ms)

    ✓ gi works correctly (328ms)

    ✓ `. works correctly (261ms)

    ✓ '. works correctly (330ms)

    ✓ g; works correctly (310ms)

    ✓ g, works correctly (257ms)

    ✓ g_ works correctly (160ms)

    ✓ 3g_ works correctly (204ms)

    ✓ Can handle space (111ms)

    ✓ Can handle space (166ms)

    ✓ Undo 1 (317ms)

    ✓ Undo 2 (321ms)

    ✓ Undo cursor (371ms)

    ✓ Undo cursor 2 (416ms)

    ✓ Undo cursor 3 (628ms)

    ✓ Undo with movement first (361ms)

    ✓ Can handle 'U' (207ms)

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

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

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

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

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

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

    ✓ Redo (485ms)

    ✓ Redo (495ms)

    ✓ Redo (385ms)

    ✓ Can handle u (143ms)

    ✓ Can handle guw (134ms)

    ✓ Can handle gUw (125ms)

    ✓ Can handle u over line breaks (197ms)

    ✓ can handle s in visual mode (202ms)

    ✓ can handle p with selection (186ms)

    ✓ can handle P with selection (194ms)

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

    ✓ can repeat backspace twice (332ms)

    ✓ can delete linewise with d2G (174ms)

    ✓ can dE correctly (268ms)

    ✓ can dE correctly (195ms)

    ✓ can dE correctly (282ms)

    ✓ can ctrl-a correctly behind a word (115ms)

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

    ✓ can ctrl-a on word (205ms)

    ✓ can ctrl-a on a hex number (130ms)

    ✓ can ctrl-a on decimal (146ms)

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

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

    ✓ can ctrl-a on an octal  (174ms)

    ✓ Correctly increments in the middle of a number (166ms)

    ✓ can ctrl-x correctly behind a word (94ms)

    ✓ can ctrl-a on an number with word before  (117ms)

    ✓ can ctrl-a on an number with word before and after  (140ms)

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

    ✓ can ctrl-a properly on multiple lines (325ms)

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

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

    ✓ can do Y (121ms)

    ✓ Can do S (213ms)

    ✓ / does not affect mark (224ms)

    ✓ / can search with regex (159ms)

    ✓ / can search with newline (138ms)

    ✓ / can search through multiple newlines (181ms)

    ✓ / matches ^ per line (196ms)

    ✓ / matches $ per line (205ms)

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

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

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

    ✓ <S-BS> deletes the last character in search in progress mode (138ms)

    ✓ <C-h> deletes the last character in search in progress mode (181ms)

    ✓ Can do C (244ms)

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

    ✓ Ignores cit on a non-matching tag (292ms)

    ✓ Ignores cit on a nested tag (334ms)

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

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

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

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

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

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

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

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

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

    ✓ Respects indentation with cc (378ms)

    ✓ can handle 'cc' on empty line (161ms)

    ✓ cc copies linewise (301ms)

    ✓ Indent current line with correct Vim Mode (232ms)

    ✓ Can handle <Esc> and do nothing (150ms)

    ✓ Can handle # on consecutive words (534ms)

    ✓ Can handle # on skipped words (913ms)

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

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

    ✓ cc on whitespace-only line clears line (189ms)

    ✓ Can do cai (606ms)

    ✓ Can do cii (307ms)

    ✓ Can do caI (585ms)

    ✓ Can do dai (633ms)

    ✓ Can do dii (292ms)

    ✓ Can do daI (662ms)

    can handle gn

      ✓ gn selects the next match text (1164ms)

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

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

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

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

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

    can handle dgn

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

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

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

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

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

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

    can handle cgn

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

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

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

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

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

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

    can handle gN

      ✓ gN selects the previous match text (1160ms)

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

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

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

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

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

    can handle dgN

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

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

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

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

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

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

    can handle cgN

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

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

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

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

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

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



  Mode Replace

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

    ✓ Can activate with R from Normal mode (262ms)

    ✓ Can handle R (309ms)

    ✓ Can handle R past current line (380ms)

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

    ✓ Can handle R across lines (501ms)

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

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

    ✓ Can handle backspace (528ms)

    ✓ Can handle backspace (514ms)

    ✓ Can handle backspace across lines (569ms)

    ✓ Can handle arrows (414ms)

    ✓ Can handle . (600ms)

    ✓ Can handle . across lines (1016ms)



  Mode Visual

    ✓ can be activated (38ms)

    ✓ Can handle w (927ms)

    ✓ Can handle wd (675ms)

    ✓ Can handle x (639ms)

    ✓ Can handle x across a selection (608ms)

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

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

    ✓ Can do vwd multiple times (1180ms)

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

    ✓ Can handle H key (225ms)

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

    ✓ handles change operator (683ms)

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

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

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

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

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

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

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

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

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

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

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

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

    Vim's EOL handling is weird

      ✓ delete through eol (480ms)

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

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

      ✓ vd$ does delete whole line (499ms)

      ✓ Paste over selection copies the selection (523ms)

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

    Arrow keys work perfectly in Visual Mode

      ✓ Can handle <up> key (302ms)

      ✓ Can handle <down> key (343ms)

      ✓ Can handle <left> key (360ms)

      ✓ Can handle <right> key (301ms)

    handles aw in visual mode

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

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

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

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

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

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

    handles aW in visual mode

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

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

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

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

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

    handles aW in visual mode

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

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

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

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

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

    handles aw in visual mode

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

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

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

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

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

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

    handles aW in visual mode

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

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

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

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

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

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

    handles as in visual mode

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

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

      ✓ Select multiple sentences in visual mode (1001ms)

    handles is in visual mode

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

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

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

    handles tag blocks in visual mode

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

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

    handles replace in visual mode

      ✓ Can do a single line replace (346ms)

      ✓ Can do a multi line replace (369ms)

    D command will remove all selected lines

      ✓ D deletes all selected lines (446ms)

      ✓ D deletes the current line (418ms)

    handles indent blocks in visual mode

      ✓ Can do vai (865ms)

      ✓ Can do vii (457ms)

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

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

      ✓ Can do vaI (808ms)

    visualstar

      ✓ Works with * (205ms)

      ✓ Works with # (284ms)

    search works in visual mode

      ✓ Works with / (288ms)

      ✓ Works with ? (396ms)

      ✓ Selects correct range (748ms)

    X will delete linewise

      ✓ normal selection (268ms)

      ✓ normal selection (300ms)

    C will delete linewise

      ✓ normal selection (355ms)

      ✓ normal selection (337ms)

    R will delete linewise

      ✓ normal selection (305ms)

      ✓ normal selection (309ms)

    Linewise Registers will be inserted properly

      ✓ downward selection (496ms)

      ✓ upward selection (621ms)

    Non-darwin <C-c> tests

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

    vi{ will go to end of second to last line

      ✓ select (391ms)

    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 (51ms)

      ✓ 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) (1940ms)

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

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

    can handle gn

      ✓ gn selects the next match text (1077ms)

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

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

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

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

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



  Mode Visual Block

    ✓ can be activated

    ✓ Can handle A forward select (361ms)

    ✓ Can handle A backwards select (399ms)

    ✓ Can handle I forward select (384ms)

    ✓ Can handle I backwards select (400ms)

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

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

    ✓ Can handle c forward select (357ms)

    ✓ Can handle c backwards select (551ms)

    ✓ Can handle C (396ms)

    ✓ Can do a multi line replace (346ms)

    ✓ Can handle 'D' (328ms)

    ✓ Can handle 'gj' (316ms)

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

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

    ✓ o works in visual block mode (346ms)

    Non-darwin <C-c> tests

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



  Mode Visual Line

    ✓ can be activated (38ms)

    ✓ Can handle w (746ms)

    ✓ Can handle wd (697ms)

    ✓ Can handle x (490ms)

    ✓ Can handle U (524ms)

    ✓ Can handle x across a selection (580ms)

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

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

    ✓ Can do vwd multiple times (857ms)

    ✓ Can handle U across a selection (583ms)

    ✓ Can handle U across a selection in reverse order (583ms)

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

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

    ✓ handles change operator (527ms)

Text transformations are overlapping. Falling back to serial
           transformations. This is generally a very bad sign. Try to make
           your text transformations operate on non-overlapping ranges.

    1) Vp updates register content

    Vim's EOL handling is weird

      ✓ delete through eol (476ms)

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

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

      ✓ vd$ does delete whole line (353ms)

    Arrow keys work perfectly in Visual Line Mode

      ✓ Can handle <up> key (251ms)

      ✓ Can handle <down> key (270ms)

    Can handle d/c correctly in Visual Line Mode

      ✓ Can handle d key (222ms)

      ✓ Can handle d key (206ms)

      ✓ Can handle d key (290ms)

      ✓ Can handle d key (320ms)

      ✓ can handle 'c' (243ms)

    handles replace in visual line mode

      ✓ Can do a single line replace (385ms)

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

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

    search works in visual line mode

      ✓ Works with / (255ms)

      ✓ Works with ? (302ms)

    Non-darwin <C-c> tests

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

    replace text in linewise visual-mode with linewise register content

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

Text transformations are overlapping. Falling back to serial
           transformations. This is generally a very bad sign. Try to make
           your text transformations operate on non-overlapping ranges.

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

    replace text in linewise visual-mode with linewise register content

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

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

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



  Mode Normal

    ✓ Can handle 'x' (162ms)

Text transformations are overlapping. Falling back to serial
           transformations. This is generally a very bad sign. Try to make
           your text transformations operate on non-overlapping ranges.

    ✓ Can handle 'Nx' (214ms)

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

Text transformations are overlapping. Falling back to serial
           transformations. This is generally a very bad sign. Try to make
           your text transformations operate on non-overlapping ranges.

    ✓ Can handle 'Ns' (173ms)

Text transformations are overlapping. Falling back to serial
           transformations. This is generally a very bad sign. Try to make
           your text transformations operate on non-overlapping ranges.

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

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

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

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

    ✓ Can handle 'cc' (244ms)

    ✓ Can handle 'Ncc' (311ms)

    ✓ Can handle 'yy' (237ms)

    ✓ Can handle 'D' (222ms)

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

    ✓ Can handle 'DD' (309ms)

    ✓ Can handle 'C' (288ms)

    ✓ Can handle 'NC' (277ms)

    ✓ Can handle 'r' (230ms)

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

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

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

    ✓ Can handle 'J' once (290ms)

    ✓ Can handle 'J' twice (371ms)

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

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

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

    ✓ Can handle 'J' with only white space on next line (200ms)

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

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

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

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

    ✓ Can handle 'gJ' once (174ms)

    ✓ Can handle 'gJ' once and ALL WHITESPACE IS ELIMINATED (138ms)

    ✓ Can handle '~' (126ms)

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

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

    ✓ Can handle undo with P (401ms)



  Dot Operator

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

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

    ✓ Can repeat 'x' (125ms)

    ✓ Can repeat 'J' (167ms)

    ✓ Can handle dot with A (486ms)

    ✓ Can handle dot with I (381ms)

    ✓ Can repeat actions that require selections (418ms)



  Repeat content change

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?
invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?
invalid value for set cursor position. This is probably bad?

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

invalid value for set cursor position. This is probably bad?
invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?
invalid value for set cursor position. This is probably bad?

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

invalid value for set cursor position. This is probably bad?
invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

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

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

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

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


  Motions in Normal Mode

    ✓ Can handle % (118ms)

    ✓ Can handle % (270ms)

    ✓ Can handle % (135ms)

    ✓ Can handle % (130ms)

    ✓ Can handle % (112ms)

    ✓ Can handle % (340ms)

    ✓ Can handle [( (157ms)

    ✓ Can handle nested [( (261ms)

    ✓ Can handle <number>[( (176ms)

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

    ✓ Can handle ]) (155ms)

    ✓ Can handle nested ]) (177ms)

    ✓ Can handle <number>]) (246ms)

    ✓ Can handle ]) and character under cursor exclusive (248ms)

    ✓ Can handle [{ (163ms)

    ✓ Can handle nested [{ (193ms)

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

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

    ✓ Can handle ]} (177ms)

    ✓ Can handle nested ]} (237ms)

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

    ✓ Can handle ]} and character under cursor exclusive (189ms)

    ✓ Can handle 'ge' (483ms)

    ✓ Can handle 'gg' (273ms)

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

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

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

    ✓ Can handle <enter> (273ms)

    ✓ $ always keeps cursor on EOL (414ms)

    ✓ Can handle $ with a count (188ms)

    ✓ Can handle $ with a count at end of file (168ms)

    ✓ Can handle <end> with a count (343ms)

    ✓ Can handle <D-right> with a count (213ms)

    ✓ Can handle 'f' (348ms)

    ✓ Can handle 'f' twice (386ms)

    ✓ Can handle 'F' (325ms)

    ✓ Can handle 'F' twice (311ms)

    ✓ Can handle 't' (355ms)

    ✓ Can handle 't' twice (364ms)

    ✓ Can handle 'T' (307ms)

    ✓ Can handle 'T' twice (347ms)

    ✓ Can run a forward search (134ms)

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

    ✓ Can run a reverse search (531ms)

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

    ✓ maintains column position correctly (285ms)

    ✓ maintains column position correctly with $ (195ms)

    ✓ Can handle G  (124ms)

    ✓ Can handle G with number prefix (150ms)

    ✓ Can handle G with number prefix (138ms)

    ✓ Can handle gg (138ms)

    ✓ Can handle gg with number prefix (107ms)

    ✓ Can handle dot with A (396ms)

    ✓ Can handle dot with I (413ms)

    ✓ Can handle 0 (415ms)

    ✓ Can handle 0 as part of a repeat (155ms)

    ✓ Can handle g* (121ms)

    ✓ Can handle g*n (164ms)

    ✓ Can handle * (102ms)

    ✓ Can handle ** (138ms)

    ✓ Can handle # on whitespace (482ms)

    ✓ Can handle # on EOL (446ms)

    ✓ Can handle g# (627ms)

    ✓ Can handle g#n (669ms)

    ✓ Can handle # (620ms)

    ✓ Can handle # already on the word (379ms)

    ✓ Can handle ## (558ms)

    ✓ Can handle | (608ms)

    ✓ Can handle <number> | (628ms)

    ✓ Can handle + (118ms)

    ✓ Can handle + indent (122ms)

    ✓ Can handle + with count prefix (151ms)

    ✓ Can handle - (142ms)

    ✓ Can handle - indent (174ms)

    ✓ Can handle - with count prefix (218ms)

    ✓ Can handle _ (134ms)

    ✓ Can handle _ with count prefix (176ms)

    ✓ Can handle g_ (153ms)

    ✓ Can handle g_ with count prefix (224ms)

    ✓ Can handle <up> key (204ms)

    ✓ Can handle <down> key (198ms)

    ✓ Can handle <left> key (205ms)

    ✓ Can handle <right> key (165ms)



  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



  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


  numeric string

    ✓ fails on non-string

    ✓ handles hex round trip

    ✓ handles decimal round trip
    ✓ handles octal trip



  comment operator

    ✓ gcc comments out current line (555ms)

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

    ✓ block comment with motion (837ms)

    ✓ block comment in Visual Mode (522ms)



  put operator

    ✓ basic put test (516ms)

    ✓ test yy end of line (341ms)

    ✓ test yy first line (352ms)

    ✓ test yy middle line (234ms)

    ✓ test yy with correct positon movement (177ms)



  shift operator

    ✓ basic shift left test (243ms)

    ✓ shift left goto end test (229ms)

    ✓ shift left goto line test (283ms)

    ✓ shift right goto end test (143ms)

    ✓ shift right goto line test (186ms)


  easymotion plugin

    ✓ Can handle s move (163ms)

    ✓ Can handle 2s move (155ms)

    ✓ Can handle f move (312ms)

    ✓ Can handle 2f move (150ms)

    ✓ Can handle F move (304ms)

    ✓ Can handle 2F move (297ms)

    ✓ Can handle t move (225ms)

    ✓ Can handle bd-t move (270ms)

    ✓ Can handle 2t move (203ms)

    ✓ Can handle bd-t2 move (223ms)

    ✓ Can handle T move (253ms)

    ✓ Can handle 2T move (273ms)

    ✓ Can handle w move (251ms)

    ✓ Can handle bd-w move (232ms)

    ✓ Can handle b move (443ms)

    ✓ Can handle e move (230ms)

    ✓ Can handle bd-e move (251ms)

    ✓ Can handle ge move (274ms)

    ✓ Can handle n-char move (288ms)

    ✓ Can handle j move (235ms)

    ✓ Can handle k move (279ms)

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

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


  sneak plugin

    ✓ Can handle s motion (123ms)

    ✓ Can handle S motion (257ms)

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

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

    ✓ Can handle s; motion (121ms)

    ✓ Can handle s, motion (325ms)

    ✓ Can handle S; motion (306ms)

    ✓ Can handle S, motion (397ms)


  surround plugin

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

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

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

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

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

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

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

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

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

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

    ✓ change surround (412ms)

    ✓ change surround to tags (373ms)

    ✓ delete surround (400ms)

    ✓ delete surround with tags (449ms)

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

    ✓ changing brackets with surround works again (214ms)



  register

    ✓ Can copy to a register (124ms)

    ✓ Can use two registers together (211ms)

    ✓ Can use black hole register (195ms)

    ✓ System clipboard works with chinese characters (233ms)

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

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

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

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

    ✓ Can put and get to register

    clipboard

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

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



  Repeatable movements with f and t

    ✓ Can repeat f<character> (141ms)

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

    ✓ Can repeat t<character> (132ms)

    ✓ Can repeat N times reversed t<character> (220ms)



  text editor

    ✓ insert 'Hello World'

    ✓ replace 'World' with 'Foo Bar'

    ✓ delete `Hello`

    ✓ delete the whole line

    ✓ try to read lines that don't exist



  893 passing (6m)
  1 failing


  1) Mode Visual Line
       Vp updates register content:

      Content does not match; Expected=world. Actual=.
      + expected - actual

      +world
      
      at Suite.suite (test/mode/modeVisualLine.test.ts:319:3)




Tests exited with code: 1

@tyru
Copy link
Contributor Author

tyru commented May 4, 2018

#2601 and another PR(s) have broken the master build.

Sent #2609.
It fixes broken master.

But I found another problem.
The problem is that the test codes depend on user settings (settings.json).
After I changed my config to "editor.autoClosingBrackets": false, the below test case failed.
because it assumes inputting ( makes buffer content to ().

assertEqualLines(['()']);

Removing this line passes the test, however.

@tyru tyru changed the title WIP: Add missing window keys (<C-w><C-[hjklovq]>) Add missing window keys (<C-w><C-[hjklovq]>) May 4, 2018
@jpoon
Copy link
Member

jpoon commented May 4, 2018

Test should pass on CI though? We need that test as we have has special logic to delete that matching ).

The tests already have a mechanism to override the "vim" specific configurations (https://github.com/VSCodeVim/Vim/blob/master/test/testConfiguration.ts), maybe we need to do something similar for the global settings.

package.json Outdated
"key": "ctrl+[",
"command": "extension.vim_ctrl+[",
"when": "editorTextFocus && vim.active && vim.use<C-[> && !inDebugRepl"
"key": "ctrl+k",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can merge the two ctrl+k to

      {
        "key": "ctrl+k",
        "command": "extension.vim_ctrl+k",
        "when": "editorTextFocus && vim.active && vim.use<C-k> && !inDebugRepl"
      },

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. how about duplicate ctrl+h and ctrl+j?
In the same way, I should merge like this?

      {
        "key": "ctrl+h",
        "command": "extension.vim_ctrl+h",
        "when": "editorTextFocus && vim.active && vim.use<C-h> && !inDebugRepl"
      },
      {
        "key": "ctrl+j",
        "command": "extension.vim_ctrl+j",
        "when": "editorTextFocus && vim.active && vim.use<C-j> && !inDebugRepl"
      },

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah, I didn't spot those duplicates. That looks good.

package.json Outdated
"key": "ctrl+a",
"command": "extension.vim_ctrl+a",
"when": "editorTextFocus && vim.active && vim.use<C-a> && !inDebugRepl"
"key": "ctrl+v",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can merge these two ctrl+v as well:

      {
        "key": "ctrl+v",
        "command": "extension.vim_ctrl+v",
        "when": "editorTextFocus && vim.active && vim.use<C-v> && !inDebugRepl"
      },

},
{
"key": "g g",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fairly certain we need this. When the explorer window is selected, pressing gg will take you to the first item in the list.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oooops I'm sorry... entirely I didn't care the explorer window and the when condition`.
Will restore it later.

@jpoon
Copy link
Member

jpoon commented May 4, 2018

Thanks for sorting the package.json. Makes it easier to read/review.

@tyru
Copy link
Contributor Author

tyru commented May 4, 2018

Test should pass on CI though? We need that test as we have has special logic to delete that matching ).

The tests already have a mechanism to override the "vim" specific configurations (https://github.com/VSCodeVim/Vim/blob/master/test/testConfiguration.ts), maybe we need to do something similar for the global settings.

Ah, okay, forgot about that 😅

@tyru
Copy link
Contributor Author

tyru commented May 4, 2018

Okay, fixed problems 🎉
Failing tests should pass if #2609 is merged.

@TravisBuddy
Copy link

Travis tests have failed

Hey @tyru,
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: 8

npm test --silent;
### VS Code Extension Test Run ###
Current working directory: /home/travis/build/VSCodeVim/Vim
Downloading VS Code into "/home/travis/build/VSCodeVim/Vim/.vscode-test/stable" from: https://vscode-update.azurewebsites.net/1.23.0/linux-x64/stable
Running extension tests: /home/travis/build/VSCodeVim/Vim/.vscode-test/stable/VSCode-linux-x64/code /home/travis/build/VSCodeVim/Vim/out/test --extensionDevelopmentPath=/home/travis/build/VSCodeVim/Vim --extensionTestsPath=/home/travis/build/VSCodeVim/Vim/out/test
Xlib:  extension "RANDR" missing on display ":99.0".

Xlib:  extension "RANDR" missing on display ":99.0".

[main 9:41:17 AM] update#setState idle

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

bash: no job control in this shell

nvm is not compatible with the "npm_config_prefix" environment variable: currently set to "/home/travis/.nvm/versions/node/v8.11.1"
Run `unset npm_config_prefix` to unset it.





  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


  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



  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



  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



  Basic sort

    ✓ Sort whole file, asc (395ms)

    ✓ Sort whole file, dsc (245ms)

    ✓ Sort range, asc (319ms)

    ✓ Sort range, dsc (333ms)



  :close args parser

    ✓ has all aliases

    ✓ can parse empty args

    ✓ ignores trailing white space

    ✓ can parse !

    ✓ throws if space before !

    ✓ ignores space after !

    ✓ throws if bad input



  :quit args parser

    ✓ has all aliases

    ✓ 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



  :write args parser

    ✓ has all aliases

    ✓ 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 (146ms)

    ✓ Replace with `g` flag (157ms)

    ✓ Replace multiple lines (248ms)

    ✓ Replace across specific lines (223ms)

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

    ✓ Replace text in selection (312ms)

    ✓ Substitute support marks (287ms)

    Effects of substituteGlobalFlag=true

      ✓ Replace all matches in the line (170ms)

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

      ✓ Replace multiple lines (214ms)

      ✓ Replace across specific lines (243ms)

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

      ✓ Replace text in selection (301ms)

      ✓ Substitute support marks (224ms)

      ✓ Substitute with escaped delimiter (193ms)

    Substitute with empty search string should use previous search

      ✓ Substitute with previous search using * (570ms)

      ✓ Substitute with previous search using # (532ms)

      ✓ Substitute with previous search using / (538ms)

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



  cmd_line tab

    ✓ tabe with no arguments when not in workspace opens an untitled file (76ms)

    ✓ tabedit with no arguments when not in workspace opens an untitled file (51ms)

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

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



  Vertical split

    ✓ Run :vs (132ms)

    ✓ Run :vsp (84ms)



  Basic write-quit

    ✓ Run write and quit (238ms)


  Configuration
    ✓ remappings are normalized



  Notation

    ✓ Normalize


  Remapper

Something bad happened in removeChange

    ✓ jj -> <Esc> (60ms)

    ✓ remapped command with leader 



  Error

    ✓ error code has message



  package.json

    ✓ all keys have handlers

    ✓ all defined configurations in package.json have handlers



  Record and execute a macro

    ✓ Can record and execute (437ms)

    ✓ Can repeat last invoked macro (478ms)

    ✓ Can play back with count (769ms)

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

    ✓ Repeat change on contiguous lines (362ms)

    ✓ Append command to a macro (369ms)

    ✓ Can record Ctrl Keys and repeat (322ms)

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



  Mode Handler

    ✓ ctor

    ✓ can set current mode



  Mode Handler Map

    ✓ getOrCreate



  Mode Insert

    ✓ can be activated (148ms)

    ✓ can handle key events (42ms)

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

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

    ✓ <Esc> can exit insert (107ms)

    ✓ Stay in insert when entering characters (136ms)

    ✓ Can handle 'O' (120ms)

    ✓ Can handle 'i' (254ms)

    ✓ Can handle 'I' (154ms)

    ✓ Can handle 'a' (177ms)

    ✓ Can handle 'A' (111ms)

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

    ✓ Can handle '<C-w>' (250ms)

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

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

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

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

    ✓ will not remove leading spaces input by user (72ms)

    ✓ will remove closing bracket (105ms)

    ✓ Backspace works on whitespace only lines (154ms)

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

    ✓ Backspace works at beginning of file (109ms)

[main 9:41:47 AM] update#setState checking for updates

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

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

[main 9:41:48 AM] update#setState idle

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

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

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

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

Text transformations are overlapping. Falling back to serial
           transformations. This is generally a very bad sign. Try to make
           your text transformations operate on non-overlapping ranges.

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

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

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

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



  Mode Normal

    ✓ Can be activated (58ms)

    ✓ Can handle % (101ms)

    ✓ Can handle % before opening brace (104ms)

    ✓ Can handle % nested inside parens (115ms)

    ✓ Can handle dw (188ms)

    ✓ Can handle dw (177ms)

    ✓ Can handle dw (161ms)

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

    ✓ Can handle dw across lines (2) (100ms)

    ✓ Can handle dd last line (118ms)

    ✓ Can handle dd single line (85ms)

    ✓ Can handle dd (206ms)

    ✓ Can handle 3dd (105ms)

    ✓ Can handle 3dd off end of document (79ms)

    ✓ Can handle d2d (78ms)

    ✓ Can handle dd empty line (90ms)

    ✓ Can handle ddp (88ms)

    ✓ Can handle 'de' (126ms)

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

    ✓ Can handle 'db' (117ms)

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

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

    ✓ Can handle 'dF' (124ms)

    ✓ Can handle 'dT' (109ms)

    ✓ Can handle 'd3' then <enter> (100ms)

    ✓ Can handle 'dj' (83ms)

    ✓ Can handle 'dk' (131ms)

    ✓ Can handle 'cw' (187ms)

    ✓ Can handle 'cw' without deleting following white spaces (88ms)

    ✓ Can handle 'c2w' (93ms)

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

    ✓ Can handle 's' (330ms)

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

    ✓ Can handle 'ciw' (201ms)

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

    ✓ Can handle 'caw' (148ms)

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

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

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

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

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

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

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

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

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

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

    ✓ Can handle 'ci{' spanning multiple lines (84ms)

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

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

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

    ✓ Can handle 'ciB' spanning multiple lines (94ms)

    ✓ will fail when ca( with no () (63ms)

    ✓ will fail when ca{ with no {} (72ms)

    ✓ will fail when caB with no {} (87ms)

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

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

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

    ✓ Can handle 'ca]' on first bracket (167ms)

    ✓ Can handle 'ci'' on first quote (111ms)

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

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

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

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

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

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

    ✓ Can handle 'ca"' starting on the opening quote (105ms)

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

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

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

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

    ✓ Can handle 'ci"' with an escaped backslash on closing quote (111ms)

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

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

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

    ✓ will fail when ca" ahead of quoted string (217ms)

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

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

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

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

    ✓ Can handle 'daw' on word with numeric prefix (109ms)

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

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

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

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

    ✓ Can handle 'daw' on words at beginning of line with leading whitespace (193ms)

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

    ✓ Can handle 'daw' on word at beginning of file (99ms)

    ✓ Can handle 'daw' on word at beginning of line (189ms)

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

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

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

    ✓ Can handle 'daW' around word at whitespace (132ms)

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

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

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

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

    ✓ Can handle 'daW' on beginning of word (154ms)

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

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

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

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

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

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

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

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

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

    ✓ Can handle 'diw' on word with numeric prefix (104ms)

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

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

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

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

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

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

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

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

    ✓ Can handle 'diW' on beginning of word (179ms)

    ✓ Can handle d} (128ms)

    ✓ Can handle y} at beginning of line (126ms)

    ✓ Select sentence with trailing spaces (245ms)

    ✓ Select sentence with leading spaces (425ms)

    ✓ Select inner sentence with trailing spaces (267ms)

    ✓ Select inner sentence with leading spaces (428ms)

    ✓ Select spaces between sentences (507ms)

    ✓ Can handle 'df' (266ms)

    ✓ Can handle 'dt' (252ms)

    ✓ Can handle backspace (140ms)

    ✓ Can handle backspace across lines (75ms)

    ✓ Can handle A and backspace (138ms)

    ✓ Can handle 'yy' without changing cursor position (199ms)

    ✓ Can handle 'P' after 'yy' (168ms)

    ✓ Can handle 'p' after 'yy' (126ms)

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

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

    ✓ Can handle 'p' after 'yy' with correct cursor position (174ms)

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

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

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

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

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

    ✓ Can handle ']p' after yy (161ms)

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

    ✓ Can handle ']p' after 'Nyy' and indent with tabs first (251ms)

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

    ✓ Can handle '[p' after yy (250ms)

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

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

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

    ✓ Can handle 'p' after y'a (141ms)

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

    ✓ Can repeat w (95ms)

    ✓ Can repeat p (93ms)

    ✓ I works correctly (211ms)

    ✓ gI works correctly (168ms)

    ✓ gi works correctly (373ms)

    ✓ `. works correctly (261ms)

    ✓ '. works correctly (239ms)

    ✓ g; works correctly (336ms)

    ✓ g, works correctly (317ms)

    ✓ g_ works correctly (158ms)

    ✓ 3g_ works correctly (157ms)

    ✓ Can handle space (78ms)

    ✓ Can handle space (111ms)

    ✓ Undo 1 (289ms)

    ✓ Undo 2 (254ms)

    ✓ Undo cursor (415ms)

    ✓ Undo cursor 2 (335ms)

    ✓ Undo cursor 3 (426ms)

    ✓ Undo with movement first (337ms)

    ✓ Can handle 'U' (160ms)

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

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

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

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

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

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

    ✓ Redo (409ms)

    ✓ Redo (378ms)

    ✓ Redo (450ms)

    ✓ Can handle u (93ms)

    ✓ Can handle guw (72ms)

    ✓ Can handle gUw (78ms)

    ✓ Can handle u over line breaks (136ms)

    ✓ can handle s in visual mode (390ms)

    ✓ can handle p with selection (175ms)

    ✓ can handle P with selection (213ms)

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

    ✓ can repeat backspace twice (340ms)

    ✓ can delete linewise with d2G (158ms)

    ✓ can dE correctly (126ms)

    ✓ can dE correctly (234ms)

    ✓ can dE correctly (280ms)

    ✓ can ctrl-a correctly behind a word (110ms)

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

    ✓ can ctrl-a on word (156ms)

    ✓ can ctrl-a on a hex number (125ms)

    ✓ can ctrl-a on decimal (109ms)

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

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

    ✓ can ctrl-a on an octal  (170ms)

    ✓ Correctly increments in the middle of a number (116ms)

    ✓ can ctrl-x correctly behind a word (131ms)

    ✓ can ctrl-a on an number with word before  (100ms)

    ✓ can ctrl-a on an number with word before and after  (111ms)

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

    ✓ can ctrl-a properly on multiple lines (269ms)

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

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

    ✓ can do Y (130ms)

    ✓ Can do S (195ms)

    ✓ / does not affect mark (187ms)

    ✓ / can search with regex (121ms)

    ✓ / can search with newline (157ms)

    ✓ / can search through multiple newlines (173ms)

    ✓ / matches ^ per line (110ms)

    ✓ / matches $ per line (102ms)

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

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

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

    ✓ <S-BS> deletes the last character in search in progress mode (121ms)

    ✓ <C-h> deletes the last character in search in progress mode (119ms)

    ✓ Can do C (198ms)

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

    ✓ Ignores cit on a non-matching tag (190ms)

    ✓ Ignores cit on a nested tag (234ms)

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

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

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

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

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

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

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

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

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

    ✓ Respects indentation with cc (227ms)

    ✓ can handle 'cc' on empty line (128ms)

    ✓ cc copies linewise (215ms)

    ✓ Indent current line with correct Vim Mode (286ms)

    ✓ Can handle <Esc> and do nothing (124ms)

    ✓ Can handle # on consecutive words (517ms)

    ✓ Can handle # on skipped words (785ms)

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

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

    ✓ cc on whitespace-only line clears line (205ms)

    ✓ Can do cai (652ms)

    ✓ Can do cii (262ms)

    ✓ Can do caI (593ms)

    ✓ Can do dai (606ms)

    ✓ Can do dii (212ms)

    ✓ Can do daI (782ms)

    can handle gn

      ✓ gn selects the next match text (837ms)

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

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

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

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

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

    can handle dgn

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

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

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

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

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

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

    can handle cgn

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

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

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

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

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

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

    can handle gN

      ✓ gN selects the previous match text (892ms)

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

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

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

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

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

    can handle dgN

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

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

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

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

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

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

    can handle cgN

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

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

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

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

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

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



  Mode Replace

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

    ✓ Can activate with R from Normal mode (192ms)

    ✓ Can handle R (225ms)

    ✓ Can handle R past current line (232ms)

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

    ✓ Can handle R across lines (330ms)

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

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

    ✓ Can handle backspace (311ms)

    ✓ Can handle backspace (489ms)

    ✓ Can handle backspace across lines (519ms)

    ✓ Can handle arrows (335ms)

    ✓ Can handle . (561ms)

    ✓ Can handle . across lines (840ms)


  Mode Visual

    ✓ can be activated

    ✓ Can handle w (747ms)

    ✓ Can handle wd (751ms)

    ✓ Can handle x (562ms)

    ✓ Can handle x across a selection (635ms)

    ✓ Can do vwd in middle of sentence (841ms)

    ✓ Can do vwd in middle of sentence (772ms)

    ✓ Can do vwd multiple times (1176ms)

    ✓ handles case where we go from selecting on right side to selecting on left side (838ms)

    ✓ Can handle H key (230ms)

    ✓ handles case where we delete over a newline (1013ms)

    ✓ handles change operator (594ms)

    ✓ Can do vi) on a matching parenthesis (361ms)

    ✓ Can do va) on a matching parenthesis (299ms)

    ✓ Can do va} on a matching bracket as first character (247ms)

    ✓ Can do vi( on a matching bracket near first character (207ms)

    ✓ Can do vi{ on outer pair of nested braces (370ms)

    ✓ Can do vi{ on braces indented by 1 and preserve indent (322ms)

    ✓ Can use . to repeat indent in visual (236ms)

    ✓ Can do v_x to delete to first char (360ms)

    ✓ Can do vg_x to delete to last char with no EOL (460ms)

    ✓ Can do v3g_x to delete to last char with no EOL with count (280ms)

    ✓ Can do v$x to delete to last char including EOL (469ms)

    ✓ Can do gv to reselect previous selection (401ms)

    Vim's EOL handling is weird

      ✓ delete through eol (418ms)

      ✓ join 2 lines by deleting through eol (446ms)

      ✓ d$ doesn't delete whole line (303ms)

      ✓ vd$ does delete whole line (345ms)

      ✓ Paste over selection copies the selection (297ms)

      ✓ Paste over selection copies the selection linewise (284ms)

    Arrow keys work perfectly in Visual Mode

      ✓ Can handle <up> key (191ms)

      ✓ Can handle <down> key (233ms)

      ✓ Can handle <left> key (233ms)

      ✓ Can handle <right> key (207ms)

    handles aw in visual mode

      ✓ Can handle 'vawd' on word with cursor inside spaces (347ms)

      ✓ Can handle 'vawd' on word with trailing spaces (317ms)

      ✓ Can handle 'vawd' on word with leading spaces (458ms)

      ✓ Can handle 'vawd' on word with numeric prefix (270ms)

      ✓ Can handle 'vawd' on word with numeric prefix and across lines (703ms)

      ✓ Can handle 'vawd' on word with numeric prefix and across lines, containing words end with `.` (670ms)

    handles aW in visual mode

      ✓ Can handle 'vaWd' on big word with cursor inside spaces (385ms)

      ✓ Can handle 'vaWd' on word with trailing spaces (340ms)

      ✓ Can handle 'vaWd' on word with leading spaces (473ms)

      ✓ Can handle 'vaWd' on word with numeric prefix (263ms)

      ✓ Can handle 'vaWd' on word with numeric prefix and across lines (647ms)

    handles aW in visual mode

      ✓ Can handle 'vaWd' on big word with cursor inside spaces (403ms)

      ✓ Can handle 'vaWd' on word with trailing spaces (361ms)

      ✓ Can handle 'vaWd' on word with leading spaces (467ms)

      ✓ Can handle 'vaWd' on word with numeric prefix (305ms)

      ✓ Can handle 'vaWd' on word with numeric prefix and across lines (698ms)

    handles aw in visual mode

      ✓ Can handle 'vawd' on word with cursor inside spaces (388ms)

      ✓ Can handle 'vawd' on word with trailing spaces (326ms)

      ✓ Can handle 'vawd' on word with leading spaces (481ms)

      ✓ Can handle 'vawd' on word with numeric prefix (221ms)

      ✓ Can handle 'vawd' on word with numeric prefix and across lines (667ms)

      ✓ Can handle 'vawd' on word with numeric prefix and across lines, containing words end with `.` (761ms)

    handles aW in visual mode

      ✓ Can handle 'vaWd' on big word with cursor inside spaces (404ms)

      ✓ Can handle 'vaWd' on word with trailing spaces (370ms)

      ✓ Can handle 'vaWd' on word with leading spaces (460ms)

      ✓ Can handle 'vaWd' on word with numeric prefix (221ms)

      ✓ Can handle 'vaWd' on word with numeric prefix and across lines (673ms)

      ✓ Can handle 'Y' in visual mode (197ms)

    handles as in visual mode

      ✓ Select sentence with trailing spaces in visual mode (458ms)

      ✓ Select sentence with leading spaces in visual mode (875ms)

      ✓ Select multiple sentences in visual mode (894ms)

    handles is in visual mode

      ✓ Select inner sentence with trailing spaces in visual mode (429ms)

      ✓ Select inner sentence with leading spaces in visual mode (813ms)

      ✓ Select spaces between sentences in visual mode (697ms)

    handles tag blocks in visual mode

      ✓ Can do vit on a matching tag (451ms)

      ✓ Can do vat on a matching tag (453ms)

    handles replace in visual mode

      ✓ Can do a single line replace (329ms)

      ✓ Can do a multi line replace (249ms)

    D command will remove all selected lines

      ✓ D deletes all selected lines (291ms)

      ✓ D deletes the current line (349ms)

    handles indent blocks in visual mode

      ✓ Can do vai (642ms)

      ✓ Can do vii (348ms)

      ✓ Doesn't naively select the next line (359ms)

      ✓ Searches backwards if cursor line is empty (274ms)

      ✓ Can do vaI (748ms)

    visualstar

      ✓ Works with * (247ms)

      ✓ Works with # (228ms)

    search works in visual mode

      ✓ Works with / (269ms)

      ✓ Works with ? (287ms)

      ✓ Selects correct range (560ms)

    X will delete linewise

      ✓ normal selection (226ms)

      ✓ normal selection (239ms)

    C will delete linewise

      ✓ normal selection (255ms)

      ✓ normal selection (244ms)

    R will delete linewise

      ✓ normal selection (244ms)

      ✓ normal selection (277ms)

    Linewise Registers will be inserted properly

      ✓ downward selection (554ms)

      ✓ upward selection (447ms)

    Non-darwin <C-c> tests

      ✓ <C-c> copies and sets mode to normal (668ms)

    vi{ will go to end of second to last line

      ✓ select (378ms)

    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 (41ms)

      ✓ <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 (42ms)

    replace text in characterwise visual-mode with characterwise register content

      ✓ gv selects the last pasted text (which is shorter than original) (2073ms)

      ✓ gv selects the last pasted text (which is longer than original) (1808ms)

      ✓ gv selects the last pasted text (multiline) (786ms)

    can handle gn

      ✓ gn selects the next match text (991ms)

      ✓ gn selects the current word at |hello (1013ms)

      ✓ gn selects the current word at h|ello (937ms)

      ✓ gn selects the current word at hel|lo (843ms)

      ✓ gn selects the next word at hell|o (818ms)

      ✓ gn selects the next word at hello| (942ms)



  Mode Visual Block

    ✓ can be activated

    ✓ Can handle A forward select (283ms)

    ✓ Can handle A backwards select (371ms)

    ✓ Can handle I forward select (309ms)

    ✓ Can handle I backwards select (363ms)

    ✓ Can handle I with empty lines on first character (inserts on empty line) (310ms)

    ✓ Can handle I with empty lines on non-first character (does not insert on empty line) (343ms)

    ✓ Can handle c forward select (292ms)

    ✓ Can handle c backwards select (380ms)

    ✓ Can handle C (381ms)

    ✓ Can do a multi line replace (321ms)

    ✓ Can handle 'D' (294ms)

    ✓ Can handle 'gj' (301ms)

    ✓ Properly add to end of lines j then $ (417ms)

    ✓ Properly add to end of lines $ then j (278ms)

    ✓ o works in visual block mode (341ms)

    Non-darwin <C-c> tests

      ✓ <C-c> copies and sets mode to normal (745ms)



  Mode Visual Line

    ✓ can be activated

    ✓ Can handle w (661ms)

    ✓ Can handle wd (699ms)

    ✓ Can handle x (646ms)

    ✓ Can handle U (718ms)

    ✓ Can handle x across a selection (595ms)

    ✓ Can do vwd in middle of sentence (649ms)

    ✓ Can do vwd in middle of sentence (545ms)

    ✓ Can do vwd multiple times (861ms)

    ✓ Can handle U across a selection (516ms)

    ✓ Can handle U across a selection in reverse order (462ms)

    ✓ handles case where we go from selecting on right side to selecting on left side (532ms)

    ✓ handles case where we delete over a newline (623ms)

    ✓ handles change operator (428ms)

Text transformations are overlapping. Falling back to serial
           transformations. This is generally a very bad sign. Try to make
           your text transformations operate on non-overlapping ranges.

    1) Vp updates register content

    Vim's EOL handling is weird

      ✓ delete through eol (391ms)

      ✓ join 2 lines by deleting through eol (345ms)

      ✓ d$ doesn't delete whole line (299ms)

      ✓ vd$ does delete whole line (313ms)

    Arrow keys work perfectly in Visual Line Mode

      ✓ Can handle <up> key (200ms)

      ✓ Can handle <down> key (283ms)

    Can handle d/c correctly in Visual Line Mode

      ✓ Can handle d key (194ms)

      ✓ Can handle d key (203ms)

      ✓ Can handle d key (231ms)

      ✓ Can handle d key (278ms)

      ✓ can handle 'c' (245ms)

    handles replace in visual line mode

      ✓ Can do a single line replace (208ms)

      ✓ Can do a multi visual line replace (273ms)

      ✓ Can do a multi visual line replace from the bottom up (256ms)

    search works in visual line mode

      ✓ Works with / (246ms)

      ✓ Works with ? (327ms)

    Non-darwin <C-c> tests

      ✓ <C-c> copies and sets mode to normal (631ms)

    replace text in linewise visual-mode with linewise register content

      ✓ yyVp does not change the content but changes cursor position (172ms)

Text transformations are overlapping. Falling back to serial
           transformations. This is generally a very bad sign. Try to make
           your text transformations operate on non-overlapping ranges.

      ✓ linewise visual put works also in the end of document (250ms)

    replace text in linewise visual-mode with linewise register content

      ✓ gv selects the last pasted text (which is shorter than original) (1557ms)

      ✓ gv selects the last pasted text (which is longer than original) (1460ms)

      ✓ gv selects the last pasted text (multiline) (774ms)



  Mode Normal

    ✓ Can handle 'x' (145ms)

Text transformations are overlapping. Falling back to serial
           transformations. This is generally a very bad sign. Try to make
           your text transformations operate on non-overlapping ranges.

    ✓ Can handle 'Nx' (153ms)

    ✓ Can handle 'x' at end of line (393ms)

Text transformations are overlapping. Falling back to serial
           transformations. This is generally a very bad sign. Try to make
           your text transformations operate on non-overlapping ranges.

    ✓ Can handle 'Ns' (91ms)

Text transformations are overlapping. Falling back to serial
           transformations. This is generally a very bad sign. Try to make
           your text transformations operate on non-overlapping ranges.

    ✓ Can handle 'Ns' at end of line (170ms)

    ✓ Can handle '<Del>' (125ms)

    ✓ Can handle '<Del>' with counts, which removes the last character of the count (107ms)

    ✓ Can handle '<Del>' at end of line (461ms)

    ✓ Can handle 'cc' (271ms)

    ✓ Can handle 'Ncc' (229ms)

    ✓ Can handle 'yy' (177ms)

    ✓ Can handle 'D' (257ms)

    ✓ Can handle 'D' on empty lines (132ms)

    ✓ Can handle 'DD' (266ms)

    ✓ Can handle 'C' (216ms)

    ✓ Can handle 'NC' (282ms)

    ✓ Can handle 'r' (190ms)

    ✓ Can handle '<Count>r' (167ms)

    ✓ Can handle '<Count>r' (144ms)

    ✓ Can handle 'r' after 'dd' (273ms)

    ✓ Can handle 'J' once (214ms)

    ✓ Can handle 'J' twice (399ms)

    ✓ Can handle 'J' with empty last line (211ms)

    ✓ Can handle 'J's with multiple empty last lines (515ms)

    ✓ Can handle 'J' with leading white space on next line (155ms)

    ✓ Can handle 'J' with only white space on next line (143ms)

    ✓ Can handle 'J' with TWO indented lines (182ms)

    ✓ Can handle 'J' with ')' first character on next line (191ms)

    ✓ Can handle 'J' with a following delete (178ms)

    ✓ Can handle 'J' in Visual Line mode (166ms)

    ✓ Can handle 'gJ' once (108ms)

    ✓ Can handle 'gJ' once and ALL WHITESPACE IS ELIMINATED (142ms)

    ✓ Can handle '~' (119ms)

    ✓ Can handle 'g~{motion}' (120ms)

    ✓ Can handle '<BS>' in insert mode (169ms)

    ✓ Can handle undo with P (250ms)



  Dot Operator

    ✓ Can repeat '~' with <num> (96ms)

    ✓ Can repeat '~' with dot (188ms)

    ✓ Can repeat 'x' (82ms)

    ✓ Can repeat 'J' (120ms)

    ✓ Can handle dot with A (455ms)

    ✓ Can handle dot with I (381ms)

    ✓ Can repeat actions that require selections (351ms)



  Repeat content change

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?
invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

    ✓ Can repeat '<C-t>' (371ms)

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?
invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?
invalid value for set cursor position. This is probably bad?

    ✓ Can repeat insert change and '<C-t>' (381ms)

invalid value for set cursor position. This is probably bad?
invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

    ✓ Can repeat change by `<C-a>` (318ms)

    ✓ Only one arrow key can be repeated in Insert Mode (457ms)

invalid value for set cursor position. This is probably bad?
invalid value for set cursor position. This is probably bad?

invalid value for set cursor position. This is probably bad?

    ✓ Cached content change will be cleared by arrow keys (357ms)



  Motions in Normal Mode

    ✓ Can handle % (104ms)

    ✓ Can handle % (223ms)

    ✓ Can handle % (84ms)

    ✓ Can handle % (89ms)

    ✓ Can handle % (112ms)

    ✓ Can handle % (293ms)

    ✓ Can handle [( (120ms)

    ✓ Can handle nested [( (172ms)

    ✓ Can handle <number>[( (194ms)

    ✓ Can handle [( and character under cursor exclusive (115ms)

    ✓ Can handle ]) (216ms)

    ✓ Can handle nested ]) (179ms)

    ✓ Can handle <number>]) (204ms)

    ✓ Can handle ]) and character under cursor exclusive (229ms)

    ✓ Can handle [{ (174ms)

    ✓ Can handle nested [{ (279ms)

    ✓ Can handle <number>[{ (189ms)

    ✓ Can handle [{ and character under cursor exclusive (184ms)

    ✓ Can handle ]} (224ms)

    ✓ Can handle nested ]} (222ms)

    ✓ Can handle <number>]} (223ms)

    ✓ Can handle ]} and character under cursor exclusive (185ms)

    ✓ Can handle 'ge' (329ms)

    ✓ Can handle 'gg' (291ms)

    ✓ Can handle 'gg' to first non blank char on random line (221ms)

    ✓ Can handle 'gg' to first non blank char on first line (202ms)

    ✓ Retain same column when moving up/down (349ms)

    ✓ Can handle <enter> (400ms)

    ✓ $ always keeps cursor on EOL (512ms)

    ✓ Can handle $ with a count (172ms)

    ✓ Can handle $ with a count at end of file (182ms)

    ✓ Can handle <end> with a count (153ms)

    ✓ Can handle <D-right> with a count (178ms)

    ✓ Can handle 'f' (350ms)

    ✓ Can handle 'f' twice (375ms)

    ✓ Can handle 'F' (335ms)

    ✓ Can handle 'F' twice (378ms)

    ✓ Can handle 't' (348ms)

    ✓ Can handle 't' twice (412ms)

    ✓ Can handle 'T' (466ms)

    ✓ Can handle 'T' twice (353ms)

    ✓ Can run a forward search (127ms)

    ✓ Can run a forward and find next search (164ms)

    ✓ Can run a reverse search (372ms)

    ✓ Can run a reverse and find next search (556ms)

    ✓ maintains column position correctly (255ms)

    ✓ maintains column position correctly with $ (152ms)

    ✓ Can handle G  (96ms)

    ✓ Can handle G with number prefix (140ms)

    ✓ Can handle G with number prefix (197ms)

    ✓ Can handle gg (177ms)

    ✓ Can handle gg with number prefix (164ms)

    ✓ Can handle dot with A (386ms)

    ✓ Can handle dot with I (460ms)

    ✓ Can handle 0 (376ms)

    ✓ Can handle 0 as part of a repeat (122ms)

    ✓ Can handle g* (116ms)

    ✓ Can handle g*n (160ms)

    ✓ Can handle * (114ms)

    ✓ Can handle ** (137ms)

    ✓ Can handle # on whitespace (353ms)

    ✓ Can handle # on EOL (440ms)

    ✓ Can handle g# (705ms)

    ✓ Can handle g#n (669ms)

    ✓ Can handle # (667ms)

    ✓ Can handle # already on the word (211ms)

    ✓ Can handle ## (628ms)

    ✓ Can handle | (611ms)

    ✓ Can handle <number> | (597ms)

    ✓ Can handle + (125ms)

    ✓ Can handle + indent (77ms)

    ✓ Can handle + with count prefix (127ms)

    ✓ Can handle - (145ms)

    ✓ Can handle - indent (184ms)

    ✓ Can handle - with count prefix (197ms)

    ✓ Can handle _ (136ms)

    ✓ Can handle _ with count prefix (198ms)

    ✓ Can handle g_ (157ms)

    ✓ Can handle g_ with count prefix (244ms)

    ✓ Can handle <up> key (236ms)

    ✓ Can handle <down> key (197ms)

    ✓ Can handle <left> key (216ms)

    ✓ Can handle <right> key (152ms)



  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



  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



  numeric string

    ✓ fails on non-string

    ✓ handles hex round trip
    ✓ handles decimal round trip
    ✓ handles octal trip

  comment operator

    ✓ gcc comments out current line (562ms)

    ✓ gcj comments in current and next line (865ms)

    ✓ block comment with motion (886ms)

    ✓ block comment in Visual Mode (532ms)



  put operator

    ✓ basic put test (545ms)

    ✓ test yy end of line (514ms)

    ✓ test yy first line (396ms)

    ✓ test yy middle line (276ms)

    ✓ test yy with correct positon movement (325ms)



  shift operator

    ✓ basic shift left test (316ms)

    ✓ shift left goto end test (370ms)

    ✓ shift left goto line test (371ms)

    ✓ shift right goto end test (268ms)

    ✓ shift right goto line test (211ms)


  easymotion plugin

    ✓ Can handle s move (246ms)

    ✓ Can handle 2s move (243ms)

    ✓ Can handle f move (174ms)

    ✓ Can handle 2f move (193ms)

    ✓ Can handle F move (503ms)

    ✓ Can handle 2F move (287ms)

    ✓ Can handle t move (254ms)

    ✓ Can handle bd-t move (224ms)

    ✓ Can handle 2t move (219ms)

    ✓ Can handle bd-t2 move (396ms)

    ✓ Can handle T move (258ms)

    ✓ Can handle 2T move (343ms)

    ✓ Can handle w move (268ms)

    ✓ Can handle bd-w move (400ms)

    ✓ Can handle b move (359ms)

    ✓ Can handle e move (270ms)

    ✓ Can handle bd-e move (276ms)

    ✓ Can handle ge move (309ms)

    ✓ Can handle n-char move (297ms)

    ✓ Can handle j move (241ms)

    ✓ Can handle k move (243ms)

    ✓ Can handle bd-jk move (1) (219ms)

    ✓ Can handle bd-jk move (2) (250ms)



  sneak plugin

    ✓ Can handle s motion (121ms)

    ✓ Can handle S motion (241ms)

    ✓ Can handle <operator>z motion (245ms)

    ✓ Can handle <operator>Z motion (361ms)

    ✓ Can handle s; motion (170ms)

    ✓ Can handle s, motion (456ms)

    ✓ Can handle S; motion (377ms)

    ✓ Can handle S, motion (360ms)



  surround plugin

    ✓ 'ysiw)' surrounds word without space (600ms)

    ✓ 'ysiw(' surrounds word with space (508ms)

    ✓ 'ysw)' surrounds word without space (320ms)

    ✓ 'ysw(' surrounds word with space (288ms)

    ✓ 'ysaw)' surrounds word without space (740ms)

    ✓ 'ysaw(' surrounds word with space (509ms)

    ✓ 'ysiw(' surrounds word with space and ignores punctuation (457ms)

    ✓ 'ysiw<' surrounds word with tags (451ms)

    ✓ 'ysiw<' surrounds word with tags and attributes (449ms)

    ✓ 'yss)' surrounds entire line respecting whitespace (622ms)

    ✓ change surround (749ms)

    ✓ change surround to tags (570ms)

    ✓ delete surround (531ms)

    ✓ delete surround with tags (601ms)

    ✓ change surround brackets at end of line (356ms)

    ✓ changing brackets with surround works again (348ms)



  register

    ✓ Can copy to a register (169ms)

    ✓ Can use two registers together (211ms)

    ✓ Can use black hole register (230ms)

    ✓ System clipboard works with chinese characters (331ms)

    ✓ Yank stores text in Register '0' (970ms)

    ✓ Register '1'-'9' stores delete content (907ms)

    ✓ "A appends linewise text to "a (774ms)

    ✓ "A appends character wise text to "a (810ms)

    ✓ Can put and get to register

    clipboard

      ✓ Can access '*' (clipboard) register (243ms)

      ✓ Can access '+' (clipboard) register (197ms)



  Repeatable movements with f and t

    ✓ Can repeat f<character> (170ms)

    ✓ Can repeat reversed F<character> (215ms)

    ✓ Can repeat t<character> (184ms)

    ✓ Can repeat N times reversed t<character> (209ms)



  text editor

    ✓ insert 'Hello World'

    ✓ replace 'World' with 'Foo Bar'

    ✓ delete `Hello`

    ✓ delete the whole line
    ✓ try to read lines that don't exist



  893 passing (6m)
  1 failing


  1) Mode Visual Line
       Vp updates register content:

      Content does not match; Expected=world. Actual=.
      + expected - actual

      +world
      
      at Suite.suite (test/mode/modeVisualLine.test.ts:319:3)




Tests exited with code: 1

@tyru
Copy link
Contributor Author

tyru commented May 5, 2018

Thanks @jpoon for merging, now this branch is all green.

All my branches are left except refactoring p implementation in visual-mode.
The refactoring said here #2609 (comment) is bit difficult, so please feel free to ship the next release :)

@jpoon jpoon merged commit 6ae22ea into VSCodeVim:master May 5, 2018
@tyru tyru deleted the add-ctrl-w-ctrl-hjkl branch May 5, 2018 16:56
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.

<C-w><C-l> doesn't work (but <C-w>l works)
3 participants