Don't Nail Too Close to Ends or Edges
Even with an 18-gauge trim nailer, you can split the molding if you're not careful. Avoid nailing less than 3/4 in. from the end of a trim piece or less than 1/4 in. from the edge.
Pin the Miter Before Nailing the Outside
Shim Behind the Miter
If there's a slight gap between the molding and the wall, don't press the trim tight to the wall and nail it; the miter joint might open up. Instead, slip a thin shim between the molding and the wall. Then nail the outside edge of the trim. If the gap and shim are visible, fill the crack with caulk before painting.