Тёмный

[vim] Copying and Moving Around Lines 

theteachr
Подписаться 6 тыс.
Просмотров 2,4 тыс.
50% 1

Config: github.com/theteachr/.setting...

Опубликовано:

 

26 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 25   
@Abhishekjsasnur
@Abhishekjsasnur Год назад
Hi bro I am abhishek your introduction and talking is very good
@TheBuilder
@TheBuilder Год назад
I would recommend using visual mode, it doesn't require as much attention and the range is directly shown in the editor
@samyak039
@samyak039 Год назад
awesome video, I always learn something new from your videos. really enjoy them. kudos.
@briangentry3118
@briangentry3118 Год назад
This is interesting academically, but it's obviously impractical. It takes way too long compared to just doing it with relative jumping as you first showed. The VIM command line is useful for somethings. "norm" commands, for example, are crazy powerful and let you do things that you would normally have to write a macro to do. I use norm commands often when modifying text in a programatic way. I applaud your efforts to teach VIM. It's not an easy job. Keep it up!
@theteachr
@theteachr Год назад
I agree. Instead of jumping to the line with relative numbers, if I can go there by searching, I can come back easily with Ctrl O. Something I can’t do when I use relative jumping as that doesn’t touch the jump list. About the norm command, I use it in conjunction with macros sometimes. Typically when editing the line involves coming back to normal mode. I have demonstrated this in ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-RaynmHxUixA.html.
@briangentry3118
@briangentry3118 Год назад
@@theteachr I thought of control-o immediately! I tried that and it didn't work, as you said. The jump list is still a little mysterious to me, but your example of searching makes sense. I guess searching is more of a "jumping" kind of action. As opposed to just simple motion like "6k". I watched your norm video you linked. The idea of doing both norm and macros together is awesome. One of the biggest problems with repeated macros is how do you make it stop? Or alternatively, "how do you specify the exact correct number of repeats?" Before I discovered the norm -> macro technique I was always guessing the number and doing multiple trials (and undos). I should go look through more of your videos now; you can probably teach me something else too. :) Take care.
@darylbubuneatitonarh7971
@darylbubuneatitonarh7971 Год назад
Nice video! Could we get some more lessons on Data Structures? Especially with their Algorithms? Like Stacks and Queues
@nickskywalker2568
@nickskywalker2568 Год назад
That's cool
@farzadmf
@farzadmf Год назад
Great tip, thank you!
@s4degh
@s4degh Год назад
These commands are actually directly ported or better to say inherited from `ed`. The ancient father of vim
@theteachr
@theteachr Год назад
Yes! It’s interesting how lack of resources was what resulted in such efficiency.
@tcroyce8128
@tcroyce8128 Год назад
NOICE
@Podoco_music
@Podoco_music Год назад
wow! awesome video. do you plan on making more vim quicky vidoes. that would be great. also, maybe a keypress overlay so we can see you type the commands? keep make great videos.
@theteachr
@theteachr Год назад
The only key visualiser for macOS has gone really bad, sorry :< I just bumped the priority of the task to spin up my own.
@PiyushSingh-bi9kn
@PiyushSingh-bi9kn Год назад
Great tool. One question though how do you set cursor colour , in terminal or neovim?
@theteachr
@theteachr Год назад
Cursor settings are controlled by the terminal application. Every terminal has its own way to configure it.
@ArvidDoerwald
@ArvidDoerwald Год назад
I am using (neo)vim to write texts and prose, rarely programs. Therefore, I like to know if there is a way to do this with paragraphs as well? Thanks a lot.
@Levi_OP
@Levi_OP Год назад
If you're not putting line breaks in between sentences of paragraphs, and just letting them go to the next line, this should work just as well.
@theteachr
@theteachr Год назад
If you see that a part of the paragraph is 13 lines below where your cursor is, you could do `+13dap` to delete that paragraph.
@Kartoflaszman
@Kartoflaszman Год назад
How did you edit the command ":-5,3" in some kind of a buffer?
@theteachr
@theteachr Год назад
q:
@jayant6172
@jayant6172 Год назад
can we do some other operation also? like commenting a range of line through command mode?
@theteachr
@theteachr Год назад
+7,+13norm I#
@abrarmasumabir3809
@abrarmasumabir3809 Год назад
what font are you using?
@theteachr
@theteachr Год назад
Rec Mono Semicasual
Далее
Coping with Vim
1:20
Просмотров 10 тыс.
Vim Navigation Commands
21:42
Просмотров 112 тыс.
Спасибо Анджилишка, попил😂
00:19
Monster shops mini mart 👻🛒 #shorts
00:49
Просмотров 9 млн
From Vim To Zed
19:03
Просмотров 213 тыс.
i tried Vim...
10:06
Просмотров 41 тыс.
Delete in Vim with D - VIM ALPHABET
7:14
Просмотров 1,9 тыс.
Vim Tips And Tricks Some Of My Favorite Vim Commands
17:05
This Zsh config is perhaps my favorite one yet.
17:24
Просмотров 146 тыс.
Multi-file search and replace in Neovim
9:52
Просмотров 10 тыс.
[c] Implementing a Generic Linked List in C
1:03:36
Просмотров 6 тыс.