Q:

Can I yank (copy) around a block comment in vim?

One of my favorite things about vi(m)'s yank (i.e. copy) syntax is the ability to copy the entire contents of the current word, line, parens, code block, etc. using the ya{something} and yi{something} syntaxes
Examples for reference:

word: yaw
parens: ya(
curly braces (without the braces): yi{
XML/HTML tag: yat

So what I'm trying to figure out now is whether vim recognizes block comments as a yankable unit. I'm imagining something like yac. Is this standard? If not, is there a plugin or a mapping that someone's figured out?

A:

You can, if you install a plugin, for example: https://github.com/glts/vim-textobj-comment

