Keep one :Comment command. Explicit Ex ranges use whole lines. A range-free Visual <Cmd>Comment<CR> mapping uses the active selection without consulting stale marks.
Word-level highlights and export snippets are preserved. Neovim resolves exclusive and reversed selections.
Update existing Visual mappings from :Comment<CR> to <Cmd>Comment<CR>; keep the same keys and Normal mappings.
Validation
make check — 231 tests passed.
StyLua checked the command entry point explicitly.
Readability, code, and test reviews completed. A follow-up fixed and verified selections starting just past the end of a line.
## Summary
- Keep one `:Comment` command. Explicit Ex ranges use whole lines. A range-free Visual `<Cmd>Comment<CR>` mapping uses the active selection without consulting stale marks.
- Word-level highlights and export snippets are preserved. Neovim resolves exclusive and reversed selections.
- Update existing Visual mappings from `:Comment<CR>` to `<Cmd>Comment<CR>`; keep the same keys and Normal mappings.
## Validation
- `make check` — 231 tests passed.
- StyLua checked the command entry point explicitly.
- Readability, code, and test reviews completed. A follow-up fixed and verified selections starting just past the end of a line.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
:Commentcommand. Explicit Ex ranges use whole lines. A range-free Visual<Cmd>Comment<CR>mapping uses the active selection without consulting stale marks.:Comment<CR>to<Cmd>Comment<CR>; keep the same keys and Normal mappings.Validation
make check— 231 tests passed.