Skip to content

Instantly share code, notes, and snippets.

@darkwater
Last active August 29, 2018 02:36
Show Gist options
  • Save darkwater/5cdbc29e061810f2bf485fe4d7232723 to your computer and use it in GitHub Desktop.
Save darkwater/5cdbc29e061810f2bf485fe4d7232723 to your computer and use it in GitHub Desktop.
stuff vscodevim lacks that i noticed, some of which i really missed

" doesn't work in visual block mode
. also repeats cursor movement during visual
:e is relative to current file instead of project root
:e raises error for new files
= needs a syntax-specific formatter; doesn't fall back to a generic one
>2} doesn't work
M behaves incorrectly when scrolled past the bottom of the file
Vp after yy to replace a line inserts a blank line above
^D and ^U scroll without moving cursor
^O and ^I cycle through small movements
^O and ^I history gets corrupted when lines get added/removed
cc, O, r<CR> doesn't indent; maybe related to =
cj changes from cursor position to cursor position + 1 line (instead of whole lines)
gf creates files that don't exist
right click doesn't extend visual range
v from visual line leaves visual mode
>> and << over multiple lines works odd with weird indentation
vip selects "the start of the next line" because lines work differently in vscode

no !ip
no '< '>
no :w !foo
no ^X^L (in insert mode)
no ^^
no g- g+

no 'scrolloff'

copy/pasting visual blocks doesn't work properly
going to the saved history state (eg. load file, make change, undo) doesn't mark buffer as unmodified
no tab completion in ex prompt
returning to a buffer after leaving it from insert mode, returns to insert mode
undo sometimes undoes too much
visual mode doesn't show amount of lines selected

weird behaviour with visual

  • use visual to select something
  • right-click outside selection (cursor will jump)
  • click outside menu to hide it
  • re-enter visual mode with v (cursor will jump back, no visual mode)

# vim: conceallevel=2 concealcursor=n

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment