On 03/21/2011 01:43 PM, sanjay ravat wrote:
[2011-03-21T18:45:46.004-07:00] [Other info]... log message [2011-03-21T18:45:46.008-07:00] [Other info]... log message [2011-03-21T18:45:46.607-07:00] [Other info]... log message
Thanks for the example data and better description. After experimenting with it, I came up with the following:
:set foldmethod=expr foldexpr=(getline(v:lnum)[:19]==getline(v:lnum+1)[:19])?1:'<1'
Change the 19 according to which depth you want: Seconds: 19 (above example) Minutes: 16 Hours: 13 Days: 10 Months: 7 Years: 4 which should do what you want. -tim -- 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
