Hi! 

On Tue, 10 Oct 2017, Igor Forca wrote:
> NOW TO THE PROBLEM:
> In my coding language comment is not # but instead
> double dash: --
> 
> I should probably set some setting for formatting
> to tell which character is comment or similar.
> 
> Is it possible to set double dash is a comment for formatting?

My suspicion is that you're editing Lua. If I do so (with
ft=lua), what you describe just works. E.g. having this:

-- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod 
tempor incididunt ut labore et dolore magna aliqua.

And using gq} will result in this:

-- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
-- tempor incididunt ut labore et dolore magna aliqua.

So my suspicion is that your vim doesn't recognize what you're
editing as being Lua. What does ":set ft" return?

Regards,
Tobias


-- 
Sent from aboard the Culture ship
        Gravitas... Gravitas... No, Don't Help Me, I'll Get It In A Moment...

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to