aboutsummaryrefslogtreecommitdiff
path: root/.vim
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-03-26 16:12:58 +0800
committerGuangxiong Lin <[email protected]>2022-03-26 16:15:21 +0800
commita79f3a35bc7bb8571096e975def05555354a09a8 (patch)
tree3211d26afea3c575fb8e738fe87f9a8d0f8c4381 /.vim
parent9f1928a1b8eb56cb3a9d5baabd50ac0d49d73256 (diff)
downloaddotfiles-a79f3a35bc7bb8571096e975def05555354a09a8.tar.gz
dotfiles-a79f3a35bc7bb8571096e975def05555354a09a8.tar.bz2
dotfiles-a79f3a35bc7bb8571096e975def05555354a09a8.zip
Update vim-easymotion config
Diffstat (limited to '.vim')
-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'))