Inital commit.
This commit is contained in:
commit
3093b80dc1
10
home/.gemrc
Normal file
10
home/.gemrc
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
:verbose: true
|
||||||
|
gem: --no-rdoc
|
||||||
|
:update_sources: true
|
||||||
|
:sources:
|
||||||
|
- http://gems.rubyforge.org
|
||||||
|
- http://gems.github.com
|
||||||
|
:backtrace: false
|
||||||
|
:bulk_threshold: 1000
|
||||||
|
:benchmark: false
|
23
home/.gitconfig
Normal file
23
home/.gitconfig
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
[hub]
|
||||||
|
protocol = https
|
||||||
|
[user]
|
||||||
|
name = cheetah
|
||||||
|
email = thcheetah@gmail.com
|
||||||
|
[credential]
|
||||||
|
helper = osxkeychain
|
||||||
|
[color]
|
||||||
|
diff = auto
|
||||||
|
status = auto
|
||||||
|
branch = auto
|
||||||
|
ui = true
|
||||||
|
[core]
|
||||||
|
excludesfile = ~/.gitignore
|
||||||
|
editor = slime
|
||||||
|
[apply]
|
||||||
|
whitespace = nowarn
|
||||||
|
[mergetool]
|
||||||
|
keepBackup = false
|
||||||
|
[difftool]
|
||||||
|
prompt = false
|
||||||
|
[help]
|
||||||
|
autocorrect = 1
|
2
home/.gitignore
vendored
Normal file
2
home/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
*~
|
||||||
|
.DS_Store
|
9
home/.irbrc
Normal file
9
home/.irbrc
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
require 'rubygems'
|
||||||
|
require 'wirble'
|
||||||
|
require 'pp'
|
||||||
|
|
||||||
|
Wirble.init
|
||||||
|
Wirble.colorize
|
||||||
|
|
||||||
|
alias q exit
|
||||||
|
alias r require
|
77
home/.tmux.conf
Normal file
77
home/.tmux.conf
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
# status bar
|
||||||
|
set-option -g status-utf8 on
|
||||||
|
|
||||||
|
set -g status-right-length 20
|
||||||
|
set -g status-right '#[fg=red]#H#[fg=green]:#[fg=white]#S #[fg=green]][#[default]'
|
||||||
|
set -g status-left ''
|
||||||
|
|
||||||
|
# default statusbar colors
|
||||||
|
set -g status-fg white
|
||||||
|
set -g status-bg default
|
||||||
|
set -g status-attr bright
|
||||||
|
|
||||||
|
# default window title colors
|
||||||
|
set-window-option -g window-status-fg white
|
||||||
|
set-window-option -g window-status-bg default
|
||||||
|
set-window-option -g window-status-attr dim
|
||||||
|
|
||||||
|
# active window title colors
|
||||||
|
set-window-option -g window-status-current-fg white
|
||||||
|
set-window-option -g window-status-current-bg default
|
||||||
|
set-window-option -g window-status-current-attr bright
|
||||||
|
|
||||||
|
# C-b is not acceptable -- Vim uses it
|
||||||
|
# set-option -g prefix C-a
|
||||||
|
# bind-key C-a last-window
|
||||||
|
|
||||||
|
# Start numbering at 1
|
||||||
|
set -g base-index 1
|
||||||
|
|
||||||
|
# Allows for faster key repetition
|
||||||
|
set -s escape-time 0
|
||||||
|
|
||||||
|
# Rather than constraining window size to the maximum size of any client
|
||||||
|
# connected to the *session*, constrain window size to the maximum size of any
|
||||||
|
# client connected to *that window*. Much more reasonable.
|
||||||
|
setw -g aggressive-resize on
|
||||||
|
|
||||||
|
# Allows us to use C-a a <command> to send commands to a TMUX session inside
|
||||||
|
# another TMUX session
|
||||||
|
bind-key a send-prefix
|
||||||
|
|
||||||
|
# Activity monitoring
|
||||||
|
setw -g monitor-activity on
|
||||||
|
set -g visual-activity on
|
||||||
|
|
||||||
|
# Highlight active window
|
||||||
|
set-window-option -g window-status-current-bg red
|
||||||
|
|
||||||
|
# VI keybindings please
|
||||||
|
setw -g mode-keys vi
|
||||||
|
|
||||||
|
# VI for splitting
|
||||||
|
bind s split-window -v
|
||||||
|
bind v split-window -h
|
||||||
|
|
||||||
|
# Vi copypaste mode
|
||||||
|
set-window-option -g mode-keys vi
|
||||||
|
bind-key -t vi-copy 'v' begin-selection
|
||||||
|
bind-key -t vi-copy 'y' copy-selection
|
||||||
|
|
||||||
|
# hjkl pane traversal
|
||||||
|
bind h select-pane -L
|
||||||
|
bind j select-pane -D
|
||||||
|
bind k select-pane -U
|
||||||
|
bind l select-pane -R
|
||||||
|
|
||||||
|
# reload config
|
||||||
|
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
|
||||||
|
|
||||||
|
# auto window rename
|
||||||
|
set-window-option -g automatic-rename
|
||||||
|
|
||||||
|
# rm mouse mode fail
|
||||||
|
set -g mode-mouse off
|
||||||
|
|
||||||
|
# color
|
||||||
|
set -g default-terminal "screen-256color"
|
0
home/.vim/backups/.gitignore
vendored
Normal file
0
home/.vim/backups/.gitignore
vendored
Normal file
210
home/.vim/colors/molokai.vim
Normal file
210
home/.vim/colors/molokai.vim
Normal file
@ -0,0 +1,210 @@
|
|||||||
|
" Vim color file
|
||||||
|
"
|
||||||
|
" Author: Tomas Restrepo <tomas@winterdom.com>
|
||||||
|
"
|
||||||
|
" Note: Based on the monokai theme for TextMate
|
||||||
|
" by Wimer Hazenberg and its darker variant
|
||||||
|
" by Hamish Stuart Macpherson
|
||||||
|
"
|
||||||
|
|
||||||
|
hi clear
|
||||||
|
|
||||||
|
set background=dark
|
||||||
|
if version > 580
|
||||||
|
" no guarantees for version 5.8 and below, but this makes it stop
|
||||||
|
" complaining
|
||||||
|
hi clear
|
||||||
|
if exists("syntax_on")
|
||||||
|
syntax reset
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
let g:colors_name="molokai"
|
||||||
|
|
||||||
|
if exists("g:molokai_original")
|
||||||
|
let s:molokai_original = g:molokai_original
|
||||||
|
else
|
||||||
|
let s:molokai_original = 0
|
||||||
|
endif
|
||||||
|
|
||||||
|
hi Boolean guifg=#AE81FF
|
||||||
|
hi Character guifg=#E6DB74
|
||||||
|
hi Number guifg=#AE81FF
|
||||||
|
hi String guifg=#E6DB74
|
||||||
|
hi Conditional guifg=#F92672 gui=bold
|
||||||
|
hi Constant guifg=#AE81FF gui=bold
|
||||||
|
hi Cursor guifg=#000000 guibg=#F8F8F0
|
||||||
|
hi Debug guifg=#BCA3A3 gui=bold
|
||||||
|
hi Define guifg=#66D9EF
|
||||||
|
hi Delimiter guifg=#8F8F8F
|
||||||
|
hi DiffAdd guibg=#13354A
|
||||||
|
hi DiffChange guifg=#89807D guibg=#4C4745
|
||||||
|
hi DiffDelete guifg=#960050 guibg=#1E0010
|
||||||
|
hi DiffText guibg=#4C4745 gui=italic,bold
|
||||||
|
|
||||||
|
hi Directory guifg=#A6E22E gui=bold
|
||||||
|
hi Error guifg=#960050 guibg=#1E0010
|
||||||
|
hi ErrorMsg guifg=#F92672 guibg=#232526 gui=bold
|
||||||
|
hi Exception guifg=#A6E22E gui=bold
|
||||||
|
hi Float guifg=#AE81FF
|
||||||
|
hi FoldColumn guifg=#465457 guibg=#000000
|
||||||
|
hi Folded guifg=#465457 guibg=#000000
|
||||||
|
hi Function guifg=#A6E22E
|
||||||
|
hi Identifier guifg=#FD971F
|
||||||
|
hi Ignore guifg=#808080 guibg=bg
|
||||||
|
hi IncSearch guifg=#C4BE89 guibg=#000000
|
||||||
|
|
||||||
|
hi Keyword guifg=#F92672 gui=bold
|
||||||
|
hi Label guifg=#E6DB74 gui=none
|
||||||
|
hi Macro guifg=#C4BE89 gui=italic
|
||||||
|
hi SpecialKey guifg=#66D9EF gui=italic
|
||||||
|
|
||||||
|
hi MatchParen guifg=#000000 guibg=#FD971F gui=bold
|
||||||
|
hi ModeMsg guifg=#E6DB74
|
||||||
|
hi MoreMsg guifg=#E6DB74
|
||||||
|
hi Operator guifg=#F92672
|
||||||
|
|
||||||
|
" complete menu
|
||||||
|
hi Pmenu guifg=#66D9EF guibg=#000000
|
||||||
|
hi PmenuSel guibg=#808080
|
||||||
|
hi PmenuSbar guibg=#080808
|
||||||
|
hi PmenuThumb guifg=#66D9EF
|
||||||
|
|
||||||
|
hi PreCondit guifg=#A6E22E gui=bold
|
||||||
|
hi PreProc guifg=#A6E22E
|
||||||
|
hi Question guifg=#66D9EF
|
||||||
|
hi Repeat guifg=#F92672 gui=bold
|
||||||
|
hi Search guifg=#FFFFFF guibg=#455354
|
||||||
|
" marks column
|
||||||
|
hi SignColumn guifg=#A6E22E guibg=#232526
|
||||||
|
hi SpecialChar guifg=#F92672 gui=bold
|
||||||
|
hi SpecialComment guifg=#465457 gui=bold
|
||||||
|
hi Special guifg=#66D9EF guibg=bg gui=italic
|
||||||
|
hi SpecialKey guifg=#888A85 gui=italic
|
||||||
|
if has("spell")
|
||||||
|
hi SpellBad guisp=#FF0000 gui=undercurl
|
||||||
|
hi SpellCap guisp=#7070F0 gui=undercurl
|
||||||
|
hi SpellLocal guisp=#70F0F0 gui=undercurl
|
||||||
|
hi SpellRare guisp=#FFFFFF gui=undercurl
|
||||||
|
endif
|
||||||
|
hi Statement guifg=#F92672 gui=bold
|
||||||
|
hi StatusLine guifg=#455354 guibg=fg
|
||||||
|
hi StatusLineNC guifg=#808080 guibg=#080808
|
||||||
|
hi StorageClass guifg=#FD971F gui=italic
|
||||||
|
hi Structure guifg=#66D9EF
|
||||||
|
hi Tag guifg=#F92672 gui=italic
|
||||||
|
hi Title guifg=#ef5939
|
||||||
|
hi Todo guifg=#FFFFFF guibg=bg gui=bold
|
||||||
|
|
||||||
|
hi Typedef guifg=#66D9EF
|
||||||
|
hi Type guifg=#66D9EF gui=none
|
||||||
|
hi Underlined guifg=#808080 gui=underline
|
||||||
|
|
||||||
|
hi VertSplit guifg=#808080 guibg=#080808 gui=bold
|
||||||
|
hi VisualNOS guibg=#403D3D
|
||||||
|
hi Visual guibg=#403D3D
|
||||||
|
hi WarningMsg guifg=#FFFFFF guibg=#333333 gui=bold
|
||||||
|
hi WildMenu guifg=#66D9EF guibg=#000000
|
||||||
|
|
||||||
|
if s:molokai_original == 1
|
||||||
|
hi Normal guifg=#F8F8F2 guibg=#272822
|
||||||
|
hi Comment guifg=#75715E
|
||||||
|
hi CursorLine guibg=#3E3D32
|
||||||
|
hi CursorColumn guibg=#3E3D32
|
||||||
|
hi LineNr guifg=#BCBCBC guibg=#3B3A32
|
||||||
|
hi NonText guifg=#BCBCBC guibg=#3B3A32
|
||||||
|
else
|
||||||
|
hi Normal guifg=#F8F8F2 guibg=#1B1D1E
|
||||||
|
hi Comment guifg=#465457
|
||||||
|
hi CursorLine guibg=#293739
|
||||||
|
hi CursorColumn guibg=#293739
|
||||||
|
hi LineNr guifg=#BCBCBC guibg=#232526
|
||||||
|
hi NonText guifg=#BCBCBC guibg=#232526
|
||||||
|
end
|
||||||
|
|
||||||
|
"
|
||||||
|
" Support for 256-color terminal
|
||||||
|
"
|
||||||
|
if &t_Co > 255
|
||||||
|
hi Boolean ctermfg=135
|
||||||
|
hi Character ctermfg=144
|
||||||
|
hi Number ctermfg=135
|
||||||
|
hi String ctermfg=144
|
||||||
|
hi Conditional ctermfg=161 cterm=bold
|
||||||
|
hi Constant ctermfg=135 cterm=bold
|
||||||
|
hi Cursor ctermfg=16 ctermbg=253
|
||||||
|
hi Debug ctermfg=225 cterm=bold
|
||||||
|
hi Define ctermfg=81
|
||||||
|
hi Delimiter ctermfg=241
|
||||||
|
|
||||||
|
hi DiffAdd ctermbg=24
|
||||||
|
hi DiffChange ctermfg=181 ctermbg=239
|
||||||
|
hi DiffDelete ctermfg=162 ctermbg=53
|
||||||
|
hi DiffText ctermbg=102 cterm=bold
|
||||||
|
|
||||||
|
hi Directory ctermfg=118 cterm=bold
|
||||||
|
hi Error ctermfg=219 ctermbg=89
|
||||||
|
hi ErrorMsg ctermfg=199 ctermbg=16 cterm=bold
|
||||||
|
hi Exception ctermfg=118 cterm=bold
|
||||||
|
hi Float ctermfg=135
|
||||||
|
hi FoldColumn ctermfg=67 ctermbg=16
|
||||||
|
hi Folded ctermfg=67 ctermbg=16
|
||||||
|
hi Function ctermfg=118
|
||||||
|
hi Identifier ctermfg=208
|
||||||
|
hi Ignore ctermfg=244 ctermbg=232
|
||||||
|
hi IncSearch ctermfg=193 ctermbg=16
|
||||||
|
|
||||||
|
hi Keyword ctermfg=161 cterm=bold
|
||||||
|
hi Label ctermfg=229 cterm=none
|
||||||
|
hi Macro ctermfg=193
|
||||||
|
hi SpecialKey ctermfg=81
|
||||||
|
|
||||||
|
hi MatchParen ctermfg=16 ctermbg=208 cterm=bold
|
||||||
|
hi ModeMsg ctermfg=229
|
||||||
|
hi MoreMsg ctermfg=229
|
||||||
|
hi Operator ctermfg=161
|
||||||
|
|
||||||
|
" complete menu
|
||||||
|
hi Pmenu ctermfg=81 ctermbg=16
|
||||||
|
hi PmenuSel ctermbg=244
|
||||||
|
hi PmenuSbar ctermbg=232
|
||||||
|
hi PmenuThumb ctermfg=81
|
||||||
|
|
||||||
|
hi PreCondit ctermfg=118 cterm=bold
|
||||||
|
hi PreProc ctermfg=118
|
||||||
|
hi Question ctermfg=81
|
||||||
|
hi Repeat ctermfg=161 cterm=bold
|
||||||
|
hi Search ctermfg=253 ctermbg=66
|
||||||
|
|
||||||
|
" marks column
|
||||||
|
hi SignColumn ctermfg=118 ctermbg=235
|
||||||
|
hi SpecialChar ctermfg=161 cterm=bold
|
||||||
|
hi SpecialComment ctermfg=245 cterm=bold
|
||||||
|
hi Special ctermfg=81 ctermbg=232
|
||||||
|
hi SpecialKey ctermfg=245
|
||||||
|
|
||||||
|
hi Statement ctermfg=161 cterm=bold
|
||||||
|
hi StatusLine ctermfg=238 ctermbg=253
|
||||||
|
hi StatusLineNC ctermfg=244 ctermbg=232
|
||||||
|
hi StorageClass ctermfg=208
|
||||||
|
hi Structure ctermfg=81
|
||||||
|
hi Tag ctermfg=161
|
||||||
|
hi Title ctermfg=166
|
||||||
|
hi Todo ctermfg=231 ctermbg=232 cterm=bold
|
||||||
|
|
||||||
|
hi Typedef ctermfg=81
|
||||||
|
hi Type ctermfg=81 cterm=none
|
||||||
|
hi Underlined ctermfg=244 cterm=underline
|
||||||
|
|
||||||
|
hi VertSplit ctermfg=244 ctermbg=232 cterm=bold
|
||||||
|
hi VisualNOS ctermbg=238
|
||||||
|
hi Visual ctermbg=235
|
||||||
|
hi WarningMsg ctermfg=231 ctermbg=238 cterm=bold
|
||||||
|
hi WildMenu ctermfg=81 ctermbg=16
|
||||||
|
|
||||||
|
hi Normal ctermfg=252 ctermbg=233
|
||||||
|
hi Comment ctermfg=59
|
||||||
|
hi CursorLine ctermbg=234 cterm=none
|
||||||
|
hi CursorColumn ctermbg=234
|
||||||
|
hi LineNr ctermfg=250 ctermbg=234
|
||||||
|
hi NonText ctermfg=250 ctermbg=234
|
||||||
|
end
|
133
home/.vim/colors/railscat.vim
Normal file
133
home/.vim/colors/railscat.vim
Normal file
@ -0,0 +1,133 @@
|
|||||||
|
" Vim color scheme
|
||||||
|
"
|
||||||
|
" Name: railscat.vim
|
||||||
|
" Maintainer: Jeff Kreeftmeijer
|
||||||
|
" License: public domain
|
||||||
|
" URL: https://gist.github.com/1523432
|
||||||
|
"
|
||||||
|
" A GUI only extended version of the Railscasts+ theme, that comes with
|
||||||
|
" Janus [1] and is, in turn, an extension to the original Railscasts theme
|
||||||
|
" [2], which is a port of the RailsCasts TextMate theme [3] to Vim.
|
||||||
|
"
|
||||||
|
" [1] https://github.com/carlhuda/janus
|
||||||
|
" [2] http://www.vim.org/scripts/script.php?script_id=2175
|
||||||
|
" [3] http://railscasts.com/about
|
||||||
|
|
||||||
|
set background=dark
|
||||||
|
hi clear
|
||||||
|
if exists("syntax_on")
|
||||||
|
syntax reset
|
||||||
|
endif
|
||||||
|
let g:colors_name = "railscat"
|
||||||
|
|
||||||
|
" Colors
|
||||||
|
" Brown #BC9458
|
||||||
|
" Dark Blue #6D9CBE
|
||||||
|
" Dark Green #519F50
|
||||||
|
" Dark Orange #CC7833
|
||||||
|
" Light Blue #D0D0FF
|
||||||
|
" Light Green #A5C261
|
||||||
|
" Tan #FFC66D
|
||||||
|
|
||||||
|
hi Normal guifg=#E6E1DC guibg=#2B2B2B
|
||||||
|
hi Cursor guibg=#FFFFFF
|
||||||
|
hi Search guibg=#5A647E
|
||||||
|
hi Visual guibg=#5A647E
|
||||||
|
|
||||||
|
" Folds
|
||||||
|
" -----
|
||||||
|
" line used for closed folds
|
||||||
|
hi Folded guifg=#F6F3E8 guibg=#444444 gui=NONE
|
||||||
|
|
||||||
|
" Misc
|
||||||
|
" ----
|
||||||
|
" directory names and other special names in listings
|
||||||
|
hi Directory guifg=#A5C261 gui=NONE
|
||||||
|
|
||||||
|
" Popup Menu
|
||||||
|
" ----------
|
||||||
|
" normal item in popup
|
||||||
|
hi Pmenu guifg=#F6F3E8 guibg=#444444 gui=NONE
|
||||||
|
" selected item in popup
|
||||||
|
hi PmenuSel guifg=#000000 guibg=#A5C261 gui=NONE
|
||||||
|
" scrollbar in popup
|
||||||
|
hi PMenuSbar guibg=#5A647E gui=NONE
|
||||||
|
" thumb of the scrollbar in the popup
|
||||||
|
hi PMenuThumb guibg=#AAAAAA gui=NONE
|
||||||
|
|
||||||
|
"rubyComment
|
||||||
|
hi Comment guifg=#BC9458 gui=italic
|
||||||
|
hi Todo guifg=#BC9458 guibg=NONE gui=italic
|
||||||
|
|
||||||
|
"rubyPseudoVariable
|
||||||
|
"nil, self, symbols, etc
|
||||||
|
hi Constant guifg=#6D9CBE
|
||||||
|
|
||||||
|
"rubyClass, rubyModule, rubyDefine
|
||||||
|
"def, end, include, etc
|
||||||
|
hi Define guifg=#CC7833
|
||||||
|
|
||||||
|
"rubyInterpolation
|
||||||
|
hi Delimiter guifg=#519F50
|
||||||
|
|
||||||
|
"rubyError, rubyInvalidVariable
|
||||||
|
hi Error guifg=#FFFFFF guibg=#990000
|
||||||
|
|
||||||
|
"rubyFunction
|
||||||
|
hi Function guifg=#FFC66D gui=NONE
|
||||||
|
|
||||||
|
"rubyIdentifier
|
||||||
|
"@var, @@var, $var, etc
|
||||||
|
hi Identifier guifg=#D0D0FF gui=NONE
|
||||||
|
|
||||||
|
"rubyInclude
|
||||||
|
"include, autoload, extend, load, require
|
||||||
|
hi Include guifg=#CC7833 gui=NONE
|
||||||
|
|
||||||
|
"rubyKeyword, rubyKeywordAsMethod
|
||||||
|
"alias, undef, super, yield, callcc, caller, lambda, proc
|
||||||
|
hi Keyword guifg=#CC7833
|
||||||
|
|
||||||
|
" same as define
|
||||||
|
hi Macro guifg=#CC7833 gui=NONE
|
||||||
|
|
||||||
|
"rubyInteger
|
||||||
|
hi Number guifg=#A5C261
|
||||||
|
|
||||||
|
" #if, #else, #endif
|
||||||
|
hi PreCondit guifg=#CC7833 gui=NONE
|
||||||
|
|
||||||
|
" generic preprocessor
|
||||||
|
hi PreProc guifg=#CC7833 gui=NONE
|
||||||
|
|
||||||
|
"rubyControl, rubyAccess, rubyEval
|
||||||
|
"case, begin, do, for, if unless, while, until else, etc.
|
||||||
|
hi Statement guifg=#CC7833 gui=NONE
|
||||||
|
|
||||||
|
"rubyString
|
||||||
|
hi String guifg=#A5C261
|
||||||
|
|
||||||
|
hi Title guifg=#FFFFFF
|
||||||
|
|
||||||
|
"rubyConstant
|
||||||
|
hi Type guifg=#DA4939 gui=NONE
|
||||||
|
|
||||||
|
hi DiffAdd guifg=#E6E1DC guibg=#144212
|
||||||
|
hi DiffDelete guifg=#E6E1DC guibg=#660000
|
||||||
|
|
||||||
|
hi link htmlTag xmlTag
|
||||||
|
hi link htmlTagName xmlTagName
|
||||||
|
hi link htmlEndTag xmlEndTag
|
||||||
|
|
||||||
|
hi xmlTag guifg=#E8BF6A
|
||||||
|
hi xmlTagName guifg=#E8BF6A
|
||||||
|
hi xmlEndTag guifg=#E8BF6A
|
||||||
|
|
||||||
|
hi StatusLine guibg=#cccccc guifg=#000000
|
||||||
|
hi StatusLineNC guibg=#666666 guifg=#333333
|
||||||
|
hi CursorLine guibg=#262626
|
||||||
|
hi VertSplit guifg=#262626
|
||||||
|
hi ColorColumn guibg=#262626
|
||||||
|
hi LineNr guifg=#666666 guibg=#333333
|
||||||
|
hi NonText guifg=#666666
|
||||||
|
hi SignColumn guibg=#666666
|
1117
home/.vim/colors/solarized.vim
Normal file
1117
home/.vim/colors/solarized.vim
Normal file
File diff suppressed because it is too large
Load Diff
0
home/.vim/swaps/.gitignore
vendored
Normal file
0
home/.vim/swaps/.gitignore
vendored
Normal file
74
home/.vim/syntax/json.vim
Normal file
74
home/.vim/syntax/json.vim
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
" Vim syntax file
|
||||||
|
" Language: JSON
|
||||||
|
" Maintainer: Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
|
||||||
|
" Last Change: 2009-06-16
|
||||||
|
" Version: 0.4
|
||||||
|
" {{{1
|
||||||
|
|
||||||
|
" Syntax setup {{{2
|
||||||
|
" For version 5.x: Clear all syntax items
|
||||||
|
" For version 6.x: Quit when a syntax file was already loaded
|
||||||
|
|
||||||
|
if !exists("main_syntax")
|
||||||
|
if version < 600
|
||||||
|
syntax clear
|
||||||
|
elseif exists("b:current_syntax")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let main_syntax = 'json'
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Syntax: Strings {{{2
|
||||||
|
syn region jsonString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=jsonEscape
|
||||||
|
" Syntax: JSON does not allow strings with single quotes, unlike JavaScript.
|
||||||
|
syn region jsonStringSQ start=+'+ skip=+\\\\\|\\"+ end=+'+
|
||||||
|
|
||||||
|
" Syntax: Escape sequences {{{3
|
||||||
|
syn match jsonEscape "\\["\\/bfnrt]" contained
|
||||||
|
syn match jsonEscape "\\u\x\{4}" contained
|
||||||
|
|
||||||
|
" Syntax: Strings should always be enclosed with quotes.
|
||||||
|
syn match jsonNoQuotes "\<\a\+\>"
|
||||||
|
|
||||||
|
" Syntax: Numbers {{{2
|
||||||
|
syn match jsonNumber "-\=\<\%(0\|[1-9]\d*\)\%(\.\d\+\)\=\%([eE][-+]\=\d\+\)\=\>"
|
||||||
|
|
||||||
|
" Syntax: An integer part of 0 followed by other digits is not allowed.
|
||||||
|
syn match jsonNumError "-\=\<0\d\.\d*\>"
|
||||||
|
|
||||||
|
" Syntax: Boolean {{{2
|
||||||
|
syn keyword jsonBoolean true false
|
||||||
|
|
||||||
|
" Syntax: Null {{{2
|
||||||
|
syn keyword jsonNull null
|
||||||
|
|
||||||
|
" Syntax: Braces {{{2
|
||||||
|
syn match jsonBraces "[{}\[\]]"
|
||||||
|
|
||||||
|
" Define the default highlighting. {{{1
|
||||||
|
" For version 5.7 and earlier: only when not done already
|
||||||
|
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||||
|
if version >= 508 || !exists("did_json_syn_inits")
|
||||||
|
if version < 508
|
||||||
|
let did_json_syn_inits = 1
|
||||||
|
command -nargs=+ HiLink hi link <args>
|
||||||
|
else
|
||||||
|
command -nargs=+ HiLink hi def link <args>
|
||||||
|
endif
|
||||||
|
HiLink jsonString String
|
||||||
|
HiLink jsonEscape Special
|
||||||
|
HiLink jsonNumber Number
|
||||||
|
HiLink jsonBraces Operator
|
||||||
|
HiLink jsonNull Function
|
||||||
|
HiLink jsonBoolean Boolean
|
||||||
|
|
||||||
|
HiLink jsonNumError Error
|
||||||
|
HiLink jsonStringSQ Error
|
||||||
|
HiLink jsonNoQuotes Error
|
||||||
|
delcommand HiLink
|
||||||
|
endif
|
||||||
|
|
||||||
|
let b:current_syntax = "json"
|
||||||
|
if main_syntax == 'json'
|
||||||
|
unlet main_syntax
|
||||||
|
endif
|
0
home/.vim/undo/.gitignore
vendored
Normal file
0
home/.vim/undo/.gitignore
vendored
Normal file
93
home/.vimrc
Normal file
93
home/.vimrc
Normal file
@ -0,0 +1,93 @@
|
|||||||
|
" Use Vim settings, rather then Vi settings (much better!).
|
||||||
|
" This must be first, because it changes other options as a side effect.
|
||||||
|
set nocompatible
|
||||||
|
|
||||||
|
" ================ General Config ====================
|
||||||
|
|
||||||
|
set number "Line numbers are good
|
||||||
|
set backspace=indent,eol,start "Allow backspace in insert mode
|
||||||
|
set history=1000 "Store lots of :cmdline history
|
||||||
|
set showcmd "Show incomplete cmds down the bottom
|
||||||
|
set showmode "Show current mode down the bottom
|
||||||
|
set gcr=a:blinkon0 "Disable cursor blink
|
||||||
|
set visualbell "No sounds
|
||||||
|
set autoread "Reload files changed outside vim
|
||||||
|
|
||||||
|
" This makes vim act like all other editors, buffers can
|
||||||
|
" exist in the background without being in a window.
|
||||||
|
" http://items.sjbach.com/319/configuring-vim-right
|
||||||
|
set hidden
|
||||||
|
|
||||||
|
"turn on syntax highlighting
|
||||||
|
syntax on
|
||||||
|
|
||||||
|
" ================ Search Settings =================
|
||||||
|
|
||||||
|
set incsearch "Find the next match as we type the search
|
||||||
|
set hlsearch "Hilight searches by default
|
||||||
|
set viminfo='100,f1 "Save up to 100 marks, enable capital marks
|
||||||
|
|
||||||
|
" ================ Turn Off Swap Files ==============
|
||||||
|
|
||||||
|
set noswapfile
|
||||||
|
set nobackup
|
||||||
|
set nowb
|
||||||
|
|
||||||
|
" ================ Persistent Undo ==================
|
||||||
|
" Keep undo history across sessions, by storing in file.
|
||||||
|
" Only works all the time.
|
||||||
|
|
||||||
|
silent !mkdir ~/.vim/backups > /dev/null 2>&1
|
||||||
|
set undodir=~/.vim/backups
|
||||||
|
set undofile
|
||||||
|
|
||||||
|
" ================ Indentation ======================
|
||||||
|
|
||||||
|
set autoindent
|
||||||
|
set smartindent
|
||||||
|
set smarttab
|
||||||
|
set shiftwidth=2
|
||||||
|
set softtabstop=2
|
||||||
|
set tabstop=2
|
||||||
|
set expandtab
|
||||||
|
|
||||||
|
filetype plugin on
|
||||||
|
filetype indent on
|
||||||
|
|
||||||
|
" Display tabs and trailing spaces visually
|
||||||
|
set list listchars=tab:\ \ ,trail:·
|
||||||
|
|
||||||
|
set nowrap "Don't wrap lines
|
||||||
|
set linebreak "Wrap lines at convenient points
|
||||||
|
|
||||||
|
" ================ Folds ============================
|
||||||
|
|
||||||
|
set foldmethod=indent "fold based on indent
|
||||||
|
set foldnestmax=3 "deepest fold is 3 levels
|
||||||
|
set nofoldenable "dont fold by default
|
||||||
|
|
||||||
|
" ================ Completion =======================
|
||||||
|
|
||||||
|
set wildmode=list:longest
|
||||||
|
set wildmenu "enable ctrl-n and ctrl-p to scroll thru matches
|
||||||
|
set wildignore=*.o,*.obj,*~ "stuff to ignore when tab completing
|
||||||
|
set wildignore+=*vim/backups*
|
||||||
|
set wildignore+=*sass-cache*
|
||||||
|
set wildignore+=*DS_Store*
|
||||||
|
set wildignore+=vendor/rails/**
|
||||||
|
set wildignore+=vendor/cache/**
|
||||||
|
set wildignore+=*.gem
|
||||||
|
set wildignore+=log/**
|
||||||
|
set wildignore+=tmp/**
|
||||||
|
set wildignore+=*.png,*.jpg,*.gif
|
||||||
|
|
||||||
|
"
|
||||||
|
|
||||||
|
" ================ Scrolling ========================
|
||||||
|
|
||||||
|
set scrolloff=8 "Start scrolling when we're 8 lines away from margins
|
||||||
|
set sidescrolloff=15
|
||||||
|
set sidescroll=1
|
||||||
|
|
||||||
|
set background=dark
|
||||||
|
colorscheme solarized
|
8
home/.zshrc
Normal file
8
home/.zshrc
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
ZSH=$HOME/.oh-my-zsh
|
||||||
|
ZSH_THEME="sunrise"
|
||||||
|
|
||||||
|
plugins=(osx brew git github redis-cli python ruby rbenv gem bundler cap heroku vagrant zsh-syntax-highlighting)
|
||||||
|
|
||||||
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
|
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:$PATH
|
Loading…
Reference in New Issue
Block a user