spacemacs/layers/+vim/evil-commentary
Joe Hillenbrand 5559060ab5 bind avy-goto-line to SPC y
After the change in 1d340dcc77,
there was some grumbling in gitter that `SPC L` is not as convenient
as `SPC l`. Apparently avy-goto-line is a popular function.

`SPC y` is chosen because it is:

- currently unused (as far as I can tell).
- sort of mnemonic because "avy" has a "y" in it.
- doesn't require SHIFT to type
- is accessible even on non-US keyboards
  (there were suggestions such ";" and "\" that are not as accessible
   on non-US keyboards)

This change also updates the documentation regarding the change from
ace-jump-mode to avy.
2015-11-06 01:29:49 -05:00
..
packages.el Use + instead of ! for layer categories 2015-09-11 00:13:51 -04:00
README.org bind avy-goto-line to SPC y 2015-11-06 01:29:49 -05: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