leetcode because vim makes coding effortless | Coding With Vim

preview_player
Показать описание
average vim user doing a leetcode question

Рекомендации по теме
Комментарии
Автор

do leetcode in rust, my brain does this weird thing of not working when I see C++

wondays
Автор

0:40 I wached it in slow motion many times, but I still dont understand:
You are in insert mode and type "for (auto", the closing bracket is auto-generated.
Then you delete "auto" with four backspaces and type "vec" and auto complete it to "vector<class _Tp>".
The cursor is inside the <> and you are in insert mode. You type "int" and then press "j" and "j" is appended to "int" as expected in insert mode. But against this expection ">" is replaced by "j".
After that you type "k", which should also be appended to "intj" because its still insert mode, but it somehow removes the "j" and restores the ">" while returning to normal mode.
I don't understand this behaviour. I first thought it was an oddity of the autocompletition menu but it also appears at 0:49.

What is going on there?

thediaclub
Автор

How do I do this in window
I have been using VIm on VSCode and want to do something like you do

thelearner
Автор

Do a simple Topological sort, kahn Algorithm..
Your approach is complex for me😭

knightcoder
Автор

switching tabs but lc gives an editor -_-

kmsenapati
visit shbcf.ru