From c2fdf2a2f13462e5a694a9a74f5bb5739c6dde18 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sat, 2 Dec 2023 09:43:15 +0800 Subject: Update vim config --- .vim/after/plugin/easymotion.vim | 12 ------------ .vim/after/plugin/vim-highlightedyank.vim | 1 + .vim/after/plugin/vim9-stargate.vim | 9 +++++++++ 3 files changed, 10 insertions(+), 12 deletions(-) create mode 100644 .vim/after/plugin/vim-highlightedyank.vim create mode 100644 .vim/after/plugin/vim9-stargate.vim (limited to '.vim/after/plugin') diff --git a/.vim/after/plugin/easymotion.vim b/.vim/after/plugin/easymotion.vim index 5b243c5..440df48 100644 --- a/.vim/after/plugin/easymotion.vim +++ b/.vim/after/plugin/easymotion.vim @@ -21,18 +21,6 @@ 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) diff --git a/.vim/after/plugin/vim-highlightedyank.vim b/.vim/after/plugin/vim-highlightedyank.vim new file mode 100644 index 0000000..ee3e896 --- /dev/null +++ b/.vim/after/plugin/vim-highlightedyank.vim @@ -0,0 +1 @@ +let g:highlightedyank_highlight_duration = 100 diff --git a/.vim/after/plugin/vim9-stargate.vim b/.vim/after/plugin/vim9-stargate.vim new file mode 100644 index 0000000..d6f9075 --- /dev/null +++ b/.vim/after/plugin/vim9-stargate.vim @@ -0,0 +1,9 @@ +" For 1 character to search before showing hints +noremap f call stargate#OKvim(1) +" For 2 consecutive characters to search +noremap s call stargate#OKvim(2) + +" for the start of a word +noremap w call stargate#OKvim('\<') +" for the end of a word +noremap e call stargate#OKvim('\S\>') -- cgit v1.2.3