项目
在 GitHub 查看
leerob/vim-for-react-devs
关于
帮助你快速上手 Vim 并提高生产力的短小课程。
学习与教育实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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.
Prerequisites
Before starting this course, you should have neovim installed and configured:
- Install Neovim and dependencies
- macOS:
brew install nvim fzf ripgrep - Windows:
choco install -y neovim git ripgrep wget fd unzip gzip mingw make
- macOS:
- 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 withEsc) - 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: Deletec: Change (delete and enter Insert Mode)y: Yank (copy)v: Visual selection
Motions
i: Insidea: Around
Objects
w: Wordp: Paragrapht: Tagq: Quote (or',", ```)b: Bracket (or(,{,[,<)
Examples
dw: Delete Wordcw: Change Wordyy: Copy Entire Liney$: Copy To End Of Linediq: Delete Inside Quotesca{: Change Around Bracesci(: Change Inside Parenthesisyap: Yank Paragraphdab: Delete Around Bracketsyiw: Yank Inside Wordciw: Change Inside Wordvit: Visual Selection Inside Tagct": Change To Next"(leaving the")df|: Delete to Next|(including the|)
Miscellaneous
.: Repeat Last Commandgd: Go To Definitionf<char>: Find Charactert<char>: To CharacterZZ: Save & Close Vimu: UndoCtrl+r: Redo
探索相关项目
加载中…