aboutsummaryrefslogtreecommitdiff
path: root/.vim/after/plugin
diff options
context:
space:
mode:
Diffstat (limited to '.vim/after/plugin')
-rw-r--r--.vim/after/plugin/easymotion.vim18
-rw-r--r--.vim/after/plugin/misc.vim15
2 files changed, 33 insertions, 0 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/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