VIM Setup
At the command line:
- mv .vimrc .vimrc_backup
- mv .vim .vim_backup
- cd ~
- wget https://raw.github.com/overture8/my-vimrc/master/vimrc && mv vimrc .vimrc
- git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
- vim
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
VIM Setup
At the command line:
| # Rake tasks to parse haml layouts, includes and index files for jekyll | |
| # Assumes that the haml files are in (_layouts|_includes|_posts)/_haml | |
| namespace :haml do | |
| require 'haml' | |
| def convert file, destination | |
| base_name = File.basename(file, '.haml') + '.html' | |
| html = File.open(file, 'r') { |f| Haml::Engine.new(f.read).render } | |
| File.open(File.join(destination, base_name), 'w') { |f| f.write html } |