Reindenting — Vim Commands you NEED TO KNOW #9

preview_player
Показать описание

We've all been there. You've pasted code and it's messed up the indentation.
How do we indent a single line or block of code? Better yet, how about the whole file?

In this short, we cover how to do it all using a built-in vim command.

Let's get after it.
Рекомендации по теме
Комментарии
Автор

Liked the Q&A with this tip.
Liked and commented on this short to let YouTube know more people should see it!

fliplucky
Автор

I've seen you reindent files in other videos and wondered how you did that! Now I know :D

wkjagt
Автор

I think you have to know that this command works with motion so its even wider than that: =ap, =ib, =3k, =12ap etc. Always try motion with a command it's a good way to be amazed !

mrezechil
Автор

Vim vim vim vim vim...every single is more of a old powerhouse

samnwakefield
Автор

Why do you have a neck tatoo during that one part of the clip? Is super cool, keep it. badass.

editin
Автор

Is the neck tattoo an Easter egg or something?

khanriza
Автор

Might as well remap gg=G into == or is it not a good idea?

monarcas
Автор

When I do gg=G it only throws everything to the left

skrullmania
Автор

I was doing this manually. why did nobody tell me until now

Linkman
Автор

For your own sanity, be very careful doing this in Python source.

davea
Автор

I was just trying to remember gg = G today, are you spying on me 😑, jk thanks for another great video!

Also I can't believe that I never released == takes a

CalvinB_
welcome to shbcf.ru