Use tagbar plugin for vim to show function outline