vim-textobj-comment icon indicating copy to clipboard operation
vim-textobj-comment copied to clipboard

Added object to cross over empty lines

Open D4KU opened this issue 4 years ago • 0 comments

I added a text-object to include adjacent simple line comments only separated by an empty or white-space-filled line. So if > marks the current cursor line, comments b to d are matched.

  // a
  if (false)
     return;
  // b

  // c
> // d

Because this new object is greedier than the others I figured it would make sense to call it aC, and renamed the existing aC to iC.

D4KU avatar Jan 17 '22 22:01 D4KU