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
"Originally -> http://gist.github.com/206863 | |
"YAY gist forking is broken! | |
" Requires: Utl | |
if !exists("loaded_utl") | |
finish | |
endif | |
call NERDTreeAddKeyMap({ | |
\ 'key': 'gu', |
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
"this is in my ~/.vim/projects/rogue.vim | |
"in my vimrc i have a :runtime! projects/**/*.vim to source all my project files | |
"assumes each model class is in ./lib/foo.rb and the related | |
"spec (i.e. test) file is in ./spec/foo_spec.rb | |
autocmd bufnewfile,bufreadpost ~/projects/rogue/* call s:setup() | |
function! s:setup() | |
command! -nargs=0 -buffer A call s:gotoAltFile('edit') | |
command! -nargs=0 -buffer AS call s:gotoAltFile('split') |
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
require 'rubygems' | |
require 'looksee/shortcuts' | |
module Kernel | |
alias_method :orig_methods, :methods | |
def methods(*args) | |
if caller.first =~ /\(irb\):\d+:in `irb_binding'/ | |
lp(self, *args) | |
else | |
orig_methods |
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
nmap <silent> <leader>x, | |
\ :%s/\(\(^\([^"']*\(["'][^"']*["']\)\)*[^"']*\)\@<=\)\+,\ze\S/& /gc<cr> |
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
setlocal nolist | |
setlocal wrap | |
setlocal lbr |
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
div.something | |
min-height: 500px | |
height: auto !important | |
height: 500px |
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
/* the sass file */ | |
/*===============*/ | |
=ultimate-hippie-border(!thickness) | |
border-top = !thickness "dotted" "magenta" | |
border-left = !thickness "solid" "orange" | |
border-right = !thickness "dashed" "green" | |
border-bottom = !thickness "groove" "blue" | |
background-color: cyan |
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
#hacks for 256 colors | |
attrcolor b ".I" | |
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' | |
defbce "on" |
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
//IE6 doesnt support min-(height|width), but these 2 hacks | |
//effectively implement them. | |
//Details: www.dustindiaz.com/min-height-fast-hack | |
=min_height_hack(!height) | |
min-height = !height | |
height: auto !important | |
height = !height | |
=min_width_hack(!width) | |
min-width = !width |