Skip to content
프로젝트

leerob/vim-for-react-devs

GitHub에서 보기

소개

Vim을 빠르게 익혀 생산성을 높일 수 있도록 구성한 짧은 강좌입니다.

학습 및 교육

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
-1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Vim for React Developers

by leerob

This mini-course is designed to help React developers learn Vim commands and apply them to real-world scenarios by fixing and editing React code. The course focuses on the most helpful Vim commands when working with React and JavaScript.

https://vimforreactdevs.com

Prerequisites

Before starting this course, you should have neovim installed and configured:

  1. Install Neovim and dependencies
    • macOS: brew install nvim fzf ripgrep
    • Windows: choco install -y neovim git ripgrep wget fd unzip gzip mingw make
  2. Follow this Neovim quickstart

That's it! Download the course file and start neovim with nvim course.tsx.

Course Content

View the completed course file.

Cheat Sheet

Modes

  • Normal Mode: Default mode for navigation and commands (Esc)
  • Insert Mode: i, I, a, A (exit with Esc)
  • Visual Mode: v (character), V (line), Ctrl+v (block)
  • Command Mode: :

Navigation

  • Basic: h (left), j (down), k (up), l (right)
  • Words: w (next word), b (previous word), e (end of word)
  • Lines: 0 (start), ^ (first non-whitespace), $ (end)
  • Scrolling: Ctrl+d (down), Ctrl+u (up)
  • File: gg (top), G (bottom)

Actions

  • d: Delete
  • c: Change (delete and enter Insert Mode)
  • y: Yank (copy)
  • v: Visual selection

Motions

  • i: Inside
  • a: Around

Objects

  • w: Word
  • p: Paragraph
  • t: Tag
  • q: Quote (or ', ", ```)
  • b: Bracket (or (, {, [, <)

Examples

  • dw: Delete Word
  • cw: Change Word
  • yy: Copy Entire Line
  • y$: Copy To End Of Line
  • diq: Delete Inside Quotes
  • ca{: Change Around Braces
  • ci(: Change Inside Parenthesis
  • yap: Yank Paragraph
  • dab: Delete Around Brackets
  • yiw: Yank Inside Word
  • ciw: Change Inside Word
  • vit: Visual Selection Inside Tag
  • ct": Change To Next " (leaving the ")
  • df|: Delete to Next | (including the |)

Miscellaneous

  • .: Repeat Last Command
  • gd: Go To Definition
  • f<char>: Find Character
  • t<char>: To Character
  • ZZ: Save & Close Vim
  • u: Undo
  • Ctrl+r: Redo

관련 프로젝트 살펴보기

불러오는 중…