Managing Your Splits In Vim

preview_player
Показать описание
In this video, I cover some of the basics regarding splits in Vim. I show you some of my settings in my vimrc that makes some things easier when working with splits.

REFERENCED:

WANT TO SUPPORT THE CHANNEL?

SOCIAL PLATFORMS:
💬 IRC: irc://freenode #distrotube

DT ON THE WEB:

FREE AND OPEN SOURCE SOFTWARE THAT I USE:

Your support is very much appreciated. Thanks, guys!
Рекомендации по теме
Комментарии
Автор

Didn't know about the :terminal command - thanks for that tip! I used to type Ctrl-Z, do my stuff and go back to vi using fg command in the window. Having it in a split is handier :)

busdriver
Автор

I watch everyone of your youtubes. I use vim, and I did learn somethings today. May I make a comment or two? When you edit together the little snippets into the longer one, please allow 1/4 second between topic changes. Watch your Youtube of this topic. If I was to take notes, for my needs, it would was difficult. I stopped, backed up and replayed.

My other question is to say, the corona virus may be a good thing for you. We say Canadians say "When one door closes, another door opens". The future looks bright.
Take care.
Leslie from Montreal

lsatenstein
Автор

Vim tutorials are always good. Thanks for sharing.

henninb
Автор

The only guy I've ever heard who said viyum instead of vim

Raekh_
Автор

Nice job, very helpful, your mapping method is simple compared to others found online.

craigw
Автор

thq so much for this, as a new vim lover, this was a huge help

ooogabooga
Автор

Now I have one question: why should I use splits in vim instead of using multiple windows in a tiling wm?

pdote
Автор

I find using file-specific marks (with uppercase letters as mark names) more interesting than splits for most of my use cases. Of course some cross-referencing and diff-ing can benefit from having all side to side, but I usually want to focus on one thing at a time. Having the marks allows for quick, specific buffer jumping without having to find it with :b, with added benefit of having a specific line selected

lucminax
Автор

Thanks, Derek. I appreciate you going over the various split commands. Good refresher.

andrewpalm
Автор

Thanks a lot. Your videos are the best for learning vim stuff.

modaryaghi
Автор

nice! I just start using vim splite today, because tire of swithing the windows. this give me more info. The split terminal really handy, i dont need to open another terminal for occationally compile the program that take up the space anymore.

subarutendou
Автор

You can also resize with C-w + and C-w - to move them slightly, and the typical vim repeat behavior works on window actions as well, so sometimes I'll type something like 10 or 50 and then do one of those binds and it's as if I hit them that many times. You can also include moving between splits in your vim macros which is really cool. I've used it for macros that delete a line from two files open next to each other, saves them and puts me back where I started.

SoundToxin
Автор

This is really useful! I usually use buffers in a tab-like mode, but splits well used will be useful for me.

xmboy
Автор

I hate key chords so I remapped <leader>w to <C-w> . . . maybe it's not a great idea but I find it works for me.

migtrewornan
Автор

how are you able to learn so many pieces/aspects of software so quickly?

cocorico
Автор

amazing video thanks, i think i will say goodbye to tmux

danihp
Автор

Awesome I really enjoyed, I usually use tmux or byobu but this is way easier.

azadpoursadegh
Автор

This really helped a lot, thanks for the video!

surajkumarbarnwal
Автор

This is awesome. Thanks for posting this.

kellingc
Автор

I've found it useful to remap 's' to "control-w'. This has the advantage of shortening all the windows commands in one shot. Typing "s h" is easier than "control-w h" and is even easier than Derek's "control-h" because you don't have to hold the 's' while you press the 'h'


It's not a great loss if you don't have the regular 's' command because, if you need it, 'cl' can be used as a substitute. :-) See the help page for the 's' command.

jeffreymerrick