wjh876531738
2022-05-31 09:28:34 +08:00
分享一段单手 Coding 时候加上的 vim 配置,习惯之后效率还算是比较高的,当时一周左右的时间已经恢复 80% 左右的 Coding 速度了。另外使用 Mac 的触控板搭配会比 hhkb 更舒服,毕竟触控板的单手体验还是可以的。最重要的一点记得把 Caps 改成 Ctrl 。
" Code with one hand.
nnoremap <space><space> :
" nnoremap <C-e> <C-u>
" nnoremap <C-c> :w<CR>
" nnoremap <C-c><C-c> :wqa<CR>
"
" imap <expr> <leader>tt emmet#expandAbbrIntelligent("\<tab>")
" inoremap <C-c> <C-[>
" inoremap <leader>ad +
" inoremap <leader>an &
" inoremap <leader>st *
"
" inoremap <leader>u <C-[>gU<RIGHT>a
" inoremap <leader>uu <C-[>bgUwea
"
" inoremap <leader>12 ()<LEFT>
" inoremap <leader>11 -
" inoremap <leader>22 =
"
" inoremap <leader>qw {}<LEFT>
" inoremap <leader>wq []<LEFT>
"
" inoremap <leader>as ""<LEFT>
" inoremap <leader>sa ''<LEFT>
" inoremap <leader>aa ;
" inoremap <leader>ss :
" inoremap <leader>zx <><LEFT>
" inoremap <leader>zz ,
" inoremap <leader>xx .
" inoremap <leader>cc /
" Learn from Emacs ,short distance moving in insert mode
inoremap <C-f> <Right>
inoremap <C-b> <Left>
inoremap <C-a> <ESC>I
inoremap <C-e> <ESC>A
inoremap <C-d> <DEL>