120 - (145/328)
Useful default vim things I didn't know about:
:ls = list buffers :pwd = print working directory
Normal mode:
; = repeat last f, F, t, or T
, = repeat last f, F, t, or T in opposite direction
g~ = Toggle case
gu = lower case
gU = upper case
gv = reselect last visual selection
. = Location of last change
^ = Location of last insertion
Insert mode: = delete word = delete back to start of line {register} = paste from register = = insert expression register (calculator)
Insert normal mode: = go to normal mode for one command
Visual mode: o = move to other end of selection
Windows: :on[ly] = o = close all other windows
Saving in nvim with root: :w !sudo te
As a general rule, we could say that the d{motion}
command tends to work
well with aw
,as
, and ap
, whereas the c{motion}
command works better withiw
and similar.