diff options
author | Guangxiong Lin <[email protected]> | 2022-03-26 17:42:09 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-03-26 17:42:09 +0800 |
commit | 01e783601e6cffe502f86c06e85ce63585c65e0d (patch) | |
tree | 4c8dc08f09d1f53bea0ff3a33a40153e0dd05fa7 | |
parent | a79f3a35bc7bb8571096e975def05555354a09a8 (diff) | |
download | dotfiles-01e783601e6cffe502f86c06e85ce63585c65e0d.tar.gz dotfiles-01e783601e6cffe502f86c06e85ce63585c65e0d.tar.bz2 dotfiles-01e783601e6cffe502f86c06e85ce63585c65e0d.zip |
Improve easymotion keybinds (vim)
-rw-r--r-- | .vim/after/plugin/easymotion.vim | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/.vim/after/plugin/easymotion.vim b/.vim/after/plugin/easymotion.vim index eb57171..753b871 100644 --- a/.vim/after/plugin/easymotion.vim +++ b/.vim/after/plugin/easymotion.vim @@ -1,18 +1,38 @@ let g:EasyMotion_do_mapping = 0 let g:EasyMotion_smartcase = 1 let g:EasyMotion_smartsign_us = 1 -let g:EasyMotion_startofline = 0 +" let g:EasyMotion_startofline = 0 +map <space>j <Plug>(easymotion-j) nmap <space>j <Plug>(easymotion-j) + +map <space>k <Plug>(easymotion-k) nmap <space>k <Plug>(easymotion-k) + +map <space>l <Plug>(easymotion-lineforward) nmap <space>l <Plug>(easymotion-lineforward) + +map <space>h <Plug>(easymotion-linebackward) nmap <space>h <Plug>(easymotion-linebackward) -nmap <space>f <Plug>(easymotion-bd-f) -nmap <space>s <Plug>(easymotion-bd-f2) +map <space><space> <Plug>(easymotion-bd-jk) +nmap <space><space> <Plug>(easymotion-overwin-line) + +map <space>n <Plug>(easymotion-bd-n) +nmap <space>n <Plug>(easymotion-bd-n) + +map <space>w <Plug>(easymotion-bd-w) +nmap <space>w <Plug>(easymotion-overwin-w) + +map <space>e <Plug>(easymotion-bd-e) +nmap <space>e <Plug>(easymotion-bd-e) + +map <space>f <Plug>(easymotion-bd-f) +nmap <space>f <Plug>(easymotion-overwin-f) + +map <space>s <Plug>(easymotion-bd-f2) +nmap <space>s <Plug>(easymotion-overwin-f2) + nmap <space>/ <Plug>(easymotion-bd-fn) nmap <space>; <Plug>(easymotion-repeat) - -nmap <space>n <Plug>(easymotion-next) -nmap <space>p <Plug>(easymotion-prev) |