adriaanwm / dotfiles-1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Obligatory Dotfile Repo

Nothing super crazy going on here, but some sensable vim and tmux configs.

I lied, this is some crazy stuff... So yeah...Here be dragons?

Note to iterm

Iterm nightly is a must. Or any terminal that supports true colors.

Once installed, click on the iterm color config in config/colors to add oceanicNext

NeoVim

Yeahh, I've moved over to neovim completely now. It still has it's problems here and there, but its pretty stable for the most part.

Anyways, neovim has support for true colors, so that flag is turned on. Some key plugins for neovim are:

Vim-Airline

vim-airline is much lighterweight, intergrates with a bunch of plugins I already have, and is eaiser to set up.

  Bundle 'bling/vim-airline'

Anything by Shougo

The guy is big in the vim/neovim community and his plugins are top notch. Hell, even my plugin manager is made by him. If he ever sees this, thanks Shougo!

Code completion for typescript. This is a must for me, and since I'm in neovim, it's non-block, yay async. A bit difficult to setup but it's pretty well documented.

# install typescript
npm -g install typescript
" install vimproc
NeoBundle 'Shougo/vimproc.vim', {
\ 'build' : {
\     'windows' : 'tools\\update-dll-mingw',
\     'cygwin' : 'make -f make_cygwin.mak',
\     'mac' : 'make -f make_mac.mak',
\     'linux' : 'make',
\     'unix' : 'gmake',
\    },
\ }

NeoBundle 'Quramy/tsuquyomi'

vimproc is needed since we need to run a TSServer. Sadly, you need both even in neovim

The lengths I'll go for some gui-goodness in my vim. This is really optional and over the top, but it adds icons to your file tree (if using nerdTree). So over the top....I need it.

I use Source Code Pro for my fonts, maybe you do too. But we're using powerline here folks, so we need some patched fonts.

https://github.com/ryanoasis/nerd-fonts

Install one of these fonts and you should be good to go. Don't forget to set your terminal font to that font as well.

Tmux

So if you can tell by now, I'm set on using true colors....everywhere. This is possible with tmux as well, though it requires patching.

Not a big deal for most people, but I like it so I do it.

Assuming you're using homebrew, edit tmux

brew edit tmux

Then, before def install, add this.

  option "with-truecolor", "Build with truecolor patch enabled"
  patch do
    url "https://gist.githubusercontent.com/zchee/9f6f2ca17acf49e04088/raw/0c9bf0d84e69cb49b5e59950dd6dde6ca265f9a1/tmux-truecolor.diff"
    sha1 "8e91ab1c076899feba1340854e96594aafee55de"
  end if build.with? "truecolor"

Now you can run brew install tmux --with-truecolor and get all the colors for iterm nightly.

Tmux powerline

My status bar for tmux is custom, only using a few plugins for battery charge and memory usage. Was a nice experiment with the tmux API. Also it uses powerline symbols, which should be covered.


I think that's it, probably missed a few things here and there or spelled something wrong. This is more for my own sake when setting up a new machine so I can figure out what the fuck is actually going on.

Install

Note this install is if you have a new machine, and need everything setup. For that, I sugguest

curl https://cdn.rawgit.com/mhartington/dotfiles/master/install.sh | sh

If you already have things like git, homebrew,node etc installed, then here have a cookie and sit back. You should just be able to just run these few lines.

brew tap thoughtbot/formulae
brew install rcm
git clone https://github.com/mhartington/dotfiles.git ~/.dotfiles
cd $HOME
rcup

##Inspiration

About


Languages

Language:Shell 58.7%Language:Vim Script 40.4%Language:Lua 0.9%