I am writing in TypeScript and would like commands like ciq
to let me change the inner contents of a template literal. However, the q
part of the command seems to only treat single and double quote marks as valid. Is there any easy fix for this?
Asked
Active
Viewed 91 times
0

romainl
- 186,200
- 21
- 280
- 313

Orr Shalev
- 11
-
Minor correction: [apostrophes](https://en.wikipedia.org/wiki/Apostrophe#Typographic_apostrophe_in_8-bit_encodings) are what you call single quote marks. The characters you show are [backticks](https://en.wikipedia.org/wiki/Backtick). – phd Dec 25 '22 at 20:12
-
1And I think the command "Change Inside Bacticks" `ci\`` works. – phd Dec 25 '22 at 20:18
-
1There is no `iq` text object in Vim. The correct text object is ``:help i` ``, as hinted by @phd. – romainl Dec 25 '22 at 22:24
1 Answers
1
There is i'
for single quotes, i"
for double quotes, and i`
for backticks, but there is no iq
text object in Vim.
If you have a iq
text object, then it must be provided by some third-party plugin, in which case you will have to read its documentation and, possibly, use its issue tracker.

romainl
- 186,200
- 21
- 280
- 313
-
Thank you so much! I meant to mention that I am using the VSCode VIM plugin, I will check what plugins they include by default. – Orr Shalev Dec 26 '22 at 18:54
-
I replaced the Vim tag with the vscodevim tag as this has nothing to do with Vim. – romainl Dec 26 '22 at 21:13