(no title)
bartq | 2 years ago
Go to VSCode, put it into your `keybindings.json`:
{
"key": "ctrl+cmd+j",
"command": "editor.action.smartSelect.expand"
},
{
"key": "ctrl+cmd+k",
"command": "editor.action.smartSelect.shrink"
}
go to TS file and press keybinding multiple times to see how it grows/shrinks.
Having Emacs keybindings like C-w, C-y, C-d (I'm using it to move char left), C-S-d (word left, S is shift, I'm using right one) and more I feel like flying through things like selecting block, expression, function, moving in and out etc. I guess Emacs people using paredit feel something similar taken to the next level.Ideas in VIM are still brilliant, the same goes for Emacs, but they both need to reincarnate in modern skin taking pixel perfect GUIs with proper animations to the extreme. In fully multithreaded and multiprocess environment.
she11c0de|2 years ago
This is not true at all. Nvim has built-in LSP support now, there's a huge amount of plugins you can use that integrate with LSP and they work great. I even use ChatGPT inside my vim (check out this plugin: https://github.com/dpayne/CodeGPT.nvim). The smart select functionality you mention is trivial to implement and I bet there is a plugin for this (btw, try `dit` to "delete in tag", or `di(` to delete in bracket, etc...).
I will admit that you have to spend a lot of time to configure it to your liking, not everybody wants to and I understand that.
Honestly I feel like (n)vim is going through a renaissance period lately, check out streamers like ThePrimeagen or TjDevries for some great content on how to get started.
bartq|2 years ago
I know there are tools like GVim etc, but again, they are created with high engineering effort which for some people is simply pleasant to undertake.
Again, I'm not trying to defend or favor any system, I'm actually using at the same time VSCode (for best TS intellisense), WebStorm (for refactors), nvim (for quick browsing and small config file edits) and Emacs (for Magit). My computer is my tool, not single thing inside it.