Fork me on GitHub
#vim
<
2021-08-24
>
noisesmith17:08:42

replaying https://vim-adventures.com to polish my vi-fu and was reminded that "b" is a synonym for the "(" text object (on normal keyboards it's much easier to type) - eg. (foo (|bar baz)) dib -> (foo (|)) (where "|" is cursor) (foo (|bar baz)) dab -> (foo |)

metal 4
mefryar18:08:05

Thanks for sharing! I didn't know that.

noisesmith18:08:19

it's amazing how far utilizing text-objects goes toward having lisp-friendly editing (and the fact that you can combine counts and actions with objects to form complex commands has a nice lispyness IMHO - "lots of operations on a few objects" etc.)

👍 3
walterl17:08:52

Same for B{

metal 7
noisesmith17:08:51

t for tags is also super useful, sure beats learning a html dsl in your editor

walterl17:08:14

Oh, it's built-in! I thought that was vim-surround territory.

noisesmith17:08:29

good to see another text object fan, it's the enlightened way to vi

😎 9
dave18:08:58

I use cit, dit etc. regularly. So useful!

walterl18:08:44

iil (from the vim-motion-sickness) for the current indented block, has become a staple of mine

noisesmith17:08:41

also vi-adventures is worth the money, especially if you already play puzzle games