Skip to content

Instantly share code, notes, and snippets.

@piatra
Last active May 13, 2019 08:45
Show Gist options
  • Save piatra/a872255ad5b32ecb2b6c7b04a33d907f to your computer and use it in GitHub Desktop.
Save piatra/a872255ad5b32ecb2b6c7b04a33d907f to your computer and use it in GitHub Desktop.
DOT files
[cinnabar]
helper = /Users/andreioprea/Work/git-cinnabar/git-cinnabar-helper
[user]
name = Andrei Oprea
email = [email protected]
[alias]
co = checkout
ci = commit
st = status
br = branch
rb = rebase
cp = cherry-pick
[filter "lfs"]
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
[core]
excludesfile = ~/.gitignore
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
Plugin 'Shougo/vimproc.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'Valloric/YouCompleteMe'
Plugin 'eagletmt/ghcmod-vim'
Plugin 'eagletmt/neco-ghc'
Plugin 'vim-syntastic/syntastic'
Plugin 'jonathanfilip/vim-lucius'
Plugin 'scrooloose/nerdtree'
Plugin 'scrooloose/nerdcommenter'
Plugin 'troydm/easybuffer.vim'
Plugin 'kien/ctrlp.vim'
Plugin 'rust-lang/rust.vim'
Plugin 'racer-rust/vim-racer'
Plugin 'airblade/vim-gitgutter'
Plugin 'mtscout6/syntastic-local-eslint.vim'
" plugin from http://vim-scripts.org/vim/scripts.html
" Plugin 'L9'
" Git plugin not hosted on GitHub
Plugin 'git://git.wincent.com/command-t.git'
" git repos on your local machine (i.e. when working on your own plugin)
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" Install L9 and avoid a Naming conflict if you've already installed a
" different version somewhere else.
" Plugin 'ascenator/L9', {'name': 'newL9'}
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
"
colorscheme lucius
LuciusDark
set laststatus=2
syntax on
set hls
filetype plugin indent on
" show line number
set nu
" relative line no
set relativenumber
" spacing
set ts=2
set sw=2
" set leader
let mapleader = ","
" tell it to use an undo file
" set a directory to store the undo history
set undodir=~/.vim/vimundo/
set undofile
set undolevels=1000
set undoreload=1000
" sane search
set ignorecase
set incsearch
"""" Mappings
" easy buffer
map <Leader>b :EasyBuffer<CR>
" nerdtree
map <Leader>n :NERDTree<CR>
let NERDTreeIgnore = ['\.pyc$']
" only
map <Leader>o :only<CR>
" show line @ 80 chars
highlight OverLength ctermbg=red ctermfg=white guibg=#592929
match OverLength /\%81v.\+/
if exists('+colorcolumn')
set colorcolumn=80
else
au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1)
endif
" fuzzy find
let g:ctrlp_working_path_mode = 'a'
nmap ,p :CtrlP<CR>
set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*.pyc,*/built/*,*/logs/*
set wildignore+=*/node_modules/*
set wildignore+=*/dist/*
set wildignore+=*/env/*
" mozilla-central ignore
set wildignore+=*/third_party/*,*/gfx/*,*/netwerk/*,*/dom/*,*/mobile/*,*/media/*,*/taskcluster/*
set wildignore+=*/build/*,*/docshell/*,*/hal/*,*/js/*,*/testing/*
let g:ctrlp_max_files=0
let g:ctrlp_max_depth=40
" spacing
set tabstop=2
set shiftwidth=2
set expandtab
filetype plugin indent on
set guifont=Source\ Code\ Pro\ for\ Powerline\ 12
"let g:ycm_add_preview_to_completeopt=0
"let g:ycm_confirm_extra_conf=0
set completeopt-=preview
filetype plugin on
set omnifunc=syntaxcomplete#Complete
let g:syntastic_javascript_checkers = ['eslint']
au BufNewFile,BufRead *.jsm setlocal ft=javascript
let g:syntastic_javascript_jsm_checkers = ['eslint']
let g:syntastic_python_checkers = ['pyflakes']
let g:syntastic_haskell_checkers = ['ghc-mod', 'hlint']
let s:clang_library_path='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib'
if isdirectory(s:clang_library_path)
let g:clang_library_path=s:clang_library_path
let g:syntastic_c_include_dirs=['/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include']
endif
" Syntastic
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_aggregate_errors = 1
let g:syntastic_c_checkers=['gcc']
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_check_on_open=1
let g:syntastic_enable_signs=1
let g:syntastic_error_symbol = '✗'
let g:syntastic_warning_symbol = '⚠'
"let g:syntastic_debug = 3
" ??!?!
set backspace=2
" colors
if &term == "screen"
set t_Co=256
endif
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH=/Users/andreioprea/Work/moz-git-tools:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/andreioprea/.oh-my-zsh
export EDITOR=vim
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell"
# Set list of themes to load
# Setting this variable when ZSH_THEME=random
# cause zsh load theme from this variable instead of
# looking in ~/.oh-my-zsh/themes/
# An empty array have no effect
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git)
source $ZSH/oh-my-zsh.sh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# ssh
# export SSH_KEY_PATH="~/.ssh/rsa_id"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
export PATH="$HOME/.cargo/bin:$PATH"
export PATH="$HOME/Work/.deps/arcanist/bin/:$PATH"
export PATH="/usr/local/opt/node@8/bin:$PATH"
alias g="git"
alias bas="cd ~/Work/activity-stream && npm run buildmc && cd -"
alias mbr="bas && ./mach build faster && ./mach run"
alias mbbr="bas && ./mach build && ./mach run"
alias mozfetch="cd ~/Work/mozilla-central && g fetch mozilla"
alias gclean="g clean -df && g checkout -- . && g clean -df"
alias swpclean="find . -type f -name '*.swp' -delete"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment