VIM - I DIDNT KNOW THIS!!! | Prime Reacts

Ғылым және технология

Recorded live on twitch, GET IN
/ theprimeagen
Become a backend engineer. Its my favorite site
boot.dev/?promo=PRIMEYT
This is also the best way to support me is to support yourself becoming a better backend engineer.
Reviewed video: • Problem Solving with V...
By: / @denvaar
MY MAIN YT CHANNEL: Has well edited engineering videos
/ theprimeagen
Discord
/ discord
Have something for me to read or react to?: / theprimeagenreact
Kinesis Advantage 360: bit.ly/Prime-Kinesis
Hey I am sponsored by Turso, an edge database. I think they are pretty neet. Give them a try for free and if you want you can get a decent amount off (the free tier is the best (better than planetscale or any other))
turso.tech/deeznuts

Пікірлер: 260

  • @ibrahimhussain3248
    @ibrahimhussain32485 ай бұрын

    The guy looks half asleep. Imagine him fully awake

  • @rich1051414

    @rich1051414

    3 ай бұрын

    Looks like Terry Davis on his meds.

  • @cyberneticbutterfly8506
    @cyberneticbutterfly85065 ай бұрын

    Can we just have a moment of appreciation for how self-documenting regular expressions are? 🤣🤣🤣🤣

  • @dcascato

    @dcascato

    5 ай бұрын

    thats how regex is suppose to work, you twinkle until it works then hopes it somehow makes sence

  • @awesomedavid2012
    @awesomedavid20125 ай бұрын

    Watching Twitch and their short attention spans freak out over normal speed talking is so funny

  • @OdyseeEnjoyer

    @OdyseeEnjoyer

    5 ай бұрын

    PRIME USE X2 DPEED I'M BORED

  • @quintit

    @quintit

    5 ай бұрын

    i dont think ive watched a video under 1.75x speed in probably a year. When i turn it off everyone sounds so weird. I even use an extension to adjust in increments of 0.1 and up to 16x

  • @mikereynolds1368

    @mikereynolds1368

    5 ай бұрын

    I usually use 1.5 myself but 1.75 would prolly work. It sounds like people are drunk when I watch at 1x. It gets rough when Prime goes to 1.5x himself cause now I'm watching what he's watching at 3x. Prime is already a fast talker too. About the only thing i dont like about watching at a faster speed is when videos pop something on screen ans it goes away so fast.

  • @quintit

    @quintit

    5 ай бұрын

    that is annoying yea, the other thing is when someone has an accent u have to slow the video down sometimes.@@mikereynolds1368

  • @maruseron

    @maruseron

    5 ай бұрын

    sounds like a skill issue, man. it seems like a waste of time to wait for someone to say things you're several thoughts ahead of. nothing to do with attention span

  • @hey_james
    @hey_james5 ай бұрын

    How does this man manage a family, a job at Netflix and stream several times every day! 😂

  • @amber1862

    @amber1862

    5 ай бұрын

    purpose, sleep, water and exercise

  • @dixztube

    @dixztube

    5 ай бұрын

    No life is ever what it seems. But yes highly productive and pretty intelligent - don’t know anything about his personal life but he’s likable and I hope it is well as his professional

  • @saurav1096

    @saurav1096

    5 ай бұрын

    just watch his lecture 🤣 he is a totally different man there

  • @yajobaby

    @yajobaby

    5 ай бұрын

    Cocaine

  • @123Handbuch

    @123Handbuch

    5 ай бұрын

    He once said he just works very fast at Netflix. :p

  • @sp3ctum
    @sp3ctum5 ай бұрын

    This video is literally like Pumping Iron for vim nerds. Amazing.

  • @bastardferret869
    @bastardferret8695 ай бұрын

    There's always "a way" to do it with an RE. The question always is which of your coworkers is going to put a hit on you for finding it.

  • @jaredteaches894

    @jaredteaches894

    5 ай бұрын

    Unless it’s a context free grammar

  • @ocotillo8291
    @ocotillo82915 ай бұрын

    He is probably using vi symlinked to vim in compatible-mode because the Bill Joy base vi doesn't have exe or norm commands.

  • @VudrokWolf
    @VudrokWolf5 ай бұрын

    The regex part was very easy to understand thanks to my 3 years working constantly with regex 😂it was hell but I learned

  • @lugs1505
    @lugs15055 ай бұрын

    Sleepy Tom Cruise pulling some Mission Impossible stuff in Vim here.

  • @wojciechorzechowski2211
    @wojciechorzechowski22115 ай бұрын

    It is the moment when you think "yeah, I am actually good at programming..." and you find this mofo on SATURDAY EVENING! WTF! I LOVE IT!

  • @Yupppi
    @Yupppi5 ай бұрын

    I swear this guy is one of those f bros on another level. He's too smart for mere mortals.

  • @ChilenonetoYoutube
    @ChilenonetoYoutube5 ай бұрын

    I love how he says that will not use regular expressions, but ended up using one as a main component of the solution.

  • @ajinkyakamat7053
    @ajinkyakamat70535 ай бұрын

    Prime out chadded by a real chad. Lol

  • @krestofelo8757
    @krestofelo87575 ай бұрын

    Loved the video very much! Thanks for showing such cool vim guys! Subscribed to him thanks to you.

  • @LouisWhittington
    @LouisWhittington5 ай бұрын

    This is what regular devs feel like when watching a “Principal” dev work.

  • @jterry92
    @jterry925 ай бұрын

    Denvaar videos are the best! I'd love to see you reacting to more of them.

  • @k-yo
    @k-yo5 ай бұрын

    I absolutely just love prime's excitement with this type of shit.

  • @tuhkiscgibin6627
    @tuhkiscgibin66275 ай бұрын

    Today I learnt that I can open tar files in vim

  • @beanstable
    @beanstable5 ай бұрын

    His titlebar on the terminal window says nvim so I think he's aliasing to `vi` like I do, because some habits die hard

  • @sutirk

    @sutirk

    5 ай бұрын

    It could genuinely be vi at the end because his configs were different, no linenumber, no colorscheme etc

  • @XxZeldaxXXxLinkxX

    @XxZeldaxXXxLinkxX

    5 ай бұрын

    I have it aliased just because it's much easier to type it out

  • @mihalydozsa2254
    @mihalydozsa22545 ай бұрын

    I did something like this with excel array formulas :-D It searched trought a column with one character each where could it find the characters from a different range and give back the address of the first row every time where it starts to match the other range.

  • @dipereira0123

    @dipereira0123

    5 ай бұрын

    BRO EXACTLY I just commented that, this is a 30 second problem for a analyst using excel, but it would take me a week until I figure out how to do it using vin and coding coding regular expressions What sucks is that using Excel it will not be scalable. My first thought was to split each character in a cell line, in the next column do the same but moving the characters 1 position up, same for the next 2 Columns, 5th column concatenate line coluns A...D, 6th column the line number last make another sheet, character aaaa to zzzz and make a Procv on sheet1 F:F (6th column) There, you got all the situations where it happened and where it happened

  • @stefanplusplus917
    @stefanplusplus9175 ай бұрын

    "well actually, there is a python module that solves this particular problem"

  • @ashishlotake217
    @ashishlotake2175 ай бұрын

    this is how i feel most of the time when i watch prime videos, `wtf is going on` `how do we get here` `where were we`

  • @cougar-town
    @cougar-town5 ай бұрын

    We love Vim! 😺

  • @hashtagPoundsign
    @hashtagPoundsign5 ай бұрын

    That was amazing!!! Thank you Mr. Ibecomeemotionallyinsecureagen for that!

  • @Mawkler
    @Mawkler5 ай бұрын

    It's odd to me how he's such a pro at super advanced Vim usage, but he also uses d$ instead of D

  • @darthcabs

    @darthcabs

    5 ай бұрын

    Yeah, I see all kinds of people saying that the way of saving and quitting vim is :qw, and they just don't know about :x

  • @galnart5246
    @galnart52465 ай бұрын

    Terry Vim Davis

  • @TheKer7
    @TheKer75 ай бұрын

    The speed in which Prime resorts to the naughty 'rrRRrrr' is of Olympic level.

  • @waldschratler
    @waldschratler5 ай бұрын

    The foo\(bar\)\@ is called negative Lookahead and a more common notation is foo(?!bar)

  • @joaomarcoscarvalho10

    @joaomarcoscarvalho10

    5 ай бұрын

    Cool, I used to use the later one

  • @markmcdonnell

    @markmcdonnell

    5 ай бұрын

    Scrolled endlessly to see if I needed to comment exactly this. Looks like you've done my job for me. Well done 🙂

  • @waldschratler

    @waldschratler

    5 ай бұрын

    ​@@markmcdonnellthe primeman doesn't like these (my) smartass comments anyways, I believe 😅. However I found it important to mention because this notation confused me a lot, and I used to work a lot with Regexes and usually be able to understand them. Funnily enough this also shows a big downside of regex, different flavours and notations in every tool/language 😢

  • @FilippsBlog
    @FilippsBlog5 ай бұрын

    Prime knows Vim

  • @mirceamaierean2287

    @mirceamaierean2287

    5 ай бұрын

    Vim knows Prime

  • @tobiadeniji6630

    @tobiadeniji6630

    5 ай бұрын

    Prime is Vim😂

  • @T25de
    @T25de5 ай бұрын

    10:00 😂😂😂😂😂 Let’s talk about it Maybe understanding will come to us!

  • @gryg666
    @gryg6665 ай бұрын

    Imagine this guy is the person that inverviews you on this task :D

  • @gmartineza8775
    @gmartineza87755 ай бұрын

    I didn't know Sharlto Copley was a vim enjoyer

  • @krunkle5136
    @krunkle51365 ай бұрын

    Dude looks like the "oh shit I'm sorry" guy when he was woken up and typing at his computer shirtless.

  • @meiliyinhua7486
    @meiliyinhua74865 ай бұрын

    I'm vaguely curious if this could get optimized: would cut/paste all but first 4 chars be faster than copy/paste and then delete all but first 4 chars as separate commands?

  • @ETBCOR
    @ETBCOR5 ай бұрын

    Simply glorious

  • @TheLummen.
    @TheLummen.5 ай бұрын

    I love this !

  • @fahimanayet
    @fahimanayet5 ай бұрын

    I need a capcha to be sure that he's not a robot. He's insane!!!!😶‍🌫

  • @hammerheadcorvette4
    @hammerheadcorvette45 ай бұрын

    Vim things I learned in 1 video. . . A LOT !

  • @dave6012
    @dave60125 ай бұрын

    Mr sunshine on my god damn shoulders JOHN DENVAAR

  • @thomasphilipmeadows4569
    @thomasphilipmeadows45695 ай бұрын

    This guy out there beating vim while I’m sat here with my vim session stuck in a state I can’t get out of because my cat stood on my keyboard.

  • @alphabasic1759
    @alphabasic17595 ай бұрын

    as a huge fan of VI/VIM, this is the best video ever

  • @demolazer
    @demolazer5 ай бұрын

    Straight up dark sorcery

  • @pesterenan
    @pesterenan5 ай бұрын

    This was so effing incredible that almost forced me to go back to VSc*de. I felt dumb as heck hahahhahahaha

  • @duckmcduck007
    @duckmcduck0075 ай бұрын

    T-shirt says: Never think about quitting, when you've already begun.

  • @marble_wraith
    @marble_wraith5 ай бұрын

    That editor is the best programming language

  • @themartdog
    @themartdog5 ай бұрын

    He definitely should have used the capital D

  • @jamesnicolas5323
    @jamesnicolas53235 ай бұрын

    Tip: You can use :v instead of :g to run the command on every line that doesn't match. So instead of using the \@! thing, you could just do :v/\d/d also :v acts the same way "grep -v" works.

  • @jamesnicolas5323

    @jamesnicolas5323

    5 ай бұрын

    A couple of other search tips I use often but don't see much in the wild. If you do a search with /, and later want to use the same search in an :s or :g command, you can do :s// or :g// and it will use the / register automatically If you want to append, surround, or prepend a search using the :s command, you can do so with the \0 capture group instead of wrapping with \(\) For example: :%s/foo/\0bar/g will append bar to all instances of foo.

  • @denvaar

    @denvaar

    5 ай бұрын

    This is true. :v would have been the more natural solution. I don’t think I knew about it at this point.

  • @TurtleKwitty

    @TurtleKwitty

    5 ай бұрын

    @@jamesnicolas5323 For reference for others, the \0 is actually the full match not a capture group per say that's why it works but you also need to be careful about erasing negative captures correctly if you're doing some wacky shenanigans with groups and using a \0 together

  • @Yotanido

    @Yotanido

    5 ай бұрын

    @@denvaar It's the dude from the video! :D Personally, I also would have used visual block mode to trim everything down to 4 characters, but that wouldn't be as nice to transfer to the final solution file.

  • @z0nx
    @z0nx5 ай бұрын

    This guy just overdosed on VI and survived. Incredible

  • @diambarabas2624
    @diambarabas26245 ай бұрын

    That was a video version of a mikedrop.

  • @v0id_d3m0n
    @v0id_d3m0n5 ай бұрын

    Crazy that it's _just about_ understandable

  • @unusedTV
    @unusedTV5 ай бұрын

    Make this Vim script black background and green text and you have perfect Hollywood hacker code - only this time it actually does something arguably useful.

  • @QckSGaming
    @QckSGaming5 ай бұрын

    Gotta respect the cook. Jeez man

  • @shahzadakhtar1186
    @shahzadakhtar11865 ай бұрын

    Can someone send the link for the advent of code video where he (prime) solved this problem?

  • @IndigoTeddy

    @IndigoTeddy

    5 ай бұрын

    Check this video's description for the video that Prime is reacting to.

  • @radomane

    @radomane

    5 ай бұрын

    I want to see the Prime video where he solves this problem

  • @thesaintseiya

    @thesaintseiya

    5 ай бұрын

    this took a while to find :D kzread.info/dash/bejne/h2VqtNCphpeee7Q.html it's about the part two of this task

  • @shahzadakhtar1186

    @shahzadakhtar1186

    5 ай бұрын

    @@thesaintseiya thanks man, you are a real g.

  • @thegreatken2073
    @thegreatken20735 ай бұрын

    This is called a sliding window problem

  • @thomasmadjedi854
    @thomasmadjedi8545 ай бұрын

    i lost it when he said "it's the perfect tool"

  • @michaelns9887
    @michaelns98875 ай бұрын

    What is the name of the video where you solved this problem?

  • @asdfasdfasdf1218
    @asdfasdfasdf12185 ай бұрын

    At this point one wonders why one doesn't simply use variables or registers to solve this.

  • @ThisGuyRocksLikeCrazy
    @ThisGuyRocksLikeCrazy5 ай бұрын

    You actually don't need that crazy regex at the end. Once you have all the lines with 4 characters, you can create another macro to identify duplicates for one line and then apply it to all lines. You go to the first column, copy the current character to register A, then press dt followed by register A. (I'm not quite sure how to do that, but it should be possible. I'm watching this on my phone at 2am). Then press L and repeat the above steps for three times. Apply the macro on all lines. Then delete the first 3 characters from all lines. The first line with an entry will be the one you're looking for. Remember the line number. Undo theb delete operation and jump to that line to see the actual letters

  • @aidanbrumsickle
    @aidanbrumsickle5 ай бұрын

    I would do a regex where the first is a capture group of any single character, then the next 3 are capture groups of negative matches of \1 | \2 | \3 etc. probably not great performance to say the least. On mobile so I can't test it but I'll give it a shot later and edit this comment

  • @aidanbrumsickle

    @aidanbrumsickle

    5 ай бұрын

    Off the top of my head, /\(.\)\(.\&\1\@!\)\(.\&\%(\1\|\2\)\@!\)\%(.\&\%(\1\|\2\|\3\)\@!\)/

  • @bopcity5785

    @bopcity5785

    5 ай бұрын

    nice. (.)(?!\1)(.)(?!\1|\2)(.)(?!\1|\2|\3)(.) seems to work. negative lookaheads for the negative matches, just cant be capturing themselves since they dont consume

  • @swapstar

    @swapstar

    5 ай бұрын

    I would be curious if it works

  • @tobiasfedder1390

    @tobiasfedder1390

    5 ай бұрын

    Why not /(\w)\1{3}/ am I missing something here?

  • @tusharkuntawar6170
    @tusharkuntawar61705 ай бұрын

    That guy is amazing

  • @coaql
    @coaql5 ай бұрын

    Mind through out the video "Suprise! suprise!"

  • @u9vata
    @u9vata5 ай бұрын

    There were multiple problems in current AoC too that you could solve with rawdog vim - I did one with macros only and saw two other that looked pretty simple at first sight actually. A macro not only can play a macro - but record a macro :D. I also have similar vid on my channel (but its in Hungarian - so sorry guys). Its so crazy how differently people go with their minds ways. I would have just duplicated the line and then delete first char and then do that macro a lot....

  • @PeterVerhas

    @PeterVerhas

    5 ай бұрын

    What are your super powers? I can use vim. I speak Hungarian.

  • @kuhluhOG
    @kuhluhOG5 ай бұрын

    16:20 I am not sure you can even do this on some keyboard layouts. For example to type a "[" with a german keyboard layout you need to press "AltGr + 8".

  • @wolizuka

    @wolizuka

    5 ай бұрын

    I ditched EU kbd pretty fast after getting into programming, everything just is more suited to qwerty

  • @kuhluhOG

    @kuhluhOG

    5 ай бұрын

    @@wolizuka Maybe, but I need to type with german keys often (e.g. Umlaute), so that's not really an option for me.

  • @TurtleKwitty

    @TurtleKwitty

    5 ай бұрын

    @@kuhluhOG [super+space] ;3 (or alt+space for windows)

  • @wolizuka

    @wolizuka

    5 ай бұрын

    @@kuhluhOG i use a regular QWERTY kbd but with an international config that allows me to type stuff like é ï etc dont know for german specifically tho

  • @Ring0--
    @Ring0--5 ай бұрын

    Regex would have been my first thought as well.

  • @gagaxueguzheng

    @gagaxueguzheng

    5 ай бұрын

    I love vim and I love regex but vim's regex is somehow so different to "normal" pcre that I normally don't use complex regex in vim.

  • @Susensio
    @Susensio5 ай бұрын

    What is the video from 2 years ago about this advent of code problem?

  • @jollyJedi
    @jollyJedi4 ай бұрын

    I feel like if I ever needed to do this for work, I seriously have made soooooo many mistakes in my life and I seriously need to re-evaluate my choices

  • @tw1t611
    @tw1t6115 ай бұрын

    He looks so young, but must be at least 70 years old. XD

  • @OdyseeEnjoyer
    @OdyseeEnjoyer5 ай бұрын

    dude got me flabbergasted

  • @FrankJonen
    @FrankJonen5 ай бұрын

    What if the solution he's looking for is a 4 char sequence that's a 2 char move away instead of a full 4 char move? Like an overlap between the search blocks?

  • @ObiWanKenobi_IceNation

    @ObiWanKenobi_IceNation

    5 ай бұрын

    He's deleting a single char each time, so that's accounted for 😉

  • @robertk4493

    @robertk4493

    5 ай бұрын

    The blocks are only stepped by 1, not by the full width. Only the first character was removed

  • @ragectl
    @ragectl5 ай бұрын

    Just randomly adding the minus one, because math 😂

  • @abc123evoturbobonker
    @abc123evoturbobonker5 ай бұрын

    12:11 Yeeeees 🤣

  • @x1expert1x
    @x1expert1x5 ай бұрын

    Lately I've been solving 90% of the leetcode problems using vim. I forgot how to program as a result. help

  • @PurpleDaemon_
    @PurpleDaemon_5 ай бұрын

    Is this the thinner actor from the "mother of a virus ripping through a major company file" film?

  • @kuglepen64
    @kuglepen645 ай бұрын

    Vim-slapped.

  • @Abo7
    @Abo75 ай бұрын

    That was less impressive than i expected, i thought he'd do it in vim without regex

  • @cougar-town
    @cougar-town5 ай бұрын

    Vim is what we crave.

  • @hodicha
    @hodicha5 ай бұрын

    Haha , drop the mic, reminds me the guy who uses vanilla vim for c coding you reviewed few weeks ago

  • @danielschmider5069
    @danielschmider50695 ай бұрын

    this looks more complex than just flipping the bits in the RAM manually tbh

  • @ellisonleao
    @ellisonleao5 ай бұрын

    how can i find that t-shirt?

  • @robertfox4114
    @robertfox41145 ай бұрын

    9:54 Yah, I did some mining off camera

  • @joshuaworman4022
    @joshuaworman40225 ай бұрын

    "im ready to fire you if i see this", based.

  • @body2pgl
    @body2pgl5 ай бұрын

    hahahahahahahh bro u made me cry laughing hahhahaha, man did use vi 😂😂😂😂😂😂😂😂 I'm going to learn react too 🤣🤣

  • @zaxiik
    @zaxiik5 ай бұрын

    damn that is hot

  • @T25de
    @T25de5 ай бұрын

    Do perfect tools only exist if n Vim

  • @jazzochannel
    @jazzochannel5 ай бұрын

    slash-% means extended regex, no?

  • @thom1218
    @thom12185 ай бұрын

    Content like ...this... that gets you to pause the video and figure it out yourself because you know it'll only take a few minutes is great! If it gets you thinking... you probably have something to learn and indeed I did.

  • @AK-vx4dy
    @AK-vx4dy5 ай бұрын

    Everybody told me that Emacs is operating system... at the same time VIM... hold my keyboard I'm going back to machine code... i'm way to stupid for this....

  • @AlexanderVlasov
    @AlexanderVlasov5 ай бұрын

    Negative look-ahead and look-behind are pretty normal in PCRE world, but gods, why does vim reinvents PCRE in some twisted manner? Why do ve have nomagic / magic / verymagic, why can't we have verymagic enabled on every RE?

  • @LightningMcCream
    @LightningMcCream5 ай бұрын

    DONT EXECUTE NORM HE DIDNT DO ANYTHING @7:50

  • @Luclecool123
    @Luclecool1235 ай бұрын

    He probably aliased vi

  • @JimWitschey
    @JimWitscheyАй бұрын

    I want you to react to this guys bass fishing video

  • @brentsaner
    @brentsaner5 ай бұрын

    You actually can do it with regex, but you'd need to use backrefs which (IIRC) Vim's regex engine doesn't support. (And that would just *find* the unique sequence, I don't know if Vim could get you the *location* of it from the match.) Edit: lol d'oh; I guess it does support backrefs

  • @freyja5800

    @freyja5800

    5 ай бұрын

    you can use lookbehinds, combined with lookaheads & backreferences, to find just the last character of a sequence of unique characters though at least with the very simple scheme I used as a short proof of concept, neovim refused to match anything after a certain length, Including wildcards (though that is a limitation of the engine, not of regex in the abstract)

  • @Yotanido

    @Yotanido

    5 ай бұрын

    You're actually not entirely wrong about vim not supporting backrefs. Vim has two regex engines, a fast one, and one with more features. Backrefs are not supported by the fast one, so it has to switch to the slower one. (The fast regex engine can only do actual regular expressions. If the language it is parsing is not regular, it can't do it.)

  • @brentsaner

    @brentsaner

    5 ай бұрын

    ​@@YotanidoWild! I use vim (not neovim- I'm in sysops so it's mostly on servers themselves rather than local) and I had no idea vim had two separate RE engines!

  • @thatmg
    @thatmg5 ай бұрын

    Hit them with the /d 15:10

  • @MeriaDuck
    @MeriaDuck5 ай бұрын

    10:05 That is a monster! 😂 Is this still strictly regex or is this more powerful in the sense of regex vs context free grammar?

  • @PeterVerhas

    @PeterVerhas

    5 ай бұрын

    It is still a regex executed by an FSA. Cf grammar needs Turing machine.

  • @snoopy8870
    @snoopy88705 ай бұрын

    why he used vi at the end and not vim?

  • @immatys
    @immatys5 ай бұрын

    "vím" actually means "i know" in Czech

  • @____r72
    @____r725 ай бұрын

    F is for family

  • @DarkStar666
    @DarkStar6664 ай бұрын

    I think this is regex will directly find the first sequence of 4 characters that are different in *vim*: /\v(.)(%(\1)@!.)(%(\1|\2)@!.)(%(%(\1|\2)|\3)@!.)/ \v -- enable 'very magic' (fewer \s) (x) - capturing group . - match any single character %(x) - non-capturing group x@! - negative lookahead assertion x|y - "or" between two 'atoms', note: I tried %(\1|\2|\3), doesn't work this is pretty straight-forward really but it was annoyingly difficult to get it working due to oddities with vim pattern (mainly that last one) It reads as: find any character, followed by any character that is not the first character, followed by any character that is not the first or second character, followed by any character that is not the first or second or third character

  • @AK-vx4dy
    @AK-vx4dy5 ай бұрын

    So in VIM regex we escape characters that we want to work like special not other way around ?

  • @atijohn8135

    @atijohn8135

    5 ай бұрын

    vim (by default) uses the Basic Regular Expression scheme, where the .*[]^$ characters are treated like special characters without a backslash, and every other special character (e.g. (){}|+?) must be preceded by a backslash. you can make more characters "special by default" by typing \v at the beginning of the regex, or make even the basic characters require a backslash by typing \V at the beginning of the expression

  • @duncanw9901
    @duncanw99015 ай бұрын

    Apparently VIM doesn't even have macro counters 😂 - Emacs user