<?php
function test(){
echo "hello the world!";`
}
?>
进入vim编辑器
将光标放在函数中间,然后输入
va{Vy
即可复制一个整个函数
Place the cursor somewhere in my method,
va{
to visually select the the code block,
V
to turn the selection from character-wise to line-wise,
y
to yank
如有问题,可以QQ搜索群1028468525加入群聊,欢迎一起研究技术
转载请注明:vim复制一个php函数 出自老鄢博客 | 欢迎分享