From 626ba1c3453ad3164b75a00fdd495e02832a11da Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Sat, 23 Apr 2022 17:12:22 +0200 Subject: [PATCH] vim:plugs: Add `vim-textobj-comment` > This Vim plugin provides text objects for comments. > > `ac` selects a comment including the comment delimiters and `ic` > selects just the comment content. (There's also a third text object, > `aC`, which selects a comment including trailing or leading > whitespace.) These mappings are available in Visual and > Operator-pending mode. > > This plugin uses the `comments` and `commentstring` settings to > determine what a comment looks like for a given filetype. It works > with both `/* paired */` and `// simple` comment delimiters. > > This plugin depends on the textobj-user plugin. --- .config/vim/pack/plugins/opt/vim-textobj-comment | 1 + .config/vim/pack/plugins/start/vim-textobj-comment | 1 + .gitmodules | 3 +++ 3 files changed, 5 insertions(+) create mode 160000 .config/vim/pack/plugins/opt/vim-textobj-comment create mode 120000 .config/vim/pack/plugins/start/vim-textobj-comment diff --git a/.config/vim/pack/plugins/opt/vim-textobj-comment b/.config/vim/pack/plugins/opt/vim-textobj-comment new file mode 160000 index 0000000..58ae457 --- /dev/null +++ b/.config/vim/pack/plugins/opt/vim-textobj-comment @@ -0,0 +1 @@ +Subproject commit 58ae4571b76a5bf74850698f23d235eef991dd4b diff --git a/.config/vim/pack/plugins/start/vim-textobj-comment b/.config/vim/pack/plugins/start/vim-textobj-comment new file mode 120000 index 0000000..f0f4a27 --- /dev/null +++ b/.config/vim/pack/plugins/start/vim-textobj-comment @@ -0,0 +1 @@ +../opt/vim-textobj-comment/ \ No newline at end of file diff --git a/.gitmodules b/.gitmodules index ab04924..eca95d6 100644 --- a/.gitmodules +++ b/.gitmodules @@ -77,6 +77,9 @@ [submodule "vim-syntax-extra"] path = .config/vim/pack/plugins/opt/vim-syntax-extra url = https://github.com/justinmk/vim-syntax-extra +[submodule "vim-textobj-comment"] + path = .config/vim/pack/plugins/opt/vim-textobj-comment + url = https://github.com/glts/vim-textobj-comment [submodule "vim-textobj-user"] path = .config/vim/pack/plugins/opt/vim-textobj-user url = https://github.com/kana/vim-textobj-user