Attacking doesn't cause a creature with vigilance to tap.
Keyword glossary › Vigilance
When a creature attacks, it normally taps. A tapped creature can't block, and it stays tapped until your next untap step, so attacking usually leaves you with one less blocker on your opponent's turn.
Vigilance removes that cost. The creature attacks without tapping, so it is still ready to block on your opponent's turn. It can also still use its tap abilities after combat.
Vigilance changes nothing else about combat. The creature deals and takes damage the same way, and it still needs to be untapped to attack in the first place.
Attack with a vigilance creature and then block with it, then try the same plan without vigilance. Step through it, or press Play all.


Your turn
You control Y'shtola, Night's Blessed, a 2/4 with vigilance. Your opponent controls Loporrit Scout, a 3/2. Both players are at 20 life.
These are real Magic cards. The example only covers the abilities that matter to it.
Real cards with vigilance. Look any of them up in the card search to compare every printing's price.