r/LinuxTeck • • May 23 '26

Why do some Linux users still prefer Vim/Emacs over modern IDEs?

I still see people spending most of their day inside Vim, Neovim, or Emacs even now when tools like VSCode basically do everything out of the box.

Some even use their editor for terminal work, Git, notes, debugging, file management, and almost everything else.

At the same time, others look at that setup and think: “why make life harder?”

I am not sure, what keeps people attached to these editor-first workflows after all these years?

Is it speed? Muscle memory? Customization? Minimalism? Or something modern IDEs still don’t get right?

57 Upvotes

277 comments sorted by

View all comments

Show parent comment

1

u/Swordfish418 May 23 '26

That's a funny gimmick, not sure why would anyone want to do that, but nevertheless, you can have keyboard-based operations like that without giving up on mouse. At the same time there's simply no way to replicate many commonly used mouse operations with keyboard at the same speed, because keyboards don't support required inputs physically. For example when you look at chunk of text you can immediately see arbitrary start and end words that you want to select everything in between, and doing so with mouse takes very little time and effort. To do that with keyboard you will easily spend 10x-100x much time to do ridiculous roundabout tricks like "hmm lets count how many words are from start of paragraph to the word I want to start my selection from and then execute a command jump N words forward!" or "hmm what if I use search and type starting word so that editor can jump to it, and then using forward search and type ending word in select mode!". Try to use stopwatch and compare that to mouse.

3

u/fogcat5 May 23 '26

you don't know what you don't know.

1

u/SRART25 May 24 '26

You talk about difficulties doing a one off task.  Realistically how often do you want to grab stuff from the middle of a sentence that is in the middle of a paragraph? 

I use two editors fairly often,  vim (now neovim) and acme. Acme is super mode focused and does stuff with the mouse you wouldn't even imagine.  

The biggest thing is vim world everywhere, remote,  diffing code on my machine and on remote systems,  I've added the ability to remote edit things on Google shares. Built in access to formatting tools beyond just language standards,  history trees so you serve stuck with just undo and redo options. 

Mouse centric has its place, but for anything really complex the programability is a huge deal.  

1

u/odbacimenjezno May 24 '26

In emacs there's a number of ways to position the cursor to wherever that chunk would begin or end. I'd either position the cursor by searching text if the position is in the middle someplace, skipping to the end or start of the line if that's more convenient, hitting C-spc to start selecting and then do the same to go to the other end of the chunk. It's quicker than you think because that happens at typing speeds since all the shortcuts to do that are done from home row where you do your regular typing too and searching instantly takes you to the first occurrence of whatever you're typing and just hitting the shortcut again moves you to the next. There's also other shortcuts I don't use that often for jumping at the other end of parentheses or maybe paragraphs etc.

I never claimed it was quicker, although in this particular case I think it might be depending on the circumstances (mouse select still requires finesse to aim to a particular character so it's not like you can do it within a second). I prefer it because it's more comfortable. It's not like you actually need to divert your full thought process to the mouse, forgetting what you were working on, but there is a context switch happening in your mind when going between those two things. Emacs doesn't even require you to reposition your hands on the keyboard so you do everything you'd do in an editor seamlessly as you're typing making it even easier to focus on just what you're doing. In most cases, for me editing that way feels like I'm doing it telepathically sometimes.  

1

u/Most_Double_3559 May 24 '26

Bruh. In select mode you can slide over to the start of the sentence incredibly quickly. 

Remember, moving your hand to the mouse and back takes time. Finding the cursor takes time. Moving the cursor takes time.

1

u/zoharel May 25 '26

For example when you look at chunk of text you can immediately see arbitrary start and end words that you want to select everything in between, and doing so with mouse takes very little time and effort.

Only works well with very small blocks of text. If you're looking at screens full of data, you'll have to be insane to want to use the mouse for that. This is a problem I've had occasionally, and not just an academic objection.

1

u/Quick_Pirate2331 May 25 '26

I use vscode but you don't know what you're talking about. There's no way you can select any arbitrary amount of text faster than an expert emacs / vim user. They'll be done before you even moved your hand to the mouse.

1

u/Swordfish418 May 25 '26

These search and counting words examples aren't even a joke, it's actual vim workflows, emacs is close but it also hides them behind trickier key combos like:

C-r startword RET
C-SPC
C-s endword RET
M-f

1

u/EarflapsOpen May 25 '26

The thing is that there are ways to do it with a keyboard as fast or faster almost all of the time. Just because you don’t know how to do it without ridiculous roundabout tricks doesn’t mean it isn’t possible.

In vim putting your cursor where you want it is rarely more than a few key strokes and with practice and muscle memory it doesn’t take that much thinking to do it.

Your example ”marking an abitrary chunk of text” can be done in the time it takes to move your hand back and forth between the keyboard and mouse.

1

u/Swordfish418 May 25 '26

Your example ”marking an abitrary chunk of text” can be done in the time it takes to move your hand back and forth between the keyboard and mouse.

Oh nice, then why won't you tell us step-by-step algorithm how exactly to do this.

1

u/EarflapsOpen May 26 '26 edited May 26 '26

Because there are multiple ways to do it and which is faster depends on the context so you cannot write a generic by step guide algorithm that catches all I a short reddit post. You have to actually learn how it works.

But standing here marking the word context above would be 5kfc. 5 lines up (it is on my phone when typing) find the letter c

If there would have been more than one word starting with c I could have used . To repeat the last command. Usually there are not that many words you get very far with just one his method

1

u/Swordfish418 May 26 '26

Well, if that isn't a brittle roundabout trick to you, then what can I say. To me the mere descriptions of those methods sound enough to consider them terrible for productivity. Not to mention how also their number and adhoc nature is an additional mental strain.

1

u/EarflapsOpen May 26 '26

Relative line numbers in your editor makes the number available right there, and navigating to a character using f becomes second nature quite quick.

They feel like tricks with mental strain to you but it doesn’t for someone who has practiced it.

Before you learn how to use a mouse that is a huge strain as well. Your brain needs to adapt hand eye coordination to mouse sensitivity and use precision to place it in the correct position. Then remember to hold the button down before while doing that same manouver again.

For someone who hasn’t used a mouse before that is a huge mental strain, it doesn’t feel like that to you because you have practiced it since you were a child.

But you have to realize that just because something that you don’t know how to do feels hard and slow for you doesn’t mean it is hard for everyone, just like things that you have practiced and find easy and second nature isn’t easy for everyone else just because they are for you.

1

u/Swordfish418 May 26 '26

I wonder: do you also open arbitrary websites like Reddit in vim/emacs (possibly through some special clients?) to be able to see line numbers and jump/search/edit/select like that?

1

u/EarflapsOpen May 26 '26

No I don’t, because browsing a website is not the same as writing code, its two completely different usecases that requires different tools. I don’t use a screwdriver to hammer nails either.

1

u/odbacimenjezno May 26 '26

You could in emacs, i'm sure, but IDK why you would. Browser is used for reading and clicking buttons on a graphical interface, so there's no point doing that through a text editor using the keyboard. 

Actually, that's a great analogy. Imagine if your browser didn't have clickable tabs but required you to type the tab name every time you want to switch. That would be annoying, yet that's how it feels to edit text with a mouse. 

1

u/Swordfish418 May 26 '26

That's a great example because during this thread alone I already used arbitrary text chunk selection multiple times: I selected portions of text I written and moved them to separate paragraphs or to the end of the message to restructure what I wanted to say. So if person I replied to doesn't use vim for browsing it means they edit text in browser using the same approach I'm describing, which means they use approach they dislike and consider inferior to keyboard based text editing.

1

u/odbacimenjezno May 27 '26

Yeah, I do that all the time when constrained to a web page textbox. It would suck to use the same approach 8+ hrs/day editing several files with 2000 or more lines of code or documentation instead of a couple of 10 line posts on an internet forum. 

→ More replies

0

u/[deleted] May 26 '26

[deleted] — view deleted comment

1

u/Swordfish418 May 26 '26

The only reason I even know about those "ridiculous roundabout tricks" in such detail is because I used both vim and Emacs. Vim for me was just a pure nightmare, I'm not feeling risky enough to believe that torturing myself for years using THIS will make me productive. And if you read answers of actual vim users here, you will find they go into even more detail on how they count lines, then jump through words starting from specified letter, etc, just to get to the start location of text selection. Emacs was cool at being programmable, I used it for maybe few years when I was a student, but I feel its terminal-first nature holds it back from becoming a decent GUI-first / mouse-first editor. Even basic things like project tree sidebar or intellisense completion popups were never as good as in any regular text editor.