Skip to content

Instantly share code, notes, and snippets.

View renechz's full-sized avatar

René C. renechz

View GitHub Profile
@renechz
renechz / predawn.vim
Created June 9, 2015 18:40
vim port of predawn.tmTheme color scheme - https://github.com/jamiewilson/predawn
" Vim color file
" Converted from Textmate theme Predawn using Coloration v0.4.0 (http://github.com/sickill/coloration)
set background=dark
highlight clear
if exists("syntax_on")
syntax reset
endif
@renechz
renechz / SublimeGit-Default.sublime-keymap
Last active December 20, 2015 00:59
SublimeGit keybindings for Vintage mode.
/* Keybindings for SublimeGit with Vintage mode enabled on OSX.
*
* Using Vim Fugitive keybindings when possible.
* Using "," as leader key.
*
* Work in progress.
* Definitely not a much advanced user of either Vim or Fugitive, but it's a start.
*/
[
/*** GIT STATUS ***/
@renechz
renechz / enter_command_mode_on_save.py
Created May 4, 2013 02:06
Enter Command Mode on save in Sublime Text.
# Vintage mode should be active first.
# Remove Vintage package from the ignored_packages setting in your User preferences.
# "ignored_packages": [""]
#
# Then you just have to create a fairly simple plugin.
# Go to Tools > New Plugin.
# Save it under Packages/User/enter_command_mode_on_save.py and you're ready to go!
import sublime, sublime_plugin
@renechz
renechz / git-delete-merged-branches
Last active December 16, 2015 23:39
Delete all merged-to-master branches in git.
#!/bin/sh
# Setup.
# Add to directory in PATH (e.g. /usr/local/bin) and make it executable.
# $ chmod +x git-delete-merged-branches
git branch -d $( git branch --merged | grep -v '^\*' | grep -v 'master' )