Vim Macros Are A Game Changer

preview_player
Показать описание
In this video we look at vim macros and how to use them to speed up our coding speed.

◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚

🌐 Social Media & Contact 🌐

Рекомендации по теме
Комментарии
Автор

pro tip: any time you want to delete two lines use dk or dj. it deletes the line you're on and the line you move into. d is on the left hand and j/k is on the right, so it's super fast, especially compared to "dd dd" (which only works from the top)

slipcurve
Автор

Hey! Thx for your video man, specially being so open about letting the macros fail live. It has given me a better feeling of what actually using macros feels like.

enriquemillanvalbuena
Автор

For your number increment macro you could also visual block the 1s and g<C-a> on them for incrementing all numbers in order. The macros fine for 100s of them but the quick increment is nice too.
Keep doing Vim stuff!!

RolandHaller
Автор

They totally are. At my job we collapse SQL migrations every release cycle and using vim macros made converting a huge sql script to generate dozens of tables to a list of strings take a couple minutes as opposed to 30+ manually haha.

nacdan
Автор

vim macros could be useful in C++ where you have to want to write declarations inside the class, and definitions outside the class.
You can record a macro that copies the declaration, and creates an empty definition.
Then you can repeat it for all such methods.

priyeshagarwal
Автор

you can do arithmetic operations with vim: in insert mode press ctrl-r and then =

slipcurve
Автор

i am watching it on aug 27 2024. it is still so much relevant and easy to understand. A worth-it video to watch. :)

RohitKumar-kulq
Автор

Wow, very cool, need more complex macros, vim is the best editor

SergiuBurduja-yl
Автор

Really useful! But couldn’t help but feel like introducin this to my team will leave them saying “that could be done w python”

ralphlagos
Автор

Cool Microphone.
Is it still available?
Excuse me for off topic.

underrated_mono
Автор

Hey dude,

Would you be able to show us how to create a user form for example which acts as a front end entry that uses Google Sheets as a database?

That would be cool.

thecodfather
Автор

How can one format text in vim? More than indenting; like I would like my code to follow the doom document; 1 space inside brackets amongst others. As pr example: func myFunc( parameter: Int ) {} I hate the way Apple XCode reduces legibility by func myFunc(parameter: Int) {} I know I can make macros for this, however there should be a way to [ab]use LSP.

gjermundification
Автор

I have NVIM v0.9.5, but when I input [ vim.cmd('set number') ], and try to source it, it doesn't allow me to. I installed neovim through homebrew. Has anyone encountered this?

Zippythrone
Автор

any tips on getting motivation to learn vim?

taze
Автор

Why you don't create a repo for this video, to take the dummy data for test?

SergiuBurduja-yl
Автор

Nice one, too bad the first example can be solved with g+Ctrl-a, makes it less satisfying to solve with a macro

Blattealkiller
Автор

how to use qa, q etc in anaconda jupiter while typing should we use 'control' and then type q and a kindly clarify it

rajm
Автор

How to get the index numbers like 4321234 in vim ?

vrishabh
Автор

Coding speed? No one codes at 60 wpm. You’re not writing an essay. Coding is slow and deliberate. So what if you saved 20 seconds not repeating yourself when you send 20 min googling your problem.

sinistergroupon