I have one solution to my question of January 25, 2011:

  > [How to use gq] inside C-comments styled as:
  >
  >    /**
  >     *
  >     */
  >
  > My attempts show that VIM treats the entire comment as a
  > single paragraph -- [ but the need is to have paragraphs 
  > be delimited by lines that match '^  *\*\s*$' ]

  nmap \foo ngqN
  let @/='^  *\*\s*$'

  Then, putting the cursor inside the para to be formatted 
  and hitting \foo will format it.
   
  Any suggestions on improving this solution?

  Thanks,

  --Suresh

-- 
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

Reply via email to