I want to format numbered list in a C comment. For example, I have the following c comment.
/* * 1 There is a performance issue. When session refresh is going on, * getSession and returnSession will be blocked. We need to measure * how long session refresh take. * * 2 Count down latch and cyclic barrier are essential for building global * synchronization. */ I will want to select the text and use gq to format it as follows. /* * 1. There is a performance issue. When session refresh is going on, getSession * and returnSession will be blocked. We need to measure how long session * refresh take. * 2. Count down latch and cyclic barrier are essential for building global * synchronization. / I know how to customize formatoptions to let vim recognize numbered list in plain text. But I don't know how to do it in a comment. I have tried to customize formatlistpat and comments options. None of them works. Does anyone has a solution for my problem? Thanks. -- Jingguo -- 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
