开发者

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

开发者 https://www.devze.com 2022-12-13 12:07 出处:网络
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.

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

精彩评论

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