News for hackers. Stuff that matters.
Re:Bill Joy's greatest gift to man – the vi editor (2003) by kmarc on Wednesday May 06, 2020 @03:27PM (#23095228)
Now imagine that SSH going from a Citrix windows desktop running on a Windows 10 VM on your linux laptop. Every key press reacts in around a second. Welcome to banking "security"!

Now let's say I want to `d5}`, to delete the next 5 paraghraph. In vi(m) I can do this by telling it "hey vim, delete those 5 damn paragraph!"

In fancy VScode I have to say more like... "Hey editor, wait a sec, I'm moving my cursor over there and select a couple lines which happens to be 5 paragrahs, OOOPS, I went a bit too far, now let's go back. YES, now delete them!".

Other examples:

- "increment this number by 5" - "delete this html tag recursively" - "indent the next 20 lines" - "remove all the arguments from this function call" - etc.

Vim has a language, _that_ is the powerful part.

To be fair, thankfully VSCode (and any of the other fancy IDEs) have basic vim-functionality providing plugins.

Re:Bill Joy's greatest gift to man – the vi editor (2003) by gruturo on Thursday May 07, 2020 @01:05PM (#23105335)
> Now imagine that SSH going from a Citrix windows desktop running on a Windows 10 VM on your linux laptop. Every key press reacts in around a second. Welcome to banking "security"!

Oh god are you one of my colleagues?

Re:Bill Joy's greatest gift to man – the vi editor (2003) by Redoubts on Wednesday May 06, 2020 @08:38PM (#23098290)
So if you have an incredibly shitty setup, and have no idea how vscode works, then it might be worth it. Got it.
Re:Bill Joy's greatest gift to man – the vi editor (2003) by kmarc on Thursday May 07, 2020 @02:32AM (#23100319)
I have a quite good setup, in general.

Unfortunately this is some external requirement I cannot do anything about. Also, as opposed to many people, I actually got to work and know both the IDE-world (including VScode), and the vim world. I have a base for comparison.

Hopefully you "got that" too.

Re:Bill Joy's greatest gift to man – the vi editor (2003) by u801e on Wednesday May 06, 2020 @11:37PM (#23099451)
There are also times when the available bandwidth is limited, so just having to use fewer keystrokes to edit a file speeds up the process. I was able to connect to remote linux servers over dial-up and edit files on those servers with vim without issue. Editing and saving over ssh was more of a hassle since it took longer to save the file (and I save pretty often).
Re:Bill Joy's greatest gift to man – the vi editor (2003) by wbkang on Wednesday May 06, 2020 @05:29PM (#23096532)
vscode remote will actually perform better than vim over laggy ssh because the UI portion is completely local.
Re:Bill Joy's greatest gift to man – the vi editor (2003) by kmarc on Thursday May 07, 2020 @02:37AM (#23100336)
So it is with vim.

Anyway, unfortunately given setup won't even be viable with anything running "local", since in the mentioned citrix environment we cannot install anything, so no vscode, no local vim, no nothing...