scrooloose/nerdcommenter — Issue #49: Enable aligning toggled comments
Author: pedorro
Created: 2011-11-14 23:00:06+00:00
State: open

Add option to left-align the comment symbol rather than put it just before the first character. For example...

allow this:

```java
// public int getId() {
// return id;
// }
```

instead of this:

```java
// public int getId() {
// return id;
// }
```

I believe the first option above is more readable

Possible implementation:

```vim
function s:CommentLinesToggle(forceNested, firstLine, lastLine)
...
if g:NERDAlignCommentToggle
let theLine = s:AddLeftDelimAligned(s:Left({'space': 1}), theLine, 0)
else
let theLine = s:AddLeftDelim(s:Left({'space': 1}), theLine)
endif
```