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"`
精彩评论