Allow commenting empty lines given configuration (#250)

* Allow commenting empty lines given configuration

    If g:NERDCommentEmptyLines=1 then it will comment empty line, which is
    useful when commenting blocks.

    When uncommenting it will delete any trailing whitespace.

* Add documentation for NERDCommentEmptyLines
This commit is contained in:
Alexandre Constantino
2016-06-08 15:00:05 +01:00
committed by Caleb Maclennan
parent 06c3184b2e
commit e1aeec12be
3 changed files with 18 additions and 2 deletions

View File

@@ -88,6 +88,9 @@ let g:NERDAltDelims_java = 1
" Add your own custom formats or override the defaults
let g:NERDCustomDelimiters = { 'c': { 'left': '/**','right': '*/' } }
" Allow commenting and inverting empty lines (useful when commenting a region)
g:NERDCommentEmptyLines = 1
```
### Default mappings