this post was submitted on 25 Aug 2024
168 points (88.5% liked)

Linux

50301 readers
869 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

First of all. This is not another "how do I exit vim?" shitpost.

I've been using (neo)vim for about two years and I started to notice, that I,m basically unable to use non-vim editors. I do not code a lot, but I write a lot of markown. I'd like to use dedicated tools for this, but their vim emulators are so bad. So I'm now stuck with my customized neovim, devoid of any hope of abandoning this strange addiction.

Any help or advice?

top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 5 months ago

You have to practice switching between neovim and other editors.

You have forgotten how to use a normal editor. I am not making it up, it is a real phenomenon. Similar to when SmarterEveryDay learned to ride a backwards bicycle he forgot how to ride a normal bicycle and essentially had to re-learn it. You have to re-learn how to use a normal editor.

[–] [email protected] 3 points 5 months ago* (last edited 5 months ago)

i just use vim plugins in the other editors i use.

kate has a vim mode,
vs code has a vim plugin.
intellij has a vim plugin.
obsidian has a vim mode.
a lot of editors have vim modes.

if you have a current non vim markdown editor,
try looking for a vim mode.

if you dont, obsidian is all about markdown,
and vs code has a markdown preview plugin.

[–] [email protected] 1 points 5 months ago

Well, the point is, that vim is indeed perfect for writing and this is the problem, because I feel like I'm starting to get too much dependent on modal editors.

[–] [email protected] 2 points 5 months ago

Find breaker box pull down big switch

[–] [email protected] 2 points 5 months ago

Find a therapist

[–] [email protected] 14 points 5 months ago

Accept your fate. VIM is love. VIM is life.

[–] [email protected] 22 points 5 months ago
[–] [email protected] 5 points 5 months ago (1 children)

How about obsidian.md? It's based on markdown, so edit mode has lots of keybindings, and there are all sorts of javascript plugins to add functionality.

[–] [email protected] 1 points 5 months ago (1 children)

And it also has vim support. You can't escape.

[–] [email protected] 1 points 5 months ago* (last edited 5 months ago)

Haha, I wouldn't expect anything less. But I don't need to install the plugin...well...maybe I'll just try it out for a few...danmit.

[–] [email protected] 2 points 5 months ago

You save and shut down, silly.

[–] [email protected] 27 points 5 months ago

You can exit vim but you can never quit

[–] [email protected] 10 points 5 months ago* (last edited 5 months ago)

The real question is how to make everything a modal editor.

[–] [email protected] 5 points 5 months ago

Do you just need to write markdown? Plenty of text editors have a vim mode. Not sure if there's any lightweight ones that do the markdown preview alongside a vim mode; I know IntelliJ-based IDEs have a vim mode and can preview markdown, but that's not exactly a lightweight solution, and only the community edition is open source.

But also what exactly is it you're looking for that Vim can't do? I use Vim for writing pretty much everything. I use Vim for markdown and it works fine. Markdown is already pretty readable as a text file so I don't feel the need for a previewer or anything like a rich text editor (but also there are plenty of markdown editors out there if you just want to edit markdown in a RTE).

[–] [email protected] -3 points 5 months ago

First of all. This is not another “how do I exit vim?” shitpost.

Oh, I see, so just a clickbait! 👎

[–] [email protected] 10 points 5 months ago

Build a small EMP device. Figure out how to trigger it from terminal. Delete the key bindings for vim. Map them to the trigger you have for the EMP.

… good luck..?

[–] [email protected] 4 points 5 months ago (1 children)

Take vim with you to something with a lot more features!

I use vscode with vim plugin/key bindings lol

[–] [email protected] 1 points 5 months ago* (last edited 5 months ago)

I've been trying with helix bindings for code recently, used to use the neovim plugin

I find both too laggy/slow to start up/buggy personally, feels like I'm fighting with the editor sometimes

The helix plugin is pretty good but not customisable and I'm not using the default scheme

[–] [email protected] 1 points 5 months ago
[–] [email protected] 10 points 5 months ago

Use doom emacs

[–] [email protected] 2 points 5 months ago

I alternate between helix and vim depending on the task, and their key bindings are kind of opposite from each other in a lot of ways. I've found that switching back and forth has kept me on my toes a bit and I don't feel as locked in to one editor as I did with vim before trying helix.

So I’m now stuck with my customized neovim, devoid of any hope of abandoning this strange addiction.

I would also try getting used to the defaults or a minimal config, which is also a good way to feel at home in the editor regardless of the system

[–] [email protected] 5 points 5 months ago (1 children)

Some IDE's have a VIM mode.

[–] [email protected] 5 points 5 months ago

This is what I do. The IDEA tools (InteliJ, PyCharm, etc.) have pretty good vim support.

[–] [email protected] 2 points 5 months ago* (last edited 5 months ago)

Right, so you want eMacs evil mode with some choice vim plugins. Excellent vim emulation. The terminal interface is pretty good, and the GUI version has some excellent markdown plugins that give you a live preview. Get started with doom-emacs as it’s very pro vim and modernised out of the box. Then once you’ve got into eMacs you’ll not have any issues with free time ever again, as everything you could possibly want to do you’ll be doomed to finding out how to do in eMacs.

[–] [email protected] 3 points 5 months ago* (last edited 5 months ago) (4 children)

Just switch to VSCode or something similar, it has enough features and shortcuts that will quickly make you like at least 80% as productive as you were in Vim. It even has a Vim mode so you can wean yourself off of it more easily.

Honestly never got the appeal of Vim, you need to spend so much time learning and configuring it only to squeeze out a little bit of extra productivity out of it when compared to a "normal" editor/IDE. I don't see why it's so important to be able to edit and write code as quickly as possible since most of the time you're going to be debugging or looking at the code or reading docs.

EDIT: Just noticed you said you don't code a lot. I think most of what I said still applies, I imagine you don't spend 99% of the time in the editor typing away.

[–] [email protected] 2 points 5 months ago

To your "never got the appeal".

Ngl for me using vim is the only option. If something needs to be done using a mouse, it's just not going to be done. I can't aim properly due to problems with my arms, and it itches something in my brain everytime I try, it makes me literally furious and enraged.

I tried using zed, but quickly found out that I can only control the text field with motions, nothing else.

If I try using mouse, speed of anything I do gets multiplied by 0.1.

Thanks to vim, I'm able to work with loads of text at all.

Simple as that.

[–] [email protected] 2 points 5 months ago

The thing is, it's fun

[–] [email protected] 3 points 5 months ago

I used to use Sublime for notes and then VSCode and those types of text editors work just fine for non code stuff imo. VSCode even has syntax highlighting for Markdown so could be a plus for OP.

[–] [email protected] 3 points 5 months ago (1 children)

I haven't measured it, but I can tell I'm noticably slower on standard editors than Vim.

[–] [email protected] 1 points 5 months ago

Eh I've seen colleagues that use Vim heavily do their work and they're like at best 10-20% faster than me when it comes to pure text input/editing, honestly not worth the effort to switch to Vim for me.

load more comments
view more: next ›