summaryrefslogtreecommitdiff
path: root/gemfeed
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2022-12-10 13:08:00 +0200
committerPaul Buetow <paul@buetow.org>2022-12-10 13:08:00 +0200
commitf58a040f185c177cb237c6a53e3d464207bd8669 (patch)
treef89d4389107da6b439bad085c137b5dcda712109 /gemfeed
parent73a66ce8c1eb27c74dbbedac97ee99dfde359f7a (diff)
Update content for html
Diffstat (limited to 'gemfeed')
-rw-r--r--gemfeed/DRAFT-i-tried-doom-emacs-but-i-switched-back-to-vim.html52
1 files changed, 0 insertions, 52 deletions
diff --git a/gemfeed/DRAFT-i-tried-doom-emacs-but-i-switched-back-to-vim.html b/gemfeed/DRAFT-i-tried-doom-emacs-but-i-switched-back-to-vim.html
deleted file mode 100644
index c06c7732..00000000
--- a/gemfeed/DRAFT-i-tried-doom-emacs-but-i-switched-back-to-vim.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<title>I tried Doom Emacs, but I switched back to (Neo)Vim</title>
-<link rel="shortcut icon" type="image/gif" href="/favicon.ico" />
-<link rel="stylesheet" href="../style.css" />
-<link rel="stylesheet" href="style-override.css" />
-</head>
-<body>
-<h1>I tried Doom Emacs, but I switched back to (Neo)Vim</h1>
-<p>As a long-lasting user of Vim (and NeoVim), I always wondered what the fuzz about Emacs is about! So I decided to give Emacs a try. I tried out Emacs, but Doom Emacs and not vanilla Emacs. I chose Doom Emacs as it is a pretty neat distribution of Emacs with <span class="inlinecode">Evil mode</span> enabled by default. <span class="inlinecode">Evil mode</span> allows Vi(m) key bindings, and I am pretty sure I won't be ready to give up all the Vi muscle memory I have built over more than ten years.</p>
-<p>I used Doom Emacs for around two months, but ultimately I decided to switch back to NeoVim as my primary editor and IDE and Vim as my "always available editor" for quick edits. So why is that?</p>
-<h2>Emacs is a monster</h2>
-<p>Emacs feels like a monster as it is much more than an editor or an integrated development environment. Emacs is a whole platform on its own. There's an E-Mail client, an IRC client, or even games you can run within Emacs. And you can also change Emacs within Emacs using its own <span class="inlinecode">Lisp</span> dialect, <span class="inlinecode">Emacs Lisp</span>. Therefore, Emacs is also its own programming language... You can change every aspect of Emacs within Emacs. People jokingly state Emacs is an operating system and that you should directly boot into Emacs as the init 1 process!</p>
-<p>In many aspects, Emacs is like shooting at everything with a rail gun! However, I prefer it simple. I only wanted Emacs to be a good editor (which it is, too), but there's too much other stuff in Emacs that I, frankly, don't care about! Vim and NeoVim do one thing excellent: Being great text editors and, when loaded with plugins, a decent IDEs, too. Yes, <span class="inlinecode">VimScript</span>, to program the editor, feels clunky and is by far not as elegant as <span class="inlinecode">Emacs Lisp</span>, but it gets its job done! NeoVim is also programmable with <span class="inlinecode">Lua</span>, which seems to be a step up. </p>
-<h2>Magit love</h2>
-<p>I almost fell in love with <span class="inlinecode">Magit</span>, a fully integrated Git client for Emacs. But I think the best way to interact with Git is to use the <span class="inlinecode">git</span> command line directly. I don't worry about typing out all the commands, as the most commonly used commands are in my shell history. Other useful Git programs I use frequently are <span class="inlinecode">bit</span> and <span class="inlinecode">tig</span>. </p>
-<p><span class="inlinecode">Magit</span> is pretty neat for basic Git operations, but I found myself searching the internet for the correct sub-commands to do the things I wanted to do in Git. Mainly I found the way how branches are managed confusing. Often, I fell back to the command line to fix up the mess I produced with <span class="inlinecode">Magit</span> (e.g. accidentally pushing to the wrong remote branch).</p>
-<h2>Seeking simplicity</h2>
-<p>I am not ready to dive deep into the whole world of Emacs. I prefer small and simple tools as opposed to complex tools. Emacs comes with many features out of the box, whereas in Vim/NeoVim, you would need to install many plugins to replicate the behaviour. Yes, I need to invest time managing all the Vim/NeoVim plugins I use, but I feel more in control compared to Doom Emacs, where a framework around vanilla Emacs manages all the plugins. I could use vanilla Emacs and manage all my plugins the vanilla way, but for me, it's not worth the effort to learn and dive into that as all that I want to do I can already do with Vim/NeoVim.</p>
-<p>I am not saying that Vim/NeoVim are simple programs, but they are much simpler than Emacs with much smaller footprints; furthermore, they appear to be more straightforward as I am used to them. I only need Vim/NeoVim to be an editor, an IDE (through some plugins), and nothing more.</p>
-<h2>Scripting it</h2>
-<p>It is possible to customize every aspect of Emacs through <span class="inlinecode">Emacs Lisp</span>. I have done some <span class="inlinecode">Elk Scheme</span> programming in the past (a dialect of <span class="inlinecode">Lisp</span>), but that was a long time ago, and I am not willing to dive here again to customize my environment. I would rather take the pragmatic approach and script what I need in <span class="inlinecode">VimScript</span> (a terrible language, but it gets the job done!). I watched Damian Conway's <span class="inlinecode">VimScript</span> course on O'Reilly Safari Books Online, which I greatly recommend.</p>
-<a class="textlink" href="https://www.oreilly.com/library/view/scripting-vim/9781491996287/">Scripting Vim by Damian Conway</a><br />
-<p>One example is my workflow of how I write blog articles. I am writing everything in NeoVim, but I also want to have every paragraph checked against Grammarly (as English is not my first language). So I write a whole paragraph, then I select the entire paragraph via visual selection with <span class="inlinecode">SHIFT+v</span>, and then I press <span class="inlinecode">,y</span> to yank the paragraph to the systems clipboard, then I paste the paragraph to Grammarly's browser window, let Grammarly suggest the improvements, and then I copy the result back to the system clipboard and in NeoVim I type <span class="inlinecode">,i</span> to insert the result back overriding the old paragraph with the new content. That all sounds a bit complicated, but it's surprisingly natural and efficient.</p>
-<p>For the clipboard integration, I use this small <span class="inlinecode">VimScript</span> snippet, and I didn't have to dig into any <span class="inlinecode">Lisp</span> for this:</p>
-<pre>
-" Clipboard
-
-if uname != 'Darwin'
- vnoremap ,y !gpaste-client&lt;CR&gt;ugv
- vnoremap ,i !gpaste-client --use-index get 0&lt;CR&gt;
- nmap ,i !wgpaste-client --use-index get 0&lt;CR&gt;
-else
- vnoremap ,y !pbcopy&lt;CR&gt;ugv
- vnoremap ,i !pbpaste&lt;CR&gt;
- nmap ,i !wpbpaste&lt;CR&gt;
-endif
-</pre><br />
-<h2>The famous Org mode</h2>
-<p>Org mode: Ranger</p>
-<h2>Conclusion</h2>
-<p>I believe I started to understand the Emacs users now. Emacs is a incredible powerful platform for almost everything not just for text editing. If you want to have one piece of software which rules it all and you are happy to invest a large part of your time in your platform: Pick Emacs and over time Emacs will become "your" Emacs, customized to your own needs which makes the Emacs users stick even more to it. With Emacs you can do nearly everything (Editing, programming, calendar scheduling and note taking, Jira integration, play games, read/write emails, browse the web, use as a calculator, generate HTML pages, configure interactive menus, jump around between every feature and every file within one single session, chat on IRC, surf the Gotherspace, ... the options are endless....).</p>
-<p>Vim/NeoVim comes also with a very high degree of customization options, but to a lesser extreme than Emacs. If you want to have the best editor of the world, which can also be tweaked to be a decent IDE, and that's you are only looking for: Pick Vim or NeoVim! You would also need to invest a lot of time in learning, tweaking and customizing Vim/NeoVim, but I think that's a little bit more straightforward and the end-result is much more lightweight.</p>
-<p class="footer">
-Generated with <a href="https://codeberg.org/snonux/gemtexter">Gemtexter</a> |
-served by <a href="https://www.OpenBSD.org">OpenBSD</a>/<a href="https://man.openbsd.org/httpd.8">httpd(8)</a> |
-<a href="https://www.foo.zone/site-mirrors.html">Site Mirrors</a>
-</p>
-</body>
-</html>