Private-equity firm Vista Equity Partners agreed to buy educational-software maker Pluralsight Inc., according to people familiar with the matter.