Translations:Basic guide to write Gentoo Ebuilds/7/en
From Gentoo Wiki
After installing app-vim/gentoo-syntax, create the appropriate directory for the ebuild, then launch vim with a new "{P}.ebuild" filename provided on the command line, to be automatically met with a basic skeleton that can be modified and saved: