keymapping - Insert mode mapping in Vim -


this may trivial couldn't find way make mapping work.

i have following mapping in .vimrc compile file using clang , run afterwards:

map <f5> :wa \| !clang++ -g -std=c++11 % -o test && ./test : <cr> 

i want add same mapping in insert mode doesn't seem work. 1 of many things i've tried (including wrapping mapping in separate function) was:

 imap <f5> <c-o> <f5> 

how can make mapping work in insert mode?

remove space after <c-o>. work, needed use nnoremap instead of map. should work:

nnoremap <f5> :wa \| !clang++ -g -std=c++11 % -o test && ./test : <cr> imap <f5> <c-o><f5> 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -