Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Vim, Tmux and Rails

Vim, Tmux and Rails

My daily day Rails development with Vim and Tmux

F93acf41fbe5f1b68a4edba716e865a1?s=128

Pau Pérez

May 20, 2016
Tweet

Transcript

  1. Vim, Tmux and Rails

  2. Pau Pérez Backend developer at Redbooth @prez_pau

  3. Tmux workflow

  4. Sessions Session per repo Switch context easily

  5. Sessions Attach or create tmux session named after the current

    directory $ tat tmux new-session -As "$(basename "$PWD" | tr . -)"
  6. Windows 1 - First vim 2 - then playground 3

    - server 4 - and others
  7. Panes One-time tasks

  8. Zoom Temporally focus on something Find something in a large

    output
  9. Visual Select ! Yank and paste in tmux! Don't touch

    the mouse anymore!
  10. Vim mode Vim to the rescue everywhere!

  11. Plugins

  12. Thyme ! timer with Tmux integration

  13. Powerline Pomodoro timer Coolness

  14. Vim

  15. Plugins

  16. Vim Ruby Syntah highlighting Smart indenting Shift + Enter

  17. I ❤ Vim Rspec TDD without leaving Vim

  18. Vim Rails Highligthing plus navigation

  19. Vim Reek Execute reek in a file

  20. Vim Abolish Substitution Coercion * crs: snake_case * crm: MixedCase

    * crc: camelCase * cru: UPPER_CASE
  21. Vim Endwise Adds end for do, def, etc.

  22. Vim Blockle From do end to {}

  23. Argumentrewrap foo(bar, baz, blub) foo( bar, baz, blub )

  24. Snippets and others UltiSnips + Vim Snippets desc, cont, its,

    subj mod, class, def bb