Created
August 2, 2016 01:06
-
-
Save GRardB/7a7cd4b0864d6ff7e68bd31d96829c20 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" plugins | |
set runtimepath^=~/.config/nvim/bundle/repos/github.com/Shougo/dein.vim | |
call dein#begin('~/.config/nvim/bundle') | |
call dein#add('~/.config/nvim/bundle/repos/github.com/Shougo/dein.vim') | |
call dein#add('Shougo/deoplete.nvim') | |
call dein#add('altercation/vim-colors-solarized') | |
call dein#add('mattn/emmet-vim') | |
call dein#add('mhinz/vim-signify') | |
call dein#add('mxw/vim-jsx') | |
call dein#add('othree/html5.vim') | |
call dein#add('pangloss/vim-javascript') | |
call dein#add('sickill/vim-pasta') | |
call dein#add('tpope/vim-fugitive') | |
call dein#add('vim-scripts/tComment') | |
call dein#end() | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" colors | |
set t_Co=256 | |
set background=dark | |
colorscheme solarized | |
" clipboard | |
set pastetoggle=<F2> | |
set clipboard=unnamed | |
" deoplete | |
let g:deoplete#enable_at_startup = 1 | |
let g:deoplete#enable_ignore_case = 1 | |
let g:deoplete#enable_smart_case = 1 | |
inoremap <silent><expr> <Tab> | |
\ pumvisible() ? "\<C-n>" : deoplete#manual_complete() | |
" enable all the things | |
filetype plugin indent on | |
syntax enable | |
" files | |
set autochdir | |
set wildignore=*.swp,*.pyc,*.class*.io,*~ | |
set wildmenu | |
set wildmode=longest,list,full | |
" file types | |
au BufNewFile,BufRead *.js set ft=javascript.jsx | |
" history | |
set history=1000 | |
set undolevels=1000 | |
" hooks | |
autocmd BufWritePre * %s/\s\+$//e | |
" indentation | |
set autoindent | |
set backspace=indent,eol,start | |
set cindent | |
set copyindent | |
set expandtab | |
set smarttab | |
set sts=2 | |
set sw=2 | |
set ts=2 | |
" misc options | |
set mouse=r "come on, neovim | |
set nocompatible | |
set number | |
set scrolloff=5 | |
set shell=/usr/local/bin/zsh | |
" search | |
set gdefault | |
set ignorecase | |
set incsearch | |
set nohlsearch | |
set smartcase | |
" sounds | |
set visualbell | |
set noerrorbells |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# aliases | |
alias ls="ls -G" | |
alias l=ls | |
alias s=ls | |
alias sl=ls | |
alias ll=ls | |
alias ..="cd .." | |
alias ...="cd ../.." | |
alias ....="cd ../../.." | |
alias vim=nvim | |
alias vimdiff="nvim -d" | |
alias stashpull="git stash save && git pull && git stash pop" | |
# settings | |
export EDITOR=nvim | |
HISTFILE=$HOME/.zsh_history | |
HISTSIZE=10000 | |
SAVEHIST=10000 | |
setopt hist_ignore_dups | |
setopt share_history | |
setopt hist_verify | |
setopt inc_append_history | |
setopt extended_history | |
setopt hist_expire_dups_first | |
setopt hist_ignore_space | |
unsetopt nomatch | |
# shortcuts | |
bindkey '^R' history-incremental-search-backward | |
# disable changing tmux tab names | |
DISABLE_AUTO_TITLE=true | |
# colors | |
autoload -U colors | |
colors | |
export TERM=xterm-256color | |
# plugins | |
source ~/.antigen.zsh | |
antigen use oh-my-zsh | |
antigen bundle brew | |
antigen bundle tmux | |
antigen bundle vi-mode | |
antigen bundle lukechilds/zsh-nvm | |
antigen bundle zsh-users/zsh-syntax-highlighting | |
antigen theme paddykontschak/Solarizsh solarizsh | |
antigen apply | |
# fix `ls` colors messed up by oh-my-zsh | |
export LSCOLORS=exfxcxdxbxegedabagacad | |
if ! { [ -n "$TMUX" ]; } then | |
cd ~/dev/trello/web/src && tmux new | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment