Skip to content

Instantly share code, notes, and snippets.

@johnnadeau
Created September 15, 2015 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnnadeau/33d7b18e2ba3b093f4a1 to your computer and use it in GitHub Desktop.
Save johnnadeau/33d7b18e2ba3b093f4a1 to your computer and use it in GitHub Desktop.

Why I use VIM and tmux.

  • I'm more efficient and productive in an environment like this. I can move around a file more quickly. Change the file I'm looking at in an instant. Have a console window and several source files open in the same terminal window, neatly organized as I see fit.

  • When I say VIM and tmux, I actually mean anything that makes you more productive. Use VIM/screen, emacs/screen, emacs/tmux, etc...

  • Workflow before:

  1. Open sublime, open directory I'm working in
  2. Open a terminal window
  3. Change to the directory I'm working in
  4. Start my rails server
  5. Open another terminal window/tab
  6. Start guard to run my tests automatically
  7. Open another terminal window/tab for anything else I might run
  8. Use my mouse to click back and forth between sublime and my terminal windows to do my developing/testing/etc
  • Workflow now:
  1. Open terminal
  2. Change to the directory I'm working in
  3. Fire up a tmux session
  4. Make windows, panes or tabs with the rails server, guard, etc. Usually, I'll have one dedicated to VIM and occasionally run a server or guard console in my view depending on if I want an uninterupted editing environment.
  5. Use only the keyboard to move around

-Future tmux-resurrect Allows you to restore your tmux session after a system restart!

helpful links

http://vim.org http://tmux.github.io/ http://tmuxcheatsheet.com/ http://vim-adventures.com/ vimtutor(inside vim) any tpope vim plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment