spacemacs/layers/+vim/evil-commentary
syl20bnr 33ead6fc42 Deprecation of extensions and <pkg>-excluded-packages variables
As announced in previous releases, see CHANGELOG.next for more info
in the Breaking Changes section.
2016-01-17 22:06:04 -05:00
..
packages.el Deprecation of extensions and <pkg>-excluded-packages variables 2016-01-17 22:06:04 -05:00
README.org Update install layer section in REAMDE.org files 2016-01-06 00:21:55 -05:00

Evil-commentary layer

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 configuration layer, add it to your ~/.spacemacs. You will need to add evil-commentary to the existing dotspacemacs-configuration-layers list in this file.

Key bindings

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