What exactly are TextObjects and how to utilize them?

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/neovim

Our great sponsors
  • Scout APM - Less time debugging, more time building
  • SonarQube - Static code analysis for 29 languages.
  • SaaSHub - Software Alternatives and Reviews
  • Hello everyone, I stumbled upon this section of nvim.go which basically refers to this github repo and I am a bit confused. From my understanding, the TextObject basically gives a text of code the ability to have a specific context (eg a function, parameter...) and then gives me the ability to navigate it just like I can paragraphs and words. But with the section mentioned above the keybindings are as such ` ["af"] = "@function.outer",` so if I click `a` and then `f`, it won't work as `a` is already insert after cursor and `a` will just put me in insert mode and I'll type in "f". My best guess is that I have to be positioned properly to get the shortcuts to work

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts