From 01e783601e6cffe502f86c06e85ce63585c65e0d Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sat, 26 Mar 2022 17:42:09 +0800 Subject: Improve easymotion keybinds (vim) --- .vim/after/plugin/easymotion.vim | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) (limited to '.vim/after') 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 j (easymotion-j) nmap j (easymotion-j) + +map k (easymotion-k) nmap k (easymotion-k) + +map l (easymotion-lineforward) nmap l (easymotion-lineforward) + +map h (easymotion-linebackward) nmap h (easymotion-linebackward) -nmap f (easymotion-bd-f) -nmap s (easymotion-bd-f2) +map (easymotion-bd-jk) +nmap (easymotion-overwin-line) + +map n (easymotion-bd-n) +nmap n (easymotion-bd-n) + +map w (easymotion-bd-w) +nmap w (easymotion-overwin-w) + +map e (easymotion-bd-e) +nmap e (easymotion-bd-e) + +map f (easymotion-bd-f) +nmap f (easymotion-overwin-f) + +map s (easymotion-bd-f2) +nmap s (easymotion-overwin-f2) + nmap / (easymotion-bd-fn) nmap ; (easymotion-repeat) - -nmap n (easymotion-next) -nmap p (easymotion-prev) -- cgit v1.2.3