←back to thread

538 points todsacerdoti | 1 comments | | HN request time: 0.279s | source
Show context
robenkleene ◴[] No.44358285[source]
I love this, I've been iterating on workflows like this for something like a decade now. Over time I've tried to peel back as many of my custom layers as possible, because all of those layers have a maintenance cost.

Stock Vim (without `tmux`) can actually do most of what's shared in this post with `rg --vimgrep restore_tool | vim -c cb -` (`vim -c cb -` is my favorite feature in Vim; I find it strange that it's so rarely used or talked about).

(Since re-running the `rg` search can be undesirable, and I often like to analyze results in a terminal before opening them in Vim. I use a custom `tmux` command to copy the output of the last command [using this trick that involves adding a Unicode character to your prompt https://ianthehenry.com/posts/tmux-copy-last-command/], then I send that into Vim with e.g., `tmux saveb - | vim -c cb -`.)

replies(7): >>44358653 #>>44358736 #>>44360925 #>>44362611 #>>44363893 #>>44364510 #>>44403351 #
heavyset_go ◴[] No.44364510[source]
Can someone sell vim to me?

I can't help but see it as the tiling window manager of text editors.

Even with plugins it's less featureful than Kate or Jetbrains IDEs. And the last time I really gave it a go, it was slow, which is surprising for a terminal text editor.

If I need to edit text via the terminal, micro has mouse support and keybindings that match what you'd expect in any OS.

I don't like the idea of thinking people who use vim are insane, it obviously has value and people who use it have good reasons for using it, but I can't see it as more than a niche nerd thing a la tiling window managers.

replies(8): >>44364772 #>>44364783 #>>44364962 #>>44365274 #>>44365927 #>>44366746 #>>44367516 #>>44391506 #
maleldil ◴[] No.44367516[source]
> And the last time I really gave it a go, it was slow, which is surprising for a terminal text editor.

There was likely something wrong with your configuration. It's really hard to be faster than vanilla vim, but you can get weird performance issues from external plugins sometimes.

replies(1): >>44371342 #
heavyset_go ◴[] No.44371342[source]
I used some Vim IDE plugins and I assume the bottleneck was there.

The problem is without some IDE-like features, I don't have a need for a text editor. Micro supports LSP servers by default and that gets me pretty far, before jumping to Kate or a real IDE.

replies(1): >>44374474 #
maleldil ◴[] No.44374474[source]
The question is which plugins you used. My neovim configuration gives me "IDE-like features", yet it's noticeably faster than VS Code and others. Also, neovim has native support for LSP too.
replies(1): >>44381370 #
1. heavyset_go ◴[] No.44381370[source]
Can you recommend any plugins that you find useful?