Why I ask:
I use to enter code for example if(condition){}
, in following step:
if(){ }
- move cursor back into
()
to complete condition - move cursor into
{}
to add task
I have read Traversing text in Insert mode, and I add follow code into my $HOME/.vimrc
" key mapping
inoremap <A-h> <C-o>h
inoremap <A-j> <C-o>j
inoremap <A-k> <C-o>k
inoremap <A-l> <C-o>l
now I can use Alt+h and Alt+l, but the rest of two new map had no effect, then I test: Ctrl+oj and Ctrl+ok, both of them work.
- Is there any mistake when I do the key mapping?
- How to check if my new mapping is conflicted with other or not?
UPDATE: 2nd/Nov/2016
- I buy a new keyboard with cursor key...
- Install auto pair
However, I found one interesting thing, when I in Linux, there is ok for all above mapping just except Alt+h, because it conflicted with the ubuntu current open window help menu. I only meet my problem when I use ssh via MobaXerm
application.