gpt4 book ai didi

Vim 提取光标下的路径

转载 作者:行者123 更新时间:2023-12-05 00:04:25 26 4
gpt4 key购买 nike

提取光标下路径的最有效方法是什么?所以如果一行有以下内容:

/some/file /some/other/file /last/file

... 并且光标位于 other 上,我想拉取 /some/other/file。通常,如果它是一个词 yiw 会起作用,但由于该路径包含引号,yiw 只会抽取 other 而不是整个 /some/other/file.

有没有办法有效地提取整个文件名?

最佳答案

A word consists of a sequence of letters, digits and underscores, or a sequence of other non-blank characters, separated with white space (spaces, tabs, ). This can be changed with the 'iskeyword' option. An empty line is also considered to be a word.

A WORD consists of a sequence of non-blank characters, separated with white space. An empty line is also considered to be a WORD.

yiW - 只需要将 W 大写

关于Vim 提取光标下的路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31661577/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com