Hi,
You can simply do show history to see your recent entered commands, and to check into which address-family you have entered, and further on you can increase the history buffer:
R5(config)#ip vrf abc
R5(config-vrf)#rd 1:1
R5(config-vrf)#route
R5(config-vrf)#route-target bot
R5(config-vrf)#route-target both 1:1
R5(config-vrf)#router bgp 1
R5(config-router)#address
R5(config-router)#address-family ipv
R5(config-router)#address-family ipv4
R5(config-router)#address-family ipv4 vrf
R5(config-router)#address-family ipv4 vrf abc
R5(config-router-af)#do sh hist
ip vrf abc
rd 1:1
route-target both 1:1
router bgp 1
address-family ipv4 vrf abc
do sh hist
BR,
Mohammed Mahmoud.