2015-12-02 14:23:39 +00:00
#+TITLE : Evil-commentary layer
2015-06-10 16:44:30 +00:00
2019-05-02 21:49:30 +00:00
#+TAGS : layer|vim
2019-05-07 20:05:06 +00:00
* Table of Contents :TOC_5_gh:noexport:
2017-05-22 14:16:12 +00:00
- [[#description ][Description ]]
2018-02-01 16:20:53 +00:00
- [[#features ][Features: ]]
2017-05-22 14:16:12 +00:00
- [[#install ][Install ]]
- [[#key-bindings ][Key bindings ]]
2015-06-10 16:44:30 +00:00
* Description
This layer replaces [[https://github.com/redguardtoo/evil-nerd-commenter ][evil-nerd-commenter ]] with [[https://github.com/linktohack/evil-commentary ][evil-commentary ]] for those
who prefer the behaviour of [[https://github.com/tpope/vim-commentary ][vim-commentary ]].
2018-02-01 16:20:53 +00:00
** Features:
- Provides the original vim behaviour for commenting out lines via [[https://github.com/linktohack/evil-commentary ][evil-commentary ]].
2015-06-10 16:44:30 +00:00
* Install
2016-01-06 05:21:55 +00:00
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.
2015-09-07 04:25:30 +00:00
* Key bindings
2016-04-13 03:31:38 +00:00
2018-12-05 03:03:03 +00:00
| Key binding | Description |
2018-02-01 16:20:53 +00:00
|-------------+------------------------------------|
| ~SPC ;~ | comment operator |
| ~gcc~ | comment current line |
| ~gcap~ | comment paragraphs |
| ~gc~ | comment out the target of a motion |
| ~gc SPC y~ | comment up to a line with avy |
| ~gy~ | comment and yank |