Skip to content

Instantly share code, notes, and snippets.

@lrgalego
lrgalego / git alias
Last active September 28, 2018 16:48
alias gc="git commit"
alias gco="git checkout"
alias gap="git add -p"
alias gnap="git add -N .;git commit -p"
alias gst="git status"
alias gd="git diff"
alias gdc="git diff --cached"
alias gpr="git pull --rebase --autostash"
alias gp="git push"
alias glod="git log --oneline --decorate --color"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
" https://github.com/itchyny/lightline.vim
let g:lightline = {
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'fugitive', 'readonly', 'filename', 'modified' ] ]
\ },
\ 'component': {
\ 'readonly': '%{&readonly?"🔒":""}',
\ 'fugitive': '%{exists("*fugitive#head") ? fugitive#head(): ""}'
\ },
@lrgalego
lrgalego / syntastic.vim
Last active August 17, 2016 18:07
vim syntastic config for eslint
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_loc_list_height = 5
let g:syntastic_auto_loc_list = 0
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 1
let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_javascript_eslint_exec = './node_modules/.bin/eslint'
let g:syntastic_error_symbol = '❌'
let g:syntastic_style_error_symbol = '🚫'