Chris Hunt - Impressive Ruby Productivity with Vim and Tmux - Ancient City Ruby 2013

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ก.ค. 2024
  • Impress your friends, scare your enemies, and boost your productivity by 800% with this live demonstration of Vim and Tmux. You will learn how to build custom IDEs for each of your projects, navigate quickly between files, write and run tests, view and compare git history, create pull requests, publish gists, format and refactor your code with macros, remote pair program, and more, all without leaving the terminal. Come prepared to learn and ask questions; this is serious business.
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 50

  • @myyoutubepage1
    @myyoutubepage1 5 ปีที่แล้ว +1

    Nice seeing people sharing their workflow. I got a lot out of this :)

  • @marioaviles546
    @marioaviles546 8 ปีที่แล้ว +1

    thanks i've been using vim/tmux for a year now and I am very happy

  • @dominicnunes2709
    @dominicnunes2709 9 ปีที่แล้ว +23

    lol his Rubymine window. It would probably help to close some of those tabs and decrease the size of the file tree, it's taking up a quarter of his screen. Everybody complains about Rubymine's layout, but if you use it logically it can look as clean as Sublime Text or Vim.

    • @Tsumanu
      @Tsumanu 9 ปีที่แล้ว +6

      Additionally, you can run your rails server in RubyMine, and you have log inside this window. Typical for VIM evangelist. I using VIM for JavaScript and C++ but for Ruby this just not working well.

    • @frydac
      @frydac 7 ปีที่แล้ว +1

      Also there is an ok'ish vim plugin for rubymine, and of course its possible to learn shortcuts to toggle the filetree and other windows. Vim doesn't need this kind of 'false' comparison which imo undermines the credibility of the speaker.

  • @AndyThomasStaff
    @AndyThomasStaff 9 ปีที่แล้ว +27

    There are many Vim talks available with misleading titles. A talk about "impressive productivity" that shows you how to enter insert mode 13 minutes in...something is wrong here! I would expect to be told how to be as productive as a real IDE with real debugging capabilities. I'm a Vim fanatic but if you need to do any sort of real debugging or refactoring I would pull out an IDE with no question. Still looking for the video that convinces me otherwise.

    • @JustSujC
      @JustSujC 8 ปีที่แล้ว +2

      +Andy I'm with you on this one... I've installed and tried text editors but I still can't see the advantages over an IDE. Guys I see running Vim or emacs have an IDE in the background in case they need to do debugging, which seems to defeat the purpose of Vim/emacs in the first place.

    • @igaurab
      @igaurab 4 ปีที่แล้ว

      This is so true.

  • @ahmadaziz1800
    @ahmadaziz1800 9 ปีที่แล้ว

    This is just amazing!

  • @VeejayRampay
    @VeejayRampay 10 ปีที่แล้ว +1

    Nice to see a fellow vim-using street-photography-loving Rubyist.

  • @julkip
    @julkip 10 ปีที่แล้ว +6

    It would be nice to have all the shortened URLs in the comments

  • @isayoldchap1
    @isayoldchap1 10 ปีที่แล้ว

    Slight clarification. g in a search means replace all occurrences in each line of the search. Without it vim will replace only the first occurrence in each line. In the example at 20:41 he could have left off the g since there is only a single l or r in each of the lines. It is the %s at the start that is telling Vim to search all lines. % is a shorthand for the range 1,$ or line line 1 through the last line in the file. Anyway, excellent introduction to Vim and Tmux. Great video.

  • @MrLiminade
    @MrLiminade 9 ปีที่แล้ว +3

    What colorscheme are you using? It's really nice.

  • @trolleycaeser
    @trolleycaeser 8 ปีที่แล้ว +2

    Is there a way to change the highlight of the status bar for error related outputs only (instead of any activity)?

  • @armandoo2011
    @armandoo2011 10 ปีที่แล้ว +1

    One point in favor of vim respect to other text editors is that once it is learned it can be used in several applications, for instance on the command line, in firefox, chrome, mutt, pine, etc...

  • @hlfcoder7466
    @hlfcoder7466 6 ปีที่แล้ว +11

    Seems pretty disingenuous to criticize RubyMine and Sublime for their lack of editing space, when you could easily close the project explorer and output windows. Not to mention go full screen. Don't get me wrong, I love Vim but those aren't valid complaints.

  • @benb6527
    @benb6527 6 ปีที่แล้ว +3

    I like vim a lot, and I learned many things from this video. However, the criticism of RubyMine is unfair. I use RubyMine every day and his workflow is nearly identical to my workflow in RubyMine, and every command he does is possible in RubyMine. The only thing I learned from this video, however, is how to do things I do in RubyMine with vim.

  • @justgiz
    @justgiz 9 ปีที่แล้ว +2

    In the first examples he showed the cluttered screen. Why not maximize the windows?

  • @JB12JB
    @JB12JB 9 ปีที่แล้ว

    I'm so lost from the beginning. Don't know if I have Tmux installed properly.

  • @jav20a
    @jav20a 8 ปีที่แล้ว

    Does anyone knows how to integrate Tmux with Travis CI?

  • @SamirAbuLina
    @SamirAbuLina 4 ปีที่แล้ว

    I like vim too and try to turn it into an IDE with coc.nvim. But i think the screenshot with the tiny edit window is unfair since im pretty sure you can maximize it with a shortcut. It's the same as if someone takes a screenshot of vim with 20 splits and says how its impossible to code like that.

  • @NicholasCancelliere
    @NicholasCancelliere 11 ปีที่แล้ว

    To be fair about RubyMine - you don't have to have the project panel (on the left) or console / stdout panel (below) open if you don't want, giving you a full screen editor. You can use keystrokes to jump to files (same as Sublime), and I think having the console below is handy and it's smart about hyperlinking to the file and line making it easy to jump to something in a stacktrace.
    RubyMine does have a learning curve, but nothing more difficult than what people who want to learn Vim suffer.

    • @DGDG0000000
      @DGDG0000000 7 ปีที่แล้ว

      Nicholas Cancelliere also, a big argument should be: rubymine has an expensive price, it is a fashion GUI tool for rich people. I m not rich, and I no need GUI heavy tools.

    • @RomanTataurov
      @RomanTataurov 6 ปีที่แล้ว

      I can add an arguments. RubyMine has a bugs which was not fixed for years. For example intellij-support.jetbrains.com/hc/en-us/community/posts/206702875-Disappearing-cursor I can confirm this bug and even did a bug report which was just ignored as many others. This was one of reasons why I do not use it anymore.
      Another one was request to buy new version after year of using previous one. So if you want new features - just buy new version - very annying thing. So buying it prepare to pay sam price about yearly.

  • @TheBiloi
    @TheBiloi 10 ปีที่แล้ว +1

    Does anyone know what font is used in this video?

    • @ChrisHuntTunes
      @ChrisHuntTunes 9 ปีที่แล้ว +1

      Inconsolata-g. See leonardo-m.livejournal.com/77079.html

  • @ChristopherJones242
    @ChristopherJones242 10 ปีที่แล้ว +3

    So how do you run Firefox in tmux? Oh, wait.

  • @CodecrafterArtemis
    @CodecrafterArtemis 10 ปีที่แล้ว

    The only problem I really have with Vim is the lack of copy-paste to system buffer. Console Vim is often compiled without X11 buffer support, and if you need to copy/paste something between vim and other app in tmux over ssh... It gets complicated.

    • @CodecrafterArtemis
      @CodecrafterArtemis 10 ปีที่แล้ว

      Lit Wakefield
      I'll try with "set clipboard=unnamedplus", thank you.

    • @knowlen
      @knowlen 7 ปีที่แล้ว

      Comment is 2 years old, but just in case ppl were wondering; you can hold shift to copy text in/out of Vim. Make sure you max the pane if you're working in tmux (ctrl+b, z) -as it can sometimes grab text from other tmux panes.

  • @rasix86
    @rasix86 10 ปีที่แล้ว

    I want his colorschemes for urxvt

  • @Nicholas108108
    @Nicholas108108 7 ปีที่แล้ว +1

    That moment when you find your Lord and Saviour.

  • @baguzzaji
    @baguzzaji 10 ปีที่แล้ว

    what colorscheme you used?

    • @ChrisHuntTunes
      @ChrisHuntTunes 9 ปีที่แล้ว +1

      Railscasts theme. See github.com/chrishunt/color-schemes

  • @estebancastro5735
    @estebancastro5735 9 ปีที่แล้ว +1

    ...and the geek joke lol 07:14

  • @DwayneMacgowan
    @DwayneMacgowan 11 ปีที่แล้ว +1

    i use RubyMine a lot and my window NEVER looks like that.

    • @DGDG0000000
      @DGDG0000000 7 ปีที่แล้ว

      Dwayne Macgowan how much money to loose for have same functionalities and fashion look with $rubymine$ ? And how much.... Every year ! OMG. ..

  • @asdqwe4427
    @asdqwe4427 9 ปีที่แล้ว +21

    Those screenshots of sublime and ruby mine are so dishonest. As if you wouldn't tab or have multiple screens. The first 4 minutes are just a lie, the problems he has with the other environments is what? That he does not know about alt+tab and hiding panels within an editor? Seriously, who keeps the console open when they are typing?

    • @osuf3581
      @osuf3581 8 ปีที่แล้ว +3

      +Marcus Rehn Especially when you can set up macros to tab to specific windows and hence the equivalent of tmux but not limited to terminal apps.

    • @benb6527
      @benb6527 6 ปีที่แล้ว

      I use RubyMine every day and my workflow is exactly like his. The judgment from vim users is really sad - I would never judge them for their tool of choice. If they know the tool well, they will be powerful.. the same is true with RubyMine. A user who doesn't know how to use their tools will be just as ineffective with any tool.

  • @RedRumIzzy
    @RedRumIzzy 9 ปีที่แล้ว +6

    The Impressive in the title should be in quotes. I want to see this person actually DOING these things fast. Pointless presentation.

    • @lxathu
      @lxathu 8 ปีที่แล้ว

      +Red Rum Relativity is the key. Yes, ViM is impressive... compared to editors in its size and category.
      Not mentioning that IDEs in their own area can be much more impressive is not fair. Even if there are (rarely used) functions of ViM that are found nowhere else, no doubt I'd trigger an eclipse-based bloatware when it's really a project and not just a codelet for fun.
      Sure... then I would type meaningless :wq or ZZ or /blabla several times...

    • @RedRumIzzy
      @RedRumIzzy 8 ปีที่แล้ว

      +Sándor Gombai I agree that ViM has some cool features. I have spent/wasted many months learning all the obscure commands, but then I realized that (1) I don't spend my time typing out reams of code. Rather I spend my time reading code, debugging code, navigating code and just thinking about code. (2) The amount of time you spent memorizing these commands is overwhelmingly large compared to the millisecond savings in the general case (I'm sure there are outliers, but I'd could use a different data processing tool in those cases ) (3) full fledged IDEs (depending on your programming language) offer much better tech when it comes to debugging and navigating code.

  • @marauderinchief6858
    @marauderinchief6858 5 ปีที่แล้ว

    Kinda confused bw the fiancee and the dog!

  • @Medic23451
    @Medic23451 7 ปีที่แล้ว

    It's great how most of the screen is just the completely pointless background and fake screen. Like seriously, who thought that was a good idea?

  • @biomorphic
    @biomorphic 6 ปีที่แล้ว +1

    First of all, Ruby is dead, and I'm happy because it sucks. Second, I don't really see any improvement in your productivity here. Where are the refactoring features, where is the static code analysis that Rubymine provides? Better alternative to Tmux is i3, which is a window manager. In Rubymine you can easily display just the code. Vim is terrible, it's the only editor with two modes, insert and command. That's ridiculous. I love the command line, but Vim is awful and it cannot be compared to an IDE as Rubymine.

    • @Egzvorg
      @Egzvorg 5 ปีที่แล้ว

      What makes you think Vim is terrible? Did you try to use it? I agree it cannot be compared to _any_ IDE because it's just a text editor and should be used accordingly.

  • @ShamelessHorse
    @ShamelessHorse 10 ปีที่แล้ว

    0:14 I seriously thought that was Denzel Washington, is that racist? Probably, but I also thought the other guy was Robert DeNiro, lol. If you squint a little it really looks like them; okay, squint, lean back, make very little effort to focus on either of them, assume that you are looking at a still from a movie starring Denzel Washington and Robert DeNiro and do all the above without having slept for 32 hours.

  • @Ayokalyb
    @Ayokalyb 10 ปีที่แล้ว

    Sublime Text 2 or GTFO.