Basics controls for NeoVim.

NeoVim Cheat Sheet

Moving arround

https://neovim.io/doc/user/usr_03.html#usr_03.txt https://neovim.io/doc/user/usr_29.html#usr_29.txt

  • Move cursor
    • h j k l : left down up right
  • Though words
    • w b next prev word beggin
    • e next word end
    • ge prev word end
  • Start & end of line
    • $ goto end of line
    • ^ goto first non blanc char of line
    • 0 goto starts of line
  • Moving to char
    • f_ goto next _char
    • F_ goto prev _char
    • t_ goto before next _char
    • T_ goto before prev _char
  • Parenthesis match
  • Navigate through file
    • :_ Warp to line _number
    • _G Warp to line _number, mark starting position
    • gg Warp to start of file
    • G Warp to end of file
    • _% Warp to _percent of the file
    • H M L Warp to top middle low of the window
    • CTRL-u CTRL-d Scroll up down
  • Move viewpoint
    • CTRL-e CTRL-y scroll down up
    • zz Center screen to line cursor
  • Search for a string
    • / ? search front backward
    • n N next prev iter
    • * # search for next prev word under cursor
    • \< \> mark start end of word
    • ^ $ match start end of line
  • Jump into marks
    • `` Jump back and forward the last mark
    • CTRL-o Jump from older marks
    • CTRL-i Jump to newest marks (Not true for Chad)
    • '_ Jump to mark or history
  • Visual mode
    • CTRL-v Column mode
    • o O Change corner

Selectors

  • a Arround
  • i Inner

Copy, past and delete

  • y p Copy past
  • d Copy and delete
  • "* (prefix) Copy or past from clipboard
  • x X Delete char under before cursor

Text edition

  • I A Insert mode at start end of line
  • R Replacement mode
  • CTRL-o Normal mode command from edit mode

Command line

  • CTRL-b CTRL-e Go back end of cmd line
  • CTRL-w Delete back word
  • CTRL-u Delete line
  • q: Open history, press entre on line to exec
  • :!_ Exectute the shell _cmd
  • :r !_ Write shell _cmd result in buffer

Registers

  • "_ Specify a register, use any copy or past cmd then

Special chars

  • :digraphs List special chars
  • CTRL-v _ In insert mode, add the special char _code
  • CTRL-k_ In command edition, add the special _char