Comment out by caw.vim

Asked 2 years ago, Updated 2 years ago, 80 views

I'm using caw.vim, but when I comment out with Ctrl+k,

/*hoge*/
/*fuga*/

You will end up commenting out on each line, as shown in .

/*hoge
fuga*/

and so on

/*
hoge
fuga
*/

I'm wondering if it will be like this, but I wonder if there is such a command.
Another plug-in is fine.

I look forward to your kind cooperation.

vim

2022-09-30 19:40

1 Answers

When I read README on https://github.com/tyru/caw.vim, it seems that the following box comments are also supported.(Default key map is gcw or gcb)

Type "gcw" (uncomment: "gcuw")
  before:
      "  wrap!"
  after:
      "  /*wrap!*/"

Type "gcb"
  before:
      "  box!"
  after:
      "  /********/"
      "  /*box!*/"
      "  /********/"


2022-09-30 19:40

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.