Skip to content
An accompanying vim configuration and tmux.conf for my vim + tmux video
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md Add Trouble shooting for common issues Jul 25, 2016
tmux.conf Fix deprecated configs Jul 25, 2016
vim-workshop-ocw.pdf
vim-workshop.md
vim-workshop.pdf
vimrc slide updates, add README, tmux config, vimrc Feb 24, 2015

README.md

Vim workshop

This repo contains the slides for my vim talk. Additionally, I have provided a starter vimrc and tmux.conf. These may be a good starting point for someone getting into vim and tmux.

Check out the presentation PDF.

Vim setup instructions

  1. Download vim

    Likely, vim is already installed on you machine. If you're on a mac, you can get the latest vim from Homebrew.

    brew install macvim --override-system-vim
  2. Create a vimrc

    Create a vim configuration file in your home directory and a .vim/bundle directory

    cp vimrc ~/.vimrc
    mkdir -p ~/.vim/bundle
  3. Add vundle

    If you'd like to use vundle to manage plugins, you can install it as a git submodule

    git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/vundle

    You will also need to let vim know about vundle by adding it to your ~/.vimrc.

    set rtp+=~/.vim/bundle/vundle/
    call vundle#begin()
    
    " let vundle manage vundle
    Plugin 'gmarik/vundle'
    
    " list all plugins that you'd like to install here
    Plugin 'kien/ctrlp.vim' " fuzzy find files
    Plugin 'scrooloose/nerdtree' " file drawer, open with :NERDTreeToggle
    Plugin 'benmills/vimux'
    Plugin 'tpope/vim-fugitive' " the ultimate git helper
    Plugin 'tpope/vim-commentary' " comment/uncomment lines with gcc or gc in visual mode
    
    call vundle#end()
    filetype plugin indent on
  4. Start vim and install default plugins

    vim +PluginInstall
  5. Install tmux

    tmux can be installed from Homebrew on OSX

    brew install tmux
  6. Add a tmux config

    cp tmux.conf ~/.tmux.conf
  7. Connect to a new tmux session

    tmux new-session -s pasta

Got questions? I'm always excited to talk about vim + tmux!

Trouble Shooting

  1. If your tmux session is closed immediatly and you see the [exited] message in the terminal you are probably missing the reattach-to-user-namespace package to install it simply do

    brew install reattach-to-user-namespace
You can’t perform that action at this time.