Easily comment (C++) code in vim

后端 未结 4 1973
旧时难觅i
旧时难觅i 2021-02-13 12:52

I have looked at the following question:

How to comment out a block of Python code in Vim

But that does not seem to work for me. How do I comment code easily wit

4条回答
  •  青春惊慌失措
    2021-02-13 13:22

    There's always #ifdef CHECK_THIS_LATER ... #endif which has the advantage of not causing problems with nested C-style comments (if you use them) and is easy to find and either uncomment or remove completely later.

提交回复
热议问题