Want to invest like Warren Buffett? Buying companies with solid competitive strengths for the long term is the way to go.