Developing new drugs costs millions and can lasts decades, especially because of clinical trials. Without IP protection, the company making the effort to find new drugs would go bankrupt (the price of newly found drugs must also pay for other drug research that did not succeed). I don’t know how it works in the USA, in France the system is that that the IP protection lasts 10 years after releasing the drug on the market, then other companies can copy it. And during this 10 years period, the price is regulated by the government.
I used to be a vim fan but now I only use it for modifying files over SSH. Other than that I code with an IDE, you can’t beat all the plugins and linters with a in-terminal editor. A colleague still codes in emacs and its code is dirty af.