diff options
author | Guangxiong Lin <[email protected]> | 2023-12-05 20:30:06 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2023-12-05 20:30:06 +0800 |
commit | 0f05325fd861a671ede3f68271326c3de2502e5e (patch) | |
tree | e0727e6831bcb4455865ac737c6edeed032f0110 | |
parent | 581038be17326f16c22b76a8caf40dfe65e6555e (diff) | |
download | dotfiles-0f05325fd861a671ede3f68271326c3de2502e5e.tar.gz dotfiles-0f05325fd861a671ede3f68271326c3de2502e5e.tar.bz2 dotfiles-0f05325fd861a671ede3f68271326c3de2502e5e.zip |
Update vim config
-rw-r--r-- | .gitmodules | 3 | ||||
-rw-r--r-- | .vim/after/plugin/ale.vim | 2 | ||||
-rw-r--r-- | .vim/after/plugin/sneak.vim | 3 | ||||
m--------- | .vim/pack/submodule/opt/vim-sneak (renamed from .vim/pack/submodule/start/vim-sneak) | 0 | ||||
-rw-r--r-- | README.md | 3 |
5 files changed, 10 insertions, 1 deletions
diff --git a/.gitmodules b/.gitmodules index f3e87f0..8ae1da9 100644 --- a/.gitmodules +++ b/.gitmodules @@ -16,3 +16,6 @@ [submodule ".vim/pack/submodule/start/vim-sneak"] path = .vim/pack/submodule/start/vim-sneak url = https://github.com/justinmk/vim-sneak +[submodule ".vim/pack/submodule/opt/vim-sneak"] + path = .vim/pack/submodule/opt/vim-sneak + url = https://github.com/justinmk/vim-sneak diff --git a/.vim/after/plugin/ale.vim b/.vim/after/plugin/ale.vim index 3103ef9..ab71dba 100644 --- a/.vim/after/plugin/ale.vim +++ b/.vim/after/plugin/ale.vim @@ -7,6 +7,8 @@ let g:ale_sign_warning = 'W>' let g:ale_hover_cursor = 0 let g:ale_virtualtext_cursor = 1 +autocmd FileType markdown let b:ale_languagetool_options = '--autoDetect --disable WHITESPACE_RULE' + nmap <silent> [g <Plug>(ale_previous_wrap) nmap <silent> ]g <Plug>(ale_next_wrap) diff --git a/.vim/after/plugin/sneak.vim b/.vim/after/plugin/sneak.vim new file mode 100644 index 0000000..c0d73d1 --- /dev/null +++ b/.vim/after/plugin/sneak.vim @@ -0,0 +1,3 @@ +let g:sneak#use_ic_scs = 1 + +packadd vim-sneak diff --git a/.vim/pack/submodule/start/vim-sneak b/.vim/pack/submodule/opt/vim-sneak -Subproject 29ec9167d4a609f74c130b46265aa17eb2736e6 +Subproject 29ec9167d4a609f74c130b46265aa17eb2736e6 @@ -9,7 +9,8 @@ Motion: - [vim9-stargate](https://github.com/monkoose/vim9-stargate): modern alternative to easymotion. - [vim-sneak](https://github.com/justinmk/vim-sneak): Jump to any - location with two characters. + location with two characters. It should be `opt`. Otherwise the config + in `after` folder would not work. Languages specfic: |