vim’ Entries

  • Block comenting python code in vim

    Recently, I find myself wanting to do block commenting for my python scripts more and more often. Sometimes just to hide a piece of code, or disable it while I'm debugging etc.

    Of course, in python the best way to do this is by putting a `#` at the start of the line, but this process can be quite tedious if you have lots of code you wish to comment. I decided to let vim do the work for me.

    I placed the script in my vim plugins folder, and then mapped F6 to the BlockComment() call, …

    Read More …