Vim
Vim copied to clipboard
Make `gj` and `gk` preserve `desiredColumn`
What this PR does / why we need it: Make 'gj' and 'gk' preserve desiredColumn
Which issue(s) this PR fixes fixes #4441 fixes #1323
Special notes for your reviewer: I had this stashed for some time now. From what I remember this was working properly and only needed some organization of the code.
There is still the issue that if you are on a wrapped line (which is not its first visual line) and you move horizontally it will set the desiredColumn to a value that is not the correct one. I have another stash with a possible fix for that as well, but it implies changing the cursor once every time you set the desired column. I know this isn't good, but considering the existing vscode API, I believe it is the only possible way to be able to set the desired column correctly even when inside a wrapped line. (related to comment https://github.com/VSCodeVim/Vim/issues/4441#issuecomment-657651598)
Travis tests have failed
Hey @berknam, Please read the following log in order to understand the failure reason. It'll be awesome if you fix what's wrong and commit the changes.
Node.js: 12
if [[ $(git diff-index HEAD -- *.js *.ts *.md) ]]; then git diff; echo "Prettier Failed. Run `gulp forceprettier` and commit changes to resolve."; exit 1; fi
The command "if [[ $(git diff-index HEAD -- *.js *.ts *.md) ]]; then git diff; echo "Prettier Failed. Run `gulp forceprettier` and commit changes to resolve."; exit 1; fi" exited with 0.
$ gulp build
[15:51:59] Using gulpfile ~/build/VSCodeVim/Vim/gulpfile.js
[15:51:59] Starting 'build'...
[15:51:59] Starting 'prettier'...
[15:51:59] Finished 'prettier' after 21 ms
[15:51:59] Starting 'webpack'...
[15:51:59] Starting 'tslint'...
(node:5644) [DEP0097] DeprecationWarning: Using a domain property in MakeCallback is deprecated. Use the async_context variant of MakeCallback or the AsyncResource class instead.
[15:52:27] Version: webpack 4.44.0
Built at: 07/26/2020 3:52:27 PM
Asset Size Chunks Chunk Names
extension.js 806 KiB 0 [emitted] main
extension.js.map 3.22 MiB 0 [emitted] [dev] main
Entrypoint main = extension.js extension.js.map
[15:52:27] Finished 'webpack' after 28 s
[15:52:28] Finished 'tslint' after 29 s
[15:52:28] Starting 'commit-hash'...
[15:52:28] Finished 'commit-hash' after 48 ms
[15:52:28] Finished 'build' after 29 s
The command "gulp build" exited with 0.
$ gulp prepare-test
[15:52:29] Using gulpfile ~/build/VSCodeVim/Vim/gulpfile.js
[15:52:29] Starting 'prepare-test'...
[15:52:29] Starting 'tsc'...
[15:52:29] Starting 'copyPackageJson'...
[15:52:29] Finished 'copyPackageJson' after 126 ms
[15:52:41] Finished 'tsc' after 12 s
[15:52:41] Finished 'prepare-test' after 12 s
The command "gulp prepare-test" exited with 0.
$ npm test
> [email protected] test /home/travis/build/VSCodeVim/Vim
> node ./out/test/runTest.js
Downloading VS Code 1.47.2 from https://update.code.visualstudio.com/1.47.2/linux-x64/stable
Downloaded VS Code 1.47.2 into .vscode-test/vscode-1.47.2
Warning: 'sandbox' is not in the list of known options, but still passed to Electron/Chromium.
[main 2020-07-26T15:52:46.150Z] update#setState idle
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
(node:5763) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information
(node:5763) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information
(node:5763) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information
(node:5763) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information
(node:5763) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information
(node:5763) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information
(node:6299) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information
(node:6299) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information
base action
✓ compare key presses
✓ couldActionApply 1D keys positive
✓ couldActionApply 1D keys negative
✓ couldActionApply 2D keys positive
✓ couldActionApply 2D keys negative
✓ doesActionApply 1D keys positive
✓ doesActionApply 1D keys negative
✓ doesActionApply 2D keys positive
✓ doesActionApply 2D keys negative
bang (!) cmd_line
parsing
✓ simple ! (192ms)
✓ simple ! with space between bang and command (95ms)
✓ ! with line (149ms)
✓ ! with line range (116ms)
previous external commands (embedded bangs)
✓ !! should execute previous command (134ms)
✓ !! should support command concatenation (135ms)
✓ any ! in cmd is replaced with previous external command (96ms)
✓ only the ! character can be unescaped, with a backslash (114ms)
stdin/stdout/stderr
✓ ! can read from stdin (59ms)
✓ :{line}!{cmd} should pass in line as stdin (69ms)
✓ :{range}!{cmd} should pass in line range as stdin (71ms)
✓ ! with commands expecting stdin do not block when no stdin is supplied (43ms)
✓ ! can read from both stdout and stderr (81ms)
✓ piping commands works (60ms)
cmd_line/search command
✓ command <C-w> can remove word in cmd line
✓ command <C-w> can remove word in search mode
✓ command <C-w> can remove word in cmd line while retrain cmd on the right of the cursor
✓ command <C-w> can remove word in search mode while retrain cmd on the right of the cursor
✓ <C-u> deletes from cursor to first character
✓ <C-b> puts cursor at start of command line
✓ <Home> puts cursor at start of command line
✓ <C-e> puts cursor at end of command line
✓ <End> puts cursor at end of command line
✓ <C-p>/<C-n> go to the previous/next command
✓ <C-r> <C-w> insert word under cursor on command line
✓ <C-r> <C-w> insert word right of cursor on command line (59ms)
✓ <C-r> <C-w> insert word under cursor in search mode (38ms)
✓ <C-p> go to previous search string
cursor location
✓ cursor location in command line (47ms)
✓ cursor location in search
HistoryFile
✓ add command
✓ add empty command
✓ add command over configuration.history
✓ add command that exists in history
✓ file system
✓ change configuration.history (60ms)
command-line lexer
✓ can lex empty string
✓ can lex comma
✓ can lex percent
✓ can lex dollar
✓ can lex dot
✓ can lex one number
✓ can lex longer number
✓ can lex plus
✓ can lex minus
✓ can lex forward search
✓ can lex forward search escaping
✓ can lex reverse search
✓ can lex reverse search escaping
✓ can lex command name
✓ can lex command args
✓ can lex command args with leading whitespace
✓ can lex long command name and args
✓ can lex left and right line refs
:only command
✓ Run :only (1286ms)
command-line parser
✓ can parse empty string
✓ can parse pure whitspace
✓ can parse left - dot
✓ can parse left - dollar
✓ can parse left - percent
✓ can parse separator - comma
✓ can parse right - dollar
✓ whitespace in LineRange is ignored
put cmd_line
✓ put in empty file
✓ put in middle of file (54ms)
✓ put at end of file
✓ put ignores current indentation
✓ put text with newlines (48ms)
✓ put from specified register
✓ put in visual mode executes at cursor end position (113ms)
✓ put forces linewise put regardless of register mode (107ms)
✓ put! puts before current line (53ms)
✓ put leaves cursor on last line, first non-whitespace character of pasted content
✓ put! leaves cursor on last line, first non-whitespace character of pasted content
✓ put with specified line (52ms)
✓ put! with specified line (39ms)
✓ put with line range should insert at ending line (49ms)
command line scanner
✓ ctor
✓ can detect EOF with empty input
✓ next() returns EOF at EOF
✓ can scan
✓ can emit
✓ can ignore
✓ can skip whitespace
✓ can skip whitespace with one char before EOF
✓ can skip whitespace at EOF
✓ nextWord() return EOF at EOF
✓ nextWord() return word before trailing spaces
✓ nextWord() can skip whitespaces and return word
✓ nextWord() return word before EOF
✓ can expect one of a set
✓ can expect only one of a set
Smile command
✓ :smile creates new tab (537ms)
✓ :smile editor contains smile text (540ms)
Basic sort
✓ Sort whole file, asc (66ms)
✓ Sort whole file, asc, ignoreCase (99ms)
✓ Sort whole file, dsc (70ms)
✓ Sort whole file, dsc, ignoreCase (70ms)
✓ Sort range, asc (81ms)
✓ Sort range, asc, ignoreCase (91ms)
✓ Sort range, dsc (94ms)
✓ Sort range, dsc, ignoreCase (73ms)
TaskQueue: error: Error running task. .
✓ Sort whole file, asc, unique (81ms)
Horizontal split
✓ :sp creates a second split (74ms)
✓ :split creates a second split (69ms)
✓ :new creates a second split (245ms)
:close args parser
✓ can parse empty args
✓ ignores trailing white space
✓ can parse !
✓ throws if space before !
✓ ignores space after !
✓ throws if bad input
:quit args parser
✓ can parse empty args
✓ ignores trailing white space
✓ can parse !
✓ throws if space before !
✓ ignores space after !
✓ throws if bad input
:substitute args parser
✓ can parse pattern, replace, and flags
✓ can parse count
✓ can parse custom delimiter
✓ can escape delimiter
✓ can parse flag KeepPreviousFlags
:tabm[ove] args parser
✓ has :tabm alias
✓ can parse empty args
✓ can parse an absolute position
✓ can parse a relative position
✓ fails with invalid inputs
getParser
✓ empty
✓ :marks
✓ :ju
✓ :sh
✓ :write
✓ :nohlsearch
✓ :quitall
:write args parser
✓ can parse empty args
✓ can parse ++opt
✓ throws if bad ++opt name
✓ can parse bang
✓ can parse ' !cmd'
✓ can parse ' !cmd' when cmd is empty
Basic substitute
✓ Replace single word once (46ms)
✓ Replace with `g` flag (96ms)
✓ Replace with flags AND count (80ms)
✓ Replace with `c` flag
✓ Replace with `gc` flag (68ms)
✓ Replace across all lines (64ms)
✓ Replace on specific single line (44ms)
✓ Replace on current line using dot (52ms)
✓ Replace single relative line using dot and plus (62ms)
✓ Replace across specific line range (73ms)
✓ Replace across relative line range using dot, plus, and minus (56ms)
✓ Replace across relative line range using numLines+colon shorthand (50ms)
✓ Repeat replacement across relative line range (58ms)
✓ Replace with range AND count but no flags (61ms)
✓ Undocumented: operator without LHS assumes dot as LHS (64ms)
✓ Undocumented: multiple consecutive operators use 1 as RHS (53ms)
✓ Undocumented: trailing operators use 1 as RHS (45ms)
✓ Replace specific single equal lines (47ms)
✓ Replace current line with no active selection (63ms)
✓ Replace text in selection (81ms)
✓ Substitute support marks (68ms)
Effects of gdefault=true
✓ Replace all matches in the line
✓ Replace with `g` flag inverts global flag (78ms)
✓ Replace with `c` flag inverts global flag (49ms)
✓ Replace multiple lines (50ms)
✓ Replace across specific lines (52ms)
✓ Replace current line with no active selection (51ms)
✓ Replace text in selection (76ms)
✓ Substitute support marks (80ms)
✓ Substitute with escaped delimiter (51ms)
Substitute should use various previous search/substitute states
✓ Substitute with previous search using * (137ms)
✓ Substitute with previous search using # (156ms)
✓ Substitute with previous search using / (154ms)
✓ Substitute with parameters should update search state (84ms)
✓ Substitute with empty replacement should delete previous substitution (all variants) and accepts flags (179ms)
✓ Substitute with no pattern should repeat previous substitution and not alter search state (97ms)
✓ Substitute repeat previous should accept flags (58ms)
✓ Substitute with empty search string should use last searched pattern (155ms)
✓ Ampersand (&) should repeat the last substitution (43ms)
cmd_line tab
✓ tabe with no arguments when not in workspace opens an untitled file
✓ tabedit with no arguments when not in workspace opens an untitled file
✓ tabe with absolute path when not in workspace opens file (71ms)
✓ tabe with current file path does nothing (50ms)
cmd_line tabComplete
✓ command line command tab completion (58ms)
✓ command line command shift+tab
✓ command line file tab completion with no base path (72ms)
✓ command line file tab completion with / as base path
✓ command line file tab completion with ~/ as base path
✓ command line file tab completion with ./ as base path
✓ command line file tab completion with ../ as base path
✓ command line file tab completion directory with / at the end
✓ command line file navigate tab completion
✓ command line tab completion on the content on the left of the cursor
✓ command line file tab completion with .
✓ command line file tab completion with space in file path (122ms)
Undo command
✓ undoes last action after insert mode
Vertical split
✓ :vs creates a second split (68ms)
✓ :vsp creates a second split (66ms)
✓ :vsplit creates a second split (61ms)
✓ :vnew creates a second split (215ms)
✓ :vne creates a second split (205ms)
Basic write-quit
✓ Run write and quit (69ms)
Provide line completions
Line Completion Provider unit tests
✓ Can complete lines in file, prioritizing above cursor, near cursor (43ms)
✓ Can complete lines in file with different indentation
✓ Returns no completions for unmatched line
Configuration
✓ remappings are normalized
✓ whichwrap is parsed into wrapKeys
✓ Can handle long key chords
Notation
✓ Normalize
Remapper
✓ getLongestedRemappedKeySequence (83ms)
✓ getMatchingRemap (54ms)
✓ jj -> <Esc> through modehandler (101ms)
✓ 0 -> :wq through modehandler (80ms)
✓ <c-e> -> <esc> in insert mode should go to normal mode (91ms)
✓ leader, w -> closeActiveEditor in normal mode through modehandler (73ms)
✓ leader, c -> closeActiveEditor in visual mode through modehandler (80ms)
✓ d -> black hole register delete in normal mode through modehandler (124ms)
✓ d -> black hole register delete in normal mode through modehandler (244ms)
✓ jj -> <Esc> after ciw operator through modehandler (144ms)
✓ jj -> <Esc> after using <Count>i=jj should insert === (117ms)
✓ jj -> <Esc> does not leave behind character a j (106ms)
✓ jj -> <Esc> does not modify undo stack (119ms)
Neovim Validator
✓ neovim enabled without path
✓ neovim enabled with nvim in path
✓ neovim disabled
Remapping Validator
✓ no remappings
✓ jj->esc
✓ remapping missing after and command
✓ remappings are de-duped
Vimrc
✓ Can expand $HOME to user's home directory
✓ Can expand ~ to user's home directory
VimrcKeyRemappingBuilder
✓ Build IKeyRemapping objects from .vimrc lines
Error
✓ error code has message
package.json
✓ all keys have handlers
✓ all defined configurations in package.json have handlers
historyTracker unit tests
addMark
✓ can create lowercase mark
✓ can create uppercase mark
✓ shares uppercase marks between editor instances
✓ does not share lower marks between editor instances
Record and navigate jumps
Jump Tracker unit tests
✓ Can record jumps between files
✓ Can handle file jump events sent by vscode in response to recordJumpBack
✓ Can record jumps between files after switching files
✓ Can handle jumps to the same file multiple times
✓ Can record up to 100 jumps, the fixed length in vanilla Vim
✓ Can handle text deleted from a file
Can record jumps for actions the same as vanilla Vim
Can track basic jumps
✓ Can track jumps for keys: Ggg
✓ Can track jumps for keys: GggG
✓ Can track jumps for keys: GggGgg
✓ Can track jumps for keys: /b<CR>n (135ms)
✓ Can track jumps for keys: G?b<CR>ggG (45ms)
✓ Can track jumps for keys: j%%
Can track jumps with back/forward
✓ Can track jumps for keys: j%%<C-o>
✓ Can track jumps for keys: j%%<C-o><C-i>
✓ Can track jumps for keys: j%%<C-o>% (41ms)
✓ Can track jumps for keys: j%%<C-o>gg
✓ Can track jumps for keys: j%%<C-o><C-o>gg (38ms)
✓ Can track jumps for keys: /^<CR>nnn<C-o><C-o><C-o><C-i>gg (52ms)
✓ Can enter number to jump back multiple times
✓ Can track one-line `` jumps (61ms)
✓ Can track one-line double `` jumps (46ms)
✓ Can track one-line '' jumps (53ms)
✓ Can track one-line double '' jumps (167ms)
✓ Can handle '' jumps with no previous jump
Can shifts jump lines up after deleting a line with Visual Line Mode
[main 2020-07-26T15:53:16.158Z] update#setState checking for updates
[main 2020-07-26T15:53:16.243Z] update#setState idle
✓ Can track jumps for keys: /^<CR>nnnkkdd (60ms)
✓ Can track jumps for keys: /^<CR>nnnkdd (50ms)
✓ Can track jumps for keys: /^<CR>nnnnn<C-o><C-o><C-o><C-o>dd (61ms)
✓ Can track jumps for keys: /a4<CR>/a5<CR>kkkdd (57ms)
Can shifts jump lines up after deleting a line with Visual Mode
✓ Can track jumps for keys: /^<CR>nnnkklvjjhx (83ms)
Can shift jump lines down after inserting a line
✓ Can track jumps for keys: /^<CR>nnnkkoINSERTED<Esc>0 (89ms)
✓ Can track jumps for keys: /^<CR>nnnkoINSERTED<Esc>0 (119ms)
✓ Can track jumps for keys: /^<CR>nnnkOINSERTED<Esc>0 (113ms)
✓ Can track jumps for keys: /a4<CR>/a5<CR>kkkoINSERTED<Esc>0 (96ms)
Can track jumps from substitutes
✓ Can track jumps for keys: :%s/a/b<CR> (46ms)
Can track jumps from macros
✓ Can track jumps for keys: qq/^<CR>nq@q@q<C-o><C-o> (96ms)
Can track jumps from marks
✓ Can track jumps for keys: maG`a
Record and execute a macro
✓ Can record and execute (87ms)
✓ Can repeat last invoked macro (156ms)
✓ Can play back with count (202ms)
✓ Can play back with count, abort when a motion fails (221ms)
✓ Repeat change on contiguous lines (112ms)
✓ Append command to a macro (117ms)
✓ Append command to a not yet created register creates a new register (90ms)
✓ Can handle calling an uppercase register (105ms)
✓ Can handle calling a non existing macro (45ms)
✓ Can handle calling a non existing macro with uppercase letter (40ms)
✓ Can record Ctrl Keys and repeat (105ms)
✓ Can execute macros with dot commands properly (70ms)
✓ : (command) register can be used as a macro (62ms)
✓ Can record and execute macro that handles multiple lines (172ms)
Mode Handler
✓ ctor
✓ can set current mode
Mode Handler Map
✓ getOrCreate
✓ get
Mode Insert
✓ can be activated (64ms)
✓ can handle key events
✓ <Esc> should change cursor position
✓ <C-c> can exit insert (38ms)
✓ <Esc> can exit insert (49ms)
✓ Stay in insert when entering characters (54ms)
✓ Can handle 'O'
✓ 'i' puts you in insert mode before the cursor
✓ 'I' puts you in insert mode at start of line (38ms)
✓ 'a' puts you in insert mode after the cursor
✓ 'A' appends to end of line
✓ '<C-w>' deletes a word (38ms)
✓ Can handle <C-w> on leading whitespace (41ms)
✓ Can handle <C-w> at beginning of line
✓ <C-u> deletes to start of line (38ms)
✓ Can handle <C-u> on leading characters (44ms)
✓ Can handle <C-u> on leading whitespace (78ms)
✓ Correctly places the cursor after deleting the previous line break (44ms)
✓ will not remove leading spaces input by user
✓ will remove closing bracket
✓ Backspace works on whitespace only lines (60ms)
✓ Backspace works on end of whitespace only lines
✓ Backspace works at beginning of file (39ms)
✓ Delete works in insert mode (45ms)
✓ Delete works at line end (60ms)
✓ Delete works at end of file
✓ Delete works with repeat (151ms)
✓ Repeat insert by count times with dot (99ms)
✓ Can <Esc> after entering insert mode from <ctrl+o>
✓ Can perform <ctrl+o> to exit and perform one command in normal (71ms)
✓ Can <ctrl-o> after entering insert mode from <ctrl-o>
✓ Can perform <ctrl+o> to exit and perform one command in normal at the beginning of a row (49ms)
✓ Can perform insert command prefixed with count (121ms)
✓ Can perform append command prefixed with count
✓ Can perform insert at start of line command prefixed with count
✓ Can perform append to end of line command prefixed with count (50ms)
✓ Can perform change char (s) command prefixed with count (63ms)
✓ Can perform command prefixed with count with <C-[>
✓ Can handle 'o' with count (75ms)
✓ Can handle 'O' with count (68ms)
✓ Can handle backspace at beginning of line with all spaces (73ms)
✓ Can handle digraph insert (65ms)
✓ Can handle custom digraph insert
✓ Can insert last inserted text (64ms)
✓ Can handle no inserted text yet when executing <ctrl-a>
Mode Normal
✓ Can be activated
✓ Can handle dw
✓ Can handle dw
✓ Can handle dw
✓ Can handle dw across lines (1) (38ms)
✓ Can handle dw across lines (2)
✓ Can handle dd last line
✓ Can handle dd single line
✓ Can handle dd (79ms)
✓ Can handle 3dd
✓ Can handle 3dd off end of document
✓ Can handle d2d
✓ Can handle dd empty line
✓ Can handle ddp
✓ Can handle 'de' (41ms)
✓ Can handle 'de' then 'de' again (40ms)
✓ Can handle 'db'
✓ Can handle 'db then 'db' again (44ms)
✓ Can handle 'dl' at end of line (40ms)
✓ Can handle 'dF' (39ms)
✓ Can handle 'dT' (39ms)
✓ Can handle 'd3' then <enter>
✓ Can handle 'dj' (162ms)
✓ Can handle 'dk'
✓ Can handle 'd])' without deleting closing parenthesis (44ms)
✓ Can handle 'd]}' without deleting closing bracket
✓ Can handle 'd/'
✓ Can handle 'd/' with count ([count]d/[word]) (70ms)
✓ Can handle 'd/' with count (d[count]/[word])
✓ Can handle 'cw' (118ms)
✓ Can handle 'cw' without deleting following white spaces
✓ Can handle 'c2w'
✓ Can handle 'cw' without removing EOL
✓ Can handle 'c])' without deleting closing parenthesis (41ms)
✓ Can handle 'c]}' without deleting closing bracket
✓ Can handle 's' (45ms)
✓ Can handle 'yiw' with correct cursor ending position
✓ Can handle 'ciw' (54ms)
✓ Can handle 'ciw' on blanks (63ms)
✓ Can handle 'caw' (47ms)
✓ Can handle 'caw' on first letter (50ms)
✓ Can handle 'caw' on blanks (54ms)
✓ Can handle 'caw' on blanks
✓ Can handle 'cae' (58ms)
✓ Can handle 'cae' with caret at document's top
✓ Can handle 'cae' with caret at document's end (78ms)
✓ Can handle 'cie' on blank content
✓ Can handle 'cie' with leading space
✓ Can handle 'cie' with trailing space (51ms)
✓ Can handle 'cie' with both leading and trailing space (67ms)
✓ Can handle 'cie' on blank content
✓ Can handle 'ci(' on first parentheses (93ms)
✓ Can handle 'ci(' with nested parentheses (44ms)
✓ Can handle 'ci(' backwards through nested parens
✓ Can handle 'cib' on first parentheses (41ms)
✓ Can handle 'ci(' across multiple lines with last character at beginning
✓ Can handle count prefixed 'ci)' (51ms)
✓ Can handle count prefixed 'ca)' (49ms)
✓ Can handle 'ca(' spanning multiple lines
✓ Can handle 'cab' spanning multiple lines (42ms)
✓ Can handle 'ci{' spanning multiple lines
✓ Can handle 'ci{' spanning multiple lines and handle whitespaces correctly
✓ Can handle 'ci{' spanning multiple lines and handle whitespaces correctly
✓ Can handle 'ci(' on the closing bracket
✓ Can handle 'ciB' spanning multiple lines
✓ will fail when ca( with no ()
✓ will fail when ca{ with no {}
✓ will fail when caB with no {}
✓ Can handle 'ci[' spanning multiple lines
✓ Can handle 'ci]' on first bracket
✓ Can handle 'ca[' on first bracket (39ms)
✓ Can handle 'ca]' on first bracket
✓ Can handle 'ci'' on first quote
✓ Can handle 'ci'' inside quoted string
✓ Can handle 'ci'' on closing quote (38ms)
✓ Can handle 'ci'' when string is ahead (38ms)
✓ Can handle 'ci"' on opening quote
✓ Can handle 'ci"' starting behind the quoted word
✓ Can handle 'ca"' starting behind the quoted word
✓ Can handle 'ca"' starting on the opening quote
✓ Can handle 'ci"' with escaped quotes (38ms)
✓ Can handle 'ci"' with a single escaped quote
✓ Can handle 'ci"' with a single escaped quote behind (43ms)
✓ Can handle 'ci"' with an escaped backslash
✓ Can handle 'ci"' with an escaped backslash on closing quote
✓ Can handle 'ca"' starting on the closing quote (44ms)
✓ Can handle 'ci"' with complex escape sequences
✓ Can pick the correct open quote between two strings for 'ci"' (39ms)
✓ will fail when ca" ahead of quoted string
✓ Can handle 'ca`' inside word
✓ can handle cj (53ms)
✓ can handle ck (66ms)
✓ can handle c2j
✓ can handle c2k (55ms)
✓ can handle cj on last line (54ms)
✓ can handle ck on first line (44ms)
✓ can handle c2j on last line (42ms)
✓ can handle c2k on first line (50ms)
✓ Can handle 'daw' on word with cursor inside spaces (56ms)
✓ Can handle 'daw' on word with trailing spaces (45ms)
✓ Can handle 'daw' on word with leading spaces (44ms)
✓ Can handle 'daw' on word with numeric prefix
✓ Can handle 'daw' on word with numeric prefix and across lines (90ms)
✓ Can handle 'daw' on word with numeric prefix and across lines
✓ Can handle 'daw' on word with numeric prefix and across lines, containing words end with `.` (61ms)
✓ Can handle 'daw' on end of word (48ms)
✓ Can handle 'daw' on words at beginning of line with leading whitespace (38ms)
✓ Can handle 'daw' on words at ends of lines in the middle of whitespace
✓ Can handle 'daw' on word at beginning of file
✓ Can handle 'daw' on word at beginning of line
✓ Can handle 'daw' on word at end of line with trailing whitespace
✓ Can handle 'daw' around word at end of line
✓ Can handle 'daW' on big word with cursor inside spaces
✓ Can handle 'daW' around word at whitespace
✓ Can handle 'daW' on word with trailing spaces
✓ Can handle 'daW' on word with leading spaces (51ms)
✓ Can handle 'daW' on word with numeric prefix
✓ Can handle 'daW' on word with numeric prefix and across lines (50ms)
✓ Can handle 'daW' on beginning of word
✓ Can handle 'daW' on end of one line
✓ Can handle 'daW' around word at the last WORD (t|wo)
✓ Can handle 'daW' around word at the last WORD (tw|o)
✓ Can handle 'daW' around word at the last WORD (class="btn"|>)
✓ Can handle 'daW' around word at the last WORD of the end of document (class="btn"|>) (46ms)
✓ Can handle 'daW' around word at the last WORD (c|lass="btn">)
✓ Can handle 'daW' around word at the last WORD of the end of document (c|lass="btn">)
✓ Can handle 'diw' on word with cursor inside spaces
✓ Can handle 'diw' on word
✓ Can handle 'diw' on word with numeric prefix
✓ Can handle 'diw' on trailing spaces at the end of line (40ms)
✓ Can handle 'diw' on word with numeric prefix and across lines (56ms)
✓ Can handle 'diw' on word with numeric prefix and across lines, containing words end with `.` (48ms)
✓ Can handle 'diW' on big word with cursor inside spaces (45ms)
✓ Can handle 'diW' on word with trailing spaces
✓ Can handle 'diW' on word with leading spaces (40ms)
✓ Can handle 'diW' on word with numeric prefix
✓ Can handle 'diW' on word with numeric prefix and across lines (56ms)
✓ Can handle 'diW' on beginning of word
✓ Can handle 'dae' (65ms)
✓ Can handle 'dae' with caret at document's top
✓ Can handle 'dae' with caret at document's end (81ms)
✓ Can handle 'die' on blank content
✓ Can handle 'die' with leading space
✓ Can handle 'die' with trailing space (47ms)
✓ Can handle 'die' with both leading and trailing space (60ms)
✓ Can handle 'die' on blank content
✓ Can handle d} at beginning of line
✓ Can handle y} at beginning of line
✓ Can handle d} when not at beginning of line
✓ Can handle } with operator and count, at beginning of line
✓ Can handle } with operator and count, and not at beginning of line
✓ Can handle dip (46ms)
✓ Can handle dip on empty lines
✓ Can handle dap (45ms)
✓ Can handle dap with two blank lines
✓ Can handle dap one single line with two blank lines
✓ Select sentence with trailing spaces (125ms)
✓ Select sentence with leading spaces (123ms)
✓ Select inner sentence with trailing spaces (42ms)
✓ Select inner sentence with leading spaces (65ms)
✓ Select spaces between sentences (65ms)
✓ Can handle 'df'
✓ Can handle 'dt'
✓ Can handle backspace
✓ Can handle backspace across lines
✓ Can handle A and backspace
✓ A should update desiredColumn
✓ I should updated desiredColumn (48ms)
✓ leaving insert mode should update desired column when entered with a (45ms)
✓ leaving insert mode should update desired column when entered with i (50ms)
✓ Can handle 'yy' without changing cursor position
✓ Can handle 'P' after 'yy'
✓ Can handle 'p' after 'yy'
✓ Can handle 'P' after 'Nyy'
✓ Can handle 'p' after 'Nyy'
✓ Can handle 'p' after 'yy' with correct cursor position
✓ Can handle 'gp' after 'yy'
✓ Can handle 'gp' after 'Nyy'
✓ Can handle 'gp' after 'Nyy' if pasting more than three lines (187ms)
✓ Can handle 'gp' after 'Nyy' if cursor is on the last line
✓ Can handle 'gP' after 'yy' (39ms)
✓ Can handle 'gP' after 'Nyy'
✓ Can handle 'gP' after 'Nyy' if pasting more than three lines
✓ Can handle ']p' after yy (51ms)
✓ Can handle ']p' after 'Nyy'
✓ Can handle ']p' after 'Nyy' and indent with tabs first (50ms)
✓ Can handle ']p' after 'Nyy' and decrease indents if possible
✓ Can handle '[p' after yy (52ms)
✓ Can handle '[p' after 'Nyy'
✓ Can handle '[p' after 'Nyy' and indent with tabs first
✓ Can handle '[p' after 'Nyy' and decrease indents if possible
✓ Can handle 'p' after y'a
✓ Can handle 'p' after 'y])' without including closing parenthesis
✓ Can handle 'p' after 'y]}' without including closing bracket (99ms)
✓ Can handle pasting in visual mode over selection (71ms)
✓ Can repeat w
✓ Can repeat p
✓ I works correctly
✓ gI works correctly
✓ gi works correctly (57ms)
✓ `. works correctly
✓ '. works correctly (43ms)
✓ g; works correctly (52ms)
✓ g, works correctly (59ms)
✓ g_ works correctly
✓ 3g_ works correctly (41ms)
✓ gq handles spaces after single line comments correctly (152ms)
✓ gq handles spaces before single line comments correctly (139ms)
✓ gq handles tabs before single line comments correctly (133ms)
✓ gq work correctly with cursor in the middle of a line (76ms)
✓ Can handle space
✓ Can handle space
✓ Undo 1 (51ms)
✓ Undo 2 (51ms)
✓ Undo cursor (284ms)
✓ Undo cursor 2 (83ms)
✓ Undo cursor 3 (92ms)
✓ Undo with movement first (57ms)
✓ Can handle 'U'
✓ Can handle 'U' for multiple changes (50ms)
✓ Can handle 'U' for new line below (57ms)
✓ Can handle 'U' for new line above (51ms)
✓ Can handle 'U' for consecutive changes only (78ms)
✓ Can handle 'u' to undo 'U'
✓ Can handle 'U' to undo 'U'
✓ Can handle 'u' after :s/abc/def (69ms)
✓ Can handle undo delete
✓ Can handle undo delete twice (57ms)
✓ Can handle undo delete with count
✓ Can handle undo delete with count and redo (62ms)
✓ Redo (137ms)
✓ Redo (67ms)
✓ Redo (65ms)
✓ Can handle u
✓ Can handle guw
✓ Can handle guae
✓ Can handle guie (38ms)
✓ Can handle gUw
✓ Can handle gUae
✓ Can handle gUie
✓ Can handle u over line breaks (39ms)
✓ can handle s in visual mode (49ms)
✓ can handle p with selection (41ms)
✓ can handle P with selection (44ms)
✓ can handle p in visual to end of line (74ms)
✓ can repeat backspace twice (66ms)
✓ Can repeat dw
✓ Can repeat dw with count
✓ can delete linewise with d2G
✓ can delete linewise with d2gg (40ms)
✓ can delete linewise with d2gg backwards
✓ can delete with + motion and count
✓ can delete with - motion and count (45ms)
✓ can delete with count before and after operator, 2d12w deletes 24 words
✓ can dE correctly
✓ can dE correctly
✓ can dE correctly
✓ can ctrl-a correctly behind a word
✓ can ctrl-a the right word (always the one AFTER the cursor)
✓ can ctrl-a on word
✓ can ctrl-a on a hex number
✓ can ctrl-a on decimal
✓ can ctrl-a with numeric prefix
✓ can ctrl-a on a decimal
✓ can ctrl-a on an octal
✓ Correctly increments in the middle of a number
✓ can ctrl-a on a hex number behind a word
✓ can ctrl-a distinguish fake hex number
✓ can ctrl-a preserve leading zeros of octal
✓ can ctrl-a trim leading zeros of decimal
✓ can ctrl-a process `-0x0` correctly
✓ can ctrl-a regard `0` as decimal
✓ can ctrl-a on octal ignore negative sign
✓ can ctrl-a on octal ignore positive sign (58ms)
✓ can ctrl-a on hex number ignore negative sign
✓ can ctrl-a on hex number ignore positive sign
✓ can ctrl-x correctly behind a word
✓ can ctrl-a on an number with word before
✓ can ctrl-a on an number with word before and after (267ms)
✓ can ctrl-x on a negative number with word before and after
✓ can ctrl-a properly on multiple lines
✓ can <C-a> on word with multiple numbers (incrementing first number)
✓ can <C-a> on word with multiple numbers (incrementing second number)
✓ can <C-a> on word with - in front of it
✓ <C-a> in visual mode (53ms)
✓ <C-a> in visual line mode (39ms)
✓ <C-a> in visual block mode (75ms)
✓ <C-a> in visual block mode does not go past selection
✓ g<C-a> in visual mode (66ms)
✓ g<C-a> in visual line mode (49ms)
✓ g<C-a> in visual block mode (51ms)
✓ can do Y
✓ can do [count]Y
✓ can do [count]Y if count is larger than EOF
✓ Can do S
✓ / does not affect mark
✓ / can search with regex (73ms)
✓ / can search with newline
✓ / can search through multiple newlines (48ms)
✓ / with noignorecase, nosmartcase (39ms)
✓ / matches ^ per line
✓ / matches $ per line
✓ Can search for forward slash
✓ Can search backward for question mark (42ms)
✓ /\c forces case insensitive search
✓ /\C forces case sensitive search
✓ <BS> deletes the last character in search in progress mode
✓ <S-BS> deletes the last character in search in progress mode
✓ <C-h> deletes the last character in search in progress mode
✓ Can delete with search forward
✓ Can delete with search backward (55ms)
✓ Can do C
✓ Can do cit on a matching tag (39ms)
✓ Ignores cit on a non-matching tag
✓ Ignores cit on a nested tag
✓ Can do cit on a tag with an attribute tag (111ms)
✓ Can do cat on a matching tag (44ms)
✓ Can do cit on a multiline tag (43ms)
✓ Can do cit on a multiline tag with nested tags (61ms)
✓ Can do cit inside of a tag with another non closing tag inside tags (46ms)
✓ Can do cit inside of a tag with another empty closing tag inside tags (48ms)
✓ Can do dit on empty tag block, cursor moves to inside
✓ Can do cit on empty tag block, cursor moves to inside (38ms)
✓ can do cit with self closing tags (42ms)
✓ yat yanks the correct tag when inside one
✓ yat yanks the correct tag when cursor is on the opening angle bracket
✓ yat yanks the correct tag when cursor is between the beginning of the line and the tag
✓ dat deletes the outer tag when there are other characters (not just WS) before the opening tag
✓ dat deletes the outer tag when the cursor is after the inner tag (39ms)
✓ Respects indentation with cc (49ms)
✓ Resets cursor to indent end with cc
✓ can handle 'cc' on empty line
✓ cc copies linewise (167ms)
✓ Indent current line with correct Vim Mode
✓ Can handle <Esc> and do nothing
✓ Can handle # on consecutive words (39ms)
✓ Can handle # on skipped words (38ms)
✓ Can 'D'elete the characters under the cursor until the end of the line (52ms)
✓ Can 'D'elete the characters under multiple cursors until the end of the line (65ms)
✓ cc on whitespace-only treats whitespace as indent
✓ Can do cai (61ms)
✓ Can do cii
✓ Can do caI (60ms)
✓ Can do dai (43ms)
✓ Can do dii
✓ Can do daI (52ms)
✓ Will fail 'cia' with no delimiters
✓ Will fail 'cia' with flipped delimiters
✓ Will fail 'cia' with separators but no delimiters
✓ Can do 'cia' in a single argument (48ms)
✓ Can do 'cia' in () with cursor at opening delimiter
✓ Can do 'cia' in () with cursor at closing delimiter
✓ Can do 'cia' in (,) with cursor at opening delimiter (75ms)
✓ Can do 'cia' in (,) with cursor at regular delimiter
✓ Can do 'cia' in (,) with cursor at closing delimiter
✓ Can do 'cia' in (,,,) with cursor at regular delimiter
✓ Can do 'cia' in (,,,) with cursor at second-to-last delimiter
✓ Can do 'cia' in (,,,) with cursor at closing delimiter
✓ Can do 'cia' with nested parentheses in argument (48ms)
✓ Can do 'cia' in a single-line comma seperated list with cursor in first argument
✓ Can do 'cia' in a single-line comma seperated list with cursor on opening delimiter
✓ Can do 'cia' in a single-line comma seperated list with cursor in middle argument (45ms)
✓ Can do 'cia' in a single-line comma seperated list with cursor on regular delimiter
✓ Can do 'cia' in a single-line comma seperated list with cursor in last argument (41ms)
✓ Can do 'cia' in a single-line comma seperated list with cursor on closing delimiter (49ms)
✓ Can do 'cia' in a whitespace-only argument (39ms)
✓ Can do 'cia' in a whitespace-only argument across multiple lines
✓ Can do 'cia' with trailing whitespace after separator
✓ Can do 'cia' with trailing whitespace after separator and empty line
✓ Can do 'cia' in a multiline-line comma seperated list with cursor in first argument
✓ Can do 'cia' in a multiline-line comma seperated list with cursor in center argument (45ms)
✓ Can do 'cia' in a multiline-line comma seperated list with cursor in last argument
✓ Can do 'cia' in a multi-line indented statement with one argument. (38ms)
✓ Can do 'daa' in a single argument (40ms)
✓ Will fail 'daa' in ()
✓ Can do 'daa' in a single-line comma seperated list with cursor in first argument
✓ Can do 'daa' in a single-line comma seperated list with cursor in middle argument
✓ Can do 'daa' in a single-line comma seperated list with cursor in last argument (39ms)
✓ Can do 'daa' in a multiline-line comma seperated list with cursor in first argument
✓ Can do 'daa' in a multiline-line comma seperated list with cursor in center argument (247ms)
✓ Can do 'daa' in a multiline-line comma seperated list with cursor in last argument
✓ `] go to the end of the previously operated or put text (55ms)
✓ '] go to the end of the previously operated or put text (52ms)
✓ `[ go to the start of the previously operated or put text (56ms)
✓ '[ go to the start of the previously operated or put text (54ms)
✓ can handle <C-u> when first line is visible and starting column is at the beginning
✓ can handle <C-u> when first line is visible and starting column is at the end (58ms)
✓ can handle <C-u> when first line is visible and starting column is in the middle (93ms)
can handle gn
✓ gn selects the next match text (154ms)
✓ gn selects the current word at |hello (152ms)
✓ gn selects the current word at h|ello (186ms)
✓ gn selects the current word at hel|lo (238ms)
✓ gn selects the current word at hell|o (147ms)
✓ gn selects the next word at hello| (158ms)
can handle dgn
✓ dgn deletes the next match text (from first line) (61ms)
✓ dgn deletes the current word when cursor is at |hello (46ms)
✓ dgn deletes the current word when cursor is at h|ello (50ms)
✓ dgn deletes the current word when cursor is at hel|lo (40ms)
✓ dgn deletes the current word when cursor is at hell|o (44ms)
✓ dgn deletes the next word when cursor is at hello| (45ms)
can handle cgn
✓ cgn deletes the next match text (from first line) (74ms)
✓ cgn deletes the current word when cursor is at |hello (143ms)
✓ cgn deletes the current word when cursor is at h|ello (46ms)
✓ cgn deletes the current word when cursor is at hel|lo (47ms)
✓ cgn deletes the current word when cursor is at hell|o (53ms)
✓ cgn deletes the next word when cursor is at hello| (49ms)
can handle gN
✓ gN selects the previous match text (123ms)
✓ gN selects the current word at hell|o (170ms)
✓ gN selects the current word at hel|lo (186ms)
✓ gN selects the current word at h|ello (157ms)
✓ gN selects the current word at |hello (177ms)
✓ gN selects the previous word at | hello (190ms)
can handle dgN
✓ dgN deletes the previous match text (from first line) (47ms)
✓ dgN deletes the current word when cursor is at hell|o (48ms)
✓ dgN deletes the current word when cursor is at hel|lo (52ms)
✓ dgN deletes the current word when cursor is at h|ello (52ms)
✓ dgN deletes the current word when cursor is at |hello (44ms)
✓ dgN deletes the previous word when cursor is at | hello (58ms)
can handle cgN
✓ cgN deletes the previous match text (from first line) (56ms)
✓ cgN deletes the current word when cursor is at hell|o (61ms)
✓ cgN deletes the current word when cursor is at hel|lo (62ms)
✓ cgN deletes the current word when cursor is at h|ello (49ms)
✓ cgN deletes the current word when cursor is at |hello (54ms)
✓ cgN deletes the previous word when cursor is at | hello (66ms)
marks
✓ capital marks can change the editors active document (125ms)
✓ can jump to lowercase mark
Mode Replace
✓ Can activate with <Insert> from Insert mode
✓ Can activate with R from Normal mode
✓ Can handle R
✓ Can handle R past current line
✓ Can handle R and exit Replace Mode (42ms)
✓ Can handle R across lines (66ms)
✓ Can handle R across lines and exit Replace Mode (71ms)
✓ Can handle R with {count} (79ms)
✓ Can handle backspace (57ms)
✓ Can handle backspace (67ms)
✓ Can handle backspace across lines (75ms)
✓ Can handle arrows (41ms)
✓ Can handle . (77ms)
✓ Can handle . across lines (104ms)
Mode Visual
✓ can be activated
✓ Can handle w (100ms)
✓ Can handle wd (95ms)
✓ Can handle x (69ms)
✓ Can handle x across a selection (83ms)
✓ Can do vwd in middle of sentence (114ms)
✓ Can do vwd in middle of sentence (84ms)
✓ Can do vwd multiple times (141ms)
✓ handles case where we go from selecting on right side to selecting on left side (118ms)
✓ Can handle H key (140ms)
✓ Can handle backspace key
✓ handles case where we delete over a newline (104ms)
✓ handles change operator (74ms)
✓ Can do vat on multiple matching tags (75ms)
✓ Can maintain selection on failure with vat on multiple matching tags (82ms)
✓ Can maintain selection on failure with repeat-prefixed vat on multiple matching tags (67ms)
✓ Repeat-prefixed vat does not bleed below (52ms)
✓ Failed vat does not expand or move selection, remains in visual mode (40ms)
✓ Can do vi) on a matching parenthesis (51ms)
✓ Can do vi) on multiple matching parens (48ms)
✓ Can do va) on a matching parenthesis (46ms)
✓ Can do va) on multiple matching parens (54ms)
✓ Failed va) does not expand or move selection, remains in visual mode (44ms)
✓ Repeat-prefixed va) does not bleed below (51ms)
✓ Can do va} on a matching bracket as first character
✓ Can do va} on multiple matching brackets (49ms)
✓ Can do vi( on a matching bracket near first character
✓ Can do vi{ on outer pair of nested braces (50ms)
✓ Can do vi{ on braces indented by 1 and preserve indent (48ms)
✓ Can do va] on multiple matching brackets (59ms)
✓ Can do repeat-prefixed vaf on multiple matching pairs of different types (358ms)
✓ Repeat-prefixed vaf does not bleed below (52ms)
✓ vaf only expands to enclosing pairs (51ms)
✓ Can use . to repeat indent in visual (45ms)
✓ Can do v_x to delete to first char (43ms)
✓ Can do vg_x to delete to last char with no EOL (58ms)
✓ Can do v3g_x to delete to last char with no EOL with count (56ms)
✓ Can do v$x to delete to last char including EOL (58ms)
✓ Can do gv to reselect previous selection (56ms)
✓ Can handle 'J' when the selected area spans multiple lines (45ms)
✓ Can handle 'gJ' when the entire selected area is on the same line (49ms)
✓ Can handle 'gJ' when the selected area spans multiple lines (38ms)
✓ Can handle 'gJ' when the selected area spans multiple lines and line has whitespaces (43ms)
✓ Can handle 'gJ' when start position of the selected area is below the stop (44ms)
✓ Preserves desired column correctly when moving in visual mode
✓ Updates desired column correctly when moving in visual mode
Vim's EOL handling is weird
✓ delete through eol (85ms)
✓ join 2 lines by deleting through eol (72ms)
✓ d$ doesn't delete whole line (60ms)
✓ vd$ does delete whole line (59ms)
✓ Paste over selection copies the selection (56ms)
✓ Paste over selection copies the selection linewise (50ms)
Arrow keys work perfectly in Visual Mode
✓ Can handle <up> key (40ms)
✓ Can handle <down> key (44ms)
✓ Can handle <left> key (43ms)
✓ Can handle <right> key
Screen line motions in Visual Mode
1) Can handle 'gk'
2) Can handle 'gj'
3) Preserves cursor position when handling 'gk'
4) Preserves cursor position when handling 'gj'
handles aw in visual mode
✓ Can handle 'vawd' on word with cursor inside spaces (49ms)
✓ Can handle 'vawd' on word with trailing spaces (64ms)
✓ Can handle 'vawd' on word with leading spaces (50ms)
✓ Can handle 'vawd' on word with numeric prefix (38ms)
✓ Can handle 'vawd' on word with numeric prefix and across lines (86ms)
✓ Can handle 'vawd' on word with numeric prefix and across lines, containing words end with `.` (69ms)
handles aW in visual mode
✓ Can handle 'vaWd' on big word with cursor inside spaces (67ms)
✓ Can handle 'vaWd' on word with trailing spaces (54ms)
✓ Can handle 'vaWd' on word with leading spaces (61ms)
✓ Can handle 'vaWd' on word with numeric prefix (161ms)
✓ Can handle 'vaWd' on word with numeric prefix and across lines (61ms)
handles aW in visual mode
✓ Can handle 'vaWd' on big word with cursor inside spaces (99ms)
✓ Can handle 'vaWd' on word with trailing spaces (52ms)
✓ Can handle 'vaWd' on word with leading spaces (55ms)
✓ Can handle 'vaWd' on word with numeric prefix (139ms)
✓ Can handle 'vaWd' on word with numeric prefix and across lines (76ms)
handles aw in visual mode
✓ Can handle 'vawd' on word with cursor inside spaces (55ms)
✓ Can handle 'vawd' on word with trailing spaces
✓ Can handle 'vawd' on word with leading spaces (65ms)
✓ Can handle 'vawd' on word with numeric prefix
✓ Can handle 'vawd' on word with numeric prefix and across lines (67ms)
✓ Can handle 'vawd' on word with numeric prefix and across lines, containing words end with `.` (77ms)
handles aW in visual mode
✓ Can handle 'vaWd' on big word with cursor inside spaces (50ms)
✓ Can handle 'vaWd' on word with trailing spaces (58ms)
✓ Can handle 'vaWd' on word with leading spaces (48ms)
✓ Can handle 'vaWd' on word with numeric prefix (43ms)
✓ Can handle 'vaWd' on word with numeric prefix and across lines (69ms)
✓ Can handle 'Y' in visual mode (38ms)
handles as in visual mode
✓ Select sentence with trailing spaces in visual mode (49ms)
✓ Select sentence with leading spaces in visual mode (76ms)
✓ Select multiple sentences in visual mode (76ms)
handles is in visual mode
✓ Select inner sentence with trailing spaces in visual mode (55ms)
✓ Select inner sentence with leading spaces in visual mode (75ms)
✓ Select spaces between sentences in visual mode (66ms)
handles tag blocks in visual mode
✓ Can do vit on a matching tag (53ms)
✓ Count-prefixed vit alternates expanding selection between inner and outer tag brackets (53ms)
✓ Can do vat on a matching tag (219ms)
handles replace in visual mode
✓ Can do a single line replace (52ms)
✓ Can do a multi line replace (38ms)
D command will remove all selected lines
✓ D deletes all selected lines (40ms)
✓ D deletes the current line (42ms)
handles indent blocks in visual mode
✓ Can do vai (55ms)
✓ Can do vii (64ms)
✓ Doesn't naively select the next line (57ms)
✓ Searches backwards if cursor line is empty
✓ Can do vaI (59ms)
visualstar
✓ Works with * (45ms)
✓ Works with # (45ms)
search works in visual mode
✓ Works with / (47ms)
✓ Works with ? (56ms)
✓ Selects correct range (90ms)
X will delete linewise
✓ normal selection (45ms)
✓ normal selection (39ms)
C will delete linewise
✓ normal selection
✓ normal selection (53ms)
R will delete linewise
✓ normal selection (47ms)
✓ normal selection
Linewise Registers will be inserted properly
✓ downward selection (85ms)
✓ upward selection (75ms)
Indent Tests using > on visual selections
✓ multiline indent top down selection
✓ multiline indent bottom up selection (48ms)
✓ repeat multiline indent top down selection (65ms)
✓ repeat multiline indent bottom up selection (68ms)
Outdent Tests using < on visual selections
✓ multiline outdent top down selection (53ms)
✓ multiline outdent bottom up selection (40ms)
✓ repeat multiline outdent top down selection (94ms)
✓ repeat multiline outdent bottom up selection (72ms)
Non-darwin <C-c> tests
✓ <C-c> copies and sets mode to normal (111ms)
vi{ will go to end of second to last line
✓ select (52ms)
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 (74ms)
✓ 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) (267ms)
✓ gv selects the last pasted text (which is longer than original) (247ms)
✓ gv selects the last pasted text (multiline) (130ms)
can handle gn
✓ gn selects the next match text (156ms)
✓ gn selects the current word at |hello (149ms)
✓ gn selects the current word at h|ello (177ms)
✓ gn selects the current word at hel|lo (228ms)
✓ gn selects the next word at hell|o (139ms)
✓ gn selects the next word at hello| (163ms)
can prepend text with I
✓ multiline insert from bottom up selection (49ms)
✓ multiline insert from top down selection (44ms)
✓ skips blank lines
can append text with A
✓ multiline append from bottom up selection (55ms)
✓ multiline append from top down selection (38ms)
✓ skips blank lines (140ms)
Can handle u/gu, U/gU
✓ U/gU on single character (53ms)
✓ U/gU across a selection (72ms)
✓ U/gU across a selection (reverse) (64ms)
✓ u/gu on single character (53ms)
✓ u/gu across a selection (87ms)
✓ u/gu across a selection (reverse) (65ms)
Can handle ~/g~
✓ ~/g~ on single character (95ms)
✓ ~/g~ across a selection (82ms)
C, R, and S
✓ 'C' deletes selected lines and puts you into insert mode (63ms)
✓ 'C' deletes selected lines and puts you into insert mode (backward selection) (46ms)
✓ 'R' deletes selected lines and puts you into insert mode
✓ 'R' deletes selected lines and puts you into insert mode (backward selection) (45ms)
✓ 'S' deletes selected lines and puts you into insert mode (45ms)
✓ 'S' deletes selected lines and puts you into insert mode (backward selection) (53ms)
Visual mode with command editor.action.smartSelect.grow
✓ Command editor.action.smartSelect.grow enters visual mode (56ms)
✓ Command editor.action.smartSelect.grow enters visual mode and increases selection (65ms)
✓ Command editor.action.smartSelect.grow enters visual mode on single character (76ms)
✓ Command editor.action.smartSelect.grow enters visual mode on multicursors (128ms)
Mode Visual Block
✓ can be activated
✓ Can handle A forward select (64ms)
✓ Can handle A backwards select (47ms)
✓ `A` over shorter line adds necessary spaces (63ms)
✓ Can handle I forward select (44ms)
✓ Can handle I backwards select (54ms)
✓ Can handle I with empty lines on first character (inserts on empty line) (58ms)
✓ Can handle I with empty lines on non-first character (does not insert on empty line) (51ms)
✓ Can handle c forward select (65ms)
✓ Can handle c backwards select (52ms)
✓ Can handle C (57ms)
✓ Can do a multi line replace (46ms)
✓ Can handle 'D' (51ms)
✓ Can handle 'gj' (63ms)
✓ Properly add to end of lines j then $ (51ms)
✓ Properly add to end of lines $ then j (50ms)
✓ o works in visual block mode (52ms)
✓ d deletes block (57ms)
✓ x deletes block (39ms)
✓ X deletes block (44ms)
✓ Select register using " works in visual block mode (83ms)
✓ Can handle 'J' when the entire visual block is on the same line
✓ Can handle 'J' when the visual block spans multiple lines
✓ Can handle 'J' when start position of the visual block is below the stop (38ms)
✓ Can handle 'gJ' when the entire visual block is on the same line (51ms)
✓ Can handle 'gJ' when the visual block spans multiple lines (178ms)
✓ Can handle 'gJ' when the visual block spans multiple lines and line has whitespaces (83ms)
✓ Can handle 'gJ' when start position of the visual block is below the stop (54ms)
✓ Can handle ~/g~ in visual block mode (167ms)
Non-darwin <C-c> tests
✓ <C-c> copies and sets mode to normal (121ms)
R and S
✓ 'R' deletes selected lines and puts you into insert mode (50ms)
✓ 'R' deletes selected lines and puts you into insert mode (backward selection) (44ms)
✓ 'S' deletes selected lines and puts you into insert mode (47ms)
✓ 'S' deletes selected lines and puts you into insert mode (backward selection) (41ms)
Mode Visual Line
✓ can be activated
✓ <count>V selects <count> lines (165ms)
✓ Can handle w (108ms)
✓ Can handle wd (112ms)
✓ Can handle x (83ms)
✓ Can handle x across a selection (75ms)
✓ Can do vwd in middle of sentence (124ms)
✓ Can do vwd in middle of sentence (74ms)
✓ Can do vwd multiple times (146ms)
✓ handles case where we go from selecting on right side to selecting on left side (172ms)
✓ handles case where we delete over a newline (124ms)
✓ handles change operator (459ms)
✓ Vp updates register content (44ms)
✓ "xVp only updates default register content (79ms)
✓ Vp does not append unnecessary newlines (first line) (39ms)
✓ Vp does not append unnecessary newlines (middle line) (38ms)
✓ Vp does not append unnecessary newlines (last line) (48ms)
✓ Vp places the cursor on first non-whitespace character on line (53ms)
✓ Exiting via <Esc> returns cursor to original column (62ms)
✓ Exiting via `VV` returns cursor to original column (42ms)
✓ Can handle 'J' when the selected area spans multiple lines (46ms)
✓ Can handle 'gJ' when the entire selected area is on the same line (42ms)
✓ Can handle 'gJ' when the selected area spans multiple lines (74ms)
✓ Can handle 'gJ' when the selected area spans multiple lines and line has whitespaces (56ms)
✓ Can handle 'gJ' when start position of the selected area is below the stop (60ms)
Vim's EOL handling is weird
✓ delete through eol (86ms)
✓ join 2 lines by deleting through eol (74ms)
✓ d$ doesn't delete whole line (61ms)
✓ vd$ does delete whole line (75ms)
Arrow keys work perfectly in Visual Line Mode
✓ Can handle <up> key (44ms)
✓ Can handle <down> key (44ms)
Screen line motions in Visual Line Mode
✓ Can handle 'gk' (59ms)
✓ Can handle 'gj' (56ms)
Can handle d/c correctly in Visual Line Mode
✓ Can handle d key
✓ Can handle d key (54ms)
✓ Can handle d key (50ms)
✓ Can handle d key (38ms)
✓ can handle 'c' (44ms)
handles replace in visual line mode
✓ Can do a single line replace (38ms)
✓ Can do a multi visual line replace (46ms)
✓ Can do a multi visual line replace from the bottom up (52ms)
search works in visual line mode
✓ Works with / (67ms)
✓ Works with ? (52ms)
Non-darwin <C-c> tests
✓ <C-c> copies and sets mode to normal (135ms)
replace text in linewise visual-mode with linewise register content
✓ yyVp does not change the content but changes cursor position (53ms)
✓ linewise visual put works also in the end of document (51ms)
✓ gv selects the last pasted text (which is shorter than original) (299ms)
✓ gv selects the last pasted text (which is longer than original) (585ms)
✓ gv selects the last pasted text (multiline) (165ms)
can prepend text with I
✓ multiline insert from bottom up selection (59ms)
✓ multiline insert from top down selection
✓ skips blank lines (44ms)
can append text with A
✓ multiline append from bottom up selection (45ms)
✓ multiline append from top down selection (84ms)
✓ skips blank lines
✓ updates desired column correctly (46ms)
Can handle ~/g~ in visual line mode
✓ ~/g~ on single line (53ms)
✓ ~/g~ on multiple lines (52ms)
C, R, and S
✓ 'C' deletes selected lines and puts you into insert mode (46ms)
✓ 'C' deletes selected lines and puts you into insert mode (backward selection) (48ms)
✓ 'R' deletes selected lines and puts you into insert mode
✓ 'R' deletes selected lines and puts you into insert mode (backward selection) (38ms)
✓ 'S' deletes selected lines and puts you into insert mode (45ms)
✓ 'S' deletes selected lines and puts you into insert mode (backward selection) (49ms)
Mode Normal
✓ Can handle 'x'
✓ Can handle 'Nx' (41ms)
✓ Can handle 'Nx' and paste (42ms)
✓ Can handle 'x' at end of line (64ms)
✓ 'x' with count does not go over EOL (40ms)
✓ Can handle 'Ns' (38ms)
✓ Can handle 'Ns' at end of line
✓ Can handle '<Del>' (46ms)
✓ Can handle '<Del>' with counts, which removes the last character of the count
✓ Can handle '<Del>' at end of line (52ms)
✓ Can handle 'cc' (46ms)
✓ Can handle 'Ncc' (47ms)
✓ Can handle 'yy' (41ms)
✓ Can handle 'D'
✓ Can handle 'D' on empty lines
✓ Can handle 'D' with count 1
✓ Can handle 'D' with count 3
✓ Can handle 'D' with count exceeding max number of rows (39ms)
✓ Can handle 'D' with count when end position is on blank line
✓ Can handle 'DD'
✓ Can handle 'C' (43ms)
✓ Can handle 'NC'
✓ Can handle 'NC' and put (48ms)
✓ Can handle 'r'
✓ Can handle '<Count>r' (42ms)
✓ Can handle '<Count>r'
✓ Can handle 'r' after 'dd' (39ms)
✓ Can handle 'r
' (40ms)
✓ Can handle '<Count>r
' (43ms)
✓ Can handle 'J' once (41ms)
✓ Can handle 'J' twice (46ms)
✓ Can handle 'J' with empty last line (40ms)
✓ Can handle 'J's with multiple empty last lines (95ms)
✓ Can handle 'J' with leading white space on next line
✓ Can handle 'J' with only white space on next line
✓ Can handle 'J' with TWO indented lines
✓ Can handle 'J' with ')' first character on next line
✓ Can handle 'J' with a following delete (38ms)
✓ Can handle 'J' with count
✓ Can handle 'J' with count if count is larger than EOF (39ms)
✓ Can handle 'J' in Visual Line mode (46ms)
✓ Can handle 'gJ' once
✓ Can handle 'gJ' once when line has whitespaces (157ms)
✓ Can handle 'gJ' with count (43ms)
✓ Can handle 'gJ' with count when line has whitespaces
✓ Can handle 'gJ' with count and end position is blank line
✓ Can handle 'gJ' with count exceeding max number of rows
✓ Can handle '~'
✓ Can handle 'g~{motion}'
✓ Can handle 'g~~' (39ms)
✓ Can handle '<BS>' in insert mode
✓ Can handle undo with P (68ms)
✓ Can handle 'ge' in multiple lines case1 (42ms)
✓ Can handle 'ge' in multiple lines case2 (47ms)
Dot Operator
✓ Can repeat '~' with <num>
✓ Can repeat '~' with dot
✓ Can repeat 'x'
✓ Can repeat 'J'
✓ Can handle dot with A (393ms)
✓ Can handle dot with I (73ms)
✓ Can repeat actions that require selections (57ms)
Repeat content change
✓ Can repeat '<C-t>' (50ms)
✓ Can repeat insert change and '<C-t>' (65ms)
✓ Can repeat change by `<C-a>` (61ms)
✓ Only one arrow key can be repeated in Insert Mode (57ms)
✓ Cached content change will be cleared by arrow keys (67ms)
Dot Operator repeat with remap
✓ Can repeat content change using 'jjk' mapped to '<Esc>' without trailing characters (87ms)
✓ Can repeat '<leader>w' when mapped to 'dw'
Matching Bracket (%)
✓ before opening parenthesis
✓ inside parenthesis
✓ nested parenthesis beginning
✓ nested parenthesis end
✓ nested bracket and parenthesis beginning
✓ nested bracket, parenthesis, braces beginning
✓ nested bracket, parenthesis, braces end (45ms)
✓ parentheses after >
✓ parentheses after "
Motions in Normal Mode
✓ Can handle [(
✓ Can handle nested [( (44ms)
✓ Can handle <number>[(
✓ Can handle [( and character under cursor exclusive
✓ Can handle ])
✓ Can handle nested ])
✓ Can handle <number>])
✓ Can handle ]) and character under cursor exclusive (38ms)
✓ Can handle [{
✓ Can handle nested [{ (39ms)
✓ Can handle <number>[{ (41ms)
✓ Can handle [{ and character under cursor exclusive
✓ Can handle ]}
✓ Can handle nested ]}
✓ Can handle <number>]}
✓ Can handle ]} and character under cursor exclusive
✓ Can handle 'ge'
✓ Can handle 'gg' (43ms)
✓ Can handle 'gg' to first non blank char on random line (43ms)
✓ Can handle 'gg' to first non blank char on first line (89ms)
✓ 'gg' obeys startofline
✓ Retain same column when moving up/down (38ms)
✓ Can handle <enter> (44ms)
✓ $ always keeps cursor on EOL (43ms)
✓ Can handle $ with a count (103ms)
✓ Can handle $ with a count at end of file (77ms)
✓ Can handle <End> with a count
✓ Can handle <D-right> with a count (41ms)
✓ Can handle 'f' (41ms)
✓ Can handle 'f' twice (41ms)
✓ Can handle 'f' with <tab>
✓ Can handle 'f' and find back search (49ms)
✓ Can handle 'F'
✓ Can handle 'F' twice (39ms)
✓ Can handle 'F' and find back search (38ms)
✓ Can handle 'f' and multiple back searches
✓ Can handle 't' (46ms)
✓ Can handle 't' twice (43ms)
✓ Can handle 't' and find back search (38ms)
✓ Can handle 'T' (49ms)
✓ Can handle 'T' twice (41ms)
✓ Can handle 'T' and find back search
✓ Can run a forward search (40ms)
✓ Can run a forward and find next search (49ms)
✓ Can run a forward and find previous search from end of word (45ms)
✓ Can run a forward search with count 1
✓ Can run a forward search with count 3 (39ms)
✓ Can run a forward search with count exceeding max number of matches
✓ Can run a reverse search (63ms)
✓ Can run a reverse and find next search (57ms)
✓ Can run a reverse search with count 1 (51ms)
✓ Can run a reverse search with count 3 (47ms)
✓ Can run a reverse search with count exceeding max number of matches (58ms)
✓ cancelled search reverts to previous search state (69ms)
✓ Backspace on empty search cancels (49ms)
✓ Search offsets: b does nothing (41ms)
✓ Search offsets: b2 goes 2 to the right (42ms)
✓ Search offsets: b+3 goes 3 to the right (52ms)
✓ Search offsets: e goes to the end (42ms)
✓ Search offsets: character offset goes across line boundaries (38ms)
✓ Search offsets: 2 goes 2 down (40ms)
✓ Search offsets: -2 goes 2 up (65ms)
✓ maintains column position correctly
✓ maintains column position correctly with $
✓ Can handle G
✓ Can handle G with number prefix
✓ Can handle G with number prefix (38ms)
✓ Can handle gg
✓ Can handle gg with number prefix
✓ Can handle 0
✓ Can handle 0 as part of a repeat
✓ Can handle g*
✓ Can handle g*n
✓ Can handle *
✓ Can handle **
✓ * ignores smartcase (ignorecase=true)
✓ * ignores smartcase (ignorecase=false)
✓ * skips over word separators
✓ * uses word separator if no word characters found before EOL (39ms)
✓ * does not go over line boundaries
✓ Can handle # on whitespace (41ms)
✓ Can handle # on EOL (41ms)
✓ Can handle g# (51ms)
✓ Can handle g#n (80ms)
✓ Can handle # (121ms)
✓ Can handle # already on the word
✓ Can handle ## (45ms)
✓ * adds to search history
✓ # adds to search history (69ms)
✓ Can handle | (42ms)
✓ Can handle <number> | (45ms)
✓ Can handle +
✓ Can handle + indent (435ms)
✓ Can handle + with count prefix
✓ Can handle -
✓ Can handle - indent
✓ Can handle - with count prefix
✓ Can handle _
✓ Can handle _ with count prefix
✓ Can handle g_
✓ Can handle g_ with count prefix (38ms)
✓ Can handle <up> key
✓ Can handle <down> key (39ms)
✓ Can handle <left> key
✓ Can handle <right> key
✓ Can handle 'gk'
✓ Can handle 'gj'
✓ Preserves cursor position when handling 'gk' (50ms)
✓ Preserves cursor position when handling 'gj' (46ms)
doesn't update desiredColumn when it shouldn't
✓ Preserves desired cursor position when pressing zz (51ms)
✓ Preserves desired cursor position when pressing zt (68ms)
✓ Preserves desired cursor position when pressing zb (78ms)
✓ Preserves desired cursor position when pressing <C-e> (79ms)
✓ Preserves desired cursor position when pressing <C-y> (66ms)
basic motion
✓ char right: should move one column right
✓ char right
✓ char left: should move cursor one column left
✓ char left: left-most column should stay at the same location
✓ line down: should move cursor one line down
✓ line down: bottom-most line should stay at the same location
✓ line begin
✓ line end
✓ document begin
✓ document end
✓ line begin cursor on first non-blank character
✓ last line begin cursor on first non-blank character
line up
✓ should move cursor one line up
✓ top-most line should stay at the same location
word motion
✓ line begin cursor on first non-blank character
✓ last line begin cursor on first non-blank character
word right
✓ move to word right
✓ last word should move to next line
✓ last word should move to next line stops on empty line
✓ last word should move to next line skips whitespace only line
✓ last word on last line should go to end of document (special case!)
word left
✓ move cursor word left across spaces
✓ move cursor word left within word
✓ first word should move to previous line, beginning of last word
✓ first word should move to previous line, stops on empty line
✓ first word should move to previous line, skips whitespace only line
WORD right
✓ move to WORD right
✓ last WORD should move to next line
✓ last WORD should move to next line stops on empty line
✓ last WORD should move to next line skips whitespace only line
WORD left
✓ move cursor WORD left across spaces
✓ move cursor WORD left within WORD
✓ first WORD should move to previous line, beginning of last WORD
✓ first WORD should move to previous line, stops on empty line
✓ first WORD should move to previous line, skips whitespace only line
end of word right
✓ move to end of current word right
✓ move to end of next word right
✓ end of last word should move to next line
✓ end of last word should move to next line skips empty line
✓ end of last word should move to next line skips whitespace only line
end of WORD right
✓ move to end of current WORD right
✓ move to end of next WORD right
✓ end of last WORD should move to next line
✓ end of last WORD should move to next line skips empty line
✓ end of last WORD should move to next line skips whitespace only line
unicode word motion
word right
✓ move cursor word right stops at different kind of character (ideograph -> hiragana)
✓ move cursor word right stops at different kind of character (katakana -> ascii)
✓ move cursor word right stops at different kind of chararacter (ascii -> punctuation)
✓ move cursor word right on non-ascii text
✓ move cursor word right recognizes a latin string which has diacritics as a single word
✓ move cursor word right recognizes a latin-1 symbol as punctuation
✓ move cursor word right recognizes a sequence of latin-1 symbols and other symbols as a word
word left
✓ move cursor word left across the different char kind
✓ move cursor word left within the same char kind
✓ move cursor word left across spaces on non-ascii text
✓ move cursor word left within word on non-ascii text
✓ move cursor word left recognizes a latin string which has diacritics as a single word
sentence motion
sentence forward
✓ next concrete sentence
✓ next sentence that ends with paragraph ending
✓ next sentence when cursor is at the end of previous paragraph
✓ next sentence when paragraph contains a line of whilte spaces
sentence backward
✓ current sentence begin
✓ sentence forward when cursor is at the beginning of the second sentence
✓ current sentence begin with no concrete sentense inside
✓ current sentence begin when it's not the same as current paragraph begin
✓ current sentence begin when previous line ends with a concrete sentence
paragraph motion
paragraph down
✓ move down normally
✓ move down longer paragraph
✓ move down starting inside empty line
✓ paragraph at end of document
paragraph up
✓ move up short paragraph
✓ move up longer paragraph
✓ move up starting inside empty line
motion line wrapping
whichwrap enabled
normal mode
✓ h wraps to previous line
✓ l wraps to next line
✓ <left> wraps to previous line
✓ <right> wraps to next line
insert mode
✓ <left> wraps to previous line
✓ <right> once goes to end of line (41ms)
✓ <right> twice wraps to next line (40ms)
whichwrap disabled
normal mode
✓ h does not wrap to previous line
✓ l does not wrap to next line
✓ <left> does not wrap to previous line
✓ <right> does not wrap to next line
insert mode
✓ <left> does not wrap to previous line
✓ <right> does not wrap to next line (38ms)
wrapscan enabled
✓ search wraps around the end of the file (45ms)
✓ search wraps around the start of the file
wrapscan disabled
✓ search stops at the end of the file (44ms)
✓ search stops at the start of the file (42ms)
Multicursor
✓ can add multiple cursors below (89ms)
✓ can add multiple cursors above (107ms)
✓ viwd with multicursors deletes the words and keeps the cursors (372ms)
✓ vibd with multicursors deletes the content between brackets and keeps the cursors (265ms)
✓ vi[d with multicursors deletes the content between brackets and keeps the cursors (256ms)
✓ vitd with multicursors deletes the content between tags and keeps the cursors (252ms)
Multicursor with remaps
✓ Using 'jjk' mapped to '<Esc>' doesn't leave trailing characters (302ms)
numeric string
✓ fails on non-string
✓ handles hex round trip
✓ handles decimal round trip
✓ handles octal trip
comment operator
✓ gcc comments out current line (170ms)
✓ gcj comments in current and next line (65ms)
✓ block comment with motion (259ms)
✓ block comment in Visual Mode (198ms)
✓ comment in visual line mode (250ms)
✓ comment in visual block mode (97ms)
filter operator
✓ !! with no count (269ms)
✓ !! with whitespace moves cursor to first non-whitespace character (83ms)
✓ !! with count (83ms)
✓ !{forwards motion}{filter} (94ms)
✓ !{backwards motion}{filter} (133ms)
✓ v!{filter} (227ms)
✓ V!{filter} (117ms)
✓ <Ctrl-v>!{filter} (138ms)
format operator
✓ == formats current line (498ms)
✓ =$ formats entire line (204ms)
✓ =j formats two lines (84ms)
✓ 3=k formats three lines (42ms)
✓ =gg formats to top of file (72ms)
✓ =G formats to bottom of file (76ms)
✓ =ip formats paragraph (72ms)
✓ format in visual mode (76ms)
put operator
✓ basic put test (72ms)
✓ test yy end of line (75ms)
✓ test yy first line (52ms)
✓ test yy middle line (47ms)
✓ test yy with correct positon movement (73ms)
✓ test visual block single line yank p (56ms)
✓ test visual block single line yank P (100ms)
✓ test visual block single line delete p (143ms)
✓ test visual block single line delete P (58ms)
rot13 operator
✓ rot13() unit test
✓ g?j works (38ms)
✓ g? in visual mode works (91ms)
✓ g? in visual line mode works (46ms)
✓ g? in visual block mode works (64ms)
shift operator
✓ basic shift left test (62ms)
✓ shift left goto end test
✓ shift left goto line test
✓ shift right goto end test (49ms)
✓ shift right goto line test
camelCaseMotion plugin if not enabled
✓ basic motion doesn't work (61ms)
camelCaseMotion plugin
handles <leader>w for camelCaseText
✓ step over whitespace
✓ step to Camel word (40ms)
✓ step to CAP word
✓ step after CAP word (42ms)
✓ step from middle of word to Camel word (55ms)
✓ step to number word (84ms)
✓ step to operator word (240ms)
✓ step from inside operator word (53ms)
✓ step to operator and then over
handles <leader>w for underscore_var
✓ step to _word (61ms)
✓ step over whitespace to word
✓ step from inside word to _word (40ms)
✓ step form _word to number (48ms)
✓ step from nubmer word to _word (50ms)
✓ step from in whitespace to word
✓ step in ALL_CAPS_WORD (47ms)
handles d<leader>w
✓ delete from start of camelWord (75ms)
✓ delete from middle of camelWord
✓ delete from start of CamelWord (569ms)
✓ delete two words from camelWord
✓ delete from start of underscore_word (73ms)
✓ delete from middle of underscore_word
✓ delete two words from camel_word
handles di<leader>w
✓ delete from start of camelWord
✓ delete from middle of camelWord
✓ delete from start of CamelWord (86ms)
✓ delete two words from camelWord (39ms)
✓ delete from start of underscore_word (78ms)
✓ delete from middle of underscore_word
✓ delete two words from camel_word (76ms)
handles <leader>b
✓ back from middle of word (82ms)
✓ back over whitespace to camelWord
✓ back twice over operator (51ms)
handles <leader>e
✓ from start to middle of underscore_word
✓ from middle to end of underscore_word (71ms)
✓ twice to end of word over operator (39ms)
easymotion plugin
✓ Can handle s move (113ms)
✓ Can handle 2s move (119ms)
✓ Can handle f move (91ms)
✓ Can handle 2f move (67ms)
✓ Can handle F move (125ms)
✓ Can handle 2F move (105ms)
✓ Can handle t move (61ms)
✓ Can handle bd-t move (61ms)
✓ Can handle 2t move (106ms)
✓ Can handle bd-t2 move (120ms)
✓ Can handle T move (77ms)
✓ Can handle 2T move (79ms)
✓ Can handle w move (94ms)
✓ Can handle bd-w move (75ms)
✓ Can handle b move (101ms)
✓ Can handle e move (354ms)
✓ Can handle bd-e move (46ms)
✓ Can handle ge move (53ms)
✓ Can handle n-char move (81ms)
✓ Can handle j move (87ms)
✓ Can handle k move (83ms)
✓ Can handle bd-jk move (1) (93ms)
✓ Can handle bd-jk move (2) (78ms)
✓ Can handle lineforward move (1) (74ms)
✓ Can handle lineforward move (2) (73ms)
✓ Can handle linebackward move (1) (56ms)
✓ Can handle linebackward move (2) (60ms)
✓ Can handle searching for backslash (\) (56ms)
✓ Can handle searching for carat (^) (49ms)
✓ Can handle searching for dot (.) (50ms)
Input method plugin
✓ use default im in insert mode
✓ use other im in insert mode
replaceWithRegister plugin
✓ Replaces within inner word (76ms)
✓ Replaces within inner Word (94ms)
✓ Replaces within '' (97ms)
✓ Replaces within '' including spaces (59ms)
✓ Replaces within () (59ms)
✓ Replaces within () including spaces (79ms)
✓ Replaces within a paragraph (98ms)
✓ Replaces using a specified register (112ms)
✓ Replaces within {} over multiple lines (52ms)
✓ Replaces a multiline register within {} over multiple lines (55ms)
✓ Replaces a multiline register within {} over multiple lines (60ms)
✓ Yanking inside {} then replacing inside {} in a noop, besides the cursor movement (107ms)
✓ grr replaces the entire line with the register (106ms)
✓ grr can replace multiple lines (49ms)
✓ Replaces in visual mode (86ms)
✓ Replaces in visual mode using a specified register (110ms)
✓ Replaces in visual line mode (57ms)
✓ grj is linewise (95ms)
sneak plugin
✓ Can handle s motion
✓ Can handle S motion (77ms)
✓ Can handle <operator>z motion (53ms)
✓ Can handle <operator>Z motion (165ms)
✓ Can handle s; motion
✓ Can handle s, motion (47ms)
✓ Can handle S; motion (61ms)
✓ Can handle S, motion (38ms)
✓ Can handle single letter s motion
✓ Can handle single letter S motion
✓ Can handle single letter <operator>z motion (52ms)
✓ Can handle single letter <operator>Z motion (45ms)
✓ Can handle single letter s; motion
✓ Can handle single letter s, motion (78ms)
✓ Can handle single letter S; motion (45ms)
✓ Can handle single letter S, motion (38ms)
✓ Can handle multiline single char <number>s motion (83ms)
✓ Can go back using <C-o> once when going forward (63ms)
✓ Can go back using <C-o> once when going backward (39ms)
✓ Can go back using <C-o> when repeating forward movement
✓ Can go back using <C-o> when repeating backward movement (81ms)
sneakReplacesF
✓ sneakReplacesF forward (62ms)
✓ sneakReplacesF backward (78ms)
surround plugin
✓ 'ysiw)' surrounds word without space (113ms)
✓ 'ysiw(' surrounds word with space (104ms)
✓ 'ysw)' surrounds word without space (113ms)
✓ 'ysw(' surrounds word with space (65ms)
✓ 'ysaw)' surrounds word without space (114ms)
✓ 'ysaw(' surrounds word with space (106ms)
✓ 'ysiw(' surrounds word with space and ignores punctuation (143ms)
✓ 'ysiw<' surrounds word with tags (91ms)
✓ 'ysiw<' surrounds word with tags and attributes (93ms)
✓ 'cst<' surrounds word with tags that have a dot in them (66ms)
✓ 'yss)' surrounds entire line respecting whitespace (54ms)
✓ change surround (108ms)
✓ change surround with two pairs of quotes (57ms)
✓ change surround with two pairs of parens (858ms)
✓ change surround with alias (130ms)
✓ 'ysiwb' surrounds word with alias without space (56ms)
✓ 'ysiwB' surrounds word with alias without space (106ms)
✓ 'ysiwr' surrounds word with alias without space (88ms)
✓ 'ysiwa' surrounds word with alias without space (101ms)
✓ change surround to tags (91ms)
✓ delete surround (72ms)
✓ delete surround with quotes (86ms)
✓ delete surround with nested of quotes (189ms)
✓ delete surround with inconsistent quotes (100ms)
✓ delete surround with mixed quotes (116ms)
✓ delete surround with empty quotes cursor at start (103ms)
✓ delete surround with empty quotes cursor at end (112ms)
✓ don't delete surround if cursor is after closing match (100ms)
✓ delete surround if cursor is before opening match (90ms)
✓ delete surround with two pairs of parens (63ms)
✓ delete surround with alias (111ms)
✓ delete surround with tags (96ms)
✓ change surround brackets at end of line (48ms)
✓ changing brackets with surround works again (83ms)
✓ change surround with tags that contain an attribute and preserve them (115ms)
✓ change surround with tags that contain an attribute and remove them (71ms)
✓ performing surround after cancelling surround action with <Esc> does not move the cursor (142ms)
✓ 'S)' surrounds visual selection without space (348ms)
✓ 'S(' surrounds visual selection with space (241ms)
✓ 'S<div>' surrounds selection with <div></div> (205ms)
✓ 'S)' surrounds visual line selection without space (80ms)
✓ 'S(' surrounds visual line selection with space (130ms)
✓ 'S<div>' surrounds visual line selection with <div></div> (111ms)
register
✓ Can copy to a register (49ms)
✓ Can use two registers together (148ms)
✓ Can use black hole register (46ms)
✓ System clipboard works with chinese characters (92ms)
✓ Yank stores text in Register '0' (254ms)
✓ Multiline yank (`[count]yy`) stores text in Register '0' (188ms)
✓ Multiline yank (`[count]Y`) stores text in Register '0' (175ms)
✓ Register '1'-'9' stores delete content (264ms)
✓ "A appends linewise text to "a (609ms)
✓ "A appends character wise text to "a (193ms)
✓ Can put and get to register
✓ Small deletion using x is stored in small delete register (190ms)
✓ Small deletion using Del is stored in small delete register (216ms)
✓ Small deletion using X is stored in small delete register (248ms)
✓ Search register (/) is set by forward search (286ms)
✓ Search register (/) is set by backward search (296ms)
✓ Search register (/) is set by star search (319ms)
✓ Command register (:) is set by command line (109ms)
✓ Read-only registers cannot be written to (216ms)
clipboard
✓ Can access '*' (clipboard) register (73ms)
✓ Can access '+' (clipboard) register (46ms)
Repeatable movements with f and t
✓ Can repeat f<character>
✓ Can repeat reversed F<character>
✓ Can repeat t<character> (72ms)
✓ Can repeat N times reversed t<character>
sentence motion
[count] sentences backward
✓ move one sentence backward (80ms)
✓ move one sentence backward (82ms)
✓ move [count] sentences backward (47ms)
✓ move one sentence backward single line - middle
✓ move one sentence backward no space (61ms)
✓ move one sentence backward no space - middle (38ms)
✓ move one sentence backward - multiline (41ms)
✓ move one sentence backward - multiline - period (78ms)
✓ move one sentence backward - multiline - previous line
✓ move one sentence backward - multiline - previous line - period (58ms)
VimState
✓ de-dupes cursors
✓ cursorStart/cursorStop should be first cursor in cursors
text editor
✓ insert 'Hello World'
✓ replace 'World' with 'Foo Bar'
✓ delete `Hello`
✓ delete the whole line
✓ try to read lines that don't exist
util path
separatePath
✓ can separate drive letter path on Windows
✓ can separate UNC path on Windows
✓ can separate relative path on Windows
✓ can separate absolute path on posix
✓ can separate relative path on posix
resolveUri
✓ posix
✓ win32
1588 passing (4m)
4 failing
1) Mode Visual
Screen line motions in Visual Mode
Can handle 'gk':
Document content does not match.
+ expected - actual
blah
-r
+ur
hur
at newTest (out/test/testSimplifier.js:47:34)
2) Mode Visual
Screen line motions in Visual Mode
Can handle 'gj':
Document content does not match.
+ expected - actual
blah
duh
-dur
+ur
at newTest (out/test/testSimplifier.js:47:34)
3) Mode Visual
Screen line motions in Visual Mode
Preserves cursor position when handling 'gk':
Document content does not match.
+ expected - actual
blah
-wo
+wot
at newTest (out/test/testSimplifier.js:47:34)
4) Mode Visual
Screen line motions in Visual Mode
Preserves cursor position when handling 'gj':
Document content does not match.
+ expected - actual
blah
-wort
+wot
at newTest (out/test/testSimplifier.js:47:34)
Error: 4 tests failed.
Error: 4 tests failed.
Exit code: 1
Done
Failed
Failed to run tests
npm ERR! Test failed. See above for more details.
The command "npm test" exited with 1.
store build cache
changes detected (content changed, file is created, or file is deleted):\n/home/travis/.npm/anonymous-cli-metrics.json
/home/travis/.npm/_cacache/index-v5/05/f2/5efeceaf581d5b606bdafad32623ddd75352cb1942290a9cd93d48923be6
/home/travis/.npm/_cacache/index-v5/34/8e/30c54cce758990bcd1b33114c4aa8a9e5a25c152ac39d9feab22b7e13e00\n
changes detected, packing new archive
uploading PR.5080/cache--linux-xenial-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--node-12.tgz
cache uploaded
Done. Your build exited with 1.
npm test
> [email protected] test /home/travis/build/VSCodeVim/Vim
> node ./out/test/runTest.js
Downloading VS Code 1.47.2 from https://update.code.visualstudio.com/1.47.2/linux-x64/stable
Downloaded VS Code 1.47.2 into .vscode-test/vscode-1.47.2
Warning: 'sandbox' is not in the list of known options, but still passed to Electron/Chromium.
[main 2020-07-26T15:52:46.150Z] update#setState idle
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
(node:5763) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information
(node:5763) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information
(node:5763) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information
(node:5763) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information
(node:5763) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information
(node:5763) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information
(node:6299) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information
(node:6299) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information
base action
✓ compare key presses
✓ couldActionApply 1D keys positive
✓ couldActionApply 1D keys negative
✓ couldActionApply 2D keys positive
✓ couldActionApply 2D keys negative
✓ doesActionApply 1D keys positive
✓ doesActionApply 1D keys negative
✓ doesActionApply 2D keys positive
✓ doesActionApply 2D keys negative
bang (!) cmd_line
parsing
✓ simple ! (192ms)
✓ simple ! with space between bang and command (95ms)
✓ ! with line (149ms)
✓ ! with line range (116ms)
previous external commands (embedded bangs)
✓ !! should execute previous command (134ms)
✓ !! should support command concatenation (135ms)
✓ any ! in cmd is replaced with previous external command (96ms)
✓ only the ! character can be unescaped, with a backslash (114ms)
stdin/stdout/stderr
✓ ! can read from stdin (59ms)
✓ :{line}!{cmd} should pass in line as stdin (69ms)
✓ :{range}!{cmd} should pass in line range as stdin (71ms)
✓ ! with commands expecting stdin do not block when no stdin is supplied (43ms)
✓ ! can read from both stdout and stderr (81ms)
✓ piping commands works (60ms)
cmd_line/search command
✓ command <C-w> can remove word in cmd line
✓ command <C-w> can remove word in search mode
✓ command <C-w> can remove word in cmd line while retrain cmd on the right of the cursor
✓ command <C-w> can remove word in search mode while retrain cmd on the right of the cursor
✓ <C-u> deletes from cursor to first character
✓ <C-b> puts cursor at start of command line
✓ <Home> puts cursor at start of command line
✓ <C-e> puts cursor at end of command line
✓ <End> puts cursor at end of command line
✓ <C-p>/<C-n> go to the previous/next command
✓ <C-r> <C-w> insert word under cursor on command line
✓ <C-r> <C-w> insert word right of cursor on command line (59ms)
✓ <C-r> <C-w> insert word under cursor in search mode (38ms)
✓ <C-p> go to previous search string
cursor location
✓ cursor location in command line (47ms)
✓ cursor location in search
HistoryFile
✓ add command
✓ add empty command
✓ add command over configuration.history
✓ add command that exists in history
✓ file system
✓ change configuration.history (60ms)
command-line lexer
✓ can lex empty string
✓ can lex comma
✓ can lex percent
✓ can lex dollar
✓ can lex dot
✓ can lex one number
✓ can lex longer number
✓ can lex plus
✓ can lex minus
✓ can lex forward search
✓ can lex forward search escaping
✓ can lex reverse search
✓ can lex reverse search escaping
✓ can lex command name
✓ can lex command args
✓ can lex command args with leading whitespace
✓ can lex long command name and args
✓ can lex left and right line refs
:only command
✓ Run :only (1286ms)
command-line parser
✓ can parse empty string
✓ can parse pure whitspace
✓ can parse left - dot
✓ can parse left - dollar
✓ can parse left - percent
✓ can parse separator - comma
✓ can parse right - dollar
✓ whitespace in LineRange is ignored
put cmd_line
✓ put in empty file
✓ put in middle of file (54ms)
✓ put at end of file
✓ put ignores current indentation
✓ put text with newlines (48ms)
✓ put from specified register
✓ put in visual mode executes at cursor end position (113ms)
✓ put forces linewise put regardless of register mode (107ms)
✓ put! puts before current line (53ms)
✓ put leaves cursor on last line, first non-whitespace character of pasted content
✓ put! leaves cursor on last line, first non-whitespace character of pasted content
✓ put with specified line (52ms)
✓ put! with specified line (39ms)
✓ put with line range should insert at ending line (49ms)
command line scanner
✓ ctor
✓ can detect EOF with empty input
✓ next() returns EOF at EOF
✓ can scan
✓ can emit
✓ can ignore
✓ can skip whitespace
✓ can skip whitespace with one char before EOF
✓ can skip whitespace at EOF
✓ nextWord() return EOF at EOF
✓ nextWord() return word before trailing spaces
✓ nextWord() can skip whitespaces and return word
✓ nextWord() return word before EOF
✓ can expect one of a set
✓ can expect only one of a set
Smile command
✓ :smile creates new tab (537ms)
✓ :smile editor contains smile text (540ms)
Basic sort
✓ Sort whole file, asc (66ms)
✓ Sort whole file, asc, ignoreCase (99ms)
✓ Sort whole file, dsc (70ms)
✓ Sort whole file, dsc, ignoreCase (70ms)
✓ Sort range, asc (81ms)
✓ Sort range, asc, ignoreCase (91ms)
✓ Sort range, dsc (94ms)
✓ Sort range, dsc, ignoreCase (73ms)
TaskQueue: error: Error running task. .
✓ Sort whole file, asc, unique (81ms)
Horizontal split
✓ :sp creates a second split (74ms)
✓ :split creates a second split (69ms)
✓ :new creates a second split (245ms)
:close args parser
✓ can parse empty args
✓ ignores trailing white space
✓ can parse !
✓ throws if space before !
✓ ignores space after !
✓ throws if bad input
:quit args parser
✓ can parse empty args
✓ ignores trailing white space
✓ can parse !
✓ throws if space before !
✓ ignores space after !
✓ throws if bad input
:substitute args parser
✓ can parse pattern, replace, and flags
✓ can parse count
✓ can parse custom delimiter
✓ can escape delimiter
✓ can parse flag KeepPreviousFlags
:tabm[ove] args parser
✓ has :tabm alias
✓ can parse empty args
✓ can parse an absolute position
✓ can parse a relative position
✓ fails with invalid inputs
getParser
✓ empty
✓ :marks
✓ :ju
✓ :sh
✓ :write
✓ :nohlsearch
✓ :quitall
:write args parser
✓ can parse empty args
✓ can parse ++opt
✓ throws if bad ++opt name
✓ can parse bang
✓ can parse ' !cmd'
✓ can parse ' !cmd' when cmd is empty
Basic substitute
✓ Replace single word once (46ms)
✓ Replace with `g` flag (96ms)
✓ Replace with flags AND count (80ms)
✓ Replace with `c` flag
✓ Replace with `gc` flag (68ms)
✓ Replace across all lines (64ms)
✓ Replace on specific single line (44ms)
✓ Replace on current line using dot (52ms)
✓ Replace single relative line using dot and plus (62ms)
✓ Replace across specific line range (73ms)
✓ Replace across relative line range using dot, plus, and minus (56ms)
✓ Replace across relative line range using numLines+colon shorthand (50ms)
✓ Repeat replacement across relative line range (58ms)
✓ Replace with range AND count but no flags (61ms)
✓ Undocumented: operator without LHS assumes dot as LHS (64ms)
✓ Undocumented: multiple consecutive operators use 1 as RHS (53ms)
✓ Undocumented: trailing operators use 1 as RHS (45ms)
✓ Replace specific single equal lines (47ms)
✓ Replace current line with no active selection (63ms)
✓ Replace text in selection (81ms)
✓ Substitute support marks (68ms)
Effects of gdefault=true
✓ Replace all matches in the line
✓ Replace with `g` flag inverts global flag (78ms)
✓ Replace with `c` flag inverts global flag (49ms)
✓ Replace multiple lines (50ms)
✓ Replace across specific lines (52ms)
✓ Replace current line with no active selection (51ms)
✓ Replace text in selection (76ms)
✓ Substitute support marks (80ms)
✓ Substitute with escaped delimiter (51ms)
Substitute should use various previous search/substitute states
✓ Substitute with previous search using * (137ms)
✓ Substitute with previous search using # (156ms)
✓ Substitute with previous search using / (154ms)
✓ Substitute with parameters should update search state (84ms)
✓ Substitute with empty replacement should delete previous substitution (all variants) and accepts flags (179ms)
✓ Substitute with no pattern should repeat previous substitution and not alter search state (97ms)
✓ Substitute repeat previous should accept flags (58ms)
✓ Substitute with empty search string should use last searched pattern (155ms)
✓ Ampersand (&) should repeat the last substitution (43ms)
cmd_line tab
✓ tabe with no arguments when not in workspace opens an untitled file
✓ tabedit with no arguments when not in workspace opens an untitled file
✓ tabe with absolute path when not in workspace opens file (71ms)
✓ tabe with current file path does nothing (50ms)
cmd_line tabComplete
✓ command line command tab completion (58ms)
✓ command line command shift+tab
✓ command line file tab completion with no base path (72ms)
✓ command line file tab completion with / as base path
✓ command line file tab completion with ~/ as base path
✓ command line file tab completion with ./ as base path
✓ command line file tab completion with ../ as base path
✓ command line file tab completion directory with / at the end
✓ command line file navigate tab completion
✓ command line tab completion on the content on the left of the cursor
✓ command line file tab completion with .
✓ command line file tab completion with space in file path (122ms)
Undo command
✓ undoes last action after insert mode
Vertical split
✓ :vs creates a second split (68ms)
✓ :vsp creates a second split (66ms)
✓ :vsplit creates a second split (61ms)
✓ :vnew creates a second split (215ms)
✓ :vne creates a second split (205ms)
Basic write-quit
✓ Run write and quit (69ms)
Provide line completions
Line Completion Provider unit tests
✓ Can complete lines in file, prioritizing above cursor, near cursor (43ms)
✓ Can complete lines in file with different indentation
✓ Returns no completions for unmatched line
Configuration
✓ remappings are normalized
✓ whichwrap is parsed into wrapKeys
✓ Can handle long key chords
Notation
✓ Normalize
Remapper
✓ getLongestedRemappedKeySequence (83ms)
✓ getMatchingRemap (54ms)
✓ jj -> <Esc> through modehandler (101ms)
✓ 0 -> :wq through modehandler (80ms)
✓ <c-e> -> <esc> in insert mode should go to normal mode (91ms)
✓ leader, w -> closeActiveEditor in normal mode through modehandler (73ms)
✓ leader, c -> closeActiveEditor in visual mode through modehandler (80ms)
✓ d -> black hole register delete in normal mode through modehandler (124ms)
✓ d -> black hole register delete in normal mode through modehandler (244ms)
✓ jj -> <Esc> after ciw operator through modehandler (144ms)
✓ jj -> <Esc> after using <Count>i=jj should insert === (117ms)
✓ jj -> <Esc> does not leave behind character a j (106ms)
✓ jj -> <Esc> does not modify undo stack (119ms)
Neovim Validator
✓ neovim enabled without path
✓ neovim enabled with nvim in path
✓ neovim disabled
Remapping Validator
✓ no remappings
✓ jj->esc
✓ remapping missing after and command
✓ remappings are de-duped
Vimrc
✓ Can expand $HOME to user's home directory
✓ Can expand ~ to user's home directory
VimrcKeyRemappingBuilder
✓ Build IKeyRemapping objects from .vimrc lines
Error
✓ error code has message
package.json
✓ all keys have handlers
✓ all defined configurations in package.json have handlers
historyTracker unit tests
addMark
✓ can create lowercase mark
✓ can create uppercase mark
✓ shares uppercase marks between editor instances
✓ does not share lower marks between editor instances
Record and navigate jumps
Jump Tracker unit tests
✓ Can record jumps between files
✓ Can handle file jump events sent by vscode in response to recordJumpBack
✓ Can record jumps between files after switching files
✓ Can handle jumps to the same file multiple times
✓ Can record up to 100 jumps, the fixed length in vanilla Vim
✓ Can handle text deleted from a file
Can record jumps for actions the same as vanilla Vim
Can track basic jumps
✓ Can track jumps for keys: Ggg
✓ Can track jumps for keys: GggG
✓ Can track jumps for keys: GggGgg
✓ Can track jumps for keys: /b<CR>n (135ms)
✓ Can track jumps for keys: G?b<CR>ggG (45ms)
✓ Can track jumps for keys: j%%
Can track jumps with back/forward
✓ Can track jumps for keys: j%%<C-o>
✓ Can track jumps for keys: j%%<C-o><C-i>
✓ Can track jumps for keys: j%%<C-o>% (41ms)
✓ Can track jumps for keys: j%%<C-o>gg
✓ Can track jumps for keys: j%%<C-o><C-o>gg (38ms)
✓ Can track jumps for keys: /^<CR>nnn<C-o><C-o><C-o><C-i>gg (52ms)
✓ Can enter number to jump back multiple times
✓ Can track one-line `` jumps (61ms)
✓ Can track one-line double `` jumps (46ms)
✓ Can track one-line '' jumps (53ms)
✓ Can track one-line double '' jumps (167ms)
✓ Can handle '' jumps with no previous jump
Can shifts jump lines up after deleting a line with Visual Line Mode
[main 2020-07-26T15:53:16.158Z] update#setState checking for updates
[main 2020-07-26T15:53:16.243Z] update#setState idle
✓ Can track jumps for keys: /^<CR>nnnkkdd (60ms)
✓ Can track jumps for keys: /^<CR>nnnkdd (50ms)
✓ Can track jumps for keys: /^<CR>nnnnn<C-o><C-o><C-o><C-o>dd (61ms)
✓ Can track jumps for keys: /a4<CR>/a5<CR>kkkdd (57ms)
Can shifts jump lines up after deleting a line with Visual Mode
✓ Can track jumps for keys: /^<CR>nnnkklvjjhx (83ms)
Can shift jump lines down after inserting a line
✓ Can track jumps for keys: /^<CR>nnnkkoINSERTED<Esc>0 (89ms)
✓ Can track jumps for keys: /^<CR>nnnkoINSERTED<Esc>0 (119ms)
✓ Can track jumps for keys: /^<CR>nnnkOINSERTED<Esc>0 (113ms)
✓ Can track jumps for keys: /a4<CR>/a5<CR>kkkoINSERTED<Esc>0 (96ms)
Can track jumps from substitutes
✓ Can track jumps for keys: :%s/a/b<CR> (46ms)
Can track jumps from macros
✓ Can track jumps for keys: qq/^<CR>nq@q@q<C-o><C-o> (96ms)
Can track jumps from marks
✓ Can track jumps for keys: maG`a
Record and execute a macro
✓ Can record and execute (87ms)
✓ Can repeat last invoked macro (156ms)
✓ Can play back with count (202ms)
✓ Can play back with count, abort when a motion fails (221ms)
✓ Repeat change on contiguous lines (112ms)
✓ Append command to a macro (117ms)
✓ Append command to a not yet created register creates a new register (90ms)
✓ Can handle calling an uppercase register (105ms)
✓ Can handle calling a non existing macro (45ms)
✓ Can handle calling a non existing macro with uppercase letter (40ms)
✓ Can record Ctrl Keys and repeat (105ms)
✓ Can execute macros with dot commands properly (70ms)
✓ : (command) register can be used as a macro (62ms)
✓ Can record and execute macro that handles multiple lines (172ms)
Mode Handler
✓ ctor
✓ can set current mode
Mode Handler Map
✓ getOrCreate
✓ get
Mode Insert
✓ can be activated (64ms)
✓ can handle key events
✓ <Esc> should change cursor position
✓ <C-c> can exit insert (38ms)
✓ <Esc> can exit insert (49ms)
✓ Stay in insert when entering characters (54ms)
✓ Can handle 'O'
✓ 'i' puts you in insert mode before the cursor
✓ 'I' puts you in insert mode at start of line (38ms)
✓ 'a' puts you in insert mode after the cursor
✓ 'A' appends to end of line
✓ '<C-w>' deletes a word (38ms)
✓ Can handle <C-w> on leading whitespace (41ms)
✓ Can handle <C-w> at beginning of line
✓ <C-u> deletes to start of line (38ms)
✓ Can handle <C-u> on leading characters (44ms)
✓ Can handle <C-u> on leading whitespace (78ms)
✓ Correctly places the cursor after deleting the previous line break (44ms)
✓ will not remove leading spaces input by user
✓ will remove closing bracket
✓ Backspace works on whitespace only lines (60ms)
✓ Backspace works on end of whitespace only lines
✓ Backspace works at beginning of file (39ms)
✓ Delete works in insert mode (45ms)
✓ Delete works at line end (60ms)
✓ Delete works at end of file
✓ Delete works with repeat (151ms)
✓ Repeat insert by count times with dot (99ms)
✓ Can <Esc> after entering insert mode from <ctrl+o>
✓ Can perform <ctrl+o> to exit and perform one command in normal (71ms)
✓ Can <ctrl-o> after entering insert mode from <ctrl-o>
✓ Can perform <ctrl+o> to exit and perform one command in normal at the beginning of a row (49ms)
✓ Can perform insert command prefixed with count (121ms)
✓ Can perform append command prefixed with count
✓ Can perform insert at start of line command prefixed with count
✓ Can perform append to end of line command prefixed with count (50ms)
✓ Can perform change char (s) command prefixed with count (63ms)
✓ Can perform command prefixed with count with <C-[>
✓ Can handle 'o' with count (75ms)
✓ Can handle 'O' with count (68ms)
✓ Can handle backspace at beginning of line with all spaces (73ms)
✓ Can handle digraph insert (65ms)
✓ Can handle custom digraph insert
✓ Can insert last inserted text (64ms)
✓ Can handle no inserted text yet when executing <ctrl-a>
Mode Normal
✓ Can be activated
✓ Can handle dw
✓ Can handle dw
✓ Can handle dw
✓ Can handle dw across lines (1) (38ms)
✓ Can handle dw across lines (2)
✓ Can handle dd last line
✓ Can handle dd single line
✓ Can handle dd (79ms)
✓ Can handle 3dd
✓ Can handle 3dd off end of document
✓ Can handle d2d
✓ Can handle dd empty line
✓ Can handle ddp
✓ Can handle 'de' (41ms)
✓ Can handle 'de' then 'de' again (40ms)
✓ Can handle 'db'
✓ Can handle 'db then 'db' again (44ms)
✓ Can handle 'dl' at end of line (40ms)
✓ Can handle 'dF' (39ms)
✓ Can handle 'dT' (39ms)
✓ Can handle 'd3' then <enter>
✓ Can handle 'dj' (162ms)
✓ Can handle 'dk'
✓ Can handle 'd])' without deleting closing parenthesis (44ms)
✓ Can handle 'd]}' without deleting closing bracket
✓ Can handle 'd/'
✓ Can handle 'd/' with count ([count]d/[word]) (70ms)
✓ Can handle 'd/' with count (d[count]/[word])
✓ Can handle 'cw' (118ms)
✓ Can handle 'cw' without deleting following white spaces
✓ Can handle 'c2w'
✓ Can handle 'cw' without removing EOL
✓ Can handle 'c])' without deleting closing parenthesis (41ms)
✓ Can handle 'c]}' without deleting closing bracket
✓ Can handle 's' (45ms)
✓ Can handle 'yiw' with correct cursor ending position
✓ Can handle 'ciw' (54ms)
✓ Can handle 'ciw' on blanks (63ms)
✓ Can handle 'caw' (47ms)
✓ Can handle 'caw' on first letter (50ms)
✓ Can handle 'caw' on blanks (54ms)
✓ Can handle 'caw' on blanks
✓ Can handle 'cae' (58ms)
✓ Can handle 'cae' with caret at document's top
✓ Can handle 'cae' with caret at document's end (78ms)
✓ Can handle 'cie' on blank content
✓ Can handle 'cie' with leading space
✓ Can handle 'cie' with trailing space (51ms)
✓ Can handle 'cie' with both leading and trailing space (67ms)
✓ Can handle 'cie' on blank content
✓ Can handle 'ci(' on first parentheses (93ms)
✓ Can handle 'ci(' with nested parentheses (44ms)
✓ Can handle 'ci(' backwards through nested parens
✓ Can handle 'cib' on first parentheses (41ms)
✓ Can handle 'ci(' across multiple lines with last character at beginning
✓ Can handle count prefixed 'ci)' (51ms)
✓ Can handle count prefixed 'ca)' (49ms)
✓ Can handle 'ca(' spanning multiple lines
✓ Can handle 'cab' spanning multiple lines (42ms)
✓ Can handle 'ci{' spanning multiple lines
✓ Can handle 'ci{' spanning multiple lines and handle whitespaces correctly
✓ Can handle 'ci{' spanning multiple lines and handle whitespaces correctly
✓ Can handle 'ci(' on the closing bracket
✓ Can handle 'ciB' spanning multiple lines
✓ will fail when ca( with no ()
✓ will fail when ca{ with no {}
✓ will fail when caB with no {}
✓ Can handle 'ci[' spanning multiple lines
✓ Can handle 'ci]' on first bracket
✓ Can handle 'ca[' on first bracket (39ms)
✓ Can handle 'ca]' on first bracket
✓ Can handle 'ci'' on first quote
✓ Can handle 'ci'' inside quoted string
✓ Can handle 'ci'' on closing quote (38ms)
✓ Can handle 'ci'' when string is ahead (38ms)
✓ Can handle 'ci"' on opening quote
✓ Can handle 'ci"' starting behind the quoted word
✓ Can handle 'ca"' starting behind the quoted word
✓ Can handle 'ca"' starting on the opening quote
✓ Can handle 'ci"' with escaped quotes (38ms)
✓ Can handle 'ci"' with a single escaped quote
✓ Can handle 'ci"' with a single escaped quote behind (43ms)
✓ Can handle 'ci"' with an escaped backslash
✓ Can handle 'ci"' with an escaped backslash on closing quote
✓ Can handle 'ca"' starting on the closing quote (44ms)
✓ Can handle 'ci"' with complex escape sequences
✓ Can pick the correct open quote between two strings for 'ci"' (39ms)
✓ will fail when ca" ahead of quoted string
✓ Can handle 'ca`' inside word
✓ can handle cj (53ms)
✓ can handle ck (66ms)
✓ can handle c2j
✓ can handle c2k (55ms)
✓ can handle cj on last line (54ms)
✓ can handle ck on first line (44ms)
✓ can handle c2j on last line (42ms)
✓ can handle c2k on first line (50ms)
✓ Can handle 'daw' on word with cursor inside spaces (56ms)
✓ Can handle 'daw' on word with trailing spaces (45ms)
✓ Can handle 'daw' on word with leading spaces (44ms)
✓ Can handle 'daw' on word with numeric prefix
✓ Can handle 'daw' on word with numeric prefix and across lines (90ms)
✓ Can handle 'daw' on word with numeric prefix and across lines
✓ Can handle 'daw' on word with numeric prefix and across lines, containing words end with `.` (61ms)
✓ Can handle 'daw' on end of word (48ms)
✓ Can handle 'daw' on words at beginning of line with leading whitespace (38ms)
✓ Can handle 'daw' on words at ends of lines in the middle of whitespace
✓ Can handle 'daw' on word at beginning of file
✓ Can handle 'daw' on word at beginning of line
✓ Can handle 'daw' on word at end of line with trailing whitespace
✓ Can handle 'daw' around word at end of line
✓ Can handle 'daW' on big word with cursor inside spaces
✓ Can handle 'daW' around word at whitespace
✓ Can handle 'daW' on word with trailing spaces
✓ Can handle 'daW' on word with leading spaces (51ms)
✓ Can handle 'daW' on word with numeric prefix
✓ Can handle 'daW' on word with numeric prefix and across lines (50ms)
✓ Can handle 'daW' on beginning of word
✓ Can handle 'daW' on end of one line
✓ Can handle 'daW' around word at the last WORD (t|wo)
✓ Can handle 'daW' around word at the last WORD (tw|o)
✓ Can handle 'daW' around word at the last WORD (class="btn"|>)
✓ Can handle 'daW' around word at the last WORD of the end of document (class="btn"|>) (46ms)
✓ Can handle 'daW' around word at the last WORD (c|lass="btn">)
✓ Can handle 'daW' around word at the last WORD of the end of document (c|lass="btn">)
✓ Can handle 'diw' on word with cursor inside spaces
✓ Can handle 'diw' on word
✓ Can handle 'diw' on word with numeric prefix
✓ Can handle 'diw' on trailing spaces at the end of line (40ms)
✓ Can handle 'diw' on word with numeric prefix and across lines (56ms)
✓ Can handle 'diw' on word with numeric prefix and across lines, containing words end with `.` (48ms)
✓ Can handle 'diW' on big word with cursor inside spaces (45ms)
✓ Can handle 'diW' on word with trailing spaces
✓ Can handle 'diW' on word with leading spaces (40ms)
✓ Can handle 'diW' on word with numeric prefix
✓ Can handle 'diW' on word with numeric prefix and across lines (56ms)
✓ Can handle 'diW' on beginning of word
✓ Can handle 'dae' (65ms)
✓ Can handle 'dae' with caret at document's top
✓ Can handle 'dae' with caret at document's end (81ms)
✓ Can handle 'die' on blank content
✓ Can handle 'die' with leading space
✓ Can handle 'die' with trailing space (47ms)
✓ Can handle 'die' with both leading and trailing space (60ms)
✓ Can handle 'die' on blank content
✓ Can handle d} at beginning of line
✓ Can handle y} at beginning of line
✓ Can handle d} when not at beginning of line
✓ Can handle } with operator and count, at beginning of line
✓ Can handle } with operator and count, and not at beginning of line
✓ Can handle dip (46ms)
✓ Can handle dip on empty lines
✓ Can handle dap (45ms)
✓ Can handle dap with two blank lines
✓ Can handle dap one single line with two blank lines
✓ Select sentence with trailing spaces (125ms)
✓ Select sentence with leading spaces (123ms)
✓ Select inner sentence with trailing spaces (42ms)
✓ Select inner sentence with leading spaces (65ms)
✓ Select spaces between sentences (65ms)
✓ Can handle 'df'
✓ Can handle 'dt'
✓ Can handle backspace
✓ Can handle backspace across lines
✓ Can handle A and backspace
✓ A should update desiredColumn
✓ I should updated desiredColumn (48ms)
✓ leaving insert mode should update desired column when entered with a (45ms)
✓ leaving insert mode should update desired column when entered with i (50ms)
✓ Can handle 'yy' without changing cursor position
✓ Can handle 'P' after 'yy'
✓ Can handle 'p' after 'yy'
✓ Can handle 'P' after 'Nyy'
✓ Can handle 'p' after 'Nyy'
✓ Can handle 'p' after 'yy' with correct cursor position
✓ Can handle 'gp' after 'yy'
✓ Can handle 'gp' after 'Nyy'
✓ Can handle 'gp' after 'Nyy' if pasting more than three lines (187ms)
✓ Can handle 'gp' after 'Nyy' if cursor is on the last line
✓ Can handle 'gP' after 'yy' (39ms)
✓ Can handle 'gP' after 'Nyy'
✓ Can handle 'gP' after 'Nyy' if pasting more than three lines
✓ Can handle ']p' after yy (51ms)
✓ Can handle ']p' after 'Nyy'
✓ Can handle ']p' after 'Nyy' and indent with tabs first (50ms)
✓ Can handle ']p' after 'Nyy' and decrease indents if possible
✓ Can handle '[p' after yy (52ms)
✓ Can handle '[p' after 'Nyy'
✓ Can handle '[p' after 'Nyy' and indent with tabs first
✓ Can handle '[p' after 'Nyy' and decrease indents if possible
✓ Can handle 'p' after y'a
✓ Can handle 'p' after 'y])' without including closing parenthesis
✓ Can handle 'p' after 'y]}' without including closing bracket (99ms)
✓ Can handle pasting in visual mode over selection (71ms)
✓ Can repeat w
✓ Can repeat p
✓ I works correctly
✓ gI works correctly
✓ gi works correctly (57ms)
✓ `. works correctly
✓ '. works correctly (43ms)
✓ g; works correctly (52ms)
✓ g, works correctly (59ms)
✓ g_ works correctly
✓ 3g_ works correctly (41ms)
✓ gq handles spaces after single line comments correctly (152ms)
✓ gq handles spaces before single line comments correctly (139ms)
✓ gq handles tabs before single line comments correctly (133ms)
✓ gq work correctly with cursor in the middle of a line (76ms)
✓ Can handle space
✓ Can handle space
✓ Undo 1 (51ms)
✓ Undo 2 (51ms)
✓ Undo cursor (284ms)
✓ Undo cursor 2 (83ms)
✓ Undo cursor 3 (92ms)
✓ Undo with movement first (57ms)
✓ Can handle 'U'
✓ Can handle 'U' for multiple changes (50ms)
✓ Can handle 'U' for new line below (57ms)
✓ Can handle 'U' for new line above (51ms)
✓ Can handle 'U' for consecutive changes only (78ms)
✓ Can handle 'u' to undo 'U'
✓ Can handle 'U' to undo 'U'
✓ Can handle 'u' after :s/abc/def (69ms)
✓ Can handle undo delete
✓ Can handle undo delete twice (57ms)
✓ Can handle undo delete with count
✓ Can handle undo delete with count and redo (62ms)
✓ Redo (137ms)
✓ Redo (67ms)
✓ Redo (65ms)
✓ Can handle u
✓ Can handle guw
✓ Can handle guae
✓ Can handle guie (38ms)
✓ Can handle gUw
✓ Can handle gUae
✓ Can handle gUie
✓ Can handle u over line breaks (39ms)
✓ can handle s in visual mode (49ms)
✓ can handle p with selection (41ms)
✓ can handle P with selection (44ms)
✓ can handle p in visual to end of line (74ms)
✓ can repeat backspace twice (66ms)
✓ Can repeat dw
✓ Can repeat dw with count
✓ can delete linewise with d2G
✓ can delete linewise with d2gg (40ms)
✓ can delete linewise with d2gg backwards
✓ can delete with + motion and count
✓ can delete with - motion and count (45ms)
✓ can delete with count before and after operator, 2d12w deletes 24 words
✓ can dE correctly
✓ can dE correctly
✓ can dE correctly
✓ can ctrl-a correctly behind a word
✓ can ctrl-a the right word (always the one AFTER the cursor)
✓ can ctrl-a on word
✓ can ctrl-a on a hex number
✓ can ctrl-a on decimal
✓ can ctrl-a with numeric prefix
✓ can ctrl-a on a decimal
✓ can ctrl-a on an octal
✓ Correctly increments in the middle of a number
✓ can ctrl-a on a hex number behind a word
✓ can ctrl-a distinguish fake hex number
✓ can ctrl-a preserve leading zeros of octal
✓ can ctrl-a trim leading zeros of decimal
✓ can ctrl-a process `-0x0` correctly
✓ can ctrl-a regard `0` as decimal
✓ can ctrl-a on octal ignore negative sign
✓ can ctrl-a on octal ignore positive sign (58ms)
✓ can ctrl-a on hex number ignore negative sign
✓ can ctrl-a on hex number ignore positive sign
✓ can ctrl-x correctly behind a word
✓ can ctrl-a on an number with word before
✓ can ctrl-a on an number with word before and after (267ms)
✓ can ctrl-x on a negative number with word before and after
✓ can ctrl-a properly on multiple lines
✓ can <C-a> on word with multiple numbers (incrementing first number)
✓ can <C-a> on word with multiple numbers (incrementing second number)
✓ can <C-a> on word with - in front of it
✓ <C-a> in visual mode (53ms)
✓ <C-a> in visual line mode (39ms)
✓ <C-a> in visual block mode (75ms)
✓ <C-a> in visual block mode does not go past selection
✓ g<C-a> in visual mode (66ms)
✓ g<C-a> in visual line mode (49ms)
✓ g<C-a> in visual block mode (51ms)
✓ can do Y
✓ can do [count]Y
✓ can do [count]Y if count is larger than EOF
✓ Can do S
✓ / does not affect mark
✓ / can search with regex (73ms)
✓ / can search with newline
✓ / can search through multiple newlines (48ms)
✓ / with noignorecase, nosmartcase (39ms)
✓ / matches ^ per line
✓ / matches $ per line
✓ Can search for forward slash
✓ Can search backward for question mark (42ms)
✓ /\c forces case insensitive search
✓ /\C forces case sensitive search
✓ <BS> deletes the last character in search in progress mode
✓ <S-BS> deletes the last character in search in progress mode
✓ <C-h> deletes the last character in search in progress mode
✓ Can delete with search forward
✓ Can delete with search backward (55ms)
✓ Can do C
✓ Can do cit on a matching tag (39ms)
✓ Ignores cit on a non-matching tag
✓ Ignores cit on a nested tag
✓ Can do cit on a tag with an attribute tag (111ms)
✓ Can do cat on a matching tag (44ms)
✓ Can do cit on a multiline tag (43ms)
✓ Can do cit on a multiline tag with nested tags (61ms)
✓ Can do cit inside of a tag with another non closing tag inside tags (46ms)
✓ Can do cit inside of a tag with another empty closing tag inside tags (48ms)
✓ Can do dit on empty tag block, cursor moves to inside
✓ Can do cit on empty tag block, cursor moves to inside (38ms)
✓ can do cit with self closing tags (42ms)
✓ yat yanks the correct tag when inside one
✓ yat yanks the correct tag when cursor is on the opening angle bracket
✓ yat yanks the correct tag when cursor is between the beginning of the line and the tag
✓ dat deletes the outer tag when there are other characters (not just WS) before the opening tag
✓ dat deletes the outer tag when the cursor is after the inner tag (39ms)
✓ Respects indentation with cc (49ms)
✓ Resets cursor to indent end with cc
✓ can handle 'cc' on empty line
✓ cc copies linewise (167ms)
✓ Indent current line with correct Vim Mode
✓ Can handle <Esc> and do nothing
✓ Can handle # on consecutive words (39ms)
✓ Can handle # on skipped words (38ms)
✓ Can 'D'elete the characters under the cursor until the end of the line (52ms)
✓ Can 'D'elete the characters under multiple cursors until the end of the line (65ms)
✓ cc on whitespace-only treats whitespace as indent
✓ Can do cai (61ms)
✓ Can do cii
✓ Can do caI (60ms)
✓ Can do dai (43ms)
✓ Can do dii
✓ Can do daI (52ms)
✓ Will fail 'cia' with no delimiters
✓ Will fail 'cia' with flipped delimiters
✓ Will fail 'cia' with separators but no delimiters
✓ Can do 'cia' in a single argument (48ms)
✓ Can do 'cia' in () with cursor at opening delimiter
✓ Can do 'cia' in () with cursor at closing delimiter
✓ Can do 'cia' in (,) with cursor at opening delimiter (75ms)
✓ Can do 'cia' in (,) with cursor at regular delimiter
✓ Can do 'cia' in (,) with cursor at closing delimiter
✓ Can do 'cia' in (,,,) with cursor at regular delimiter
✓ Can do 'cia' in (,,,) with cursor at second-to-last delimiter
✓ Can do 'cia' in (,,,) with cursor at closing delimiter
✓ Can do 'cia' with nested parentheses in argument (48ms)
✓ Can do 'cia' in a single-line comma seperated list with cursor in first argument
✓ Can do 'cia' in a single-line comma seperated list with cursor on opening delimiter
✓ Can do 'cia' in a single-line comma seperated list with cursor in middle argument (45ms)
✓ Can do 'cia' in a single-line comma seperated list with cursor on regular delimiter
✓ Can do 'cia' in a single-line comma seperated list with cursor in last argument (41ms)
✓ Can do 'cia' in a single-line comma seperated list with cursor on closing delimiter (49ms)
✓ Can do 'cia' in a whitespace-only argument (39ms)
✓ Can do 'cia' in a whitespace-only argument across multiple lines
✓ Can do 'cia' with trailing whitespace after separator
✓ Can do 'cia' with trailing whitespace after separator and empty line
✓ Can do 'cia' in a multiline-line comma seperated list with cursor in first argument
✓ Can do 'cia' in a multiline-line comma seperated list with cursor in center argument (45ms)
✓ Can do 'cia' in a multiline-line comma seperated list with cursor in last argument
✓ Can do 'cia' in a multi-line indented statement with one argument. (38ms)
✓ Can do 'daa' in a single argument (40ms)
✓ Will fail 'daa' in ()
✓ Can do 'daa' in a single-line comma seperated list with cursor in first argument
✓ Can do 'daa' in a single-line comma seperated list with cursor in middle argument
✓ Can do 'daa' in a single-line comma seperated list with cursor in last argument (39ms)
✓ Can do 'daa' in a multiline-line comma seperated list with cursor in first argument
✓ Can do 'daa' in a multiline-line comma seperated list with cursor in center argument (247ms)
✓ Can do 'daa' in a multiline-line comma seperated list with cursor in last argument
✓ `] go to the end of the previously operated or put text (55ms)
✓ '] go to the end of the previously operated or put text (52ms)
✓ `[ go to the start of the previously operated or put text (56ms)
✓ '[ go to the start of the previously operated or put text (54ms)
✓ can handle <C-u> when first line is visible and starting column is at the beginning
✓ can handle <C-u> when first line is visible and starting column is at the end (58ms)
✓ can handle <C-u> when first line is visible and starting column is in the middle (93ms)
can handle gn
✓ gn selects the next match text (154ms)
✓ gn selects the current word at |hello (152ms)
✓ gn selects the current word at h|ello (186ms)
✓ gn selects the current word at hel|lo (238ms)
✓ gn selects the current word at hell|o (147ms)
✓ gn selects the next word at hello| (158ms)
can handle dgn
✓ dgn deletes the next match text (from first line) (61ms)
✓ dgn deletes the current word when cursor is at |hello (46ms)
✓ dgn deletes the current word when cursor is at h|ello (50ms)
✓ dgn deletes the current word when cursor is at hel|lo (40ms)
✓ dgn deletes the current word when cursor is at hell|o (44ms)
✓ dgn deletes the next word when cursor is at hello| (45ms)
can handle cgn
✓ cgn deletes the next match text (from first line) (74ms)
✓ cgn deletes the current word when cursor is at |hello (143ms)
✓ cgn deletes the current word when cursor is at h|ello (46ms)
✓ cgn deletes the current word when cursor is at hel|lo (47ms)
✓ cgn deletes the current word when cursor is at hell|o (53ms)
✓ cgn deletes the next word when cursor is at hello| (49ms)
can handle gN
✓ gN selects the previous match text (123ms)
✓ gN selects the current word at hell|o (170ms)
✓ gN selects the current word at hel|lo (186ms)
✓ gN selects the current word at h|ello (157ms)
✓ gN selects the current word at |hello (177ms)
✓ gN selects the previous word at | hello (190ms)
can handle dgN
✓ dgN deletes the previous match text (from first line) (47ms)
✓ dgN deletes the current word when cursor is at hell|o (48ms)
✓ dgN deletes the current word when cursor is at hel|lo (52ms)
✓ dgN deletes the current word when cursor is at h|ello (52ms)
✓ dgN deletes the current word when cursor is at |hello (44ms)
✓ dgN deletes the previous word when cursor is at | hello (58ms)
can handle cgN
✓ cgN deletes the previous match text (from first line) (56ms)
✓ cgN deletes the current word when cursor is at hell|o (61ms)
✓ cgN deletes the current word when cursor is at hel|lo (62ms)
✓ cgN deletes the current word when cursor is at h|ello (49ms)
✓ cgN deletes the current word when cursor is at |hello (54ms)
✓ cgN deletes the previous word when cursor is at | hello (66ms)
marks
✓ capital marks can change the editors active document (125ms)
✓ can jump to lowercase mark
Mode Replace
✓ Can activate with <Insert> from Insert mode
✓ Can activate with R from Normal mode
✓ Can handle R
✓ Can handle R past current line
✓ Can handle R and exit Replace Mode (42ms)
✓ Can handle R across lines (66ms)
✓ Can handle R across lines and exit Replace Mode (71ms)
✓ Can handle R with {count} (79ms)
✓ Can handle backspace (57ms)
✓ Can handle backspace (67ms)
✓ Can handle backspace across lines (75ms)
✓ Can handle arrows (41ms)
✓ Can handle . (77ms)
✓ Can handle . across lines (104ms)
Mode Visual
✓ can be activated
✓ Can handle w (100ms)
✓ Can handle wd (95ms)
✓ Can handle x (69ms)
✓ Can handle x across a selection (83ms)
✓ Can do vwd in middle of sentence (114ms)
✓ Can do vwd in middle of sentence (84ms)
✓ Can do vwd multiple times (141ms)
✓ handles case where we go from selecting on right side to selecting on left side (118ms)
✓ Can handle H key (140ms)
✓ Can handle backspace key
✓ handles case where we delete over a newline (104ms)
✓ handles change operator (74ms)
✓ Can do vat on multiple matching tags (75ms)
✓ Can maintain selection on failure with vat on multiple matching tags (82ms)
✓ Can maintain selection on failure with repeat-prefixed vat on multiple matching tags (67ms)
✓ Repeat-prefixed vat does not bleed below (52ms)
✓ Failed vat does not expand or move selection, remains in visual mode (40ms)
✓ Can do vi) on a matching parenthesis (51ms)
✓ Can do vi) on multiple matching parens (48ms)
✓ Can do va) on a matching parenthesis (46ms)
✓ Can do va) on multiple matching parens (54ms)
✓ Failed va) does not expand or move selection, remains in visual mode (44ms)
✓ Repeat-prefixed va) does not bleed below (51ms)
✓ Can do va} on a matching bracket as first character
✓ Can do va} on multiple matching brackets (49ms)
✓ Can do vi( on a matching bracket near first character
✓ Can do vi{ on outer pair of nested braces (50ms)
✓ Can do vi{ on braces indented by 1 and preserve indent (48ms)
✓ Can do va] on multiple matching brackets (59ms)
✓ Can do repeat-prefixed vaf on multiple matching pairs of different types (358ms)
✓ Repeat-prefixed vaf does not bleed below (52ms)
✓ vaf only expands to enclosing pairs (51ms)
✓ Can use . to repeat indent in visual (45ms)
✓ Can do v_x to delete to first char (43ms)
✓ Can do vg_x to delete to last char with no EOL (58ms)
✓ Can do v3g_x to delete to last char with no EOL with count (56ms)
✓ Can do v$x to delete to last char including EOL (58ms)
✓ Can do gv to reselect previous selection (56ms)
✓ Can handle 'J' when the selected area spans multiple lines (45ms)
✓ Can handle 'gJ' when the entire selected area is on the same line (49ms)
✓ Can handle 'gJ' when the selected area spans multiple lines (38ms)
✓ Can handle 'gJ' when the selected area spans multiple lines and line has whitespaces (43ms)
✓ Can handle 'gJ' when start position of the selected area is below the stop (44ms)
✓ Preserves desired column correctly when moving in visual mode
✓ Updates desired column correctly when moving in visual mode
Vim's EOL handling is weird
✓ delete through eol (85ms)
✓ join 2 lines by deleting through eol (72ms)
✓ d$ doesn't delete whole line (60ms)
✓ vd$ does delete whole line (59ms)
✓ Paste over selection copies the selection (56ms)
✓ Paste over selection copies the selection linewise (50ms)
Arrow keys work perfectly in Visual Mode
✓ Can handle <up> key (40ms)
✓ Can handle <down> key (44ms)
✓ Can handle <left> key (43ms)
✓ Can handle <right> key
Screen line motions in Visual Mode
1) Can handle 'gk'
2) Can handle 'gj'
3) Preserves cursor position when handling 'gk'
4) Preserves cursor position when handling 'gj'
handles aw in visual mode
✓ Can handle 'vawd' on word with cursor inside spaces (49ms)
✓ Can handle 'vawd' on word with trailing spaces (64ms)
✓ Can handle 'vawd' on word with leading spaces (50ms)
✓ Can handle 'vawd' on word with numeric prefix (38ms)
✓ Can handle 'vawd' on word with numeric prefix and across lines (86ms)
✓ Can handle 'vawd' on word with numeric prefix and across lines, containing words end with `.` (69ms)
handles aW in visual mode
✓ Can handle 'vaWd' on big word with cursor inside spaces (67ms)
✓ Can handle 'vaWd' on word with trailing spaces (54ms)
✓ Can handle 'vaWd' on word with leading spaces (61ms)
✓ Can handle 'vaWd' on word with numeric prefix (161ms)
✓ Can handle 'vaWd' on word with numeric prefix and across lines (61ms)
handles aW in visual mode
✓ Can handle 'vaWd' on big word with cursor inside spaces (99ms)
✓ Can handle 'vaWd' on word with trailing spaces (52ms)
✓ Can handle 'vaWd' on word with leading spaces (55ms)
✓ Can handle 'vaWd' on word with numeric prefix (139ms)
✓ Can handle 'vaWd' on word with numeric prefix and across lines (76ms)
handles aw in visual mode
✓ Can handle 'vawd' on word with cursor inside spaces (55ms)
✓ Can handle 'vawd' on word with trailing spaces
✓ Can handle 'vawd' on word with leading spaces (65ms)
✓ Can handle 'vawd' on word with numeric prefix
✓ Can handle 'vawd' on word with numeric prefix and across lines (67ms)
✓ Can handle 'vawd' on word with numeric prefix and across lines, containing words end with `.` (77ms)
handles aW in visual mode
✓ Can handle 'vaWd' on big word with cursor inside spaces (50ms)
✓ Can handle 'vaWd' on word with trailing spaces (58ms)
✓ Can handle 'vaWd' on word with leading spaces (48ms)
✓ Can handle 'vaWd' on word with numeric prefix (43ms)
✓ Can handle 'vaWd' on word with numeric prefix and across lines (69ms)
✓ Can handle 'Y' in visual mode (38ms)
handles as in visual mode
✓ Select sentence with trailing spaces in visual mode (49ms)
✓ Select sentence with leading spaces in visual mode (76ms)
✓ Select multiple sentences in visual mode (76ms)
handles is in visual mode
✓ Select inner sentence with trailing spaces in visual mode (55ms)
✓ Select inner sentence with leading spaces in visual mode (75ms)
✓ Select spaces between sentences in visual mode (66ms)
handles tag blocks in visual mode
✓ Can do vit on a matching tag (53ms)
✓ Count-prefixed vit alternates expanding selection between inner and outer tag brackets (53ms)
✓ Can do vat on a matching tag (219ms)
handles replace in visual mode
✓ Can do a single line replace (52ms)
✓ Can do a multi line replace (38ms)
D command will remove all selected lines
✓ D deletes all selected lines (40ms)
✓ D deletes the current line (42ms)
handles indent blocks in visual mode
✓ Can do vai (55ms)
✓ Can do vii (64ms)
✓ Doesn't naively select the next line (57ms)
✓ Searches backwards if cursor line is empty
✓ Can do vaI (59ms)
visualstar
✓ Works with * (45ms)
✓ Works with # (45ms)
search works in visual mode
✓ Works with / (47ms)
✓ Works with ? (56ms)
✓ Selects correct range (90ms)
X will delete linewise
✓ normal selection (45ms)
✓ normal selection (39ms)
C will delete linewise
✓ normal selection
✓ normal selection (53ms)
R will delete linewise
✓ normal selection (47ms)
✓ normal selection
Linewise Registers will be inserted properly
✓ downward selection (85ms)
✓ upward selection (75ms)
Indent Tests using > on visual selections
✓ multiline indent top down selection
✓ multiline indent bottom up selection (48ms)
✓ repeat multiline indent top down selection (65ms)
✓ repeat multiline indent bottom up selection (68ms)
Outdent Tests using < on visual selections
✓ multiline outdent top down selection (53ms)
✓ multiline outdent bottom up selection (40ms)
✓ repeat multiline outdent top down selection (94ms)
✓ repeat multiline outdent bottom up selection (72ms)
Non-darwin <C-c> tests
✓ <C-c> copies and sets mode to normal (111ms)
vi{ will go to end of second to last line
✓ select (52ms)
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 (74ms)
✓ 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) (267ms)
✓ gv selects the last pasted text (which is longer than original) (247ms)
✓ gv selects the last pasted text (multiline) (130ms)
can handle gn
✓ gn selects the next match text (156ms)
✓ gn selects the current word at |hello (149ms)
✓ gn selects the current word at h|ello (177ms)
✓ gn selects the current word at hel|lo (228ms)
✓ gn selects the next word at hell|o (139ms)
✓ gn selects the next word at hello| (163ms)
can prepend text with I
✓ multiline insert from bottom up selection (49ms)
✓ multiline insert from top down selection (44ms)
✓ skips blank lines
can append text with A
✓ multiline append from bottom up selection (55ms)
✓ multiline append from top down selection (38ms)
✓ skips blank lines (140ms)
Can handle u/gu, U/gU
✓ U/gU on single character (53ms)
✓ U/gU across a selection (72ms)
✓ U/gU across a selection (reverse) (64ms)
✓ u/gu on single character (53ms)
✓ u/gu across a selection (87ms)
✓ u/gu across a selection (reverse) (65ms)
Can handle ~/g~
✓ ~/g~ on single character (95ms)
✓ ~/g~ across a selection (82ms)
C, R, and S
✓ 'C' deletes selected lines and puts you into insert mode (63ms)
✓ 'C' deletes selected lines and puts you into insert mode (backward selection) (46ms)
✓ 'R' deletes selected lines and puts you into insert mode
✓ 'R' deletes selected lines and puts you into insert mode (backward selection) (45ms)
✓ 'S' deletes selected lines and puts you into insert mode (45ms)
✓ 'S' deletes selected lines and puts you into insert mode (backward selection) (53ms)
Visual mode with command editor.action.smartSelect.grow
✓ Command editor.action.smartSelect.grow enters visual mode (56ms)
✓ Command editor.action.smartSelect.grow enters visual mode and increases selection (65ms)
✓ Command editor.action.smartSelect.grow enters visual mode on single character (76ms)
✓ Command editor.action.smartSelect.grow enters visual mode on multicursors (128ms)
Mode Visual Block
✓ can be activated
✓ Can handle A forward select (64ms)
✓ Can handle A backwards select (47ms)
✓ `A` over shorter line adds necessary spaces (63ms)
✓ Can handle I forward select (44ms)
✓ Can handle I backwards select (54ms)
✓ Can handle I with empty lines on first character (inserts on empty line) (58ms)
✓ Can handle I with empty lines on non-first character (does not insert on empty line) (51ms)
✓ Can handle c forward select (65ms)
✓ Can handle c backwards select (52ms)
✓ Can handle C (57ms)
✓ Can do a multi line replace (46ms)
✓ Can handle 'D' (51ms)
✓ Can handle 'gj' (63ms)
✓ Properly add to end of lines j then $ (51ms)
✓ Properly add to end of lines $ then j (50ms)
✓ o works in visual block mode (52ms)
✓ d deletes block (57ms)
✓ x deletes block (39ms)
✓ X deletes block (44ms)
✓ Select register using " works in visual block mode (83ms)
✓ Can handle 'J' when the entire visual block is on the same line
✓ Can handle 'J' when the visual block spans multiple lines
✓ Can handle 'J' when start position of the visual block is below the stop (38ms)
✓ Can handle 'gJ' when the entire visual block is on the same line (51ms)
✓ Can handle 'gJ' when the visual block spans multiple lines (178ms)
✓ Can handle 'gJ' when the visual block spans multiple lines and line has whitespaces (83ms)
✓ Can handle 'gJ' when start position of the visual block is below the stop (54ms)
✓ Can handle ~/g~ in visual block mode (167ms)
Non-darwin <C-c> tests
✓ <C-c> copies and sets mode to normal (121ms)
R and S
✓ 'R' deletes selected lines and puts you into insert mode (50ms)
✓ 'R' deletes selected lines and puts you into insert mode (backward selection) (44ms)
✓ 'S' deletes selected lines and puts you into insert mode (47ms)
✓ 'S' deletes selected lines and puts you into insert mode (backward selection) (41ms)
Mode Visual Line
✓ can be activated
✓ <count>V selects <count> lines (165ms)
✓ Can handle w (108ms)
✓ Can handle wd (112ms)
✓ Can handle x (83ms)
✓ Can handle x across a selection (75ms)
✓ Can do vwd in middle of sentence (124ms)
✓ Can do vwd in middle of sentence (74ms)
✓ Can do vwd multiple times (146ms)
✓ handles case where we go from selecting on right side to selecting on left side (172ms)
✓ handles case where we delete over a newline (124ms)
✓ handles change operator (459ms)
✓ Vp updates register content (44ms)
✓ "xVp only updates default register content (79ms)
✓ Vp does not append unnecessary newlines (first line) (39ms)
✓ Vp does not append unnecessary newlines (middle line) (38ms)
✓ Vp does not append unnecessary newlines (last line) (48ms)
✓ Vp places the cursor on first non-whitespace character on line (53ms)
✓ Exiting via <Esc> returns cursor to original column (62ms)
✓ Exiting via `VV` returns cursor to original column (42ms)
✓ Can handle 'J' when the selected area spans multiple lines (46ms)
✓ Can handle 'gJ' when the entire selected area is on the same line (42ms)
✓ Can handle 'gJ' when the selected area spans multiple lines (74ms)
✓ Can handle 'gJ' when the selected area spans multiple lines and line has whitespaces (56ms)
✓ Can handle 'gJ' when start position of the selected area is below the stop (60ms)
Vim's EOL handling is weird
✓ delete through eol (86ms)
✓ join 2 lines by deleting through eol (74ms)
✓ d$ doesn't delete whole line (61ms)
✓ vd$ does delete whole line (75ms)
Arrow keys work perfectly in Visual Line Mode
✓ Can handle <up> key (44ms)
✓ Can handle <down> key (44ms)
Screen line motions in Visual Line Mode
✓ Can handle 'gk' (59ms)
✓ Can handle 'gj' (56ms)
Can handle d/c correctly in Visual Line Mode
✓ Can handle d key
✓ Can handle d key (54ms)
✓ Can handle d key (50ms)
✓ Can handle d key (38ms)
✓ can handle 'c' (44ms)
handles replace in visual line mode
✓ Can do a single line replace (38ms)
✓ Can do a multi visual line replace (46ms)
✓ Can do a multi visual line replace from the bottom up (52ms)
search works in visual line mode
✓ Works with / (67ms)
✓ Works with ? (52ms)
Non-darwin <C-c> tests
✓ <C-c> copies and sets mode to normal (135ms)
replace text in linewise visual-mode with linewise register content
✓ yyVp does not change the content but changes cursor position (53ms)
✓ linewise visual put works also in the end of document (51ms)
✓ gv selects the last pasted text (which is shorter than original) (299ms)
✓ gv selects the last pasted text (which is longer than original) (585ms)
✓ gv selects the last pasted text (multiline) (165ms)
can prepend text with I
✓ multiline insert from bottom up selection (59ms)
✓ multiline insert from top down selection
✓ skips blank lines (44ms)
can append text with A
✓ multiline append from bottom up selection (45ms)
✓ multiline append from top down selection (84ms)
✓ skips blank lines
✓ updates desired column correctly (46ms)
Can handle ~/g~ in visual line mode
✓ ~/g~ on single line (53ms)
✓ ~/g~ on multiple lines (52ms)
C, R, and S
✓ 'C' deletes selected lines and puts you into insert mode (46ms)
✓ 'C' deletes selected lines and puts you into insert mode (backward selection) (48ms)
✓ 'R' deletes selected lines and puts you into insert mode
✓ 'R' deletes selected lines and puts you into insert mode (backward selection) (38ms)
✓ 'S' deletes selected lines and puts you into insert mode (45ms)
✓ 'S' deletes selected lines and puts you into insert mode (backward selection) (49ms)
Mode Normal
✓ Can handle 'x'
✓ Can handle 'Nx' (41ms)
✓ Can handle 'Nx' and paste (42ms)
✓ Can handle 'x' at end of line (64ms)
✓ 'x' with count does not go over EOL (40ms)
✓ Can handle 'Ns' (38ms)
✓ Can handle 'Ns' at end of line
✓ Can handle '<Del>' (46ms)
✓ Can handle '<Del>' with counts, which removes the last character of the count
✓ Can handle '<Del>' at end of line (52ms)
✓ Can handle 'cc' (46ms)
✓ Can handle 'Ncc' (47ms)
✓ Can handle 'yy' (41ms)
✓ Can handle 'D'
✓ Can handle 'D' on empty lines
✓ Can handle 'D' with count 1
✓ Can handle 'D' with count 3
✓ Can handle 'D' with count exceeding max number of rows (39ms)
✓ Can handle 'D' with count when end position is on blank line
✓ Can handle 'DD'
✓ Can handle 'C' (43ms)
✓ Can handle 'NC'
✓ Can handle 'NC' and put (48ms)
✓ Can handle 'r'
✓ Can handle '<Count>r' (42ms)
✓ Can handle '<Count>r'
✓ Can handle 'r' after 'dd' (39ms)
✓ Can handle 'r
' (40ms)
✓ Can handle '<Count>r
' (43ms)
✓ Can handle 'J' once (41ms)
✓ Can handle 'J' twice (46ms)
✓ Can handle 'J' with empty last line (40ms)
✓ Can handle 'J's with multiple empty last lines (95ms)
✓ Can handle 'J' with leading white space on next line
✓ Can handle 'J' with only white space on next line
✓ Can handle 'J' with TWO indented lines
✓ Can handle 'J' with ')' first character on next line
✓ Can handle 'J' with a following delete (38ms)
✓ Can handle 'J' with count
✓ Can handle 'J' with count if count is larger than EOF (39ms)
✓ Can handle 'J' in Visual Line mode (46ms)
✓ Can handle 'gJ' once
✓ Can handle 'gJ' once when line has whitespaces (157ms)
✓ Can handle 'gJ' with count (43ms)
✓ Can handle 'gJ' with count when line has whitespaces
✓ Can handle 'gJ' with count and end position is blank line
✓ Can handle 'gJ' with count exceeding max number of rows
✓ Can handle '~'
✓ Can handle 'g~{motion}'
✓ Can handle 'g~~' (39ms)
✓ Can handle '<BS>' in insert mode
✓ Can handle undo with P (68ms)
✓ Can handle 'ge' in multiple lines case1 (42ms)
✓ Can handle 'ge' in multiple lines case2 (47ms)
Dot Operator
✓ Can repeat '~' with <num>
✓ Can repeat '~' with dot
✓ Can repeat 'x'
✓ Can repeat 'J'
✓ Can handle dot with A (393ms)
✓ Can handle dot with I (73ms)
✓ Can repeat actions that require selections (57ms)
Repeat content change
✓ Can repeat '<C-t>' (50ms)
✓ Can repeat insert change and '<C-t>' (65ms)
✓ Can repeat change by `<C-a>` (61ms)
✓ Only one arrow key can be repeated in Insert Mode (57ms)
✓ Cached content change will be cleared by arrow keys (67ms)
Dot Operator repeat with remap
✓ Can repeat content change using 'jjk' mapped to '<Esc>' without trailing characters (87ms)
✓ Can repeat '<leader>w' when mapped to 'dw'
Matching Bracket (%)
✓ before opening parenthesis
✓ inside parenthesis
✓ nested parenthesis beginning
✓ nested parenthesis end
✓ nested bracket and parenthesis beginning
✓ nested bracket, parenthesis, braces beginning
✓ nested bracket, parenthesis, braces end (45ms)
✓ parentheses after >
✓ parentheses after "
Motions in Normal Mode
✓ Can handle [(
✓ Can handle nested [( (44ms)
✓ Can handle <number>[(
✓ Can handle [( and character under cursor exclusive
✓ Can handle ])
✓ Can handle nested ])
✓ Can handle <number>])
✓ Can handle ]) and character under cursor exclusive (38ms)
✓ Can handle [{
✓ Can handle nested [{ (39ms)
✓ Can handle <number>[{ (41ms)
✓ Can handle [{ and character under cursor exclusive
✓ Can handle ]}
✓ Can handle nested ]}
✓ Can handle <number>]}
✓ Can handle ]} and character under cursor exclusive
✓ Can handle 'ge'
✓ Can handle 'gg' (43ms)
✓ Can handle 'gg' to first non blank char on random line (43ms)
✓ Can handle 'gg' to first non blank char on first line (89ms)
✓ 'gg' obeys startofline
✓ Retain same column when moving up/down (38ms)
✓ Can handle <enter> (44ms)
✓ $ always keeps cursor on EOL (43ms)
✓ Can handle $ with a count (103ms)
✓ Can handle $ with a count at end of file (77ms)
✓ Can handle <End> with a count
✓ Can handle <D-right> with a count (41ms)
✓ Can handle 'f' (41ms)
✓ Can handle 'f' twice (41ms)
✓ Can handle 'f' with <tab>
✓ Can handle 'f' and find back search (49ms)
✓ Can handle 'F'
✓ Can handle 'F' twice (39ms)
✓ Can handle 'F' and find back search (38ms)
✓ Can handle 'f' and multiple back searches
✓ Can handle 't' (46ms)
✓ Can handle 't' twice (43ms)
✓ Can handle 't' and find back search (38ms)
✓ Can handle 'T' (49ms)
✓ Can handle 'T' twice (41ms)
✓ Can handle 'T' and find back search
✓ Can run a forward search (40ms)
✓ Can run a forward and find next search (49ms)
✓ Can run a forward and find previous search from end of word (45ms)
✓ Can run a forward search with count 1
✓ Can run a forward search with count 3 (39ms)
✓ Can run a forward search with count exceeding max number of matches
✓ Can run a reverse search (63ms)
✓ Can run a reverse and find next search (57ms)
✓ Can run a reverse search with count 1 (51ms)
✓ Can run a reverse search with count 3 (47ms)
✓ Can run a reverse search with count exceeding max number of matches (58ms)
✓ cancelled search reverts to previous search state (69ms)
✓ Backspace on empty search cancels (49ms)
✓ Search offsets: b does nothing (41ms)
✓ Search offsets: b2 goes 2 to the right (42ms)
✓ Search offsets: b+3 goes 3 to the right (52ms)
✓ Search offsets: e goes to the end (42ms)
✓ Search offsets: character offset goes across line boundaries (38ms)
✓ Search offsets: 2 goes 2 down (40ms)
✓ Search offsets: -2 goes 2 up (65ms)
✓ maintains column position correctly
✓ maintains column position correctly with $
✓ Can handle G
✓ Can handle G with number prefix
✓ Can handle G with number prefix (38ms)
✓ Can handle gg
✓ Can handle gg with number prefix
✓ Can handle 0
✓ Can handle 0 as part of a repeat
✓ Can handle g*
✓ Can handle g*n
✓ Can handle *
✓ Can handle **
✓ * ignores smartcase (ignorecase=true)
✓ * ignores smartcase (ignorecase=false)
✓ * skips over word separators
✓ * uses word separator if no word characters found before EOL (39ms)
✓ * does not go over line boundaries
✓ Can handle # on whitespace (41ms)
✓ Can handle # on EOL (41ms)
✓ Can handle g# (51ms)
✓ Can handle g#n (80ms)
✓ Can handle # (121ms)
✓ Can handle # already on the word
✓ Can handle ## (45ms)
✓ * adds to search history
✓ # adds to search history (69ms)
✓ Can handle | (42ms)
✓ Can handle <number> | (45ms)
✓ Can handle +
✓ Can handle + indent (435ms)
✓ Can handle + with count prefix
✓ Can handle -
✓ Can handle - indent
✓ Can handle - with count prefix
✓ Can handle _
✓ Can handle _ with count prefix
✓ Can handle g_
✓ Can handle g_ with count prefix (38ms)
✓ Can handle <up> key
✓ Can handle <down> key (39ms)
✓ Can handle <left> key
✓ Can handle <right> key
✓ Can handle 'gk'
✓ Can handle 'gj'
✓ Preserves cursor position when handling 'gk' (50ms)
✓ Preserves cursor position when handling 'gj' (46ms)
doesn't update desiredColumn when it shouldn't
✓ Preserves desired cursor position when pressing zz (51ms)
✓ Preserves desired cursor position when pressing zt (68ms)
✓ Preserves desired cursor position when pressing zb (78ms)
✓ Preserves desired cursor position when pressing <C-e> (79ms)
✓ Preserves desired cursor position when pressing <C-y> (66ms)
basic motion
✓ char right: should move one column right
✓ char right
✓ char left: should move cursor one column left
✓ char left: left-most column should stay at the same location
✓ line down: should move cursor one line down
✓ line down: bottom-most line should stay at the same location
✓ line begin
✓ line end
✓ document begin
✓ document end
✓ line begin cursor on first non-blank character
✓ last line begin cursor on first non-blank character
line up
✓ should move cursor one line up
✓ top-most line should stay at the same location
word motion
✓ line begin cursor on first non-blank character
✓ last line begin cursor on first non-blank character
word right
✓ move to word right
✓ last word should move to next line
✓ last word should move to next line stops on empty line
✓ last word should move to next line skips whitespace only line
✓ last word on last line should go to end of document (special case!)
word left
✓ move cursor word left across spaces
✓ move cursor word left within word
✓ first word should move to previous line, beginning of last word
✓ first word should move to previous line, stops on empty line
✓ first word should move to previous line, skips whitespace only line
WORD right
✓ move to WORD right
✓ last WORD should move to next line
✓ last WORD should move to next line stops on empty line
✓ last WORD should move to next line skips whitespace only line
WORD left
✓ move cursor WORD left across spaces
✓ move cursor WORD left within WORD
✓ first WORD should move to previous line, beginning of last WORD
✓ first WORD should move to previous line, stops on empty line
✓ first WORD should move to previous line, skips whitespace only line
end of word right
✓ move to end of current word right
✓ move to end of next word right
✓ end of last word should move to next line
✓ end of last word should move to next line skips empty line
✓ end of last word should move to next line skips whitespace only line
end of WORD right
✓ move to end of current WORD right
✓ move to end of next WORD right
✓ end of last WORD should move to next line
✓ end of last WORD should move to next line skips empty line
✓ end of last WORD should move to next line skips whitespace only line
unicode word motion
word right
✓ move cursor word right stops at different kind of character (ideograph -> hiragana)
✓ move cursor word right stops at different kind of character (katakana -> ascii)
✓ move cursor word right stops at different kind of chararacter (ascii -> punctuation)
✓ move cursor word right on non-ascii text
✓ move cursor word right recognizes a latin string which has diacritics as a single word
✓ move cursor word right recognizes a latin-1 symbol as punctuation
✓ move cursor word right recognizes a sequence of latin-1 symbols and other symbols as a word
word left
✓ move cursor word left across the different char kind
✓ move cursor word left within the same char kind
✓ move cursor word left across spaces on non-ascii text
✓ move cursor word left within word on non-ascii text
✓ move cursor word left recognizes a latin string which has diacritics as a single word
sentence motion
sentence forward
✓ next concrete sentence
✓ next sentence that ends with paragraph ending
✓ next sentence when cursor is at the end of previous paragraph
✓ next sentence when paragraph contains a line of whilte spaces
sentence backward
✓ current sentence begin
✓ sentence forward when cursor is at the beginning of the second sentence
✓ current sentence begin with no concrete sentense inside
✓ current sentence begin when it's not the same as current paragraph begin
✓ current sentence begin when previous line ends with a concrete sentence
paragraph motion
paragraph down
✓ move down normally
✓ move down longer paragraph
✓ move down starting inside empty line
✓ paragraph at end of document
paragraph up
✓ move up short paragraph
✓ move up longer paragraph
✓ move up starting inside empty line
motion line wrapping
whichwrap enabled
normal mode
✓ h wraps to previous line
✓ l wraps to next line
✓ <left> wraps to previous line
✓ <right> wraps to next line
insert mode
✓ <left> wraps to previous line
✓ <right> once goes to end of line (41ms)
✓ <right> twice wraps to next line (40ms)
whichwrap disabled
normal mode
✓ h does not wrap to previous line
✓ l does not wrap to next line
✓ <left> does not wrap to previous line
✓ <right> does not wrap to next line
insert mode
✓ <left> does not wrap to previous line
✓ <right> does not wrap to next line (38ms)
wrapscan enabled
✓ search wraps around the end of the file (45ms)
✓ search wraps around the start of the file
wrapscan disabled
✓ search stops at the end of the file (44ms)
✓ search stops at the start of the file (42ms)
Multicursor
✓ can add multiple cursors below (89ms)
✓ can add multiple cursors above (107ms)
✓ viwd with multicursors deletes the words and keeps the cursors (372ms)
✓ vibd with multicursors deletes the content between brackets and keeps the cursors (265ms)
✓ vi[d with multicursors deletes the content between brackets and keeps the cursors (256ms)
✓ vitd with multicursors deletes the content between tags and keeps the cursors (252ms)
Multicursor with remaps
✓ Using 'jjk' mapped to '<Esc>' doesn't leave trailing characters (302ms)
numeric string
✓ fails on non-string
✓ handles hex round trip
✓ handles decimal round trip
✓ handles octal trip
comment operator
✓ gcc comments out current line (170ms)
✓ gcj comments in current and next line (65ms)
✓ block comment with motion (259ms)
✓ block comment in Visual Mode (198ms)
✓ comment in visual line mode (250ms)
✓ comment in visual block mode (97ms)
filter operator
✓ !! with no count (269ms)
✓ !! with whitespace moves cursor to first non-whitespace character (83ms)
✓ !! with count (83ms)
✓ !{forwards motion}{filter} (94ms)
✓ !{backwards motion}{filter} (133ms)
✓ v!{filter} (227ms)
✓ V!{filter} (117ms)
✓ <Ctrl-v>!{filter} (138ms)
format operator
✓ == formats current line (498ms)
✓ =$ formats entire line (204ms)
✓ =j formats two lines (84ms)
✓ 3=k formats three lines (42ms)
✓ =gg formats to top of file (72ms)
✓ =G formats to bottom of file (76ms)
✓ =ip formats paragraph (72ms)
✓ format in visual mode (76ms)
put operator
✓ basic put test (72ms)
✓ test yy end of line (75ms)
✓ test yy first line (52ms)
✓ test yy middle line (47ms)
✓ test yy with correct positon movement (73ms)
✓ test visual block single line yank p (56ms)
✓ test visual block single line yank P (100ms)
✓ test visual block single line delete p (143ms)
✓ test visual block single line delete P (58ms)
rot13 operator
✓ rot13() unit test
✓ g?j works (38ms)
✓ g? in visual mode works (91ms)
✓ g? in visual line mode works (46ms)
✓ g? in visual block mode works (64ms)
shift operator
✓ basic shift left test (62ms)
✓ shift left goto end test
✓ shift left goto line test
✓ shift right goto end test (49ms)
✓ shift right goto line test
camelCaseMotion plugin if not enabled
✓ basic motion doesn't work (61ms)
camelCaseMotion plugin
handles <leader>w for camelCaseText
✓ step over whitespace
✓ step to Camel word (40ms)
✓ step to CAP word
✓ step after CAP word (42ms)
✓ step from middle of word to Camel word (55ms)
✓ step to number word (84ms)
✓ step to operator word (240ms)
✓ step from inside operator word (53ms)
✓ step to operator and then over
handles <leader>w for underscore_var
✓ step to _word (61ms)
✓ step over whitespace to word
✓ step from inside word to _word (40ms)
✓ step form _word to number (48ms)
✓ step from nubmer word to _word (50ms)
✓ step from in whitespace to word
✓ step in ALL_CAPS_WORD (47ms)
handles d<leader>w
✓ delete from start of camelWord (75ms)
✓ delete from middle of camelWord
✓ delete from start of CamelWord (569ms)
✓ delete two words from camelWord
✓ delete from start of underscore_word (73ms)
✓ delete from middle of underscore_word
✓ delete two words from camel_word
handles di<leader>w
✓ delete from start of camelWord
✓ delete from middle of camelWord
✓ delete from start of CamelWord (86ms)
✓ delete two words from camelWord (39ms)
✓ delete from start of underscore_word (78ms)
✓ delete from middle of underscore_word
✓ delete two words from camel_word (76ms)
handles <leader>b
✓ back from middle of word (82ms)
✓ back over whitespace to camelWord
✓ back twice over operator (51ms)
handles <leader>e
✓ from start to middle of underscore_word
✓ from middle to end of underscore_word (71ms)
✓ twice to end of word over operator (39ms)
easymotion plugin
✓ Can handle s move (113ms)
✓ Can handle 2s move (119ms)
✓ Can handle f move (91ms)
✓ Can handle 2f move (67ms)
✓ Can handle F move (125ms)
✓ Can handle 2F move (105ms)
✓ Can handle t move (61ms)
✓ Can handle bd-t move (61ms)
✓ Can handle 2t move (106ms)
✓ Can handle bd-t2 move (120ms)
✓ Can handle T move (77ms)
✓ Can handle 2T move (79ms)
✓ Can handle w move (94ms)
✓ Can handle bd-w move (75ms)
✓ Can handle b move (101ms)
✓ Can handle e move (354ms)
✓ Can handle bd-e move (46ms)
✓ Can handle ge move (53ms)
✓ Can handle n-char move (81ms)
✓ Can handle j move (87ms)
✓ Can handle k move (83ms)
✓ Can handle bd-jk move (1) (93ms)
✓ Can handle bd-jk move (2) (78ms)
✓ Can handle lineforward move (1) (74ms)
✓ Can handle lineforward move (2) (73ms)
✓ Can handle linebackward move (1) (56ms)
✓ Can handle linebackward move (2) (60ms)
✓ Can handle searching for backslash (\) (56ms)
✓ Can handle searching for carat (^) (49ms)
✓ Can handle searching for dot (.) (50ms)
Input method plugin
✓ use default im in insert mode
✓ use other im in insert mode
replaceWithRegister plugin
✓ Replaces within inner word (76ms)
✓ Replaces within inner Word (94ms)
✓ Replaces within '' (97ms)
✓ Replaces within '' including spaces (59ms)
✓ Replaces within () (59ms)
✓ Replaces within () including spaces (79ms)
✓ Replaces within a paragraph (98ms)
✓ Replaces using a specified register (112ms)
✓ Replaces within {} over multiple lines (52ms)
✓ Replaces a multiline register within {} over multiple lines (55ms)
✓ Replaces a multiline register within {} over multiple lines (60ms)
✓ Yanking inside {} then replacing inside {} in a noop, besides the cursor movement (107ms)
✓ grr replaces the entire line with the register (106ms)
✓ grr can replace multiple lines (49ms)
✓ Replaces in visual mode (86ms)
✓ Replaces in visual mode using a specified register (110ms)
✓ Replaces in visual line mode (57ms)
✓ grj is linewise (95ms)
sneak plugin
✓ Can handle s motion
✓ Can handle S motion (77ms)
✓ Can handle <operator>z motion (53ms)
✓ Can handle <operator>Z motion (165ms)
✓ Can handle s; motion
✓ Can handle s, motion (47ms)
✓ Can handle S; motion (61ms)
✓ Can handle S, motion (38ms)
✓ Can handle single letter s motion
✓ Can handle single letter S motion
✓ Can handle single letter <operator>z motion (52ms)
✓ Can handle single letter <operator>Z motion (45ms)
✓ Can handle single letter s; motion
✓ Can handle single letter s, motion (78ms)
✓ Can handle single letter S; motion (45ms)
✓ Can handle single letter S, motion (38ms)
✓ Can handle multiline single char <number>s motion (83ms)
✓ Can go back using <C-o> once when going forward (63ms)
✓ Can go back using <C-o> once when going backward (39ms)
✓ Can go back using <C-o> when repeating forward movement
✓ Can go back using <C-o> when repeating backward movement (81ms)
sneakReplacesF
✓ sneakReplacesF forward (62ms)
✓ sneakReplacesF backward (78ms)
surround plugin
✓ 'ysiw)' surrounds word without space (113ms)
✓ 'ysiw(' surrounds word with space (104ms)
✓ 'ysw)' surrounds word without space (113ms)
✓ 'ysw(' surrounds word with space (65ms)
✓ 'ysaw)' surrounds word without space (114ms)
✓ 'ysaw(' surrounds word with space (106ms)
✓ 'ysiw(' surrounds word with space and ignores punctuation (143ms)
✓ 'ysiw<' surrounds word with tags (91ms)
✓ 'ysiw<' surrounds word with tags and attributes (93ms)
✓ 'cst<' surrounds word with tags that have a dot in them (66ms)
✓ 'yss)' surrounds entire line respecting whitespace (54ms)
✓ change surround (108ms)
✓ change surround with two pairs of quotes (57ms)
✓ change surround with two pairs of parens (858ms)
✓ change surround with alias (130ms)
✓ 'ysiwb' surrounds word with alias without space (56ms)
✓ 'ysiwB' surrounds word with alias without space (106ms)
✓ 'ysiwr' surrounds word with alias without space (88ms)
✓ 'ysiwa' surrounds word with alias without space (101ms)
✓ change surround to tags (91ms)
✓ delete surround (72ms)
✓ delete surround with quotes (86ms)
✓ delete surround with nested of quotes (189ms)
✓ delete surround with inconsistent quotes (100ms)
✓ delete surround with mixed quotes (116ms)
✓ delete surround with empty quotes cursor at start (103ms)
✓ delete surround with empty quotes cursor at end (112ms)
✓ don't delete surround if cursor is after closing match (100ms)
✓ delete surround if cursor is before opening match (90ms)
✓ delete surround with two pairs of parens (63ms)
✓ delete surround with alias (111ms)
✓ delete surround with tags (96ms)
✓ change surround brackets at end of line (48ms)
✓ changing brackets with surround works again (83ms)
✓ change surround with tags that contain an attribute and preserve them (115ms)
✓ change surround with tags that contain an attribute and remove them (71ms)
✓ performing surround after cancelling surround action with <Esc> does not move the cursor (142ms)
✓ 'S)' surrounds visual selection without space (348ms)
✓ 'S(' surrounds visual selection with space (241ms)
✓ 'S<div>' surrounds selection with <div></div> (205ms)
✓ 'S)' surrounds visual line selection without space (80ms)
✓ 'S(' surrounds visual line selection with space (130ms)
✓ 'S<div>' surrounds visual line selection with <div></div> (111ms)
register
✓ Can copy to a register (49ms)
✓ Can use two registers together (148ms)
✓ Can use black hole register (46ms)
✓ System clipboard works with chinese characters (92ms)
✓ Yank stores text in Register '0' (254ms)
✓ Multiline yank (`[count]yy`) stores text in Register '0' (188ms)
✓ Multiline yank (`[count]Y`) stores text in Register '0' (175ms)
✓ Register '1'-'9' stores delete content (264ms)
✓ "A appends linewise text to "a (609ms)
✓ "A appends character wise text to "a (193ms)
✓ Can put and get to register
✓ Small deletion using x is stored in small delete register (190ms)
✓ Small deletion using Del is stored in small delete register (216ms)
✓ Small deletion using X is stored in small delete register (248ms)
✓ Search register (/) is set by forward search (286ms)
✓ Search register (/) is set by backward search (296ms)
✓ Search register (/) is set by star search (319ms)
✓ Command register (:) is set by command line (109ms)
✓ Read-only registers cannot be written to (216ms)
clipboard
✓ Can access '*' (clipboard) register (73ms)
✓ Can access '+' (clipboard) register (46ms)
Repeatable movements with f and t
✓ Can repeat f<character>
✓ Can repeat reversed F<character>
✓ Can repeat t<character> (72ms)
✓ Can repeat N times reversed t<character>
sentence motion
[count] sentences backward
✓ move one sentence backward (80ms)
✓ move one sentence backward (82ms)
✓ move [count] sentences backward (47ms)
✓ move one sentence backward single line - middle
✓ move one sentence backward no space (61ms)
✓ move one sentence backward no space - middle (38ms)
✓ move one sentence backward - multiline (41ms)
✓ move one sentence backward - multiline - period (78ms)
✓ move one sentence backward - multiline - previous line
✓ move one sentence backward - multiline - previous line - period (58ms)
VimState
✓ de-dupes cursors
✓ cursorStart/cursorStop should be first cursor in cursors
text editor
✓ insert 'Hello World'
✓ replace 'World' with 'Foo Bar'
✓ delete `Hello`
✓ delete the whole line
✓ try to read lines that don't exist
util path
separatePath
✓ can separate drive letter path on Windows
✓ can separate UNC path on Windows
✓ can separate relative path on Windows
✓ can separate absolute path on posix
✓ can separate relative path on posix
resolveUri
✓ posix
✓ win32
1588 passing (4m)
4 failing
1) Mode Visual
Screen line motions in Visual Mode
Can handle 'gk':
Document content does not match.
+ expected - actual
blah
-r
+ur
hur
at newTest (out/test/testSimplifier.js:47:34)
2) Mode Visual
Screen line motions in Visual Mode
Can handle 'gj':
Document content does not match.
+ expected - actual
blah
duh
-dur
+ur
at newTest (out/test/testSimplifier.js:47:34)
3) Mode Visual
Screen line motions in Visual Mode
Preserves cursor position when handling 'gk':
Document content does not match.
+ expected - actual
blah
-wo
+wot
at newTest (out/test/testSimplifier.js:47:34)
4) Mode Visual
Screen line motions in Visual Mode
Preserves cursor position when handling 'gj':
Document content does not match.
+ expected - actual
blah
-wort
+wot
at newTest (out/test/testSimplifier.js:47:34)
Error: 4 tests failed.
Error: 4 tests failed.
Exit code: 1
Done
Failed
Failed to run tests
npm ERR! Test failed. See above for more details.
TravisBuddy Request Identifier: a28cf580-cf58-11ea-9502-ed86ad10d0d8
This is currently failing because of this https://github.com/VSCodeVim/Vim/commit/c54465dce242d0cf8f7b9d7e73b6ae59e48bb18e#commitcomment-40913575 I've made the proposed change here so that the tests would pass.
@J-Fields So I've made a push now with the fix for the 'tabs' situation. You can check the last commit message to know what the changes are.
There are two things that I was in doubt which were:
- Should I keep a
vimState.desiredColumn
along side the new `vimState.desiredVisualColumn'?- From what I looked this desiredColumn was only used in situation where you wanted to preserve the desiredColumn and in all those situations they needed to work with the new 'desiredVisualColumn' so I opted to only keep that
- Should I keep the
Position.getDownWithDesiredColumn(column)
along side the newPosition.getDownWithDesiredVisualColumn(column)
?- I opted to only keep the visual column version for the same reasons as stated in point 1. There were only a couple situations where that function was being used without wanting to go to
desiredVisualColumn
that were to go to the end of line and I change those to begetDown().withColumn(lineEnd.character)
since I think it makes more sense.
- I opted to only keep the visual column version for the same reasons as stated in point 1. There were only a couple situations where that function was being used without wanting to go to
This is still missing tests. That I'll try to add when I have the time. The way you mentioned for the tests might not work to test the situations where you have a config for tabSize
set but then vscode overrides that by detecting the document because that only happens when opening an existing file with a different tabSize
than the one on configuration.
If you can try checking it out to at least see if you catch some obvious cases that I might have missed.
What is the current status of this?
Would also love to see this merged!
If there is a working, testable fix for this rather annoying, persistent issue, could someone PLEASE get it implemented and merged? Thank you.
@J-Fields how far is this from merge-able? No promises (None, really) but I may have time to help if we know what needs to be done.
It seems to be the only major gap in softwrap navigation (esp. with visual block mode) & is around the top 10 issues sorted by :+1: while maybe being the lowest hanging fruit