Preheat the oven to 350 degrees and line an 8-inch square pan with parchment paper.
In a mixing bowl, beat the softened butter with the sugar and vanilla until smooth and creamy.
Add the flour, cinnamon, nutmeg, and salt to the bowl. Mix until the dough comes together and pulls away from the sides.
Stir in the chopped pecans until they are evenly distributed through the dough.
Press the dough firmly into the prepared pan in an even layer.
Bake for 20 to 25 minutes until the edges turn lightly golden.
Remove the pan from the oven and let it cool for 10 minutes. While still warm, cut the shortbread into finger-sized strips. Allow the pieces to cool completely in the pan.