如何在 Vim 里根据缩进添加函数注释?
发表于 : 2012-01-14 23:40
我想知道如何根据缩进自动添加函数的注释,调用的函数该如何写比较好
function AddComment()
call append(line("."),"//")
endf
这样只能添加到行首,却不能通过缩进添加注释,大家有什么好的意见吗
function AddComment()
call append(line("."),"//")
endf
这样只能添加到行首,却不能通过缩进添加注释,大家有什么好的意见吗