Skip to content

Instantly share code, notes, and snippets.

" pathogen vim modules
execute pathogen#infect()
set t_Co=256
filetype plugin on
filetype indent on
syntax on
set laststatus=2
" statusline+=%{FugitiveStatusline()}
" General
# Unbind prefix from Ctrl-b to Ctrl-a
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# Moving between panes using 'hjkl'
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Homebrew binaries now take precedence over Apple defaults
export PATH=/usr/local/bin:$PATH
# For ctrl-z both ways
stty susp undef
bind '"\C-z":"fg\015"'
# Display Settings
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
export PS1="\e[0;31m> \e[0;37m"
@eltonlaw
eltonlaw / bash-cheatsheet.sh
Created July 17, 2017 21:09 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
[MASTER]
# Specify a configuration file.
#rcfile=
# Python code to execute, usually for sys.path manipulation such as
# pygtk.require().
#init-hook=
# Add files or directories to the blacklist. They should be base names, not
@eltonlaw
eltonlaw / setup.sh
Last active March 30, 2019 18:13
Setup configuration for MacOS
mkdir ~/.vim-tmp # custom vim .swp trash can
# Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Setup dev environment
brew install wget
# Download config files
wget -P ~/ https://gist.githubusercontent.com/eltonlaw/13259a65f4ea0a85a74cfc2d03fad29c/raw/.bash_profile
@eltonlaw
eltonlaw / html.vim
Last active December 20, 2017 18:00
" ~/.vim/ftplugin/html.vim
set omnifunc=htmlcomplete#CompleteTags
" ~/.vim/ftdetect/mkd.vim
au! BufRead,BufNewFile *.markdown set filetype=mkd
au! BufRead,BufNewFile *.md set filetype=mkd
@eltonlaw
eltonlaw / mkd.vim
Last active December 20, 2017 18:31
" ~/.vim/ftplugin/mkd.vim
setlocal colorcolumn=0
setlocal linebreak
setlocal nonumber
setlocal shiftwidth=4
setlocal spell
setlocal tabstop=4
setlocal wrap
setlocal colorcolumn=0
" ~/.vim/ftplugin/tex.vim
"" vim-latex
" IMPORTANT: grep will sometimes skip displaying the file name if you
" search in a singe file. This will confuse Latex-Suite. Set your grep
" program to always generate a file-name.
set grepprg=grep\ -nH\ $*
" OPTIONAL: Starting with Vim 7, the filetype of empty .tex files defaults to
" 'plaintex' instead of 'tex', which results in vim-latex not being loaded.