vim: Add surround and delimitMate plugins
These plugins add functionality to automatically close and surround text with parantheses, brackets, quotes, etc. Overwrite the vim-surround default bindings since they conflict with my substitute bindings.
This commit is contained in:
1
.config/vim/pack/plugins/opt/delimitMate
Submodule
1
.config/vim/pack/plugins/opt/delimitMate
Submodule
Submodule .config/vim/pack/plugins/opt/delimitMate added at 16687aec24
1
.config/vim/pack/plugins/opt/vim-surround
Submodule
1
.config/vim/pack/plugins/opt/vim-surround
Submodule
Submodule .config/vim/pack/plugins/opt/vim-surround added at f51a26d371
10
.config/vim/vim-surround.vim
Normal file
10
.config/vim/vim-surround.vim
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
" Overwrite vim-surround bindings.
|
||||||
|
nmap ds <Plug>Dsurround
|
||||||
|
nmap cs <Plug>Csurround
|
||||||
|
nmap cS <Plug>CSurround
|
||||||
|
nmap ys <Plug>Ysurround
|
||||||
|
nmap yS <Plug>YSurround
|
||||||
|
nmap yss <Plug>Yssurround
|
||||||
|
nmap ySS <Plug>YSsurround
|
||||||
|
xmap s <Plug>VSurround
|
||||||
|
xmap gs <Plug>VgSurround
|
||||||
@@ -7,8 +7,14 @@ if (has('patch-8.1.1719') || has('nvim'))
|
|||||||
endif
|
endif
|
||||||
" Theme
|
" Theme
|
||||||
packadd! onedark.vim
|
packadd! onedark.vim
|
||||||
|
" Automatically close parentheses, brackets, quotes, etc.
|
||||||
|
packadd! delimitMate
|
||||||
" Git information
|
" Git information
|
||||||
packadd! vim-gitgutter
|
packadd! vim-gitgutter
|
||||||
|
" Surround text with parentheses, brackets, quotes, tags, etc.
|
||||||
|
let g:surround_no_mappings = 1
|
||||||
|
packadd! vim-surround
|
||||||
|
source $XDG_CONFIG_HOME/vim/vim-surround.vim
|
||||||
|
|
||||||
" Settings #####################################################################
|
" Settings #####################################################################
|
||||||
" hybrid linenumbers
|
" hybrid linenumbers
|
||||||
|
|||||||
6
.gitmodules
vendored
6
.gitmodules
vendored
@@ -22,12 +22,18 @@
|
|||||||
[submodule ".config/vim/plugged/coc.nvim"]
|
[submodule ".config/vim/plugged/coc.nvim"]
|
||||||
path = .config/vim/pack/plugins/opt/coc.nvim
|
path = .config/vim/pack/plugins/opt/coc.nvim
|
||||||
url = https://github.com/neoclide/coc.nvim.git
|
url = https://github.com/neoclide/coc.nvim.git
|
||||||
|
[submodule ".config/vim/pack/plugins/opt/delimitMate"]
|
||||||
|
path = .config/vim/pack/plugins/opt/delimitMate
|
||||||
|
url = https://github.com/Raimondi/delimitMate.git
|
||||||
[submodule ".config/vim/plugged/onedark.vim"]
|
[submodule ".config/vim/plugged/onedark.vim"]
|
||||||
path = .config/vim/pack/plugins/opt/onedark.vim
|
path = .config/vim/pack/plugins/opt/onedark.vim
|
||||||
url = https://github.com/joshdick/onedark.vim
|
url = https://github.com/joshdick/onedark.vim
|
||||||
[submodule ".config/vim/plugged/vim-gitgutter"]
|
[submodule ".config/vim/plugged/vim-gitgutter"]
|
||||||
path = .config/vim/pack/plugins/opt/vim-gitgutter
|
path = .config/vim/pack/plugins/opt/vim-gitgutter
|
||||||
url = https://github.com/airblade/vim-gitgutter
|
url = https://github.com/airblade/vim-gitgutter
|
||||||
|
[submodule ".config/vim/pack/plugins/opt/vim-surround"]
|
||||||
|
path = .config/vim/pack/plugins/opt/vim-surround
|
||||||
|
url = https://github.com/tpope/vim-surround
|
||||||
[submodule ".config/zsh/plugins/fzf"]
|
[submodule ".config/zsh/plugins/fzf"]
|
||||||
path = .config/zsh/plugins/fzf
|
path = .config/zsh/plugins/fzf
|
||||||
url = https://github.com/junegunn/fzf
|
url = https://github.com/junegunn/fzf
|
||||||
|
|||||||
Reference in New Issue
Block a user