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
" loadSources Recursively | |
if has('ruby') | |
ruby << EOF | |
# loadOtherSource - climbs the directory structure looking for | |
# files named "vimrc" and calls source on each | |
# one starting with the one furthest from the | |
# current file. | |
def loadOtherSources |
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
module Haml::Filters | |
module MarkdownWithTOC | |
include Haml::Filters::Base | |
def render(text) | |
<<~HAML_MD | |
<nav class="toc"> | |
#{Redcarpet::Markdown.new( Redcarpet::Render::HTML_TOC.new ).render(text)} |