@
dofine 这是我的映射配置。希望可以帮你
"---- Normal Mode ----"
" With @, push o will get 2 new lines, "
" and changed into insert mode. "
nmap @ a<CR><CR>
nnoremap 4 $
nnoremap $ 4
"---- Insert Mode ----"
" let use (,[,and { to auto finish the pair."
"inoremap ( ()<ESC>i
inoremap 3 #
inoremap # 3
inoremap 8 ()<ESC>i
inoremap 9 )
inoremap ( 8
inoremap ) 9
inoremap [ []<ESC>i
inoremap { {}<ESC>i
" Use F2 to complete a line as <C-X><C-L> "
imap <F2> <C-X><C-L>
" Use F3 to insert a pair of parathesis,"
" and put the cursor in the middle. "
" the same for F4, and F5. "
"imap <F3> ()<ESC>i
imap <F3> ()<C-C><Insert> ()
imap <F4> []<ESC>i
i