Code Monkey home page Code Monkey logo

Comments (31)

alerque avatar alerque commented on May 16, 2024 2

I've been added as a maintainer to this repository, and PR #24 which adds this feature has been merged. Happy commenting everybody.

from nerdcommenter.

graudeejs avatar graudeejs commented on May 16, 2024

That would be totally great....
Current behavior is annoying

from nerdcommenter.

ervandew avatar ervandew commented on May 16, 2024

Fyi, I submitted a pull request for this feature a while ago: #24

from nerdcommenter.

Binarytales avatar Binarytales commented on May 16, 2024

+1

from nerdcommenter.

adrianrego avatar adrianrego commented on May 16, 2024

+1

from nerdcommenter.

maletor avatar maletor commented on May 16, 2024

+1

from nerdcommenter.

jinleileiking avatar jinleileiking commented on May 16, 2024

+1

from nerdcommenter.

pedorro avatar pedorro commented on May 16, 2024

FYI for those looking for this feature
The code offered above is a working solution. Once you install it, just edit the plugin as described.

from nerdcommenter.

cjbottaro avatar cjbottaro commented on May 16, 2024

+1

from nerdcommenter.

mMontu avatar mMontu commented on May 16, 2024

+1

from nerdcommenter.

vsushkov avatar vsushkov commented on May 16, 2024

Please, accept this pull request :)

from nerdcommenter.

jwhitley avatar jwhitley commented on May 16, 2024

+1

from nerdcommenter.

southgate avatar southgate commented on May 16, 2024

👍

from nerdcommenter.

antonrogov avatar antonrogov commented on May 16, 2024

+1

from nerdcommenter.

robsonpeixoto avatar robsonpeixoto commented on May 16, 2024

+1

from nerdcommenter.

gordio avatar gordio commented on May 16, 2024

+1

from nerdcommenter.

Oshuma avatar Oshuma commented on May 16, 2024

+1

from nerdcommenter.

WilsonBr avatar WilsonBr commented on May 16, 2024

+1

from nerdcommenter.

jsjohnst avatar jsjohnst commented on May 16, 2024

+1

from nerdcommenter.

druchoo avatar druchoo commented on May 16, 2024

+1

from nerdcommenter.

phstc avatar phstc commented on May 16, 2024

👍

from nerdcommenter.

arnuschky avatar arnuschky commented on May 16, 2024

+1

from nerdcommenter.

schickling avatar schickling commented on May 16, 2024

+1

from nerdcommenter.

nathangonzales avatar nathangonzales commented on May 16, 2024

This is what I did based on the comments above:

search for this line in the CommentLinesToggle function:

            let theLine = s:AddLeftDelim(s:Left({'space': 1}), theLine)

And edit it to become this:

            let theLine = s:AddLeftDelimAligned(s:Left({'space': 1}), theLine, 0)

from nerdcommenter.

x746e avatar x746e commented on May 16, 2024

👍

from nerdcommenter.

hellolj avatar hellolj commented on May 16, 2024

love this

from nerdcommenter.

jess-sol avatar jess-sol commented on May 16, 2024

👍

from nerdcommenter.

stroobandt avatar stroobandt commented on May 16, 2024

+1

from nerdcommenter.

cartisan avatar cartisan commented on May 16, 2024

In case you want your comments to be aligned at the indentation level of left-most part to be commented out:

for i in range(10):
    #if i / 2 == 0:
    #    print "Ciao"
print "finito"

You can get the index for indentation by calling
let leftAlignIndx = s:LeftMostIndx(a:forceNested, 0, a:firstLine, a:lastLine) and use this index as last argument for the mentioned call let theLine = s:AddLeftDelimAligned(s:Left({'space': 1}), theLine, 0). This obviously has to happen in the definition of function function s:CommentLinesToggle.

from nerdcommenter.

codemedic avatar codemedic commented on May 16, 2024

Yes please; it will be a great to be able to toggle comments, aligned.

from nerdcommenter.

tregusti avatar tregusti commented on May 16, 2024

Ok, can someone a little more seasoned with vim than me take over this plugin and merge the PRs to the new fork? @scrooloose is obviously not interested in it anymore looking at the lack of response to any PR or issue filed here.

Please?

I don't want to create yet another fork as 257 ppl already did just to have to get some simple PR in.

from nerdcommenter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.