VIM A-Z: A Text Object for Every Letter in the Alphabet

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ม.ค. 2025

ความคิดเห็น • 19

  • @shreewatsa
    @shreewatsa 2 ปีที่แล้ว +3

    New subscriber here. Thank you for such an indepth video. These type of content is very rare.

    • @semicolonsons
      @semicolonsons  2 ปีที่แล้ว +2

      Thank you so much! I think there are too many beginner vim videos out there so I wanted to cater for vim users who have a bit more experience under their belt (that and newbies who aren't afraid of diving into the deep end heheh)

    • @health_doc
      @health_doc หลายเดือนก่อน

      Great

  • @avimehenwal
    @avimehenwal 2 ปีที่แล้ว +2

    Such and amaing video (Y) Kudos for clearly breaking down and organizing all the use-cases for text-objects. I think I am gonna some of these myself :D
    Very information video. Thankyou for sharing

  • @hugohabicht6274
    @hugohabicht6274 2 ปีที่แล้ว +6

    Here are some timestamps, makes skipping to the right part an awful lot easier ;-)
    0:00 - Intro
    0:41 - a = Arguments
    1:58 - b - Brackets (various)
    2:51 - c - Comments
    3:22 - d - Docstrings
    3:42 - e - Examples (Code Fences)
    4:29 - f - Functions
    5:48 - g - Git Chunk
    7:04 - gn - Go Next (Aside)
    7:43 - h - Left Character
    8:13 - i - Indentation Level
    9:28 - j - Junction of next word segment
    11:18 - k - Opposite of j
    11:25 - l - Character object to right
    11:57 - m - Modified
    12:30 - n - Number
    12:54 - o - Objects (classes)
    13:59 - p - Paragraph
    14:33 - q - Quotes
    15:03 - r - README headers
    15:29 - s - Sentences
    16:16 - t - Tags
    17:19 - un - Universe
    17:50 - v - Value (in key-value pairs)
    18:41 - w - Word
    19:13 - x - HTML/XML attributes
    19:44 - y - Y-dimension blank lines
    20:07 - z - Key in key/value pairs

  • @stevenewbank
    @stevenewbank ปีที่แล้ว

    Brilliant video, my mind has expanded. Cheers 🍻

  • @heroe1486
    @heroe1486 10 หลายเดือนก่อน +1

    Some of those can now be done with treesitter and thus don't require an external dependancy

  • @piet1982
    @piet1982 2 ปีที่แล้ว +1

    Excellent stuff! Thank you!
    Side note, what’s your file finder plugin?

  • @Software-ns9li
    @Software-ns9li 3 หลายเดือนก่อน

    where can i get this markdown file, i was busy copying it over but you skipped past some parts of the document i couldnt see

  • @HoloDaWisewolf
    @HoloDaWisewolf 2 ปีที่แล้ว

    Nice video, thank you

  • @ishaankapoor933
    @ishaankapoor933 ปีที่แล้ว

    How to achieve the bracket part?

  • @vilijanac
    @vilijanac 2 ปีที่แล้ว +2

    Very useful explanation. Thanks. I prefer the inbuilt as much as possible.
    You don't have motion 'gs' for replace word, maybe use something else?
    vnoremap gs "zy:s/z//g
    nnoremap gs "zyiw:s/z//g

    • @jkinsella
      @jkinsella 2 ปีที่แล้ว

      Ooooh what does this do? How does its behaviour differ from `caw` built in?

    • @heroe1486
      @heroe1486 10 หลายเดือนก่อน

      ​​@@jkinsellaDidn't check his code but there are plugins like mini.operators or substitute.nvim that add a replace operator.
      The c will juste remove a piece of text and put you in insert mode, those plugins allow you to yank some text then do something like si) instead of vi) then p. And on top of that the substituted text isn't getting copied.

    • @health_doc
      @health_doc หลายเดือนก่อน

      Use capital P in visual to paste without changing the copied register

  • @421sap
    @421sap 11 หลายเดือนก่อน

    In Jesus' Name Amen ✝️