This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+vim/evil-commentary
justbur 6eab954afe Use + instead of ! for layer categories
Helm seems to treat "!" specially in pattern matching, so having a ! in
the pattern string when traversing directories is problematic. This
change fixes #2737, because as far as I can tell "+" has no special
meaning in a helm pattern.

Of course, we can choose a different character, but I'm fond of "+" as
representing "more layers here".
2015-09-11 00:13:51 -04:00
..
packages.el Use + instead of ! for layer categories 2015-09-11 00:13:51 -04:00
README.org Use + instead of ! for layer categories 2015-09-11 00:13:51 -04:00

Evil-commentary contribution layer for Spacemacs

Table of Contents   TOC@4

Description

This layer replaces evil-nerd-commenter with evil-commentary for those who prefer the behaviour of vim-commentary.

  • Use gcc to comment out a line (takes a count),
  • gc to comment out the target of a motion (for example,
  • gcap to comment out a paragraph), gc in visual mode to comment out the selection.

For more details see the evil-commentary repository.

Install

To use this contribution add it to your ~/.spacemacs.

  (setq-default dotspacemacs-configuration-layers '(evil-commentary))

Key bindings

Key Binding Description
SPC ; comment operator
gcc comment current line
gcap comment paragraphs
gc SPC l comment up to a line with avy
gy comment and yank