tpope / vim-commentary

commentary.vim: comment stuff out
http://www.vim.org/scripts/script.php?script_id=3695
5.9k stars 214 forks source link

How to comment empty lines? #155

Closed RyannDaGreat closed 2 years ago

RyannDaGreat commented 2 years ago

I have the code:

def f(x):
    print(x)

    print(y)

but when commenting out the function, it gives

# def f(x):
#     print(x)

#     print(y)

It skipped the empty line. I want this:

# def f(x):
#     print(x)
#
#     print(y)

How do I do this?

tpope commented 2 years ago

Not currently supported.

RyannDaGreat commented 2 years ago

@tpope But why? Most other editors do this...should I make a pull request?