sgur
11/21/2010 - 12:18 PM

unite-outline の changelog 向け

unite-outline の changelog 向け

"=============================================================================
" FILE: changelog.vim
" Last Modified: 2010-11-21
"
" Licensed under the MIT license:
" http://www.opensource.org/licenses/mit-license.php
"
"=============================================================================

function! unite#sources#outline#changelog#outline_info()
  return s:outline_info
endfunction

let s:outline_info = {
			\ 'heading': '^\s\+\*.\+',
			\ }

function! s:outline_info.create_heading(which, heading_line, matched_line, context)
	return substitute(a:heading_line, '\s\+\*\s*', '', '')
endfunction