I’m hoping someone can help me with this.

I was holding my laptop while I had a vile open in vim, and I slipped, mashing a bunch of keys on the keyboard by mistake.

After doing this, I can’t type the ~ character anymore. Anytime I try to type it, it jumps the text putting focus on the line the cursor was on where I was trying to type.

I’ve searched and had no luck finding out what I did to cause this behavior. I also tried looking through the vim manpage and couldn’t find any info there either.

Hoping someone knows what the heck I did. Thank you!

  • huf [he/him]@hexbear.net
    link
    fedilink
    English
    arrow-up
    0
    ·
    17 hours ago

    vim will load some other rc file if it cant find your ~/.vimrc. check what it has loaded with :scriptnames

    also, try starting vim in a brand new terminal with vim -u NONE and check if it’s still happening.

    • harsh3466@lemmy.mlOP
      link
      fedilink
      arrow-up
      0
      ·
      16 hours ago

      I think I fixed it with a variation of turning it off and on again. I deleted vim, deleted ~/.viminfo and deleted /etc/vimrc, then reinstalled. So far it’s working as expected.