From a79f3a35bc7bb8571096e975def05555354a09a8 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sat, 26 Mar 2022 16:12:58 +0800 Subject: Update vim-easymotion config --- .vim/after/plugin/easymotion.vim | 18 ++++++++++++++++++ .vim/after/plugin/misc.vim | 15 +++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .vim/after/plugin/easymotion.vim create mode 100644 .vim/after/plugin/misc.vim (limited to '.vim/after') 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 j (easymotion-j) +nmap k (easymotion-k) +nmap l (easymotion-lineforward) +nmap h (easymotion-linebackward) + +nmap f (easymotion-bd-f) +nmap s (easymotion-bd-f2) +nmap / (easymotion-bd-fn) + +nmap ; (easymotion-repeat) + +nmap n (easymotion-next) +nmap p (easymotion-prev) diff --git a/.vim/after/plugin/misc.vim b/.vim/after/plugin/misc.vim new file mode 100644 index 0000000..2b0b85c --- /dev/null +++ b/.vim/after/plugin/misc.vim @@ -0,0 +1,15 @@ +packadd! onedark.vim +silent colorscheme onedark + +let g:airline#extensions#tabline#enabled = 1 + +" fcitx.vim +if !empty(glob('/usr/bin/fcitx5')) + packadd fcitx.vim +endif + +" smartim +if has('mac') + packadd smartim + let g:smartim_default = 'com.apple.keylayout.ABC' +endif -- cgit v1.2.3