تماشای این درس نیاز به اشتراک حرفه‌ای دارد.

Vim-Style Split Commands2:20

So I'm kind of partial to the way we did it then, which was colon SP, SP for split, VSP for vertical split. You don't have to do this, if you're fine with this, stay with it. But I've actually found it to be pretty fast to modify this. Let's change it to colon, followed by, and in this case, it is a vertical split, so I will say VSP. I know this may seem incredibly weird if you've never used different modes like Vim might offer, but just stick with it, and you might like it, and if you don't, that's okay too. All right, so if I type colon VSP, I want to create a new pane to the right, and in

Closing Panes and Buffers4:53

And you'll see this node here. If we want to destroy the current pane, then we can copy this right here. Alright, Command P, switch back, and paste this in. Once again, if I'm using my Vim knowledge, then you would destroy what we would call a buffer, or a pane here, by saying : B, and then D. Destroy the current buffer. So yeah, even as I write this out, if you have no experience with Vim, this probably sounds like the weirdest thing you've ever heard. Just trust me that it's not that crazy. Alright, so let's switch to our routes file, and we've decided that we need to open up our AuthController.

Side-by-Side File Splits5:24

Alright, so let's switch to our routes file, and we've decided that we need to open up our AuthController. Well yeah, I could do Command P and just switch over like that. Especially for screencasts where you don't have a lot of real estate, that's exactly what I personally do. But when I'm on my larger monitor, instead I would create a split. :vsp, AuthController, and now I can view these side by side. And what's great about origami is, I can configure this as much or as little as I need to. For example, let's create a horizontal split with :sp, and then another vertical split,

دوست دارید گاهی خبرهای Laracasts را ایمیل کنیم؟