2 ms·
I didn't realize that you could do something like: vim <(find . | grep coolfile) until just the other week, pretty dang useful.
by foota 10y ago
I didn't realize that you could do something like:
vim <(find . | grep coolfile)
until just the other week, pretty dang useful.
- bgaluszka 10y agoI often use `git grep something | vim -` which puts list of files into vim with line numbers, and then I do `gF` to get to file and particular line.
- foota 10y agoI didn't realize vim supported reading from standard in, thanks!
- dllthomas 10y agoYou can go one further. I have an alias 'cbuf=vim - -ccbuf!' This takes whatever is piped in and loads it into the quickfix list. So I get locations out of anything with lines of the format "file:line: something" or "file:line:col: something". Eg: git grep -n | cbuf
- svckr 10y agoOne of my favorite discoveries as well! I sometimes (rarely) compare archives with: diff <(tar tzf f1.tgz) <(tar tzf f2.tgz) Or diffs of diffs: diff <(git diff --cached) the-patch-alice-proposed