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

Change your Editor

Change your Editor

A programmer's most used tool is his text editor. You should choose it wisely.

This presentation was held at Devhouse Friday in Cologne by Dirk Breuer (@railsbros_dirk) and Lucas Dohmen (@moonbeamlabs).

Lucas Dohmen

July 27, 2012
Tweet

More Decks by Lucas Dohmen

Other Decks in Programming

Transcript

  1. Reasons to Switch • More/Better features • Increase Productivity •

    To learn something new • It’s a Challenge
  2. More/Better Features • Does another Editor really have more features?

    • It is more likely it has some other features which are better. • “Better” in the sense of “Better suited for your workflow”
  3. Increase Productivity • First you will have a productivity drop

    • Learn the new way • Surpass your old productivity
  4. 0 % 25 % 50 % 75 % 100 %

    Time → Productivity Switch Try to type a word
  5. 6 % 7 % 9 % 17 % 29 %

    33 % Vim Sublime Text 2 TextMate (1 + 2) Ruby Mine Emacs Other Quelle: http://gopollgo.com/what-is-your-primary-text-editor-for-ruby-slash-rails 8679 Votes
  6. Sublime Text 2 • ”TextMate Successor“ • Impressing Features •

    Really Fast • Multi Platform • … but may go the TM-way, too … • Same for ChocolatApp (but it‘s Mac Only and maybe less impressive)
  7. IDE, emacs … • Personal preference, not the topic today

    • Great Discussion: http://gist.io/3172393
  8. • Modes are hard to get into • ... and

    the reason for a lot of flamewars against Vim • ... and one of its best features
  9. • How much time do you spend writing code? •

    ... and how much reading, deleting, manipulating it? • That‘s why you have modes in Vim.
  10. Configuring your editor is like crafting your own lightsaber Image

    source: http://www.flickr.com/photos/darkthirty/55670682/
  11. Dotfiles • Learn & Steal from other people‘s configuration •

    dotfiles.github.com • github.com/railsbros-dirk/dotfiles • github.com/moonglum/dotfiles
  12. Useful plugins • surround.vim - Surrounds text objects with nearly

    everything • fugitive.vim - “a Git wrapper so awesome, it should be illegal” • tcomment_vim - Comment Toggling • snipmate - Snippets for Vim • Maybe take a look into everything Tim Pope created for Vim ;-)
  13. Wie schon gesagt, Vim ist für UNIX. Es macht sehr

    viel Sinn sich mehr mit UNIX auseinanderzusetzen und zu verwenden.
  14. • `!CMD` executes a shell command • `r !CMD` executes

    a shell command and writes the output into the file • Use % to reference the current file