How to Configure a Vim and Tmux Development Development Environment

Depending on your operating system, you may need to first install Vim. After the program itself is installed you can build the environment.

Create a ~/.vim/ directory if it doesn't already exist along with an ~/.vim/autoload directory.

Inside of the autoload directory, create a file called pathogen.vim with the following contents:

Now add/edit a file called ~/.vimrc and place the following contents in it:

Now let's install all of the plugins. Since we're using Pathogen for the plugin manager, we can simply copy and paste these commands (your list of plugins may also be determinied by your programming language, several of mine include Rails specific behavior):

Now let's install and configure Tmux, if you're on Mac you can install it with Brew, if you're on Linux, you can use the following command:

sudo apt-get install tmux

After it's installed on your system, you can create a file at the root of your user's system, so you can use vim to create the file:


And then add the following contents to the file (this assumes that you're using zsh for your shell, if not, you can remove the 63):

From there you can restart the terminal and your system should be setup!