Thursday, July 23, 2020

Re: Visual selection via :global

Hi folks, I have a markdown file containing a couple of headings and
some pointers as shown below.

```
# Heading 1
- pointer 1
- pointer 2
- pointer 3

## Heading 2
- pointer 4
- pointer 5
```

I wanted to visual select all pointers only. So what I did was
`:g/^-/normal V` but it only selects the last pointer (i.e. pointer 5).
Shouldn't it select all pointers?

Is this normal behaviour? And what am I missing here?

Also according to `:h :normal` while writing `:normal {commands}`,

{commands} cannot start with a space. Put a count of
1 (one) before it, "1 " is one space.

I did not quite get the meaning out of it. Can someone help me?

Thanks
--
Manas
CSAM Undergraduate | 2022
IIIT-Delhi, India

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200723221818.eghokxeehxssrpsl%40nitro-5.

No comments: