Skip to content
0:00 / 0:00

#vim#code-formatting

Format Code The Vim Way

Gavin Freeborn

15K subscribers • 27 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Gavin Freeborn
  • Linked in the descriptionGavinok/dotvim

Beginner. No background in the topic needed.

10K views5 years ago1 recommendation

Tools and practiceVim, Emacs and editors

Gavin Freeborn introduces Vim's built-in formatting operators like equal, gq, and bang to format code without external plugins.

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: gist.github.com/romainl/d2ad868afd7520519057475bd8e9db0c ----------------► Wanna Support Me? ◀︎---------------- Github: github.com/sponsors/gavinok Patreon: patreon.com/creator-home ----------------► Wanna Checkout My Dots? ◀︎---------------- Vimrc: github.com/Gavinok/dotvim Dotfiles: Coming Soon ----------------► Come Join The Community◀︎---------------- LBRY: open.lbry.com/@GavinFreeborn:d?r=FVxxdjxLmbpPS5K4EdMsLjBjkxv… Discord: discord.gg/JJk5KKU ⏱️TIMESTAMPS⏱️ Intro Existing Plugins Why You May Not Need Them = Operator = Demo How = Works Enter gq gq Demo How gq works Setting formatprg ! Operator Conclusion Limitations Outro

Why it's here

1 person recommends this

What people say. Recommended as a great introduction to Vim's built-in code formatting capabilities.

u/a-concerned-motherin r/vim • Recommends

Format Code The Vim Way