Question

I am a new user in Vim. How change these keys in Zen Coding,

ctr+y+,

To

ctr+e


And also change in omni,

ctr+x ctr+o

To

ctr+j

How can I do that?

Was it helpful?

Solution

I suggest you to type:

:help map.txt

inside vim, you'll find all the explanation to understand how to do it.

You can't use the same shortcut for 'zencoding' plugin and for an omnicomplete function; anyway you could add to your .vimrc:

imap <C-j> <C-y>

But I suggest not to use 'C-j' as 'j' is always related to movement in vim; use 'leader' (:help leader) which is targeted to user shortcuts, instead.

OTHER TIPS

You may follow the answer provided by @eolo999, but I suggest you to read zencoding documentation and add the following to the vimrc:

" Note the `nore'. You must use it where possible "
" in order not to get remapping problems when your vimrc grows up "
inoremap <C-j> <C-x><C-o>

" from :h zencoding-customize-keymappings "
let g:user_zen_expandabbr_key='<C-e>'
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top