Format Code The Vim Way

Опубликовано: 27 Март 2026
на канале: Gavin Freeborn
9,837
253

This tutorial is focused on introducing you to using vim's built in formatting features such as the !, gq, and = operators.

Let me know what you think and if there is anything specific you would like to learn about.

Formatting without moving:
https://gist.github.com/romainl/d2ad8...
---------------► Wanna Support Me? ◀︎---------------
Github:
https://www.github.com/sponsors/gavinok
Patreon:
  / creator-home  

---------------► Wanna Checkout My Dots? ◀︎---------------
Vimrc:
https://github.com/Gavinok/dotvim
Dotfiles:
Coming Soon
---------------► Come Join The Community◀︎---------------
LBRY:
https://open.lbry.com/@GavinFreeborn:...
Discord:
  / discord  

⏱️TIMESTAMPS⏱️
00:00 Intro
00:50 Existing Plugins
01:01 Why You May Not Need Them
01:13 = Operator
01:23 = Demo
01:46 How = Works
02:52 Enter gq
03:17 gq Demo
03:54 How gq works
04:55 Setting formatprg
08:47 ! Operator
09:53 Conclusion
10:06 Limitations
10:48 Outro