Instantly share code, notes, and snippets.

View init.vim
" #############################################################################
" Here is my vim configuration with lots of comments to try and explain
" everything that I have done.
" #############################################################################
" Load plug.vim, put all plugins in the right folder
call plug#begin('~/.config/nvim/bundle')
" Language file for elm
Plug 'ElmCast/elm-vim', { 'for': 'elm' }
View .vimrc
set nocompatible
set backspace=indent,eol,start
filetype plugin indent on
set relativenumber
set nowrap
syntax on
color desert
View vimrc
" Load plug
call plug#begin('~/.config/nvim/bundle')
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': 'yes \| ./install --all' }
Plug 'junegunn/fzf.vim'
Plug 'junegunn/vim-plug'
Plug 'mileszs/ack.vim'
Plug 'tomtom/tcomment_vim'
Plug 'tpope/vim-eunuch'
Plug 'tpope/vim-fugitive'
View gist:a8a695954511034a169d44815efc9b23
# sends a message to a user
# takes an email and user
def send(e, u) do
e.send(u.email)
end
View minimal.init.vim
" Load plug
call plug#begin('~/.config/nvim/bundle')
Plug 'airblade/vim-gitgutter'
Plug 'editorconfig/editorconfig-vim'
Plug 'gregsexton/MatchTag'
Plug 'honza/vim-snippets'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': 'yes \| ./install --all' }
Plug 'junegunn/fzf.vim'
Plug 'junegunn/vim-easy-align'
View p3.ex
def sieve(n) when is_integer(n), do: sieve(Enum.to_list(2..n), [1])
def sieve([], result), do: Enum.reverse(result)
def sieve([prime|tail], result) do
tail
|> Enum.reject(& rem(&1, prime) == 0)
|> sieve([prime|result])
end
View .vimrc
set nocompatible
set t_Co=256
"=============================================
" Initialization
"=============================================
" Load plug
call plug#begin('~/.vim/bundle')
View .tmux.conf
# Remove the default keybinding
unbind-key C-b
# Set a new keybinding to C-/. In terminals C-/ is the same as C-_
# however in tmux we can't bind to C-/
set-option -g prefix C-_
set-window-option -g mode-keys vi
bind-key 'c' new-window -c "#{pane_current_path}"
View keybase.md

Keybase proof

I hereby claim:

  • I am evantravers on github.
  • I am evantravers (https://keybase.io/evantravers) on keybase.
  • I have a public key ASBdrsS1ToyWx72pIo1t9txmDTNz-sMMejL2la5K9XrB_Qo

To claim this, I am signing this object:

View .tmux.conf
# Remove the default keybinding
unbind-key C-b
# Set a new keybinding to C-/. In terminals C-/ is the same as C-_
# however in tmux we can't bind to C-/
set-option -g prefix C-_
set-window-option -g mode-keys vi
bind-key 'c' new-window -c "#{pane_current_path}"