How to format LuaDoc multiline comments in Lua code

1.7k views Asked by At

I have a long Lua (LuaDoc) comment which I want to convert to a multi-line comment using the VIM command 'qgap'. Guess there is some solution in .vimrc with format-comments, but I couldn't figure it out myself.

Example:

--- This is a very long LuaDoc comment line which I want to break into many lines

shall become:

--- This is a very long Lua doc  
-- comment line which I want to  
-- break into many lines  
0

There are 0 answers