This file contains hidden or 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 <leader>p iputs " | |
| imap <leader>p puts " | |
| map <leader># i#{ | |
| imap <leader># #{ |
This file contains hidden or 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
| MYPROJECT_RUBIES = { | |
| 'ruby-1.8.7-p302' => {:alias => 'dms187', :odbc => '0.99991'}, | |
| } | |
| namespace :rvm do | |
| task :setup do | |
| unless @rvm_setup | |
| rvm_lib_path = "#{`echo $rvm_path`.strip}/lib" | |
| $LOAD_PATH.unshift(rvm_lib_path) unless $LOAD_PATH.include?(rvm_lib_path) |
This file contains hidden or 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
| class Vi < Plugin | |
| @mode = 'insert' | |
| class << self; attr_accessor :mode; end | |
| def self.normal? | |
| lambda { return Vi.mode == 'normal'} | |
| end | |
| def self.insert? | |
| lambda { return Vi.mode == 'insert'} | |
| end | |
| def self.toggle |
This file contains hidden or 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
| " Ensure vim always runs from a shell, rvm needs this. | |
| set shell=/bin/sh |
This file contains hidden or 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
| # ViKing can ignore entire applications | |
| disable "Remote Desktop Connection" | |
| # Basic mapping | |
| map "<Ctrl-[>", "Escape" | |
| map "<Ctrl-m>", "<Ctrl-F2>" | |
| # Nice for debugging. | |
| map "<Ctrl-v>", alert("Hello, World.") |
This file contains hidden or 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
| disable "Remote Desktop Connection" | |
| map "<Ctrl-[>", "Escape" | |
| map "<Ctrl-u>", "<Cmd-z>" | |
| map "<Ctrl-m>", "<Ctrl-F2>" | |
| except /iTerm/, /MacVim/ do | |
| map "<Ctrl-j>", "Down" | |
| map "<Ctrl-k>", "Up" | |
| map "<Ctrl-h>", "Left" |
This file contains hidden or 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
| map <C-[> <Esc> | |
| except iTerm,MacVim do | |
| map <C-j> <Down> | |
| map <C-k> <Up> | |
| map <C-h> <Left> | |
| map <C-l> <Right> | |
| end | |
| only Chrome do |
This file contains hidden or 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
| /Users/kevinc/.rvm/gems/ruby-1.8.7-p302@dms/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack.rb:17: warning: already initialized constant VERSION |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| require 'tasklist' | |
| during '2010 September' do | |
| on '2010-09-03' do | |
| task 'Take out garbage' | |
| task 'Wash car' | |
| end | |
| on '2010-09-02' do |
This file contains hidden or 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
| iabbrev <buffer> ddate <C-R>=strftime("%Y-%m-%d")<CR> | |
| iabbrev <buffer> ttime <C-R>=strftime("%H:%M:%S")<CR> | |
| iabbrev <buffer> ddatetime <C-R>=strftime("%Y-%m-%d %H:%M:%S")<CR> |