spacemacs/layers/+vim/evil-commentary
justbur 9befd20a1a layers: Transition to new key bindings functions
Removes dependence on evil-leader centralizing control over the method
of key binding in core-keybindings.el
2015-11-21 18:22:51 +01:00
..
packages.el layers: Transition to new key bindings functions 2015-11-21 18:22:51 +01:00
README.org Documentation update 2015-11-13 14:23:13 +01:00

Evil-commentary contribution layer for Spacemacs

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 y comment up to a line with avy
gy comment and yank