Why Do I Choose Emacs Over Vim? It Looks Better!
HTML-код
- Опубликовано: 4 окт 2024
- I spent a couple of hours today playing with my Doom Emacs config. In particular, I focused on some font settings which I think help with aesthetics and with readability. In fact, I think one of the biggest reasons that I use Emacs over Vim is how Emacs renders fonts.
REFERENCED:
► gitlab.com/dwt... - DT's Doom Emacs Config
WANT TO SUPPORT THE CHANNEL?
💰 Patreon: / distrotube
💳 Paypal: www.youtube.co...
🛍️ Amazon: amzn.to/2RotFFi
👕 Teespring: teespring.com/...
DONATE CRYPTO:
💰 Bitcoin: 1Mp6ebz5bNcjNFW7XWHVht36SkiLoxPKoX
🐶 Dogecoin: D5fpRD1JRoBFPDXSBocRTp8W9uKzfwLFAu
📕 LBC: bMfA2c3zmcLxPCpyPcrykLvMhZ7A5mQuhJ
DT ON THE WEB:
🕸️ Website: distrotube.com/
📁 GitLab: gitlab.com/dwt1
🗨️ Mastodon: fosstodon.org/...
👫 Reddit: / distrotube
📽️ LBRY/Odysee: odysee.com/@Di...
FREE AND OPEN SOURCE SOFTWARE THAT I USE:
🌐 Brave Browser - brave.com/dis872
📽️ Open Broadcaster Software: obsproject.com/
🎬 Kdenlive: kdenlive.org
🎨 GIMP: www.gimp.org/
💻 VirtualBox: www.virtualbox...
🗒️ Doom Emacs: github.com/hli...
Your support is very much appreciated. Thanks, guys!
just watched dt’s vid of him denouncing emacs for vim
IRONY
You should be able to run `emacsclient -e "(load-theme 'doom-solarized-light t)` to change base colorscheme and `emacsclient -e "(org-colors-solarized-light)"` to change your org headers from the terminal if you are running emacs daemon.
DistroTube, in org mode if you want to add another heading just type ctrl+enter. It will add automatically a new header at the same level you are.
It also adds new list entry if you are in a list.
for me it is Alt+enter
@@mundo524 Alt + Enter works too but if you are on a list it adds another entry instead.
This to me translates to "Look at all my cup holders!"
my main use for a text editor is writing. I started with doom emacs org mode and it was very good the only problem I had was that citations and bibliographies was a hassle. and honestly using it in the terminal is super convenient for me and now i use neovim and pandoc markdown.
Thank you for this comment :D I didn't know pandoc existed before and I've been looking for something exactly like it for the past few days!
Packages such as org-ref, citar and bibtex-completion make handling bibliography very easy. Just saying
@@CheeseChuckie pandoc is absolutely amazing and you can create amazing looking documents really quickly with it.
@@auroradraco9974 I definetly agree that it makes it easier but it just gave me too many issues like sometimes the bibliography wouldn't work or wouldn't export properly. with pandoc i just need to add the location of the .bib file and the location of the csl file in the yaml metadata and it just works outomatically when i use pandoc --citeproc.
Neovim is nice too. I just have a hard time believing anything can beat org mode.
Seeing as how I started vi in early '80s, (1980s, not 1880s, that was pencils) I still have the muscle memory. Although I use neovim 0.7 now.
So whatever you feel best with.
I do programming on wee small machines; fonts is fun but the tools are better
evil mode?
@@aarohgokhale8832 or heck, if Vi is all you want, then viper-mode is built-in and pretty decent
@@finndriver1063 I actually use a lot of neovim goodies. Not on a raspberry pi w, puir wee thing has trouble (although it works, which is impressive, but is slloooowwww); so I cross-compile, and have a ripped-down nvim for the pi's when I need to edit summat.
neovim is a beast for me but my notes are all in org-mode in emacs tho. I code in neovim but write in emacs and I am happy with it.
also, reverse-im package is awesome, I finally can write in a vim-like editor in my native language's keyboard layout just with switching it like I always do
It depends on personal choice. I prefer neovide + neovim .
Me too, it’s just so much fun!
dtOS is looking ~really~ nice these days
But dt, the only thing you have over neovim users is the different sized headers. Programmers don't really use that, I certainly don't, it messes up the block select.
Everything else you speak of like proper UTF fonts, icons, colors, ligatures.. You can get all of that in neovim and quite easily so.
it would be a shame if you couldn't do that in neovim... the problem is that you can not do other much more useful things in neovim...
@@viacheslav1392 i have to admit out of the box, камрад.
@@viacheslav1392 To each their own at the end of the day; But can you give an example of such useful thing you cannot do? I'm curious.
@@str0680
> to each their own.
Probably dt is the person who needs different size headers.
One very basic useful thing is opening a file with one key press from any workspace with EXWM or while whatching youtube video inside Emacs buffer so that you can immediately copy the code from the screen. Also eshell...
The only shell that may have similar out of the box features is fish. But there are always some small defects.. For example I work with Makefiles all the day: Sadly Fish can not autocomplete makefile targets from included makefiles... Eshell does that on any nesting level. Those tiny conveniences are everywhere in Emacs. As far as I know neovim doesn't offer any kind of advanced shell for programming
As a developer I actually prefer terminal version. Just pure text on the screen with no distractions from different fonts. Less is more my friends
That is why I use Emacs.
Works both in terminal and in graphical environment.
Persian/Arabic script on terminal is always a problem
@@samsungsarsamsungsar7792 i think kitty handles that very well
@@samsungsarsamsungsar7792 Use English :-)
@@Rudolfucius .Actually Fingilish is common in cyberspace. But for languages with ancient heritage like Greek or Persian, we all have duty to keep them alive.
Too bad Vi is bloat. I use Ed
Ed is bloat, just plug the wire to your nape.
The original and what vim is build on top.
Let me trigger both crowds by saying I use nano
Pro
Based
I tried emacs but I was just trying to turn it into vim, I prefer neovim.
What! If I try Emacs (again) I'll use it for org mode. The closest to org with vim is folds and markdown syntax highlighting.
Things I didn't manage to do in Emacs that was very easy in nvim: 1. Show syntax highlighting for markdown fenced code. 2. Configure LSP to just work 3. Haven't found a package to run test at point
hey @distrotube, I've recently switched from spacemacs to helix - it's a vim-like editor written in rust. nice thing is that when in insert mode - you have emacs keybindings, but you get to really quickly jump around and select stuff using vim-like keybindings when in normal/select mode. you should check it out!
Obsidian+Neovim here. For tables, I use conceal with my own syntax file. It's as if I'm looking at a web page on neovim, kitty is a great terminal. As of right now I have very little to gain from emacs (org mode, tangle) and a lot of personal code to loose with neovim. Hopefully soon ill give it a shot but this time without doom, going vanilla to learn more. Thanks for the videos DT.
I am watching this as a sofware developer who uses neovim all day and switch between BigBlueTerm, Terminus, and Fixedsys depending on my mood. I enjoy looking at old school fonts while I work.
Might as well just use Libre Office if you prefer a word processor
🤣
There's no too many chords and spaghetti code like in the Emacs. Rejected. But it was a good try.
Well, at least you show your ignorance in the subject.
But as long as it works for you, I guess.
@@AndersJackson why so serious?
@@herrkrake8106 He's always that serious, lol.
You could run an emacsclient eval command to change the theme in Emacs as part of your bash script to change colors everywhere
Nice! A quick tip though, add `dt/org-colors-THEME-NAME` or something before your own custom functions as a namespace to avoid conflicting with built-in or some package provided function name. 👍
Hey DT, your dashboard config looks really neat. Please tell me where to find it..
Vim does not have to run in a terminal. See neovim-qt, neovide, gVim, etc
Still just as limited.
Hi dt, why not talking about Ivy, Counsel, Swiper on Emacs especially with a scratch setup? I think it's an important point to talk about for those who followed your "Leaving Doom Emacs for GNU Emacs? - DT Live!" which is tbh a great and awesome video for those who like from scratch setups.
And why not maybe talking about some other minors improvements made into your GNU Emacs config like Org Bullets or maybe setting up Vterm like doom?
There are just some ideas of video for you, don't do this if you don't want.
So you make awesome videos, i really hope to get a job to became a patreon, a day i will for sure. ;)
Check out System Crafters
@@siddhanthkhera129 He didn't made a video about that. :/
Anyway, even if he did, he does to much long videos with 5% info, 95% talking for nothing. Dt is much more efficient to explain things.
@@PlunneCeleste He has a series called Emacs From Scratch where he touches upon them. He live streams his videos so I agree, it's pretty inefficient.
No one beats Luke at tutorials tho.
@@siddhanthkhera129 I think Dt explain better than Luke but yeaj, Luke explain really well too but he uses Vim.
The biggest appeal for me getting into Emacs was the point everyone Goofs on. that's it's an OS.. I am fond of using older thinkpads, some of these are too old to use the modern web. They are still really nice to work on and just become dedicated Emacs terminals, away from my main desk in a nook somewhere. A change of atmosphere on another device can sometimes be refreshing.
I love tinkering. I may join in.
I would love to try emacs but all the videos config out there are 2 to 4 years old, would be nice to have a whole walk through from 0 to hero haha
The tooling (for software developers) that you get with neovim is far superior than emacs. It's far more important than having pretty fonts to look at. Only inexperienced software engineers choose emacs over vim. I used to be a diehard emacs fan. But I can't even image switch back from vim now, especially with what neovim has become the past 2 years. The emacs vim war has been going on for a long time though. People are stubborn in their ways. It took me a long time to come around to vim but I'm very glad I did.
try to play with fonts)) I've come up to pragmata pro with ligatures
For my taste narrow type faces are hardly distinguishable and more stressful/fatigue for eyes then the wide one's.
@@herrkrake8106 so then you select another font or font size.
So what have you find usefull?
@@AndersJackson for my taste:
1. Consolas (for coding);
2. JatBrains Mono. Used it for a long time for coding, but seems that eyes and brain prefer italics with more curves, something in between JetBrains and IBM Plex Mono, almost right as in Consolas;
3. IBM Plex Mono for browsers;
4. Ubuntu Mono for environment and as fallback for small sizes.
But now I'm eager to try custom Iosevka wide fonts built of merged Consolas with some italics characters and digits from JetBrains Mono.
Also tried Fira Mono/Code, Cascadia, Mononoki, Monaco, Fantasque Sans Mono, Victor Mono, Hack, Mono Lisa, PT Mono, Julia Mono, Input Mono as a daily driver. These ones that I can recall from the top of my head and have spent a lot of time switching back and forth.
Time to get out Emacs and modify that Pearl script
i used to use the emacs gui client during uni days 15 years ago. These days I wouldnt touch this stuff with a barge pole. Debugging tools are too limited to be useful for me
Hi, nice Config. I had the problem that i ran the command: org-pretty-mode and now the nice points are the normal stars. Can you help me please?
Gotta disagree on this one @DistroTube! I'm a programmer by trade, and as a hobby, so I do spend a LOT of time in texteditors. And I gotta say I just love the absolute consistency of TUI rendering. All the graphical bling like ligatures just feels like an unneeded distraction, and come at the cost of complexity. I'd even go as far as to say I find colored text when coding, unless really necessary (like for inline warnings), but thats prolly a very personal one. Ever since I tried a monochrome (bw) theme, I never went back.
No need in ligature if one is not doing math. IMHO, ligatures just add more ambiguity to code representation leading to bad readability.
There are several monocrome themes in Emacs, and Emacs works great in TUI too. Because it is developed in TUI too.
Yes, I don't like hysterical colour themes, but yes, correct colour themes are great too.
I wrote a Woodstock theme for Geany. You in ?
This is by no means a good reason for someone to use Emacs imo. I personally disagree that there should even be a reason for someone to use Emacs over Vim, they are too different one from the other for them to be even comparable. For me the reason to use Emacs over Vim is that Emacs is more than a text editor, which makes one understand why I believe the comparison is pointless
Emacs for the win!
Kinda gives cult mentality a good name, I suppose. To each their own. :)
What about ligature in emacs
The reason textmode editors are best in the terminal and not gui, is because they're in the terminal. The clue is in the name lol, text editors, not graphical editors. I spend literally 80% of my time in the terminal and I hated gui stuff. I have to use it occasionally but thankfully not all the time. Text editors should be just for text, the resource usage on a textmode text editor is so minimal too.
Then you can run Emacs in a terminal, like I did back in the 1980:th.
Myself, I have no problem run in GUI, or terminal. Works basically the same.
And yes, there are several terminal modes within Emacs, if you like running CLI tools
@@AndersJackson I have actually started dabbling into the dark arts of Emacs in the cli. I am very much a vi/vim guy however I am not afraid of trying other things, as long as I can use them efficiently and in the terminal 👌
I forgot how eye searing light themes are until just now.
They say compress made of tea bags on eyes can help. No thanks.
Actually, that is just personal preferences. There are nothing that say either of them are better, medically.
And if you want a dark, or light thems, just select one that you like, and save the configuration. You don't even need to code any elisp to do that.
use your computer outside or near a sunny window for more than 2 seconds and you will start to see the appeal of light themes
To get emacs have the same functionality like (n)vi(m) have out of the box is real pain in the rear end. Of course one can use any opinionated configuration of emacs, but at the end of the day this configuration will be totally rewrited to fit one's needs. Gonna use emacs only with org mode for notes and literal programming.
Buy the way, FYI vim don't have to be runned in terminal. There's a lot GUI implementation for both vim and neovim.
thats how i got hooked, be careful man emacs is strong shit!
To get the same functionallity as neovim from start, you don't need to configure anything in Emacs.
And why so many have their own configuration is because it is easy to do. One start small and add as you need to fix something that scratch you. Instead of try to learn to live with the scratch.
It is easy because you can reconfigure most things while you are in Emacs.
But if neovim is enough for you, all powers to you. But please don't pretend you know Emacs, because you obviously don't.
vim9 came out. have a try?
I liked this but I'm evil.
I wonder if I can have a nvim GUI client that does this.
There just has to be a way. Let's say folds, or markdown headers, are big and chunky.
If anyone knows please let me know, I'm suer hooked with the idea. I just don't feel ready for Emacs.
Ready for Emacs? It is just to start, and use it. And if you want to have help, there are several good channels where they demonstrate different work flows.
Tried to use Doom for web development, works like crap. Constant issues here and there.
looks good to make a video about it and show off but that's it.
I still prefer [neo]vim because if you want to work with a remote server that doesn't have an X server running or something similiar, basically you have to use terminal, and I prefer to use a single tool everywhere
You can use Tramp to access a remote server, a docker container or a Docker container in a remote server. Very powerful and just need one editor.
Didn't know about Tramp, will check that out. But this assumes that Docker is installed/allowed on the remote machine, which may not be the case
Oh yes, it assumes that. The point is has a lot of features which can be discovered if you take your time.
You can get surprised to find things like some people use LSP servers through Tramp in a remote machine to code a Rust project for example. The point is that is too powerful so I recommend you to check it out.
Also I don't mind to use VIM anyway at remote servers.
Do you have resources/videos/tutorials about Tramp. I'm surprised that I hadn't ever heard about it (not even a single mention somewhere)
Rename your channel into OrgTube. :D
xterm works great.
Emacs works great in a terminal AND as a graphical application.
The Linux god is here once again
Still stick with vim. Font sizes are bloat anyway /s
Then run Emacs in terminal, and you get the same fonts as in vim.
This is treason then.
Personally I use vscode because it is written in Electron which is more efficient than C. Also it has a terminal inside of it. At the bottom actually. so it is even better than vim. Vim runs in a terminal but vscode is a terminal.
lol, you literally have no clue what you're talking about. Literally no one who knows what they are talking about would ever say that Electron is more efficient than C. No one. Ever. Second, no, vscode isn't a terminal. It's literally a webpage with a tab that emulates a terminal. That's what is called bloat. I can't even with you fake tech people...
Electron is "more efficient", as in faster to write in, or faster to execute? If the former, you could easily say that about C# or Python. If the latter, I don't think that's necessarily true, C is getting very close to machine code, and it's hard to beat as far as efficiency if you're managing memory at that level.
I guess it depends on what you're using them for, respectively.
Electron isn´t a programming language , Its an API - ecosystem, electron Apps are written in JS - TS (and are know for been not fast or efficient), C is a low - mid level programming language fast and dangerous in the wrong hands, but is still the fastest, All of current OS and many big big Apps are written in a mix of C, C++ and assembly.
@@mariogt Before you make outlandish claims like "Electron isn't a language" I'm gonna need peer reviewed academic sources that back up those absurd claims. In the mean time I am replying to this in the most efficient IDE editor ever. VSCode. Good luck vim kiddo
@@mariogt Good info, I actually wasn't super familiar with Electron outside of its use in some apps that I use.
Neovim
So form over content.
First.
All kidding aside love the Vids!
Confirmed!
Oh i wasn't quick enough
If you use vi or vim : You will never be a real programmer. Real programmers use EMACS
Oh...you are going to get trashed mercilessly in this thread. Best of luck! :D
Dude you can run vim in the terminal vim is way better
@@ZacLangston I always use emacs in terminal, not only on my macOS, Linux and Windows; but I also run emacs from a mosh/ssh terminal from my iPad with Blink.
@@DistroTube Don’t worry, I am an old programmer. I have been programming all summer.
@@MarquisDeSang but at that point you loose the benefits of emacs
No! Nooooooo! *desperate-neovim-cultist*
emacs is bloat
unfortunately, way too slow (i have an i5 8th gen with 8gb of ram)
What are you doing then on that machine? Running MS Windows?
@@AndersJackson I use Arch Linux btw. I find it insulting that you even thought I would ever try to run Windows on such a garbage device in the first place.
Edit: I am a middle school student, so I can’t just go asking my parents to buy me computers.
@@zahimeen interesting i have a computer with a old celeron and 4gb of ram and its running emacs fine lol