84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
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('.')