Skip to content

Instantly share code, notes, and snippets.

@sgur
Created November 21, 2010 12:18
Show Gist options
  • Save sgur/708697 to your computer and use it in GitHub Desktop.
Save sgur/708697 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment