Тёмный
No video :(

Extreme Vim Macros for Traditionalist Catholics 

Luke Smith
Подписаться 206 тыс.
Просмотров 54 тыс.
50% 1

This is how you do pretty advanced actions in vim automatically. In this case, I want vim to automatically insert footnotes taken from the end of a text file in the appropriate place for them to be formatted automatically in a LaTeX document. This would be a huge chore for a Wordcuck or someone using a text editor or IDE without sufficient macro capabilities, but vim makes it pretty easy. Keys are displayed with screenkey.
My website: lukesmith.xyz
Please donate: lukesmith.xyz/donate
Get all my videos off RU-vid: videos.lukesmith.xyz
or Odysee: odysee.com/$/invite/@Luke:7
BTC: bc1qk2dz5x6m3sjnkzf0mhlz9pmsz4xfjtjmfrgm9d
XMR: 48jewbtxe4jU3MnzJFjTs3gVFWh2nRrAMWdUuUd7Ubo375LL4SjLTnMRKBrXburvEh38QSNLrJy3EateykVCypnm6gcT9bh
OR affiliate links to things l use:
www.vultr.com/?ref=8384069-6G Get a VPS and host a website or server for anything else.
www.epik.com/?affid=we2ro7sa6 Get a cheap and reliable domain name with Epik.
brave.com/luk005 Get the Brave browser.
odysee.com/$/invite/@Luke:7 View my videos on Odysee and get a bonus for joining.
www.coinex.com/register?refer... Get crypto-rich on Coinex. Get reduced exchange fees for 3 months.
www.coinbase.com/join/smith_5to1 Get crypto-rich on Coinbase. We both get $10 in Bitcoin when you buy or sell $100 in cryptocurrencies.

Опубликовано:

 

1 мар 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 319   
@LukeSmithxyz
@LukeSmithxyz 3 года назад
URGENT! Read this: lukesmith.xyz/deletion
@BER-mb7bt
@BER-mb7bt Год назад
404. what was it?
@Ryan-rn3sq
@Ryan-rn3sq 3 года назад
Every day we get closer to the inevitable TempleOS in-car screencast video.
@dannywithnuggets
@dannywithnuggets 3 года назад
lmfao
@warecamel
@warecamel 3 года назад
Default runescape character maximizing his prayer level
@NEO97online
@NEO97online 3 года назад
pause at 0:11
@flexagonpark5467
@flexagonpark5467 3 года назад
He can't. You have to bury bones for that, and bones are bloat.
@highvisibilityraincoat
@highvisibilityraincoat 3 года назад
hilarious and original
@Gornius
@Gornius 3 года назад
"Advanced applied laziness" goes straight into my dictionary.
@RobsonLanaNarvy
@RobsonLanaNarvy 3 года назад
I first experimented this by automating deb package instalations when every deb file drops in a folder
@AnalyticMinded
@AnalyticMinded 3 года назад
Does this work for any document or just Papal encyclicals?
@rjj5574
@rjj5574 3 года назад
Deus vult
@CaioMGA
@CaioMGA 3 года назад
it is not compatible with anglican papers
@gambinalvarezjesusdavid3454
@gambinalvarezjesusdavid3454 3 года назад
Classical 2009 notepad tutorial question.
@soundsoflore
@soundsoflore 2 года назад
no
@cheriley
@cheriley 2 года назад
you may now stop reading forever
@Christopher-ew7jw
@Christopher-ew7jw 3 года назад
This video is the best recommendation the RU-vid algorithm has ever given me... I use Vim. I attend TLM.
@stefanRastocky
@stefanRastocky 3 года назад
I know, right
@ronald556
@ronald556 3 года назад
Based and blessed
@remigoldbach9608
@remigoldbach9608 3 года назад
I subscribed to his channel because of this video
@davidbhaskara6880
@davidbhaskara6880 3 года назад
Man I hope my parish will have more TLM. ViM That's hardcore bro...
@remigoldbach9608
@remigoldbach9608 3 года назад
@@davidbhaskara6880 The Pope seems not to enjoy the “traditionalists”
@tokiomutex4148
@tokiomutex4148 3 года назад
"advanced applied laziness" for those familiar with functional programming this may sound like a performance improvement
@joriskbos1115
@joriskbos1115 3 года назад
Or advanced infinite data structures
@chadwilson3323
@chadwilson3323 3 года назад
As a traditionalist Catholic and avid vim user, I was very excited and very confused when this popped into my feed! I was actually going to do this as a personal project to learn LaTeX more... great work!
@NEO97online
@NEO97online 3 года назад
0:11 Luke prays to God before beginning the vim ritual
@gambinalvarezjesusdavid3454
@gambinalvarezjesusdavid3454 3 года назад
I couldn't control myself, this made me laugh.
@Mawkler
@Mawkler 3 года назад
An even more beautiful way to do this is to make the macro recursive, i.e. in your case add @f at the end of your recording. You then just have to call the macro one single time and it will keep calling itself until it can't find a match.
@ultrahalf
@ultrahalf 3 года назад
"advanced applied laziness", sounds like major I wanna do
@johnflood9818
@johnflood9818 3 года назад
I was astounded to come across this video! I am a 73 year old Catholic religious brother living in Nairobi and as a way of forcing my self to read a bit "actively" I recently finished going through "Fratelli Tutti", an encyclical of Pope Francis published last October, using vim to give a heading to each and every paragraph in order to force me to read attentively! It has 288 footnotes! I had finished reading it but I was planning when I got a bit of free time (I'm not quite retired) to do EXACTLY what you showed in the video! Thanks
@olafcreed4726
@olafcreed4726 3 года назад
You are very catholically blessed to know all the commands to do something like this
@JeffGeerling
@JeffGeerling 3 года назад
Now write a macro to scan all the encyclicals and find which one has the most footnotes. And which has the lowest biblical-reference-to-other-docs-reference ratio.
@WorBlux
@WorBlux 3 года назад
That's dangerously close to original research
@DorperSystems
@DorperSystems 3 года назад
Pope Francis's Encyclicals for sure
@ionichi
@ionichi 3 года назад
Would you use R to do a statistical analysis on the data and then PyPlot charts and graphs? He probably already has a script that'll format and copy to his web site(?).
@enthdegree
@enthdegree 3 года назад
pretty unorthodox to be changing settings from default
@iamnotgandalf9308
@iamnotgandalf9308 3 года назад
Unorthodox, heh
@user-to9lk8ix6h
@user-to9lk8ix6h 3 года назад
It’s the Filioque all over again!
@seronymus
@seronymus 3 года назад
Luke begome Orthodox when?
@vlmath314
@vlmath314 3 года назад
The screen is slow because of the lazyredraw option not being set.
@window.location
@window.location 3 года назад
Yes ! Vim diesel is back
@Blazingwaffles123
@Blazingwaffles123 3 года назад
As a young trad catholic who uses vim, this is perfect
@cherubin7th
@cherubin7th 3 года назад
I was thinking the same
@swirl6996
@swirl6996 3 года назад
>As a young trad catholic unlimited cringe
@chelonianegghead274
@chelonianegghead274 3 года назад
@@swirl6996 no u
@Blazingwaffles123
@Blazingwaffles123 3 года назад
@@swirl6996 As opposed to an old boomer atheist? Lol
@sittingnut1
@sittingnut1 3 года назад
@@swirl6996 your comment is indeed "unlimited cringe".
@JohnLadan
@JohnLadan 3 года назад
One improvement you might not have known: the back-tick (`) moves the cursor to a mark, while a single quote (') moves the cursor to "the beginning of the line containing the mark". So you could have avoided an extra search: ``ca(\footnote{} instead of ''\()la\footnote I only discovered that recently after over a decade of using vim.
@MarekKowalczyk
@MarekKowalczyk 3 года назад
Next up: "The Modernist Heresy of Kakoune".
@jameswright4732
@jameswright4732 3 года назад
From what I've seen, Kakoune isn't bad, it's just late to the party.
@vison360
@vison360 3 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-FXCitlsA7eQ.html imagine waiting for macro to finish in Kakoune ;D
@atimholt
@atimholt 3 года назад
@@vison360 You can turn off mid-macro redrawing in Vim. I have no idea why that isn't the default behavior, to be honest.
@pribeirorib
@pribeirorib 3 года назад
God bless you, Luke
@TechChiefYT
@TechChiefYT 3 года назад
Bro 10/10 title and thumbnail
@ajay--yadav
@ajay--yadav 3 года назад
One of the things I like about your channel is that it covers mainly linux fundamentals. Using your videos, I got to learn about tools/commands like pipes, du, cat, sxhkd, window managers, rsync. Thanks for this. Please keep uploading such videos.
@remline
@remline 3 года назад
Love it! Those professionally typeset encyclicals look wonderful.
@AndyRufasto
@AndyRufasto 3 года назад
Nice! i just been trying to do someting similar with mp3 tags, this help me a lot. Try: set lazyredraw To improve performance, so that you dont see every execution of the macro but the whole document changed.
@aim__freakz8499
@aim__freakz8499 Год назад
can you tell me what you changed in the mp3 tag? can you use vim to edit them? also to bulk edit them?
@julianj8609
@julianj8609 3 года назад
Based and vaticancatholic pilled.
@comicsans1689
@comicsans1689 3 года назад
I'm glad to know that Luke and his audience are fans of MHFM and Brother Dimond. Brother Peter Dimond's conviction and thoroughness in his videos single-handedly convinced me to want to convert to traditional Catholicism. I just wish that I had a non-Novus Ordo parish in my area.
@julianj8609
@julianj8609 3 года назад
@@comicsans1689 same here. We are truly blessed to have them. I hope more people discover them.
@godsarmy8746
@godsarmy8746 3 года назад
@@comicsans1689 most of the things Peter says are solid. Yet I just can't get on board with his views on baptism of desire.
@comicsans1689
@comicsans1689 3 года назад
@@godsarmy8746 That's a good point. I'll have to do more research on the matter, but I can't let my feelings get in the way of the truth.
@godsarmy8746
@godsarmy8746 3 года назад
@@comicsans1689 it's not a matter of feeling. Too much to discuss on YT comments though. I suggest reading what the early church fathers thought on the matter. I also suggest reading the sections on sanctifying grace defined by the Catechism, and how salvation is by grace. All the best.
@MrBogfrog
@MrBogfrog 3 года назад
This is the best title to a video I've ever seen in my life.
@cryptixai1012
@cryptixai1012 3 года назад
Brilliant, thanks for sharing these skills.
@stu3131
@stu3131 3 года назад
Just finished watching Mount Angel's morning mass when this popped up in my feed.
@Hammid
@Hammid 3 года назад
Absolute FIRST. God bless you!
@christopherlewis1948
@christopherlewis1948 3 года назад
Nice work earning your indulgences .
@remigoldbach9608
@remigoldbach9608 3 года назад
I subscribed to your channel thanks to this video. TLM for Life !
@baruchmoura
@baruchmoura 3 года назад
Beautiful work
@connormichalec
@connormichalec 3 года назад
Dude---- Absolute CHAD. INSTANTLY subbed VIM TLM FTW
@vftdan
@vftdan 3 года назад
Using `m instead of 'm also sets horizontal position. You also probably could use If I had such task I would probably save the footnotes to a dict variable and run a substitute command with submatch() function
@SantiagoGonzalez-sl5lj
@SantiagoGonzalez-sl5lj 3 года назад
I still remember the video where you taught us how to rename files using bulkrename ranger command and macros. That one's pure gold. It's called "how vim makes my daily life easier"
@altrogeruvah
@altrogeruvah 3 года назад
A rabbit hole I never thought I would go down into, but here we are
@marciomaiajr
@marciomaiajr 3 года назад
Atheists will have to resort to microsoft word and control-c/control-v.
@vejeke
@vejeke 3 года назад
Linus Torvalds ☞ Atheist Richard Stallman ☞ Atheist Eric S. Raymond ☞ Atheist What the hell are you talking about?
@afonsorafael2728
@afonsorafael2728 3 года назад
Even tho I use emacs daily, I still end up doing a lot of text processing/text correction with vim it is indeed one the best time savers ever. I even formatted a lot of things on my girlfriend's Thesis with vim
@zzzzzz...1221
@zzzzzz...1221 2 года назад
Luke! You are my friend!
@ViniciusProvenzano
@ViniciusProvenzano 3 года назад
Really cool practical use of vim lore
@1toneboy
@1toneboy 3 года назад
So disappointed this wasn't in GROFF
@Investmentmessiah
@Investmentmessiah 3 года назад
From a trad perspective I have to ask: why no troff?
@overclucker
@overclucker 3 года назад
How can a latex sinner repent so easily?
@hemlockoutdoors
@hemlockoutdoors 3 года назад
What do you think of the right to repair movement and Louis Rossman? Seems like a pretty important thing.
@liquidsnake6879
@liquidsnake6879 3 года назад
People shouldn't buy anything they can't repair tbh, Apple fooled me once they're never fooling me again, i actively boycott companies that defy right to repair, if they want me to buy more hardware include new features
@seronymus
@seronymus 3 года назад
@@liquidsnake6879 its hard these days tbh
@botbeamer
@botbeamer 3 года назад
Beautiful
@sheebeedeebee2571
@sheebeedeebee2571 3 года назад
Love macros Love God Simple as
@serratedwarstep
@serratedwarstep 3 года назад
Linux command for traditionalist Catholic Priests: *touch*
@hehehepaitachato9184
@hehehepaitachato9184 3 года назад
VIM may be praised.
@pward17
@pward17 3 года назад
Dear sweet lord of text editors. We throw ourself upon your mercy.
@ionichi
@ionichi 3 года назад
This is awesome. Using computers for what they were promised to do for us - handle the tedious, repetitious, human error-prone, grunt-n-groan tasks.
@ganainm01
@ganainm01 3 года назад
Mutavit scriptionem per vim!
@timothyvandyke9511
@timothyvandyke9511 3 года назад
"Advanced Applied Laziness"... I'm interested
@macarc985
@macarc985 3 года назад
You can type g; to go back to where you were before instead of ''f e.t.c. It's a really useful command :)
@macarc985
@macarc985 3 года назад
It goes back to the place you made the last change.
@chewycq7899
@chewycq7899 3 года назад
You can use :g/pattern/norm @f That would execute the macro on all lines matching the pattern. Learned that recently
@chewycq7899
@chewycq7899 3 года назад
@@uctm0fgwitdtbrp1-zqlm9sq6 considers what's next as "typed" e.g. if you wanted to delete all lines matching the patter debugger: :g/debugger/norm dd doc is at :help normal ( haven't read it though 😬)
@chewycq7899
@chewycq7899 3 года назад
@@uctm0fgwitdtbrp1-zqlm9sq6 another good trick is, if you already have highlighted the pattern because of an active search with / or because you used * or # over the word, you can omit the pattern like: :g//norm dd
@pandumulyamuhammadsyah
@pandumulyamuhammadsyah 3 года назад
Sir, it's great
@nep7164
@nep7164 3 года назад
Ey, not sure if you read comments or not, but i would have a Linux question, so, from time to time i need to do some repetitive mouse movement and keyboard presses, i tried automating them in python but the thing is that I would need to write atleast 20 different scripts for them, so i wanted to ask that if you know a way where i can just do a shortcut, it records and plays back with another shortcut till i don't stop it with another shortcut, so, like a macro recorder
@abuk95
@abuk95 3 года назад
Cool stuff! How do you actually deal with typing \#1{#2} (where #1 is TeX command and #2 argument) all the time? I saw you had autocommands in old .vimrc like: autocmd FileType tex inoremap ,bf \textbf{}T{i autocmd FileType tex inoremap ,sec \section{}2kf}i But now there is nothing like this. I even setup LARBS to check, but nothing with leader key worked. Did you go back to typing \{} manually? For me, it is kinda pain..
@teacon7
@teacon7 3 года назад
Wow. I thought it'd be difficult, but the keystrokes were actally just: "W o L o L o L o ". The footnotes are now converted!
@atimholt
@atimholt 3 года назад
I find it much better to work with raw html if I'm going to do similar things with content off the internet. I also tend to use the `:global` command instead of macros: past runs are kept in your command history, and it's much easier to edit failed attempts (especially with `q:`).
@blackberry8692
@blackberry8692 3 года назад
We didn't see the preamble, how come it compiles correctly. In other words please share the preamble. Nice document and nice video. Hope to see \LaTeX{} and Vim videos more. Thank you.
@salmanabedin1313
@salmanabedin1313 3 года назад
Something tells me Luke is going through all this trouble to print them out as he likes and read it boomer style. 😆
@_kneasle
@_kneasle 3 года назад
Anyone know what PDF viewer this is? It looks way more minimalist than my current one...
@Amaraticando
@Amaraticando 3 года назад
Slowness might be caused by lazyredraw and probably due to copying the deletions to the clipboard.
@dreamlockk7527
@dreamlockk7527 3 года назад
just to know, could i have added @f at the end of the macro in order to make it fully automatic?
@grahamjoss4643
@grahamjoss4643 3 года назад
nifty my dood
@mathematicalninja2756
@mathematicalninja2756 3 года назад
Vim Diesel is back wohoo
@flip4119
@flip4119 3 года назад
based
@supertoad
@supertoad 3 года назад
Nice!!!
@bioemiliano
@bioemiliano 3 года назад
Damn, I'm not even Christian but this *sweet Vim tutorial* made me reconsider it.
@bbseal6174
@bbseal6174 3 года назад
christian channel
@ZyklonV
@ZyklonV 3 года назад
I half expected you to present recursion (calling @f from within recording of @f).
@g00zik97
@g00zik97 3 года назад
Lucky Luke Smith edits text faster than his shadow
@joshuajohnson3296
@joshuajohnson3296 2 года назад
This is perfect for what I'm doing. So if searching for any integer inside parentheses is ([0-9]\+), how would one search for and replace any letters in parentheses or brackets? Like (a) (b) (c)
@gayusschwulius8490
@gayusschwulius8490 2 года назад
Look at the regex section of the VIM manual, it's explained there.
@invisiblehand6482
@invisiblehand6482 3 года назад
Sloth is one of the seven capital sins, sonny!
@raulvalagon
@raulvalagon 3 года назад
Luke, less trouble if you just use the package sepfootnote... your notes on a different file
@jameswright4732
@jameswright4732 3 года назад
But what if you mess-up somewhere in there? I do this kind of thing every once in awhile, and I only get it right 50% of the time (for very simple stuff). The other 50% it takes at least 10 recordings of a macro to find one that actually works.
@grzegorzg944
@grzegorzg944 3 года назад
Deo gratias!
@sfadhjkl4112
@sfadhjkl4112 3 года назад
What extension are you using for vim bindings in Brave browser?
@guigagude
@guigagude 3 года назад
Luke, how do you print these books you edit with LaTeX? And do you publish them? I remember you said something about translating old latim books and stuff alike. I think a video about that could be cool. I recently started playing with manual book-binding and am editing a book to print myself.
@LukeSmithxyz
@LukeSmithxyz 3 года назад
I am hopefully in the finishing stages of this project and will go public soon. There are a lot of print-on-demand companies and I plan on using them.
@rodrigogarcia1208
@rodrigogarcia1208 3 года назад
Deo Gratias
@andresrocco3381
@andresrocco3381 3 года назад
Luke this might be a dumb question but I'll throw it anyway. Are you Catholic or just reading some Papal encyclicasl? If not, what denomination are you?
@megaoyi1Wins
@megaoyi1Wins 3 года назад
Missed you so much! Plz DON'T leave doing the tutorials again.
@ihatememes3621
@ihatememes3621 3 года назад
Pax Domini tecum, Luke.
@seronymus
@seronymus 3 года назад
Lucae*
@arrtemfly
@arrtemfly 3 года назад
in my experience the biggest vim pain is scrolling horizontally through a big paragraph with no linebreaks
@N0zer0
@N0zer0 3 года назад
use this in your vimrc: set display+=lastline nnoremap k v:count == 0 ? 'gk' : 'k' nnoremap j v:count == 0 ? 'gj' : 'j'
@arrtemfly
@arrtemfly 3 года назад
@@N0zer0 that's really smart! thank you a lot.
@overclucker
@overclucker 3 года назад
hint: macros can be saved for future sessions.
@Som-yc4ql
@Som-yc4ql 3 года назад
Guys, sorry for stupid question but, what terminal font is he using?
@gradientO
@gradientO 3 года назад
as salamu alaikum! That was a good tutorial
@nativechatter999
@nativechatter999 3 года назад
"LaTec" This gonna be good
@lingaoxiao9808
@lingaoxiao9808 3 года назад
Is there any way to save the macro, so that we can modify the macro like plain text
@lingaoxiao9808
@lingaoxiao9808 3 года назад
NVM, I just found it out in 'Vim Awesome' github.com/chamindra/marvim.git
@timothyvandyke9511
@timothyvandyke9511 3 года назад
also low key curious why LaTeX instead of Groff?
@lain_os5385
@lain_os5385 3 года назад
You can do more with LaTeX
@yochem9294
@yochem9294 3 года назад
Groff is not as beautiful as LaTeX and not the industry standard in academia
@markocontrol5401
@markocontrol5401 3 года назад
Vim is the only based Text Editor
@LukeSmithxyz
@LukeSmithxyz 3 года назад
ed is the standard editor.
@scalawagmax
@scalawagmax 3 года назад
Ed, man! !man ed
@postychan8466
@postychan8466 3 года назад
Video on the Holy C compiler pls
@whig3982
@whig3982 3 года назад
Very vimtuous
@renamorcen
@renamorcen 3 года назад
amen
@greenmug6436
@greenmug6436 3 года назад
that's such a nicely customized status bar you got there. what did you use to make it?
@nykal1510
@nykal1510 3 года назад
dwm-blocks
@greenmug6436
@greenmug6436 3 года назад
@@nykal1510 thank you.
@tootall849
@tootall849 21 день назад
How do you do this in Emacs? Asking for a friend.
@OfficialAnekito
@OfficialAnekito 3 года назад
Woooooooooooooooah, dude, you are a Catholic! Respect 100 *grabs Rosary*
@jonphinguyen
@jonphinguyen 3 года назад
Luke is a "RadTrad"? Just when I thought he couldn't get any more based.
@bbseal6174
@bbseal6174 3 года назад
think hes more of an ortho. not really associated with any church in particular, just apostolic christianity. think hes said that if he were to be catholic he'd have to be a sedevacantist :(
@perpetualcollapse
@perpetualcollapse 3 года назад
Aight then.
@turtleb01
@turtleb01 3 года назад
Can do this in Nano. "wow vim so special much chad energy"
@spaceghost0813
@spaceghost0813 3 года назад
Trad Chad curates words of Holy Dads
@stanasjes979
@stanasjes979 3 года назад
The Vatican website may be awful in every other way, but at least it's lightweight
Далее
*Literally* TIME TRAVELING in Vim (and other tips)
5:33
Vim Tips You Probably Never Heard of
12:11
Просмотров 116 тыс.
ТЫ С ДРУГОМ В ДЕТСТВЕ😂#shorts
00:55
Ever Noticed How "Weird" Modern TV and Film are?
12:32
Просмотров 123 тыс.
AI Will Make (Has Made) the Internet Mediocre...
12:14
Vim Can Save You Hours Of Work
20:52
Просмотров 169 тыс.
A Vid in which Vim Saves Me Hours & Hundreds of Clicks
10:23
Yep. Imagination is Demonic. (Unironically)
8:42
Просмотров 82 тыс.
I WILL NOT GO TO RESTAURANTS IN 2023.
8:21
Просмотров 54 тыс.
Vim Alchemy with Macros
11:00
Просмотров 48 тыс.
I Will Be Throwing Away My Computers.
11:56
Просмотров 96 тыс.
Vim Will Actually Change Your Life.
9:33
Просмотров 77 тыс.
Hang In There, Kathy!
6:12
Просмотров 1,1 млн