this post was submitted on 25 Aug 2024
165 points (88.4% liked)

Linux

48329 readers
1381 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
[–] crony@lemmy.cronyakatsuki.xyz 35 points 3 months ago (2 children)

Why would you wanna quit if vim works for you?

Plus vim can be an amazing markdown editor with a few dedicated plugins.

[–] lemmur@szmer.info 11 points 3 months ago (1 children)

Yes, it is amazing, but some things ( like md tables or writing katex eqations) are handled rough. And I still sometimes need to use something other than vim and then life gets hard.

[–] crony@lemmy.cronyakatsuki.xyz 9 points 3 months ago (6 children)

That's why for tables and katex equations I used plugins to help me with then to not be rough.

As for other stuff than vim, minimize the nees for them if it really gets hard.

[–] tuhriel@discuss.tchncs.de 6 points 3 months ago

Also, some tools have plugins to provide vim controls for them.

I know at least and use these:

There are probably more...

load more comments (5 replies)
[–] brisk@aussie.zone 3 points 3 months ago (1 children)

What plugins can you recommend?

I think the only markdown plugin I've used was for table alignment.

[–] crony@lemmy.cronyakatsuki.xyz 8 points 3 months ago* (last edited 3 months ago) (1 children)

Mkdnflow is the one that I used to use and it does so many things amazingly for writting markdown easier

https://github.com/jakewvincent/mkdnflow.nvim

load more comments (1 replies)
[–] kittenzrulz123@lemmy.blahaj.zone 28 points 3 months ago

You can exit vim but you can never quit

[–] propter_hog@hexbear.net 25 points 3 months ago (2 children)
[–] theshatterstone54@feddit.uk 15 points 3 months ago* (last edited 3 months ago) (2 children)

No joke, Emacs has the ability to render in line markdown, essentially the current line is just text, while the rest of the doc is rendered as markdown titles, links, lists, etc. It's my favourite way of editing markdown but I've never found another editor that does markdown like that. Everything else has text and rendered markdown side by side as separate panes, which I personally hate.

Edit: I stand corrected. Neovim has it too: https://github.com/MeanderingProgrammer/render-markdown.nvim

[–] lord_ryvan@ttrpg.network 3 points 3 months ago (1 children)

Sounds like what Obsidian and Logseq do? Awesome!

load more comments (1 replies)
[–] rien333@lemmy.ml 2 points 3 months ago (2 children)

No joke, Emacs has the ability to render in line markdown, essentially the current line is just text, while the rest of the doc is rendered as markdown titles, links, lists, etc.

This sounds amazing. I've been using markdown-mode for ages now though, and I've never come across this feature.

How do you enable this?

[–] theshatterstone54@feddit.uk 2 points 3 months ago* (last edited 3 months ago)

I have it in my config, will link to a specific commit in case anything changes. Look for the heading called MARKDOWN and I'd recommend grabbing all 3 subsections (MARKDOWN, Markdown Headings, Markdown Concealing). The main part is the last one iirc. Link: https://gitlab.com/theshatterstone/dotfiles/-/blob/6f00007eac475946e11fa3278ffbf526400b7e10/.config/emacs/config.org

Edit: Links from the Table of Contents don't work in Gitlab, unfortunately, so you'll have to scroll to it yourself.

load more comments (1 replies)
[–] Telorand@reddthat.com 6 points 3 months ago (1 children)
[–] gomp@lemmy.ml 2 points 3 months ago* (last edited 3 months ago)

LOL you made my day :) "emacs is a part time job"

[–] billwashere@lemmy.world 22 points 2 months ago
[–] thingsiplay@beehaw.org 16 points 3 months ago

Why do you want stop using Vim in the first place? That would be a good information to have, to give help. What dedicated tools do you mean? What do they offer that you miss in Vim? If you just hate Vim and want stop using it no matter what, the only solution is to uninstall it, to not fall into those habits of using it everywhere. Over time you should get used to those other editors and tools.

[–] Alsephina@lemmy.ml 14 points 2 months ago

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

[–] GolfNovemberUniform@lemmy.ml 13 points 3 months ago* (last edited 3 months ago)

Switch to GUI editors with Word-like navigation. You will struggle but eventually your vim habits will fade away and then you will be able to use any editor with slightly various levels of performance.

[–] utopiah@lemmy.ml 11 points 3 months ago (5 children)

The trick is do the opposite, namely bring vim everywhere, e.g using Tridactyl you can bring some behaviors to the browser and, in this very textarea from lemmy, if I press Ctrl+i I get gvim, when I exit it, the content is back in the textarea and I can reply. Vim everywhere.

[–] Celediel@slrpnk.net 2 points 3 months ago

With neovim you can even put vim in the textarea.

load more comments (4 replies)
[–] Findmysec@infosec.pub 10 points 3 months ago

Use doom emacs

[–] Monument@lemmy.sdf.org 10 points 3 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..?

[–] TheReturnOfPEB@reddthat.com 10 points 3 months ago* (last edited 3 months ago)

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

[–] SuperFola@programming.dev 7 points 3 months ago

You could consider markdown extensions that helps you write and visualize!

Like this one: https://github.com/MeanderingProgrammer/render-markdown.nvim

[–] fin@sh.itjust.works 6 points 3 months ago (1 children)

Get a thinkpad or a keyboard with a trackpoint. Your life gets a little bit better.

load more comments (1 replies)
[–] geneva_convenience@lemmy.ml 5 points 3 months ago (1 children)

Some IDE's have a VIM mode.

[–] atzanteol@sh.itjust.works 5 points 3 months ago

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

[–] UNY0N@lemmy.world 5 points 3 months ago (2 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.

load more comments (2 replies)
[–] oscardejarjayes@hexbear.net 5 points 3 months ago

Make a plugin to a non-vim editor that properly emulates the vim experience, with the non-vim GUI.

Or, if that doesn't work well enough, fork them.

Failing that, you could just accept your fate. I love my neovim install.

[–] communism@lemmy.ml 5 points 3 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).

[–] just_another_person@lemmy.world 4 points 3 months ago (2 children)

Trying using Nano for absolutely EVERYTHING for a few weeks. That'll help.

[–] ReveredOxygen@sh.itjust.works 4 points 3 months ago

Personally, the only thing that would help me for is if I wanted to kill myself

[–] LordCrom@lemmy.world 3 points 3 months ago (1 children)

Nano works just fine for me

[–] just_another_person@lemmy.world 2 points 3 months ago

I have no issues with it. It's Kryptonite to the nonsensical world of VI(m) users though.

[–] astro_ray@piefed.social 4 points 3 months ago

I don't know understand why you need markdown, but if you are so used to vim motions why not switch to latex instead. You wouldn't have to worry about katex support as well. This is an advice solely based on your need for katex support without understanding your needs.

[–] WhatsHerBucket@lemmy.world 4 points 3 months ago (1 children)

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

I use vscode with vim plugin/key bindings lol

load more comments (1 replies)
[–] mathemachristian@hexbear.net 4 points 3 months ago* (last edited 3 months ago)

The answer is of course another editor: doomemacs

[–] space_comrade@hexbear.net 3 points 3 months ago* (last edited 3 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.

[–] roux@hexbear.net 3 points 3 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.

[–] beejjorgensen@lemmy.sdf.org 3 points 3 months ago (1 children)

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

load more comments (1 replies)
[–] Andrzej@lemmy.myserv.one 2 points 3 months ago

The thing is, it's fun

load more comments (1 replies)
[–] sovietknuckles@hexbear.net 3 points 3 months ago

Switch to helix

[–] Kerb@discuss.tchncs.de 3 points 2 months ago* (last edited 2 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.

[–] AnUnusualRelic@lemmy.world 2 points 3 months ago

Just run vigor.

[–] averyminya@beehaw.org 2 points 3 months ago

You save and shut down, silly.

[–] Palacegalleryratio@hexbear.net 2 points 3 months ago* (last edited 3 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.

load more comments
view more: next ›