Skip to content

Instantly share code, notes, and snippets.

View willopez's full-sized avatar

Will Lopez willopez

  • Houston, TX
View GitHub Profile
@willopez
willopez / .tmux.conf
Last active August 29, 2015 14:10
Tmux Config
###########################
# Configuration
###########################
# use 256 term for pretty colors
set -g default-terminal "screen-256color"
# increase scroll-back history
set -g history-limit 5000
@willopez
willopez / vim_workflows.txt
Created December 1, 2014 23:59
Vim Workflows
Vim Workflows
" Search and Replace
/foo<CR>
cgnnewfoo on first match
n.n.n. ... to replace next match
@willopez
willopez / snippets_expand_trigger.vim
Last active August 29, 2015 14:12
Vim Snippets expand trigger functon
function! Neoj()
if pumvisible() == 1
return "\<C-n>"
else
call UltiSnips#JumpForwards()
if g:ulti_jump_forwards_res == 0
return "\<C-j>"
endif
return ""
endif
@willopez
willopez / vim_research.vim
Last active August 29, 2015 14:12
Vim experiments
Article
http://www.codeography.com/2013/06/17/replacing-all-the-things-with-unite-vim.html
Repo
https://github.com/terryma/dotfiles
" Use Ag to search files via ctrlp
unlet g:ctrlp_user_command
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
@willopez
willopez / vim_compile.sh
Last active February 26, 2019 18:34
Compile vim from source on Ubuntu 14.04
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common
sudo apt-get build-dep vim-gnome
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev mercurial libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev
sudo rm -rf /usr/local/share/vim
sudo rm /usr/bin/vim
@willopez
willopez / reactjs
Last active August 29, 2015 14:21
Reactjs Best Practices
Reactjs
http://blog.siftscience.com/blog/2015/best-practices-for-building-large-react-applications
http://aeflash.com/2015-02/react-tips-and-best-practices.html
*Performance*
React.js Conf 2015 - Making your app fast with high-performance components
https://www.youtube.com/watch?v=KYzlpRvWZ6c#action=share
Remap Caps to to ESC
http://apple.stackexchange.com/questions/132564/how-can-i-remap-caps-lock-to-both-escape-and-control
" Use space as leader
let mapleader = " "
" Use Ag to search files via ctrlp
unlet g:ctrlp_user_command
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
" NERDTree
map <Leader>nn :NERDTreeToggle<cr>
map <Leader>nf :NERDTreeFind<cr>
@willopez
willopez / gist:7e107583dbe4df1fec97
Last active September 24, 2015 03:23
.vimrc.before.local
let g:spf13_bundle_groups=['general', 'writing', 'youcompleteme', 'programming', 'ruby', 'javascript', 'html']
@willopez
willopez / gist:d6e4f16067305d0fab96
Last active September 8, 2015 23:19
.vimrc.bundles.local
" Additional bundles
Bundle 'rking/ag.vim'
Bundle 'mxw/vim-jsx'
Bundle 'junegunn/vim-easy-align'
Bundle 'marijnh/tern_for_vim'
Bundle 'goatslacker/mango.vim'
Bundle 'Yggdroot/indentLine'
Bundle 'evanmiller/nginx-vim-syntax'
" Disable unneeded bundles