aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.vim/after/plugin/easymotion.vim18
-rw-r--r--.vim/after/plugin/misc.vim (renamed from .vim/plugin/misc.vim)1
2 files changed, 18 insertions, 1 deletions
diff --git a/.vim/after/plugin/easymotion.vim b/.vim/after/plugin/easymotion.vim
new file mode 100644
index 0000000..eb57171
--- /dev/null
+++ b/.vim/after/plugin/easymotion.vim
@@ -0,0 +1,18 @@
+let g:EasyMotion_do_mapping = 0
+let g:EasyMotion_smartcase = 1
+let g:EasyMotion_smartsign_us = 1
+let g:EasyMotion_startofline = 0
+
+nmap <space>j <Plug>(easymotion-j)
+nmap <space>k <Plug>(easymotion-k)
+nmap <space>l <Plug>(easymotion-lineforward)
+nmap <space>h <Plug>(easymotion-linebackward)
+
+nmap <space>f <Plug>(easymotion-bd-f)
+nmap <space>s <Plug>(easymotion-bd-f2)
+nmap <space>/ <Plug>(easymotion-bd-fn)
+
+nmap <space>; <Plug>(easymotion-repeat)
+
+nmap <space>n <Plug>(easymotion-next)
+nmap <space>p <Plug>(easymotion-prev)
diff --git a/.vim/plugin/misc.vim b/.vim/after/plugin/misc.vim
index ff2db74..2b0b85c 100644
--- a/.vim/plugin/misc.vim
+++ b/.vim/after/plugin/misc.vim
@@ -2,7 +2,6 @@ packadd! onedark.vim
silent colorscheme onedark
let g:airline#extensions#tabline#enabled = 1
-map <Space> <Plug>(easymotion-prefix)
" fcitx.vim
if !empty(glob('/usr/bin/fcitx5'))