Skip to content

Instantly share code, notes, and snippets.

@agmcleod
Last active December 10, 2015 21:18
Show Gist options
  • Save agmcleod/4494049 to your computer and use it in GitHub Desktop.
Save agmcleod/4494049 to your computer and use it in GitHub Desktop.
Configuration files & settings
PATH=$PATH:$HOME/bin
PATH=/usr/local/bin:$PATH
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
alias vu='vagrant up'
alias vs='vagrant status'
alias vsp='vagrant suspend'
alias vr='vagrant resume'
alias vssh='vagrant ssh'
[alias]
co = checkout
ci = commit
st = status
br = branch
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
rbc = rebase --continue
ap = add -p
" Show numbers and set font
set nu
set guifont=Menlo\ Regular:h12
" Autocloses braces for functions, set cursor correctly
inoremap {<CR> {<CR>}<C-o>O
" Tab spaces and syntax
set tabstop=2 shiftwidth=2 expandtab
syntax on
set syn=auto
" file type
filetype on
filetype plugin on
filetype indent on
" configures status bar at bottom
set laststatus=2
set statusline=%F%m%r%h%w\ [%{&ff}]\ [%Y]\ [%04l,%04v/%L]\ \ \ \ \ \ \ \ \ \ \ [%p%%]
colorscheme slate
set encoding=utf8
try
lang en_US
catch
endtry
function! InsertStatuslineColor(mode)
hi statusline ctermfg=red ctermbg=yellow
endfunction
au InsertEnter * call InsertStatuslineColor(v:insertmode)
au InsertLeave * hi statusline ctermfg=darkgreen ctermbg=black
" default the statusline to green when entering Vim
hi statusline ctermfg=darkgreen ctermbg=black
" I like highlighting strings inside C comments
let c_comment_strings=1
" highlight tabs and trailing space
set listchars=eol:¬,tab:→→,extends:>,precedes:<
set list
highlight NonText guifg=#4a4a59
highlight SpecialKey guifg=#4a4a59
{
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Color Scheme - Default/Cobalt.tmTheme",
"draw_white_space": "all",
"fade_fold_buttons": false,
"font_face": "Monaco",
"font_size": 12.0,
"font_options":["no_antialias", "gray_antialias"],
"highlight_line": true,
"ignored_packages":
[
"Vintage",
"SublimePaster"
],
"line_padding_bottom": 1,
"line_padding_top": 1,
"phoenix_color_blue": true,
"phoenix_highlight_current_tab": true,
"tab_size": 2,
"theme": "Phoenix Light.sublime-theme",
"translate_tabs_to_spaces": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment