I want to yank or delete the backlink with its double brackets in vim normal mode with one command.
Things I have tried
ya[ - it only grab one bracket with the text in backlink
y2a[ - it works in vs code but unfortunately not in obsidian
yaW - can’t deal with names that have space in them, like [[cursor navigation - vim]]
vf]f] - the cursor should locate at the start of open bracket, and it is actually didn’t behave correctly in my test. (It ignore the second closed bracket and jump to second backlink’s first closed bracket)
Thank you very much for the suggestion; it’s really useful. Now I think I have finally figured out how to ensure that the text object a[ works normally. I need to make sure that the cursor position is right at the beginning of the wiki-link, so that it could include two brackets. Therefore, I have to move my cursor first with 0, ^, b or F[. You’ve helped me clarify this vague notion.
I just got into the Vim world, and I am really loving it. Also looking forward to exploring Vimrc customization once I am familiar with the basic motion and operator.