举个例子
{ label: "Contacts", p|age: "/contacts" },
Run Code Online (Sandbox Code Playgroud)
当光标位于 上时page
,执行vi"
选择, page:
而不是后续引用者/contacts
。
可以采取什么措施来解决这个问题?
好吧,您所描述的行为是预期的并记录在案,因此不存在“问题”可言。
从:help a"
:
Selects the text from the previous quote until the next quote.
Run Code Online (Sandbox Code Playgroud)
你想要的是 Vim 中不存在的东西,即“下一个文本对象”文本对象。
有一些旧的但仍然有效的片段(询问您最喜欢的搜索引擎)以及插件。