Skip to content

Instantly share code, notes, and snippets.

@Frost
Frost / markdown.vim
Last active December 22, 2015 05:29 — forked from natesilva/markdown.vim
"
" While editing a Markdown document in Vim, preview it in the
" default browser.
"
" Author: Nate Silva
"
" To install: Place markdown.vim in ~/.vim/ftplugin or
" %USERPROFILE%\vimfiles\ftplugin.
"
" To use: While editing a Markdown file, press ',p' (comma p)
@Frost
Frost / run_tags.rb
Created July 31, 2012 14:32 — forked from tobias/run_tags.rb
A script for generating TAGS from a git hook.
#!/usr/bin/ruby
#-*-ruby-*-
# A script to run ctags on all .rb files in a project. Can be run on
# the current dir, called from a git callback, or install itself as a
# git post-merge and post-commit callback.
# CTAGS = '/opt/local/bin/ctags' # macports
CTAGS = '/usr/local/bin/ctags' # homebrew
HOOKS = %w{ post-merge post-commit post-checkout }
HOOKS_DIR = '.git/hooks'