DEV Community

0xgamma
0xgamma

Posted on

why some people use neovim

I'm use neovim in cli like in my home but im not use Ide before in my live my first try pc is arch linux and neovim So I think I'm the best person to ask

what is special in neovim
1: is so lightweight use ram is just 50-20 mb ram
2: you can config anything in lua language
3: open into terminal ssh protocol edit in code into server
4: vim keybinding like

Vim / Neovim Keybindings Cheat Sheet

Navigation (Normal Mode)

  • h / j / k / l : Move Left / Down / Up / Right
  • w / b : Jump forward / backward by word
  • e / ge : Jump to end of current / previous word
  • 0 / ^ / $ : Go to start of line / first non-blank char / end of line
  • gg / G : Go to first line / last line of file
  • { / } : Jump to previous / next paragraph
  • Ctrl + u / d : Scroll Half-page Up / Down
  • Ctrl + b / f : Scroll Full-page Up / Down

Editing & Insert Mode

  • i / I : Insert before cursor / at start of line
  • a / A : Append after cursor / at end of line
  • o / O : Open new line below / above current line
  • u : Undo
  • Ctrl + r: Redo
  • . : Repeat last editing command

Cutting, Copying & Pasting

  • x : Delete character under cursor
  • dw : Delete word
  • dd : Delete (cut) line
  • d$ / D: Delete from cursor to end of line
  • yy / Y: Yank (copy) line
  • yw : Yank word
  • p / P : Paste after / before cursor

Search & Replace

  • /pattern : Search forward for pattern
  • ?pattern : Search backward for pattern
  • n / N : Jump to next / previous match
  • * / # : Search word under cursor forward / backward
  • :%s/old/new/g : Replace all occurrences in file
  • :%s/old/new/gc : Replace all occurrences with confirmation prompt

Visual Mode

  • v : Character-wise visual mode
  • V : Line-wise visual mode
  • Ctrl + v: Block-wise visual mode
  • y : Yank selection
  • d : Delete selection
  • > / <: Indent / Outdent selection

Text Objects (Inside / Around)

  • ci" : Change inside quotes ("...")
  • ca" : Change around quotes (includes quotes)
  • di( : Delete inside parentheses
  • da( : Delete around parentheses
  • yi{ : Yank inside curly braces

Buffers, Windows & Tabs

  • :w : Save file
  • :q : Quit buffer
  • :wq / :x : Save and quit
  • :q! : Quit without saving
  • :sp / :vsp : Split window horizontally / vertically
  • Ctrl + w + h/j/k/l : Move focus between split windows

you are just use keyboard not touch mouse in more

ya this learning curve so hard but is funny

you want learn more about vim like game to learning vim

start distro like lazyvim quick start distro so this sample blog is my fist blog thank you for reading my blog

Top comments (0)