|
|
|
|
|
by Darkstar
5223 days ago
|
|
I think I disagreed with just about every point on that post. Most of the issues the author describes can be fixed by using your brain and the tools at your disposal. Your IDE adds metadata to your directory? SVN and git allow you to ignore files and directories. It's not in the GUI menu so I can't do it! You're doing it wrong. I can't pipe from my IDE to another program! What? My IDEs create files and these files and their output can be piped wherever. Maybe I'm in the minority but I've never felt the need to pipe directly from vi to anything else. I don't even know how or if that would work. I've piped the file I edited to something else before...which I can still do whether I use an IDE or not. The whole blog post was just silly. |
|
{range}!command will pipe content from vim to another command and back. Examples:
Sort contents of lines in place
:'<,'>!sort
Replace lines with calculated results (ie, line contains "2+3*5" and gets replaced with "17")
:'<,'>!bc