You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a new option NERDInplaceComment or something to enable reusing the space of existing leading whitespace for left delim, e.g:
deff():
print('foo')
print('bar')
to be commented as:
deff():
# print('foo')print('bar')
This feature preserves the original indentation in code, making them much clear especially for language such as python, which uses indentation to indicate block structure. (This is also the behavior of <C-/> in VS Code and other editors alike)
if there is not enough leading whitespace, insert as many as required (possible extra space)
What's the behavior if some of the lines to formatted has enough leading whitespaces and some don't? I'm in favor of reverting back to the original insert comment mode thus all indentations within the commented lines don't change, e.g.
# reverting# def f():# print('foo')# print('bar')
instead of
# still replacing for print lines# def f():# print('foo')# print('bar')
The text was updated successfully, but these errors were encountered:
Add a new option
NERDInplaceComment
or something to enable reusing the space of existing leading whitespace for left delim, e.g:to be commented as:
This feature preserves the original indentation in code, making them much clear especially for language such as python, which uses indentation to indicate block structure. (This is also the behavior of
<C-/>
in VS Code and other editors alike)Something to note:
NERDCommentBeforeLeadingWhitespace
in [Bug] Add left delim comment before leading space #495The text was updated successfully, but these errors were encountered: