This file contains 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
function! s:ParseMarkdown() | |
return map(split(join(getline(1, '$'), "\n"), '\v(^|\n)\ze#+'), 'split(v:val, "\n")') | |
endfunction | |
" Usage | |
let s:pages = s:ParseMarkdown() | |
let s:max_page_number = len(s:pages) - 1 |
This file contains 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: neocomplcache.vim | |
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com> | |
" Last Modified: 13 Jan 2009 | |
" Usage: Just source this file. | |
" License: MIT license {{{ | |
" Permission is hereby granted, free of charge, to any person obtaining | |
" a copy of this software and associated documentation files (the | |
" "Software"), to deal in the Software without restriction, including | |
" without limitation the rights to use, copy, modify, merge, publish, |
NewerOlder