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 normalModeKeyBindings and visualModeKeyBindings, remove otherModesKeyBindings #2726

Merged
merged 7 commits into from
Jun 18, 2018

Conversation

chibicode
Copy link
Contributor

What this PR does / why we need it:
Add visualModeKeyBindings/visualModeKeyBindingsNonRecursive in addition to otherModesKeyBindings/otherModesKeyBindingsNonRecursive so that we can add key bindings which only works in visual mode.

Which issue(s) this PR fixes
fixes #2705

@TravisBuddy
Copy link

Travis tests have failed

Hey @chibicode,
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.24.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 12:21:20 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.3"
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 history

    ✓ add command

    ✓ add empty command

    ✓ add command over configuration.history

    ✓ add command that exists in history

    ✓ load and save history

    ✓ change configuration.history

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

    ✓ Sort whole file, dsc (195ms)

    ✓ Sort range, asc (245ms)

    ✓ Sort range, dsc (287ms)



  :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 (119ms)

    ✓ Replace with `g` flag (117ms)

    ✓ Replace multiple lines (258ms)

    ✓ Replace across specific lines (179ms)

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

    ✓ Replace text in selection (271ms)

    ✓ Substitute support marks (236ms)

    Effects of substituteGlobalFlag=true

      ✓ Replace all matches in the line (156ms)

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

      ✓ Replace multiple lines (167ms)

      ✓ Replace across specific lines (162ms)

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

      ✓ Replace text in selection (244ms)

      ✓ Substitute support marks (211ms)

      ✓ Substitute with escaped delimiter (116ms)

    Substitute with empty search string should use previous search

      ✓ Substitute with previous search using * (446ms)

      ✓ Substitute with previous search using # (457ms)

      ✓ Substitute with previous search using / (345ms)

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


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

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



  Vertical split

    ✓ Run :vs (105ms)

    ✓ Run :vsp (72ms)



  Basic write-quit

    ✓ Run write and quit (243ms)


  Configuration
    ✓ remappings are normalized


  Notation

    ✓ Normalize


  Remapper

    ✓ jj -> <Esc>

    ✓ remapped command with leader 

    1) remapped command with leader, only on visual mode

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

    ✓ Can repeat last invoked macro (330ms)

    ✓ Can play back with count (549ms)

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

    ✓ Repeat change on contiguous lines (245ms)

    ✓ Append command to a macro (239ms)

    ✓ Can record Ctrl Keys and repeat (331ms)

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


  Mode Handler

    ✓ ctor

    ✓ can set current mode



  Mode Handler Map

    ✓ getOrCreate



  Mode Insert

    ✓ can be activated (114ms)

    ✓ can handle key events

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

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

    ✓ <Esc> can exit insert (92ms)

    ✓ Stay in insert when entering characters (148ms)

    ✓ Can handle 'O' (80ms)

    ✓ Can handle 'i' (156ms)

    ✓ Can handle 'I' (123ms)

    ✓ Can handle 'a' (140ms)

    ✓ Can handle 'A' (113ms)

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

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

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

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

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

    ✓ will remove closing bracket (52ms)

    ✓ Backspace works on whitespace only lines (98ms)

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

    ✓ Backspace works at beginning of file (97ms)

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

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

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

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

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

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

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

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

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

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



  Mode Normal

    ✓ Can be activated (60ms)

    ✓ Can handle % (94ms)

    ✓ Can handle % before opening brace (47ms)

    ✓ Can handle % nested inside parens (78ms)

    ✓ Can handle dw (111ms)

    ✓ Can handle dw (119ms)

    ✓ Can handle dw (121ms)

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

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

    ✓ Can handle dd last line (105ms)

    ✓ Can handle dd single line (51ms)

    ✓ Can handle dd (54ms)

    ✓ Can handle 3dd (116ms)

[main 12:21:50 AM] update#setState checking for updates

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

    ✓ Can handle d2d (94ms)

    ✓ Can handle dd empty line (87ms)

[main 12:21:51 AM] update#setState idle

    ✓ Can handle ddp (84ms)

    ✓ Can handle 'de' (131ms)

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

    ✓ Can handle 'db' (143ms)

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

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

    ✓ Can handle 'dF' (96ms)

    ✓ Can handle 'dT' (90ms)

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

    ✓ Can handle 'dj' (88ms)

    ✓ Can handle 'dk' (124ms)

    ✓ Can handle 'd])' without deleting closing parenthesis (188ms)

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

    ✓ Can handle 'cw' (292ms)

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

    ✓ Can handle 'c2w' (83ms)

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

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

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

    ✓ Can handle 's' (115ms)

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

    ✓ Can handle 'ciw' (182ms)

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

    ✓ Can handle 'caw' (262ms)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    ✓ Can handle d} (85ms)

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

    ✓ Select sentence with trailing spaces (199ms)

    ✓ Select sentence with leading spaces (245ms)

    ✓ Select inner sentence with trailing spaces (111ms)

    ✓ Select inner sentence with leading spaces (275ms)

    ✓ Select spaces between sentences (218ms)

    ✓ Can handle 'df' (183ms)

    ✓ Can handle 'dt' (116ms)

    ✓ Can handle backspace (114ms)

    ✓ Can handle backspace across lines (102ms)

    ✓ Can handle A and backspace (84ms)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    ✓ Can repeat w (102ms)

    ✓ Can repeat p (114ms)

    ✓ I works correctly (121ms)

    ✓ gI works correctly (182ms)

    ✓ gi works correctly (177ms)

    ✓ `. works correctly (195ms)

    ✓ '. works correctly (144ms)

    ✓ g; works correctly (173ms)

    ✓ g, works correctly (199ms)

    ✓ g_ works correctly (91ms)

    ✓ 3g_ works correctly (96ms)

    ✓ Can handle space (50ms)

    ✓ Can handle space (90ms)

    ✓ Undo 1 (271ms)

    ✓ Undo 2 (170ms)

    ✓ Undo cursor (297ms)

    ✓ Undo cursor 2 (308ms)

    ✓ Undo cursor 3 (193ms)

    ✓ Undo with movement first (184ms)

    ✓ Can handle 'U' (120ms)

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

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

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

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

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

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

    ✓ Redo (250ms)

    ✓ Redo (276ms)

    ✓ Redo (267ms)

    ✓ Can handle u (84ms)

    ✓ Can handle guw (60ms)

    ✓ Can handle gUw (54ms)

    ✓ Can handle u over line breaks (88ms)

    ✓ can handle s in visual mode (235ms)

    ✓ can handle p with selection (112ms)

    ✓ can handle P with selection (131ms)

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

    ✓ can repeat backspace twice (195ms)

    ✓ can delete linewise with d2G (85ms)

    ✓ can dE correctly (59ms)

    ✓ can dE correctly (100ms)

    ✓ can dE correctly (165ms)

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

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

    ✓ can ctrl-a on word (88ms)

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

    ✓ can ctrl-a on decimal (72ms)

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

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

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

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

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

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

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

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

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

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

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

    ✓ can do Y (91ms)

    ✓ Can do S (127ms)

    ✓ / does not affect mark (98ms)

    ✓ / can search with regex (70ms)

    ✓ / can search with newline (84ms)

    ✓ / can search through multiple newlines (188ms)

    ✓ / matches ^ per line (118ms)

    ✓ / matches $ per line (131ms)

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

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

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

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

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

    ✓ Can do C (53ms)

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

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

    ✓ Ignores cit on a nested tag (224ms)

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

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

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

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

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

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

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

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

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

    ✓ Respects indentation with cc (141ms)

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

    ✓ cc copies linewise (75ms)

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

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

    ✓ Can handle # on consecutive words (160ms)

    ✓ Can handle # on skipped words (252ms)

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

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

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

    ✓ Can do cai (228ms)

    ✓ Can do cii (126ms)

    ✓ Can do caI (278ms)

    ✓ Can do dai (209ms)

    ✓ Can do dii (116ms)

    ✓ Can do daI (169ms)

    can handle gn

      ✓ gn selects the next match text (424ms)

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

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

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

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

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

    can handle dgn

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

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

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

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

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

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

    can handle cgn

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

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

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

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

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

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

    can handle gN

      ✓ gN selects the previous match text (518ms)

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

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

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

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

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

    can handle dgN

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

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

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

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

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

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

    can handle cgN

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

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

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

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

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

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



  Mode Replace

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

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

    ✓ Can handle R (171ms)

    ✓ Can handle R past current line (150ms)

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

    ✓ Can handle R across lines (233ms)

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

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

    ✓ Can handle backspace (138ms)

    ✓ Can handle backspace (195ms)

    ✓ Can handle backspace across lines (245ms)

    ✓ Can handle arrows (137ms)

    ✓ Can handle . (172ms)

    ✓ Can handle . across lines (325ms)



  Mode Visual

    ✓ can be activated

    ✓ Can handle w (345ms)

    ✓ Can handle wd (277ms)

    ✓ Can handle x (389ms)

    ✓ Can handle x across a selection (319ms)

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

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

    ✓ Can do vwd multiple times (407ms)

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

    ✓ Can handle H key (115ms)

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

    ✓ handles change operator (291ms)

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

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

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

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

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

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

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

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

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

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

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

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

    Vim's EOL handling is weird

      ✓ delete through eol (202ms)

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

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

      ✓ vd$ does delete whole line (177ms)

      ✓ Paste over selection copies the selection (102ms)

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

    Arrow keys work perfectly in Visual Mode

      ✓ Can handle <up> key (119ms)

      ✓ Can handle <down> key (122ms)

      ✓ Can handle <left> key (126ms)

      ✓ Can handle <right> key (104ms)

    handles aw in visual mode

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

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

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

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

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

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

    handles aW in visual mode

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

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

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

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

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

    handles aW in visual mode

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

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

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

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

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

    handles aw in visual mode

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

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

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

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

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

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

    handles aW in visual mode

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

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

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

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

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

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

    handles as in visual mode

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

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

      ✓ Select multiple sentences in visual mode (327ms)

    handles is in visual mode

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

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

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

    handles tag blocks in visual mode

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

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

    handles replace in visual mode

      ✓ Can do a single line replace (162ms)

      ✓ Can do a multi line replace (124ms)

    D command will remove all selected lines

      ✓ D deletes all selected lines (97ms)

      ✓ D deletes the current line (160ms)

    handles indent blocks in visual mode

      ✓ Can do vai (211ms)

      ✓ Can do vii (134ms)

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

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

      ✓ Can do vaI (275ms)

    visualstar

      ✓ Works with * (130ms)

      ✓ Works with # (152ms)

    search works in visual mode

      ✓ Works with / (102ms)

      ✓ Works with ? (157ms)

      ✓ Selects correct range (253ms)

    X will delete linewise

      ✓ normal selection (129ms)

      ✓ normal selection (102ms)

    C will delete linewise

      ✓ normal selection (138ms)

      ✓ normal selection (151ms)

    R will delete linewise

      ✓ normal selection (121ms)

      ✓ normal selection (105ms)

    Linewise Registers will be inserted properly

      ✓ downward selection (227ms)

      ✓ upward selection (246ms)

    Non-darwin <C-c> tests

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

    vi{ will go to end of second to last line

      ✓ select (139ms)

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

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

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

    can handle gn

      ✓ gn selects the next match text (562ms)

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

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

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

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

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



  Mode Visual Block

    ✓ can be activated

    ✓ Can handle A forward select (202ms)

    ✓ Can handle A backwards select (126ms)

    ✓ Can handle I forward select (138ms)

    ✓ Can handle I backwards select (204ms)

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

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

    ✓ Can handle c forward select (154ms)

    ✓ Can handle c backwards select (164ms)

    ✓ Can handle C (212ms)

    ✓ Can do a multi line replace (192ms)

    ✓ Can handle 'D' (146ms)

    ✓ Can handle 'gj' (148ms)

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

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

    ✓ o works in visual block mode (153ms)

    Non-darwin <C-c> tests

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


  Mode Visual Line

    ✓ can be activated

    ✓ Can handle w (347ms)

    ✓ Can handle wd (246ms)

    ✓ Can handle x (200ms)

    ✓ Can handle U (394ms)

    ✓ Can handle x across a selection (370ms)

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

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

    ✓ Can do vwd multiple times (378ms)

    ✓ Can handle U across a selection (392ms)

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

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

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

    ✓ handles change operator (294ms)

    ✓ Vp updates register content (129ms)

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

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

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

    Vim's EOL handling is weird

      ✓ delete through eol (346ms)

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

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

      ✓ vd$ does delete whole line (171ms)

    Arrow keys work perfectly in Visual Line Mode

      ✓ Can handle <up> key (133ms)

      ✓ Can handle <down> key (94ms)

    Can handle d/c correctly in Visual Line Mode

      ✓ Can handle d key (121ms)

      ✓ Can handle d key (134ms)

      ✓ Can handle d key (126ms)

      ✓ Can handle d key (119ms)

      ✓ can handle 'c' (196ms)

    handles replace in visual line mode

      ✓ Can do a single line replace (97ms)

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

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

    search works in visual line mode

      ✓ Works with / (143ms)

      ✓ Works with ? (122ms)

    Non-darwin <C-c> tests

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

    replace text in linewise visual-mode with linewise register content

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

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

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

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

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


  Mode Normal

    ✓ Can handle 'x' (80ms)

    ✓ Can handle 'Nx' (74ms)

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

    ✓ Can handle 'Ns' (83ms)

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

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

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

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

    ✓ Can handle 'cc' (129ms)

    ✓ Can handle 'Ncc' (115ms)

    ✓ Can handle 'yy' (110ms)

    ✓ Can handle 'D' (94ms)

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

    ✓ Can handle 'DD' (161ms)

    ✓ Can handle 'C' (75ms)

    ✓ Can handle 'NC' (97ms)

    ✓ Can handle 'r' (99ms)

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

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

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

    ✓ Can handle 'J' once (93ms)

    ✓ Can handle 'J' twice (131ms)

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

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

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

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

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

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

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

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

    ✓ Can handle 'gJ' once (92ms)

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

    ✓ Can handle '~' (80ms)

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

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

    ✓ Can handle undo with P (155ms)



  Dot Operator

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

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

    ✓ Can repeat 'x' (81ms)

    ✓ Can repeat 'J' (86ms)

    ✓ Can handle dot with A (119ms)

    ✓ Can handle dot with I (135ms)

    ✓ Can repeat actions that require selections (165ms)



  Repeat content change

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

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

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

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

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



  Motions in Normal Mode

    ✓ Can handle % (89ms)

    ✓ Can handle % (127ms)

    ✓ Can handle % (44ms)

    ✓ Can handle % (81ms)

    ✓ Can handle % (54ms)

    ✓ Can handle % (117ms)

    ✓ Can handle [( (74ms)

    ✓ Can handle nested [( (90ms)

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

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

    ✓ Can handle ]) (69ms)

    ✓ Can handle nested ]) (247ms)

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

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

    ✓ Can handle [{ (85ms)

    ✓ Can handle nested [{ (58ms)

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

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

    ✓ Can handle ]} (86ms)

    ✓ Can handle nested ]} (84ms)

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

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

    ✓ Can handle 'ge' (93ms)

    ✓ Can handle 'gg' (134ms)

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

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

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

    ✓ Can handle <enter> (124ms)

    ✓ $ always keeps cursor on EOL (177ms)

    ✓ Can handle $ with a count (83ms)

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

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

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

    ✓ Can handle 'f' (134ms)

    ✓ Can handle 'f' twice (127ms)

    ✓ Can handle 'F' (134ms)

    ✓ Can handle 'F' twice (177ms)

    ✓ Can handle 't' (163ms)

    ✓ Can handle 't' twice (149ms)

    ✓ Can handle 'T' (93ms)

    ✓ Can handle 'T' twice (153ms)

    ✓ Can run a forward search (81ms)

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

    ✓ Can run a reverse search (153ms)

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

    ✓ maintains column position correctly (93ms)

    ✓ maintains column position correctly with $ (78ms)

    ✓ Can handle G  (77ms)

    ✓ Can handle G with number prefix (64ms)

    ✓ Can handle G with number prefix (70ms)

    ✓ Can handle gg (111ms)

    ✓ Can handle gg with number prefix (83ms)

    ✓ Can handle dot with A (165ms)

    ✓ Can handle dot with I (197ms)

    ✓ Can handle 0 (141ms)

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

    ✓ Can handle g* (72ms)

    ✓ Can handle g*n (62ms)

    ✓ Can handle * (86ms)

    ✓ Can handle ** (82ms)

    ✓ Can handle # on whitespace (164ms)

    ✓ Can handle # on EOL (146ms)

    ✓ Can handle g# (243ms)

    ✓ Can handle g#n (236ms)

    ✓ Can handle # (275ms)

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

    ✓ Can handle ## (200ms)

    ✓ Can handle | (216ms)

    ✓ Can handle <number> | (212ms)

    ✓ Can handle + (77ms)

    ✓ Can handle + indent (55ms)

    ✓ Can handle + with count prefix (90ms)

    ✓ Can handle - (78ms)

    ✓ Can handle - indent (120ms)

    ✓ Can handle - with count prefix (108ms)

    ✓ Can handle _ (99ms)

    ✓ Can handle _ with count prefix (86ms)

    ✓ Can handle g_ (57ms)

    ✓ Can handle g_ with count prefix (225ms)

    ✓ Can handle <up> key (95ms)

    ✓ Can handle <down> key (78ms)

    ✓ Can handle <left> key (107ms)

    ✓ Can handle <right> key (92ms)



  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



  Multicursor

    ✓ can add multiple cursors below (217ms)

    ✓ can add multiple cursors above (293ms)



  numeric string

    ✓ fails on non-string

    ✓ handles hex round trip

    ✓ handles decimal round trip

    ✓ handles octal trip



  comment operator

    ✓ gcc comments out current line (272ms)

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

    ✓ block comment with motion (171ms)

    ✓ block comment in Visual Mode (210ms)


  put operator

    ✓ basic put test (270ms)

    ✓ test yy end of line (184ms)

    ✓ test yy first line (151ms)

    ✓ test yy middle line (205ms)

    ✓ test yy with correct positon movement (198ms)



  shift operator

    ✓ basic shift left test (190ms)

    ✓ shift left goto end test (164ms)

    ✓ shift left goto line test (216ms)

    ✓ shift right goto end test (135ms)

    ✓ shift right goto line test (129ms)


  easymotion plugin

    ✓ Can handle s move (251ms)

    ✓ Can handle 2s move (225ms)

    ✓ Can handle f move (136ms)

    ✓ Can handle 2f move (121ms)

    ✓ Can handle F move (78ms)

    ✓ Can handle 2F move (146ms)

    ✓ Can handle t move (197ms)

    ✓ Can handle bd-t move (146ms)

    ✓ Can handle 2t move (183ms)

    ✓ Can handle bd-t2 move (204ms)

    ✓ Can handle T move (113ms)

    ✓ Can handle 2T move (166ms)

    ✓ Can handle w move (188ms)

    ✓ Can handle bd-w move (91ms)

    ✓ Can handle b move (113ms)

    ✓ Can handle e move (107ms)

    ✓ Can handle bd-e move (154ms)

    ✓ Can handle ge move (189ms)

    ✓ Can handle n-char move (186ms)

    ✓ Can handle j move (189ms)

    ✓ Can handle k move (156ms)

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

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

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

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

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

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


  sneak plugin

    ✓ Can handle s motion (46ms)

    ✓ Can handle S motion (71ms)

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

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

    ✓ Can handle s; motion (58ms)

    ✓ Can handle s, motion (66ms)

    ✓ Can handle S; motion (181ms)

    ✓ Can handle S, motion (163ms)


  surround plugin

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

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

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

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

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

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

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

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

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

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

    ✓ change surround (278ms)

    ✓ change surround to tags (274ms)

    ✓ delete surround (258ms)

    ✓ delete surround with tags (481ms)

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

    ✓ changing brackets with surround works again (204ms)


  register

    ✓ Can copy to a register (246ms)

    ✓ Can use two registers together (297ms)

    ✓ Can use black hole register (202ms)

    ✓ System clipboard works with chinese characters (288ms)

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

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

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

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

    ✓ Can put and get to register

    clipboard

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

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



  Repeatable movements with f and t

    ✓ Can repeat f<character> (115ms)

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

    ✓ Can repeat t<character> (129ms)

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



  text editor

Tests exited with code: 1

@TravisBuddy
Copy link

Travis tests have failed

Hey @chibicode,
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.24.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 12:24:39 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.3"
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 history

    ✓ add command

    ✓ add empty command

    ✓ add command over configuration.history

    ✓ add command that exists in history

    ✓ load and save history

    ✓ change configuration.history


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

    ✓ Sort whole file, dsc (180ms)

    ✓ Sort range, asc (192ms)

    ✓ Sort range, dsc (221ms)



  :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 (103ms)

    ✓ Replace with `g` flag (89ms)

    ✓ Replace multiple lines (192ms)

    ✓ Replace across specific lines (164ms)

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

    ✓ Replace text in selection (248ms)

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

      ✓ Replace all matches in the line (137ms)

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

      ✓ Replace multiple lines (134ms)

      ✓ Replace across specific lines (165ms)

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

      ✓ Replace text in selection (223ms)

      ✓ Substitute support marks (211ms)

      ✓ Substitute with escaped delimiter (121ms)

    Substitute with empty search string should use previous search

      ✓ Substitute with previous search using * (398ms)

      ✓ Substitute with previous search using # (375ms)

      ✓ Substitute with previous search using / (383ms)

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



  cmd_line tab

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

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



  Vertical split

    ✓ Run :vs (94ms)

    ✓ Run :vsp (67ms)



  Basic write-quit

    ✓ Run write and quit (218ms)

  Configuration

    ✓ remappings are normalized

  Notation
    ✓ Normalize

  Remapper

    ✓ jj -> <Esc>

    ✓ remapped command with leader 

    1) remapped command with leader, only on visual mode



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

    ✓ Can repeat last invoked macro (297ms)

    ✓ Can play back with count (513ms)

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

    ✓ Repeat change on contiguous lines (234ms)

    ✓ Append command to a macro (186ms)

    ✓ Can record Ctrl Keys and repeat (247ms)

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


  Mode Handler

    ✓ ctor

    ✓ can set current mode



  Mode Handler Map

    ✓ getOrCreate



  Mode Insert

    ✓ can be activated (117ms)

    ✓ can handle key events (45ms)

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

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

    ✓ <Esc> can exit insert (76ms)

    ✓ Stay in insert when entering characters (100ms)

    ✓ Can handle 'O' (83ms)

    ✓ Can handle 'i' (144ms)

    ✓ Can handle 'I' (112ms)

    ✓ Can handle 'a' (178ms)

    ✓ Can handle 'A' (125ms)

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

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

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

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

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

    ✓ will remove closing bracket (49ms)

    ✓ Backspace works on whitespace only lines (102ms)

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

    ✓ Backspace works at beginning of file (97ms)

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

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

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

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

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

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

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

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

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

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



  Mode Normal

    ✓ Can be activated (46ms)

    ✓ Can handle % (55ms)

    ✓ Can handle % before opening brace

    ✓ Can handle % nested inside parens

    ✓ Can handle dw (88ms)

    ✓ Can handle dw (109ms)

    ✓ Can handle dw (191ms)

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

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

    ✓ Can handle dd last line (80ms)

    ✓ Can handle dd single line (77ms)

    ✓ Can handle dd (72ms)

    ✓ Can handle 3dd (61ms)

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

    ✓ Can handle d2d (87ms)

    ✓ Can handle dd empty line (55ms)

    ✓ Can handle ddp (100ms)

    ✓ Can handle 'de' (77ms)

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

    ✓ Can handle 'db' (100ms)

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

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

    ✓ Can handle 'dF' (88ms)

    ✓ Can handle 'dT' (122ms)

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

    ✓ Can handle 'dj' (65ms)

    ✓ Can handle 'dk' (92ms)

    ✓ Can handle 'd])' without deleting closing parenthesis (150ms)

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

    ✓ Can handle 'cw' (322ms)

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

    ✓ Can handle 'c2w' (84ms)

[main 12:25:09 AM] update#setState checking for updates

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

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

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

[main 12:25:09 AM] update#setState idle

    ✓ Can handle 's' (69ms)

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

    ✓ Can handle 'ciw' (145ms)

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

    ✓ Can handle 'caw' (155ms)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    ✓ will fail when ca( with no ()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    ✓ Can handle d} (61ms)

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

    ✓ Select sentence with trailing spaces (118ms)

    ✓ Select sentence with leading spaces (159ms)

    ✓ Select inner sentence with trailing spaces (94ms)

    ✓ Select inner sentence with leading spaces (166ms)

    ✓ Select spaces between sentences (175ms)

    ✓ Can handle 'df' (118ms)

    ✓ Can handle 'dt' (120ms)

    ✓ Can handle backspace (72ms)

    ✓ Can handle backspace across lines (51ms)

    ✓ Can handle A and backspace (85ms)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    ✓ Can repeat w (44ms)

    ✓ Can repeat p (82ms)

    ✓ I works correctly (90ms)

    ✓ gI works correctly (99ms)

    ✓ gi works correctly (157ms)

    ✓ `. works correctly (147ms)

    ✓ '. works correctly (105ms)

    ✓ g; works correctly (137ms)

    ✓ g, works correctly (160ms)

    ✓ g_ works correctly (91ms)

    ✓ 3g_ works correctly (78ms)

    ✓ Can handle space (46ms)

    ✓ Can handle space (64ms)

    ✓ Undo 1 (167ms)

    ✓ Undo 2 (146ms)

    ✓ Undo cursor (147ms)

    ✓ Undo cursor 2 (261ms)

    ✓ Undo cursor 3 (190ms)

    ✓ Undo with movement first (165ms)

    ✓ Can handle 'U' (88ms)

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

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

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

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

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

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

    ✓ Redo (119ms)

    ✓ Redo (195ms)

    ✓ Redo (169ms)

    ✓ Can handle u (61ms)

    ✓ Can handle guw (59ms)

    ✓ Can handle gUw (63ms)

    ✓ Can handle u over line breaks (66ms)

    ✓ can handle s in visual mode (169ms)

    ✓ can handle p with selection (93ms)

    ✓ can handle P with selection (73ms)

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

    ✓ can repeat backspace twice (93ms)

    ✓ can delete linewise with d2G (45ms)

    ✓ can dE correctly (51ms)

    ✓ can dE correctly (45ms)

    ✓ can dE correctly (104ms)

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

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

    ✓ can ctrl-a on word (97ms)

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

    ✓ can ctrl-a on decimal (51ms)

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

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

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

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

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

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

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

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

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

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

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

    ✓ can do Y (69ms)

    ✓ Can do S (118ms)

    ✓ / does not affect mark (104ms)

    ✓ / can search with regex (120ms)

    ✓ / can search with newline (94ms)

    ✓ / can search through multiple newlines (130ms)

    ✓ / matches ^ per line (65ms)

    ✓ / matches $ per line (85ms)

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

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

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

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

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

    ✓ Can do C (57ms)

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

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

    ✓ Ignores cit on a nested tag (109ms)

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

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

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

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

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

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

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

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

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

    ✓ Respects indentation with cc (97ms)

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

    ✓ cc copies linewise (99ms)

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

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

    ✓ Can handle # on consecutive words (137ms)

    ✓ Can handle # on skipped words (204ms)

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

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

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

    ✓ Can do cai (162ms)

    ✓ Can do cii (91ms)

    ✓ Can do caI (239ms)

    ✓ Can do dai (171ms)

    ✓ Can do dii (116ms)

    ✓ Can do daI (176ms)

    can handle gn

      ✓ gn selects the next match text (466ms)

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

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

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

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

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

    can handle dgn

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

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

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

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

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

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

    can handle cgn

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

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

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

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

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

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

    can handle gN

      ✓ gN selects the previous match text (309ms)

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

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

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

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

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

    can handle dgN

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

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

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

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

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

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

    can handle cgN

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

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

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

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

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

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


  Mode Replace

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

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

    ✓ Can handle R (79ms)

    ✓ Can handle R past current line (83ms)

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

    ✓ Can handle R across lines (110ms)

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

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

    ✓ Can handle backspace (90ms)

    ✓ Can handle backspace (94ms)

    ✓ Can handle backspace across lines (130ms)

    ✓ Can handle arrows (81ms)

    ✓ Can handle . (135ms)

    ✓ Can handle . across lines (189ms)



  Mode Visual

    ✓ can be activated

    ✓ Can handle w (222ms)

    ✓ Can handle wd (229ms)

    ✓ Can handle x (171ms)

    ✓ Can handle x across a selection (190ms)

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

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

    ✓ Can do vwd multiple times (212ms)

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

    ✓ Can handle H key (65ms)

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

    ✓ handles change operator (137ms)

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

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

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

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

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

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

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

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

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

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

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

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

    Vim's EOL handling is weird

      ✓ delete through eol (158ms)

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

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

      ✓ vd$ does delete whole line (124ms)

      ✓ Paste over selection copies the selection (94ms)

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

    Arrow keys work perfectly in Visual Mode

      ✓ Can handle <up> key (68ms)

      ✓ Can handle <down> key (66ms)

      ✓ Can handle <left> key (89ms)

      ✓ Can handle <right> key (74ms)

    handles aw in visual mode

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

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

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

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

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

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

    handles aW in visual mode

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

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

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

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

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

    handles aW in visual mode

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

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

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

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

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

    handles aw in visual mode

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

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

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

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

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

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

    handles aW in visual mode

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

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

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

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

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

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

    handles as in visual mode

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

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

      ✓ Select multiple sentences in visual mode (285ms)

    handles is in visual mode

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

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

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

    handles tag blocks in visual mode

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

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

    handles replace in visual mode

      ✓ Can do a single line replace (117ms)

      ✓ Can do a multi line replace (98ms)

    D command will remove all selected lines

      ✓ D deletes all selected lines (76ms)

      ✓ D deletes the current line (115ms)

    handles indent blocks in visual mode

      ✓ Can do vai (154ms)

      ✓ Can do vii (91ms)

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

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

      ✓ Can do vaI (156ms)

    visualstar

      ✓ Works with * (87ms)

      ✓ Works with # (74ms)

    search works in visual mode

      ✓ Works with / (104ms)

      ✓ Works with ? (104ms)

      ✓ Selects correct range (171ms)

    X will delete linewise

      ✓ normal selection (82ms)

      ✓ normal selection (82ms)

    C will delete linewise

      ✓ normal selection (115ms)

      ✓ normal selection (102ms)

    R will delete linewise

      ✓ normal selection (78ms)

      ✓ normal selection (111ms)

    Linewise Registers will be inserted properly

      ✓ downward selection (117ms)

      ✓ upward selection (143ms)

    Non-darwin <C-c> tests

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

    vi{ will go to end of second to last line

      ✓ select (123ms)

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

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

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

    can handle gn

      ✓ gn selects the next match text (368ms)

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

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

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

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

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



  Mode Visual Block

    ✓ can be activated

    ✓ Can handle A forward select (108ms)

    ✓ Can handle A backwards select (118ms)

    ✓ Can handle I forward select (112ms)

    ✓ Can handle I backwards select (114ms)

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

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

    ✓ Can handle c forward select (101ms)

    ✓ Can handle c backwards select (106ms)

    ✓ Can handle C (227ms)

    ✓ Can do a multi line replace (104ms)

    ✓ Can handle 'D' (79ms)

    ✓ Can handle 'gj' (106ms)

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

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

    ✓ o works in visual block mode (72ms)

    Non-darwin <C-c> tests

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


  Mode Visual Line

    ✓ can be activated

    ✓ Can handle w (240ms)

    ✓ Can handle wd (156ms)

    ✓ Can handle x (163ms)

    ✓ Can handle U (135ms)

    ✓ Can handle x across a selection (162ms)

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

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

    ✓ Can do vwd multiple times (271ms)

    ✓ Can handle U across a selection (197ms)

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

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

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

    ✓ handles change operator (194ms)

    ✓ Vp updates register content (100ms)

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

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

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

    Vim's EOL handling is weird

      ✓ delete through eol (132ms)

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

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

      ✓ vd$ does delete whole line (114ms)

    Arrow keys work perfectly in Visual Line Mode

      ✓ Can handle <up> key (56ms)

      ✓ Can handle <down> key (80ms)

    Can handle d/c correctly in Visual Line Mode

      ✓ Can handle d key (69ms)

      ✓ Can handle d key (70ms)

      ✓ Can handle d key (73ms)

      ✓ Can handle d key (87ms)

      ✓ can handle 'c' (164ms)

    handles replace in visual line mode

      ✓ Can do a single line replace (59ms)

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

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

    search works in visual line mode

      ✓ Works with / (73ms)

      ✓ Works with ? (94ms)

    Non-darwin <C-c> tests

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

    replace text in linewise visual-mode with linewise register content

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

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

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

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

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


  Mode Normal

    ✓ Can handle 'x' (51ms)

    ✓ Can handle 'Nx' (54ms)

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

    ✓ Can handle 'Ns' (63ms)

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

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

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

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

    ✓ Can handle 'cc' (72ms)

    ✓ Can handle 'Ncc' (95ms)

    ✓ Can handle 'yy' (82ms)

    ✓ Can handle 'D' (93ms)

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

    ✓ Can handle 'DD' (76ms)

    ✓ Can handle 'C' (71ms)

    ✓ Can handle 'NC' (92ms)

    ✓ Can handle 'r' (184ms)

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

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

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

    ✓ Can handle 'J' once (67ms)

    ✓ Can handle 'J' twice (105ms)

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

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

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

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

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

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

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

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

    ✓ Can handle 'gJ' once (42ms)

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

    ✓ Can handle '~' (51ms)

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

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

    ✓ Can handle undo with P (120ms)



  Dot Operator

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

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

    ✓ Can repeat 'x'

    ✓ Can repeat 'J' (69ms)

    ✓ Can handle dot with A (135ms)

    ✓ Can handle dot with I (102ms)

    ✓ Can repeat actions that require selections (79ms)


  Repeat content change

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

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

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

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

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



  Motions in Normal Mode

    ✓ Can handle % (60ms)

    ✓ Can handle % (82ms)

    ✓ Can handle % (54ms)

    ✓ Can handle % (44ms)

    ✓ Can handle % (48ms)

    ✓ Can handle % (96ms)

    ✓ Can handle [( (73ms)

    ✓ Can handle nested [( (61ms)

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

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

    ✓ Can handle ]) (77ms)

    ✓ Can handle nested ]) (48ms)

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

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

    ✓ Can handle [{ (64ms)

    ✓ Can handle nested [{ (75ms)

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

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

    ✓ Can handle ]} (63ms)

    ✓ Can handle nested ]} (49ms)

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

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

    ✓ Can handle 'ge' (64ms)

    ✓ Can handle 'gg' (111ms)

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

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

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

    ✓ Can handle <enter> (63ms)

    ✓ $ always keeps cursor on EOL (87ms)

    ✓ Can handle $ with a count (61ms)

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

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

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

    ✓ Can handle 'f' (81ms)

    ✓ Can handle 'f' twice (108ms)

    ✓ Can handle 'F' (86ms)

    ✓ Can handle 'F' twice (82ms)

    ✓ Can handle 't' (118ms)

    ✓ Can handle 't' twice (119ms)

    ✓ Can handle 'T' (72ms)

    ✓ Can handle 'T' twice (95ms)

    ✓ Can run a forward search (50ms)

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

    ✓ Can run a reverse search (155ms)

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

    ✓ maintains column position correctly (59ms)

    ✓ maintains column position correctly with $

    ✓ Can handle G 

    ✓ Can handle G with number prefix

    ✓ Can handle G with number prefix (46ms)

    ✓ Can handle gg (43ms)

    ✓ Can handle gg with number prefix

    ✓ Can handle dot with A (123ms)

    ✓ Can handle dot with I (114ms)

    ✓ Can handle 0 (116ms)

    ✓ Can handle 0 as part of a repeat

    ✓ Can handle g*

    ✓ Can handle g*n (56ms)

    ✓ Can handle *

    ✓ Can handle ** (79ms)

    ✓ Can handle # on whitespace (173ms)

    ✓ Can handle # on EOL (81ms)

    ✓ Can handle g# (124ms)

    ✓ Can handle g#n (139ms)

    ✓ Can handle # (147ms)

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

    ✓ Can handle ## (121ms)

    ✓ Can handle | (128ms)

    ✓ Can handle <number> | (113ms)

    ✓ Can handle + (46ms)

    ✓ Can handle + indent (46ms)

    ✓ Can handle + with count prefix (43ms)

    ✓ Can handle - (50ms)

    ✓ Can handle - indent (68ms)

    ✓ Can handle - with count prefix (69ms)

    ✓ Can handle _ (57ms)

    ✓ Can handle _ with count prefix (49ms)

    ✓ Can handle g_ (47ms)

    ✓ Can handle g_ with count prefix (54ms)

    ✓ Can handle <up> key (59ms)

    ✓ Can handle <down> key (53ms)

    ✓ Can handle <left> key (58ms)

    ✓ Can handle <right> key (51ms)



  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



  Multicursor

    ✓ can add multiple cursors below (155ms)

    ✓ can add multiple cursors above (166ms)


  numeric string
    ✓ fails on non-string
    ✓ handles hex round trip
    ✓ handles decimal round trip
    ✓ handles octal trip

  comment operator

    ✓ gcc comments out current line (373ms)

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

    ✓ block comment with motion (257ms)

    ✓ block comment in Visual Mode (155ms)



  put operator

    ✓ basic put test (160ms)

    ✓ test yy end of line (159ms)

    ✓ test yy first line (111ms)

    ✓ test yy middle line (82ms)

    ✓ test yy with correct positon movement (89ms)



  shift operator

    ✓ basic shift left test (100ms)

    ✓ shift left goto end test (79ms)

    ✓ shift left goto line test (153ms)

    ✓ shift right goto end test (95ms)

    ✓ shift right goto line test (94ms)



  easymotion plugin

    ✓ Can handle s move (99ms)

    ✓ Can handle 2s move (57ms)

    ✓ Can handle f move

    ✓ Can handle 2f move (45ms)

    ✓ Can handle F move (69ms)

    ✓ Can handle 2F move (102ms)

    ✓ Can handle t move (57ms)

    ✓ Can handle bd-t move (70ms)

    ✓ Can handle 2t move (81ms)

    ✓ Can handle bd-t2 move (103ms)

    ✓ Can handle T move (90ms)

    ✓ Can handle 2T move (106ms)

    ✓ Can handle w move (74ms)

    ✓ Can handle bd-w move (88ms)

    ✓ Can handle b move (78ms)

    ✓ Can handle e move (52ms)

    ✓ Can handle bd-e move (79ms)

    ✓ Can handle ge move (81ms)

    ✓ Can handle n-char move (80ms)

    ✓ Can handle j move (194ms)

    ✓ Can handle k move (74ms)

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

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

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

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

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

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



  sneak plugin

    ✓ Can handle s motion (39ms)

    ✓ Can handle S motion (102ms)

    ✓ Can handle <operator>z motion

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

    ✓ Can handle s; motion (50ms)

    ✓ Can handle s, motion (114ms)

    ✓ Can handle S; motion (95ms)

    ✓ Can handle S, motion (122ms)



  surround plugin

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

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

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

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

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

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

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

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

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

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

    ✓ change surround (108ms)

    ✓ change surround to tags (146ms)

    ✓ delete surround (99ms)

    ✓ delete surround with tags (135ms)

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

    ✓ changing brackets with surround works again (110ms)



  register

    ✓ Can copy to a register (101ms)

    ✓ Can use two registers together (125ms)

    ✓ Can use black hole register (122ms)

    ✓ System clipboard works with chinese characters (253ms)

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

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

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

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

    ✓ Can put and get to register

    clipboard

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

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



  Repeatable movements with f and t

    ✓ Can repeat f<character> (46ms)

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

    ✓ Can repeat t<character> (69ms)

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


  text editor

    ✓ insert 'Hello World'

    ✓ replace 'World' with 'Foo Bar'

    ✓ delete `Hello`

    ✓ delete the whole line

    ✓ try to read lines that don't exist



  915 passing (3m)
  1 failing


  1) Remapper
       remapped command with leader, only on visual mode:

      AssertionError: 0 == 1
      + expected - actual

      -0
      +1
      
      at Object.<anonymous> (test/configuration/remapper.test.ts:108:12)
      at Generator.next (<anonymous>)
      at fulfilled (out/test/configuration/remapper.test.js:4:58)
      at <anonymous>




Tests exited with code: 1

@TravisBuddy
Copy link

Hey @chibicode,
Something went wrong with the build.

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

@chibicode
Copy link
Contributor Author

Ok, tests are now passing. @jpoon

@jpoon
Copy link
Member

jpoon commented Jun 13, 2018

With the introduction of visualModes keybinding, the otherModes keybinding just means normal mode right? IMO it's confusing to have both OtherModes and VisualModes remappers handle the visual/visualline/visualblock modes.

I think we should rename OtherModes to NormalMode and have it just handle normal mode. However, in doing so, that means if users had rebindings that they want to use for normal and visual mode, they'll need to have them in both places. Changing the name of it also results in folks having to migrate their configurations over....

@chibicode
Copy link
Contributor Author

chibicode commented Jun 13, 2018

@jpoon

otherModes keybinding just means normal mode right?

I haven't changed what otherModes does on this PR, so it still handles both normal / visual modes. I agree it's confusing but I don't know if it's worth introducing a breaking change because most people seem to be happy w/ the current setup (insert vs other) as I didn't see anyone else wanting visual-only remapping. It's something that I need however to get around #1743 (comment).

@icecreammatt
Copy link

icecreammatt commented Jun 14, 2018

@jpoon I came across this trying to search how to bind stuff in normal mode. Thanks for confirming for me that OtherModes is the same thing as normal mode. I was confused what that was for.

(trying to remap ^ and $ to shift+h and shift+l I'm hoping that is possible)

Edit: For anyone that comes across this later trying to do the same I figured out how to do it by adding this to my config. Also be sure to restart after making the change. I almost gave up and then thought to restart and that fixed it.

    "vim.otherModesKeyBindingsNonRecursive": [{
            "before": [ "H" ],
            "after": [ "^" ]
        }, {
            "before": [ "L" ],
            "after": [ "$" ]
        }],

@jpoon
Copy link
Member

jpoon commented Jun 15, 2018

@chibicode i'm starting to think we should rename otherModes to be normalMode, but that'll be a breaking change for everybody's configurations.

Also posed the question to our Slack: https://vscodevim.slack.com/archives/C0ENQMTUM/p1529045308000348

@chibicode chibicode changed the title Add visualModesKeyBindings Add normalModeKeyBindings and visualModeKeyBindings Jun 17, 2018
@chibicode
Copy link
Contributor Author

@jpoon Per discussion on Slack, I've updated this so that the config now only supports normalModeKeyBindings and visualModeKeyBindings. I've updated README. Could you update changelog to let users know?

@chibicode chibicode changed the title Add normalModeKeyBindings and visualModeKeyBindings Add normalModeKeyBindings and visualModeKeyBindings, remove otherModesKeyBindings Jun 17, 2018
README.md Outdated
```json
"vim.visualModeKeyBindingsNonRecursive": [
{
"after": [],
Copy link
Member

@jpoon jpoon Jun 17, 2018

Choose a reason for hiding this comment

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

Can you remove all the empty arguments? They aren't necessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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.

Awesome. One minor comment on updating the README to simplify the example remappings and we should be good to merge.

@jpoon jpoon merged commit 462711b into VSCodeVim:master Jun 18, 2018
@jpoon
Copy link
Member

jpoon commented Jun 18, 2018

Thanks @chibicode!

@adriaanbaelus
Copy link

I believe this just got updated? This broke essentially all my (vim) keybindings. It took me some time to figure out the changelog (well, VS Code did say vim.otherModesKeyBindingsNonRecursive is an unknown config setting now).

I don't have any mappings that apply only to normal mode or visual mode, they all apply to both. If I understand correctly, I now have to duplicate all my keybindings (once for normalModeKeyBindings and once for visualModeKeyBindings)?

Is there any way to configure keybindings for multiple modes at once?

@jpoon
Copy link
Member

jpoon commented Jun 21, 2018

No, you'll need to copy the keybindings over for both modes.

ewnd9 added a commit to ewnd9/dotfiles that referenced this pull request Jul 1, 2018
@FelikZ
Copy link

FelikZ commented Jul 4, 2018

I tried to use reference variables:

{
   "vim.visualModeKeyBindingsNonRecursive": "${config:vim.normalModeKeyBindingsNonRecursive}"
}

However no luck. Vim bindings is a huge part of my settings and now I have to double them and maintain twice. Maybe there is a way to put a reference?

@prodehghan
Copy link

My key bindings stopped working without any notice. It took me some time to figure out what happened. It would be nice if I would get some warning when the extension automatically updated with a breaking change.

Why not have something for both normal and visual mode? Why not use the name otherModesKeyBindings for it, which does not break anything? I know that name is not good. "other" than what? At least it doesn't annoy existing users.

@jpoon
Copy link
Member

jpoon commented Jul 9, 2018

First off, sorry for the inconvenience.

@mdunicorn, the best spot to look for this sort of information is our change log which we keep up-to-date with each release: https://github.com/VSCodeVim/Vim/blob/master/CHANGELOG.md#v0130-2018-06-18. Easiest spot to view this is through VSCode's extension marketplace when you are updating the extension. We also announced this particular change on our Slack and on Twitter (https://twitter.com/jasonthepoon/status/1008784419354652672), so maybe look out on those channels?

We will eventually adopt semvar versioning (#2756) once we feel that we've reached a v1.0.0 milestone so that'll be another mechanism in which users can identify if there is a breaking change.

If you have suggestions on how we can improve this process, we'd love to hear them.

Why not use the name otherModesKeyBindings for it, which does not break anything?

We debated this on the PR (see above) and on our slack. Ultimately, we decided to do the breaking change precisely for the point you brought up -- if we kept otherModesKeyBindings what would that actually mean as we would then have keybindings for normal, visual, insert so what would "other" mean?
If you open your user settings, VSCode shows a red squiggly underneath any non-existent configurations. Considering that and the actual fix to migrate to the new syntax was fairly simple, and keeps our code base a bit cleaner, we went ahead with the change.

@prodehghan
Copy link

prodehghan commented Jul 10, 2018

Hello @jpoon. Thanks for your kind response.

I really appreciate your effort on the extension and keeping the users informed. The thing is, not all the users of the extension, follow it on Twitter or subscribe to the Slack channel. And since VS Code automatically updates all the extensions (which is very good), the users will not notice the changes, unless something stops working.

Some extensions (Material Icon Theme, for example) automatically show their Release Notes on every update (which is annoying, though!). I don't know how it works, but if the extension can use a hook and be informed by VS Code when it is updated, it would be very good that it warns the users of any breaking change.

Thanks for listening! :)

kortina added a commit to kortina/dotfiles that referenced this pull request Oct 8, 2019
add leader a command in vim normal mode to focus next error
some auto formatting of settings.json
laughinghan added a commit to laughinghan/dotfiles that referenced this pull request May 3, 2021
otherModesKeyBindingsNonRecursive => normalModeKeyBindingsNonRecursive
  Due to breaking change in VSCodeVim/Vim#2726

disableAnnoyingNeovimMessage doesn't appear to be necessary anymore?
Can't find anything in the Changelog about it

Fix statusBarColors config syntax, which apparently has changed,
although I can't find a Changelog entry or PR about it either:
  https://github.com/VSCodeVim/Vim/pull/4406/files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add visualModeKeyBindings, in addition to otherModesKeyBindings
7 participants