defndaines / env

Environmental configuration files to be shared across any machine I happen to be using.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

env

Environmental configuration files to be shared across any machine I happen to be using. I try to keep things happy between Linux and macos.

In addition to these files, it have also installed git completion manually (not sure if this is still needed): https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash

vim

When setting up a new environment, add vim ephemera to the git ignore file. The git configuration has to be set per environment, since the path should be absolute.

echo "*.swp" >> ~/.gitignore
git config --global core.excludesfile ~/.gitignore

For vim, install these plugins by cloning into ${HOME}/.vim/pack/bundle/start/. The following are a list of vim libraries I've used at one point or another.

  • vim-slime Inject from one tmux pane to another.
  • ale Asynchronous Lint Engine
  • tabular Auto-align text, typically by a record separator. For example, :Tabularize /| aligns on pipe characters.
  • vim-repeat Allows using . with plugins.
  • vim-sandwich
  • nerdcommenter Code commenting functions.
  • vim-grepper Grepper for asynchronous greps
  • rainbow For rainbow parentheses.
  • spelunker For catching spelling errors inside code (smart about camelCase, etc.)
  • endwise.vim For automatically adding end statements in Elixir, Ruby, etc.
  • fzf and fzf.vim Fuzzy finder for quickly locating files.

Elixir

Clojure

Erlang

vim Colors

I've been favoring light themes for a bit now, but I keep a sparse ..vim/colors/ directory. Currently using PaperColor.

Customizations

When we want to track pairing at work, I'll add a .vim/work.vim file that looks roughly like this:

" Coworker Git autocorrects
iab gjane Co-authored-by: Jane Doe <jane.doe@company.com>

CTags

I sometimes set up projects to use ctags. universal-ctags

OCaml

I'm not actively developing in OCaml at the moment, but I still like to have it set up in my environment, particularly so I can take advantage of patdiff. My .bash_profile already checks for opam installation (the OCaml package manager), .ocamlinit is already set up, and .gitconfig is set up to allow git patdiff <file>.

brew install opam
opam init
eval `opam config env`
opam update
opam install patdiff

About

Environmental configuration files to be shared across any machine I happen to be using.


Languages

Language:Vim Script 43.2%Language:Shell 31.8%Language:PLpgSQL 22.2%Language:Clojure 2.1%Language:Ruby 0.6%