Changing imap to inoremap for some previous mappings. Remapped CTRL-P and Tern mappings.