this post was submitted on 08 Oct 2023
542 points (89.0% liked)

Programmer Humor

19511 readers
1432 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] puppy@lemmy.world 2 points 1 year ago (1 children)

Awesome! How did you get them in the shell and browser? Now I am also curious.

[โ€“] netchami@sh.itjust.works 1 points 1 year ago

I use the fish shell. In fish, you can just add fish_vi_key_bindings to your config file and now Vi bindings will be automatically enabled when you start fish. For bash, it's set -o vi and for zsh it's bindkey -v. For the browser, you can install plugins like Vimium (Vimium-FF for Firefox) or Tridactyl. I find these to be incredibly useful, I love navigating around websites with j and k or d and u, jumping up with gg and down with G, searching with /, closing tabs with x, reloading websites with r, opening new tabs with t, going back and forward with H and L, etc.