1 hello 2 world 3 me
For example, I am currently on the second line, how do I execute !echo world?
!echo world
:.w !command命令可以把当前行送到命令的标准输入,比如:.w !cat,当然这不满足你的需求,因为你要的是作为命令行参数,所以你可以这么用::.w !xargs command Okay I know it looks ugly, but it works...
:.w !command
:.w !cat
:.w !xargs command
:echo getline('.')
:.w !command
命令可以把当前行送到命令的标准输入,比如:.w !cat
,当然这不满足你的需求,因为你要的是作为命令行参数,所以你可以这么用::.w !xargs command
Okay I know it looks ugly, but it works...
:echo getline('.')