Created
November 21, 2010 12:18
-
-
Save sgur/708697 to your computer and use it in GitHub Desktop.
unite-outline の changelog 向け
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"============================================================================= | |
" 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