Other cheat sheets:
g_
- like$
but without newline character.0
- begining of the line^
- first word in the line
zM
- close allzR
- open allza
- togglezo
/zc
- open/close non-recursively
dt<character>
- delete til character, e.g.dtc
- delete til next 'c' occurence.:setlocal ff=unix
- replace Windows line endings with Linux line endings.
c-u
,c-d
. half-page up, half-page down.{
,}
- next empty line, previous empty line.
- Ctrl + r - redo
- i - insert before cursor
- a - insert after cursor
>
,<
(in visual mode) - shift line rightwards or leftwards."+y
- copy to system clipboard(neovim).- Copy text from registr to vim command line: enter command mode, press
:
, pressctrl+r
, press"
.
Search text selected in visual mode:
- Select text
- Yank
q/p
- for details about 'q' see vim help on command-line window.