Skip to content

Instantly share code, notes, and snippets.

@Shougo
Shougo / gist:261461
Created December 22, 2009 02:53 — forked from thinca/gist:261452
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
@Shougo
Shougo / gist:38827
Created December 22, 2008 01:39 — forked from anonymous/gist:37858
neocomplcache.vim
"=============================================================================
" 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,