aboutsummaryrefslogtreecommitdiff
path: root/.vim
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-12-02 09:43:15 +0800
committerGuangxiong Lin <[email protected]>2023-12-02 10:23:22 +0800
commitc2fdf2a2f13462e5a694a9a74f5bb5739c6dde18 (patch)
tree3fb4dd7e506464d065467d8b5f401bc792ec0491 /.vim
parentaccc9d48cb7a20070e36996ef23a73b41ecf0639 (diff)
downloaddotfiles-c2fdf2a2f13462e5a694a9a74f5bb5739c6dde18.tar.gz
dotfiles-c2fdf2a2f13462e5a694a9a74f5bb5739c6dde18.tar.bz2
dotfiles-c2fdf2a2f13462e5a694a9a74f5bb5739c6dde18.zip
Update vim config
Diffstat (limited to '.vim')
-rw-r--r--.vim/after/plugin/easymotion.vim12
-rw-r--r--.vim/after/plugin/vim-highlightedyank.vim1
-rw-r--r--.vim/after/plugin/vim9-stargate.vim9
m---------.vim/pack/submodule/start/context.vim0
m---------.vim/pack/submodule/start/vim-cool0
m---------.vim/pack/submodule/start/vim-grammarous0
m---------.vim/pack/submodule/start/vim-highlightedyank0
m---------.vim/pack/submodule/start/vim-terraform0
m---------.vim/pack/submodule/start/vim9-stargate0
9 files changed, 10 insertions, 12 deletions
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 <space><space> <Plug>(easymotion-overwin-line)
map <space>n <Plug>(easymotion-bd-n)
nmap <space>n <Plug>(easymotion-bd-n)
-map <space>w <Plug>(easymotion-bd-w)
-nmap <space>w <Plug>(easymotion-overwin-w)
-
-map <space>e <Plug>(easymotion-bd-e)
-nmap <space>e <Plug>(easymotion-bd-e)
-
-map <space>f <Plug>(easymotion-bd-f)
-nmap <space>f <Plug>(easymotion-overwin-f)
-
-map <space>s <Plug>(easymotion-bd-f2)
-nmap <space>s <Plug>(easymotion-overwin-f2)
-
nmap <space>/ <Plug>(easymotion-bd-fn)
nmap <space>; <Plug>(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 <space>f <Cmd>call stargate#OKvim(1)<CR>
+" For 2 consecutive characters to search
+noremap <space>s <Cmd>call stargate#OKvim(2)<CR>
+
+" for the start of a word
+noremap <space>w <Cmd>call stargate#OKvim('\<')<CR>
+" for the end of a word
+noremap <space>e <Cmd>call stargate#OKvim('\S\>')<CR>
diff --git a/.vim/pack/submodule/start/context.vim b/.vim/pack/submodule/start/context.vim
new file mode 160000
+Subproject 108644e146c864995288dee7dacf219267917ac
diff --git a/.vim/pack/submodule/start/vim-cool b/.vim/pack/submodule/start/vim-cool
new file mode 160000
+Subproject 662e7b11064cbeedad17c45d2fe926e78d3cd0b
diff --git a/.vim/pack/submodule/start/vim-grammarous b/.vim/pack/submodule/start/vim-grammarous
new file mode 160000
+Subproject db46357465ce587d5325e816235b5e92415f8c0
diff --git a/.vim/pack/submodule/start/vim-highlightedyank b/.vim/pack/submodule/start/vim-highlightedyank
new file mode 160000
+Subproject fa3f57b097e9521ce41a66b6c7cf5d9adea70ea
diff --git a/.vim/pack/submodule/start/vim-terraform b/.vim/pack/submodule/start/vim-terraform
new file mode 160000
+Subproject d37ae7e7828aa167877e338dea5d4e1653ed3eb
diff --git a/.vim/pack/submodule/start/vim9-stargate b/.vim/pack/submodule/start/vim9-stargate
new file mode 160000
+Subproject 2df5dad08e74dedb020e042e66f8f4819a48b6c