开发者

How to "search file and send result into vim" in one command?

I used:

find ~/web_p开发者_C百科roject -name "config_*.php" -print | xargs vim

In vim, anything is ok. But, if exit vim, terminal is freeze.

My env: osx 10.6, macvim


vim $(find ~/web_project -name "config_*.php")

frequently I want to check my find command first, so

find ~/web_project -name "config_*.php"
vim $(!!)


You could try (tested on 10.5) ..

$ vim `find ~/web_project -name "config_*.php"`
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜