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
Post a Comment