gpt4 book ai didi

vim: 使用 vim-surround 插入单词

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

我使用 surround vim 插件。当我为 \bf 写一个类似于

的单词时
hello w*orld 

(*为光标位置)我用

ysiw}a\bf<space>

得到

hello {\bf *world}

有没有更简单的方法?或者如何自动插入 \bf

最佳答案

我解决了在我的 ~/.vimrc 中添加了这个

let g:surround_42 = "{\\bf \r}"

然后在正常模式下调用word

ysiw*

编辑

对带

的整行有效
yss*

关于vim: 使用 vim-surround 插入单词,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10406718/

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