Add Vim function snippet