我想在 vim 命令行上使用 perl 正则表达式。例如,要将当前行上的单词大写,您可以键入:
:s/(\w+)/\u$1/g
vim regex perl
perl ×1
regex ×1
vim ×1