Skip to content

My dotfiles for golang, rails and node development on vim 7.3+

Notifications You must be signed in to change notification settings

vastbinderj/dotfiles

Repository files navigation

This is my personal collection of dotfiles and setup scripts for vanilla machines. It turns them into lean mean developer rigs in a short amount of time.

For vim, I use Vundle for plugin management and my mapleader is a ','. Be sure to read through the .vimrc file for key mappings, as they are set to ones which suite me best. This configuration works well vim 7.4 or neovim installed with hombrew on my macs, but these work well with vim 7.2+ on Cent OS and Ubuntu, which are my primary development environments at work.

I have this configured to work with both vim and neovim.

Set up a new Mac and Ubuntu/Debian Linux rig

    > mkdir -p $HOME/code
    > git clone https://github.com/vastbinderj/dotfiles.git ~/code/dotfiles
    > cd $HOME/code/dotfiles
    > ./setupNewRig.sh                  # this sets up a mac or x64 linux server
    > exec -l $SHELL                    # reload your shell
    > ./setupVim.sh                     # configure vim and install plugins

Be sure to create a file called $HOME/.gitconfig-credentials for your local credentials you do not want the rest of the world to see, replacing everything in {ALL_CAPS}. Here is a quick view of what I have in mine:

    [user]
        name = James Vastbinder
        email = {EMAIL_ADDRESS}
    [github]
        user = {GITHUB_ID}
        token = {GITHUB_TOKEN}
    [sendemail]
        smtpencryption = tls
        smtpserver = smtp.gmail.com
        smtpuser = {SMTP_EMAIL_ADDRESS}
        smtpserverport = 587
        to = git@vger.kernel.org

To upgrade all bundled plugins at any time:

Open vim and run :PluginUpdate or :PluginInstall!

dotfiles included

    - bash_profile (for mac)
    - bashrc       (for linux & mac)
    - gitconfig    (remember to swap my email address for yours)
    - gemrc
    - jshintrc
    - npmrc
    - tmux.conf    (prefix set to ctrl-a and vim key-mappings)
    - vimrc
  • To enable mouse scrolling on a mac in terminal, install easySIMBL and mouseterm or use iTerm. I use iTerm and have installed patched fonts for airline and my tmuxline.

  • For golang development, I use vim-go which does many things for me like auto-imports, gofmt upon save and provides easy jump mappings to quickly browse source code.

    To install the Golang binaries, run :GoInstallBinaries. You may need to do this with a new Golang release.

  • Mappings for Escape in Vim

    • j-k
    • ;-f to save and coninue in the current mode
    • ;-a to save and switch modes
  • Mappings for pane movement vim and tmux

    • C-h - Left one pane
    • C-j - Down one pane
    • C-k - Up one pane
    • C-l - Right one pane
  • Tmux mappings

    • C-a,- to split a pane horizontally
    • C-a,| to split a pane vertically
    • Shift-leftarrow to move to the left window
    • Shift-rightarrow to move to the right window

Installed Vim modules of note

    - Airline
    - Ctrl-P
    - Auto-Pairs
    - Fugitive
    - Gundo
    - vim-go
    - NERDTree
    - headlights
    - tmuxline
    - JSHint
    - Repeat.vim
    - SnipMate
    - SuperTab
    - Surround
    - Syntastic
    - TComment
    - Vim Indent Guides
    - Emmet

About

My dotfiles for golang, rails and node development on vim 7.3+

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published