From 3609bfe2b1d5f57921ac13b2ef7490ecbdc71e66 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 26 Nov 2022 08:41:41 +0200 Subject: Update content for html --- ...-tried-emacs-but-i-switched-back-to-neovim.html | 23 ++++++++---------- gemfeed/atom.xml | 27 +++++++++------------- gemfeed/index.html | 2 +- index.html | 2 +- 4 files changed, 22 insertions(+), 32 deletions(-) diff --git a/gemfeed/2022-11-24-i-tried-emacs-but-i-switched-back-to-neovim.html b/gemfeed/2022-11-24-i-tried-emacs-but-i-switched-back-to-neovim.html index 1553a344..dfa27e82 100644 --- a/gemfeed/2022-11-24-i-tried-emacs-but-i-switched-back-to-neovim.html +++ b/gemfeed/2022-11-24-i-tried-emacs-but-i-switched-back-to-neovim.html @@ -2,14 +2,14 @@ -I tried Doom Emacs, but I switched back to (Neo)Vim +I tried (Doom) Emacs, but I switched back to (Neo)Vim -

I tried Doom Emacs, but I switched back to (Neo)Vim

-

Published by Paul at 2021-11-24

+

I tried (Doom) Emacs, but I switched back to (Neo)Vim

+

Published by Paul at 2022-11-24, last updated 2022-11-26

              _/  \    _(\(o
              /     \  /  _  ^^^o
@@ -52,23 +52,16 @@ Art by      \ \_!  / __!
 

To come back to the example, for the clipboard integration, I use this small VimScript snippet, and I didn't have to dig into any Lisp or Perl for this:

 " Clipboard
-
-if uname != 'Darwin'
-  vnoremap ,y !gpaste-client<CR>ugv
-  vnoremap ,i !gpaste-client --use-index get 0<CR>
-  nmap ,i !wgpaste-client --use-index get 0<CR>
-else
-  vnoremap ,y !pbcopy<CR>ugv
-  vnoremap ,i !pbpaste<CR>
-  nmap ,i !wpbpaste<CR>
-endif
+vnoremap ,y !pbcopy<CR>ugv
+vnoremap ,i !pbpaste<CR>
+nmap ,i !wpbpaste<CR>
 

That's only a very few lines and does precisely what I want. It's quick and dirty but get's the job done! If VimScript becomes too cumbersome, I can use Lua for NeoVim scripting.

The famous Emacs Org mode

Org-mode is an Emacs mode for keeping notes, authoring documents, computational notebooks, literate programming, maintaining to-do lists, planning projects, and more — in a fast and effective plain-text system. There's even a dedicated website for it:

https://orgmode.org/

In short, Org-mode is an "interactive markup language" that helps you organize everything mentioned above. I rarely touched the surface during my two-month experiment with Emacs, and I am impressed by it, so I see the benefits of having that. But it's not for me.

-

I use "Dead Paper Mode" to organize my work and notes. Dead paper? Yeah, I use an actual pen and a real paper journal (Leuchtturm or a Moleskine and a set of coloured 0.5 Muji Pens are excellent choices). That's far more immersive and flexible than a computer program can ever be. Yes, some automation and interaction with the computer (like calendar scheduling etc.) are missing. Still, an actual paper journal forces you to stay simple and focus on the actual work rather than tinkering with your computer program. (But I could not resist, and I wrote a VimScript which parses a table of contents page in Markdown format of my scanned paper journals, and NeoVim allows me to select a topic so that the corresponding PDF scan on the right journal page gets opened in an external PDF viewer (the PDF viewer is zathura, it uses Vi-keybindings, of course) :-). (See the appendix of this blog post for that script).

+

I use "Dead Tree Mode" to organize my work and notes. Dead tree? Yeah, I use an actual pen and a real paper journal (Leuchtturm or a Moleskine and a set of coloured 0.5 Muji Pens are excellent choices). That's far more immersive and flexible than a computer program can ever be. Yes, some automation and interaction with the computer (like calendar scheduling etc.) are missing. Still, an actual paper journal forces you to stay simple and focus on the actual work rather than tinkering with your computer program. (But I could not resist, and I wrote a VimScript which parses a table of contents page in Markdown format of my scanned paper journals, and NeoVim allows me to select a topic so that the corresponding PDF scan on the right journal page gets opened in an external PDF viewer (the PDF viewer is zathura, it uses Vi-keybindings, of course) :-). (See the appendix of this blog post for that script).

Zathura

On the road, I also write some of my notes in Markdown format to NextCloud Notes, which is editable from my phone and via NeoVim on my computers. Markdown is much less powerful than Org-mode, but I prefer it the simple way. There's a neat terminal application, ranger, which I use to browse my NextCloud Notes when they are synced to a local folder on my machine. ranger is a file manager inspired by Vim and therefore makes use of Vim keybindings and it feels just natural to me.

Ranger - A Vim inspired file manager
@@ -81,6 +74,8 @@ endif

Conclusion

I understand the Emacs users now. Emacs is an incredibly powerful platform for almost everything, not just text editing. With Emacs, you can do nearly everything (Writing, editing, programming, calendar scheduling and note taking, Jira integration, playing games, reading/writing emails, browsing the web, using as a calculator, generating HTML pages, configuring interactive menus, jumping around between every feature and every file within one single session, chat on IRC, surf the Gopherspace, ... the options are endless....). 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 and change the way it works, which makes the Emacs users stick even more to it.

Vim/NeoVim also comes with a very high degree of customization options, but to a lesser extreme than Emacs (but still, a much higher degree than most other editors out there). If you want the best text editor in the world, which can also be tweaked to be a decent IDE, 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 that's a little more straightforward, and the result is much more lightweight once you get used to the "Vi way of doing things" you never would want to change back. I haven't tried the Emacs vanilla keystrokes, but they are terrible (that's probably one of the reasons why Doom Emacs uses Vim keybindings by default).

+

Update: One reader recommended to have a look at NvChad. NvChad is a NeoVim config written in Lua aiming to provide a base configuration with very beautiful UI and blazing fast startuptime (around 0.02 secs ~ 0.07 secs). They tweak UI plugins such as telescope, nvim-tree, bufferline etc well to provide an aesthetic UI experience. That sounds interesting!

+https://github.com/NvChad/NvChad

E-Mail your comments to paul at buetow dot org! :-)

Go back to the main site

Appendinx

diff --git a/gemfeed/atom.xml b/gemfeed/atom.xml index ff7c9596..f000a2a1 100644 --- a/gemfeed/atom.xml +++ b/gemfeed/atom.xml @@ -1,6 +1,6 @@ - 2022-11-24T11:43:18+02:00 + 2022-11-26T08:41:31+02:00 foo.zone feed To be in the .zone! @@ -19,11 +19,11 @@
1c1 -< -rw-r--r--. 1 paul paul 14073 Nov 24 11:35 ../foo.zone-content/gemtext/gemfeed/2022-11-24-i-tried-emacs-but-i-switched-back-to-neovim.html +< -rw-r--r--. 1 paul paul 14388 Nov 24 11:43 ../foo.zone-content/gemtext/gemfeed/2022-11-24-i-tried-emacs-but-i-switched-back-to-neovim.html --- -> -rw-r--r--. 1 paul paul 14388 Nov 24 11:43 ../foo.zone-content/gemtext/gemfeed/2022-11-24-i-tried-emacs-but-i-switched-back-to-neovim.html -

I tried Doom Emacs, but I switched back to (Neo)Vim

-

Published by Paul at 2021-11-24

+> -rw-r--r--. 1 paul paul 14639 Nov 26 08:40 ../foo.zone-content/gemtext/gemfeed/2022-11-24-i-tried-emacs-but-i-switched-back-to-neovim.html +

I tried (Doom) Emacs, but I switched back to (Neo)Vim

+

Published by Paul at 2022-11-24, last updated 2022-11-26

              _/  \    _(\(o
              /     \  /  _  ^^^o
@@ -66,23 +66,16 @@ Art by      \ \_!  / __!
 

To come back to the example, for the clipboard integration, I use this small VimScript snippet, and I didn't have to dig into any Lisp or Perl for this:

 " Clipboard
-
-if uname != 'Darwin'
-  vnoremap ,y !gpaste-client<CR>ugv
-  vnoremap ,i !gpaste-client --use-index get 0<CR>
-  nmap ,i !wgpaste-client --use-index get 0<CR>
-else
-  vnoremap ,y !pbcopy<CR>ugv
-  vnoremap ,i !pbpaste<CR>
-  nmap ,i !wpbpaste<CR>
-endif
+vnoremap ,y !pbcopy<CR>ugv
+vnoremap ,i !pbpaste<CR>
+nmap ,i !wpbpaste<CR>
 

That's only a very few lines and does precisely what I want. It's quick and dirty but get's the job done! If VimScript becomes too cumbersome, I can use Lua for NeoVim scripting.

The famous Emacs Org mode

Org-mode is an Emacs mode for keeping notes, authoring documents, computational notebooks, literate programming, maintaining to-do lists, planning projects, and more — in a fast and effective plain-text system. There's even a dedicated website for it:

https://orgmode.org/

In short, Org-mode is an "interactive markup language" that helps you organize everything mentioned above. I rarely touched the surface during my two-month experiment with Emacs, and I am impressed by it, so I see the benefits of having that. But it's not for me.

-

I use "Dead Paper Mode" to organize my work and notes. Dead paper? Yeah, I use an actual pen and a real paper journal (Leuchtturm or a Moleskine and a set of coloured 0.5 Muji Pens are excellent choices). That's far more immersive and flexible than a computer program can ever be. Yes, some automation and interaction with the computer (like calendar scheduling etc.) are missing. Still, an actual paper journal forces you to stay simple and focus on the actual work rather than tinkering with your computer program. (But I could not resist, and I wrote a VimScript which parses a table of contents page in Markdown format of my scanned paper journals, and NeoVim allows me to select a topic so that the corresponding PDF scan on the right journal page gets opened in an external PDF viewer (the PDF viewer is zathura, it uses Vi-keybindings, of course) :-). (See the appendix of this blog post for that script).

+

I use "Dead Tree Mode" to organize my work and notes. Dead tree? Yeah, I use an actual pen and a real paper journal (Leuchtturm or a Moleskine and a set of coloured 0.5 Muji Pens are excellent choices). That's far more immersive and flexible than a computer program can ever be. Yes, some automation and interaction with the computer (like calendar scheduling etc.) are missing. Still, an actual paper journal forces you to stay simple and focus on the actual work rather than tinkering with your computer program. (But I could not resist, and I wrote a VimScript which parses a table of contents page in Markdown format of my scanned paper journals, and NeoVim allows me to select a topic so that the corresponding PDF scan on the right journal page gets opened in an external PDF viewer (the PDF viewer is zathura, it uses Vi-keybindings, of course) :-). (See the appendix of this blog post for that script).

Zathura

On the road, I also write some of my notes in Markdown format to NextCloud Notes, which is editable from my phone and via NeoVim on my computers. Markdown is much less powerful than Org-mode, but I prefer it the simple way. There's a neat terminal application, ranger, which I use to browse my NextCloud Notes when they are synced to a local folder on my machine. ranger is a file manager inspired by Vim and therefore makes use of Vim keybindings and it feels just natural to me.

Ranger - A Vim inspired file manager
@@ -95,6 +88,8 @@ endif

Conclusion

I understand the Emacs users now. Emacs is an incredibly powerful platform for almost everything, not just text editing. With Emacs, you can do nearly everything (Writing, editing, programming, calendar scheduling and note taking, Jira integration, playing games, reading/writing emails, browsing the web, using as a calculator, generating HTML pages, configuring interactive menus, jumping around between every feature and every file within one single session, chat on IRC, surf the Gopherspace, ... the options are endless....). 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 and change the way it works, which makes the Emacs users stick even more to it.

Vim/NeoVim also comes with a very high degree of customization options, but to a lesser extreme than Emacs (but still, a much higher degree than most other editors out there). If you want the best text editor in the world, which can also be tweaked to be a decent IDE, 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 that's a little more straightforward, and the result is much more lightweight once you get used to the "Vi way of doing things" you never would want to change back. I haven't tried the Emacs vanilla keystrokes, but they are terrible (that's probably one of the reasons why Doom Emacs uses Vim keybindings by default).

+

Update: One reader recommended to have a look at NvChad. NvChad is a NeoVim config written in Lua aiming to provide a base configuration with very beautiful UI and blazing fast startuptime (around 0.02 secs ~ 0.07 secs). They tweak UI plugins such as telescope, nvim-tree, bufferline etc well to provide an aesthetic UI experience. That sounds interesting!

+https://github.com/NvChad/NvChad

E-Mail your comments to paul at buetow dot org! :-)

Appendinx

This is the VimScript I mentioned earlier, which parses a table of contents index of my scanned paper journals and opens the corresponding PDF at the right page in zathura:

diff --git a/gemfeed/index.html b/gemfeed/index.html index d959380d..85277f2d 100644 --- a/gemfeed/index.html +++ b/gemfeed/index.html @@ -10,7 +10,7 @@

Gemfeed of foo.zone

To be in the .zone!

-2022-11-24 - I tried Doom Emacs, but I switched back to (Neo)Vim
+2022-11-24 - I tried (Doom) Emacs, but I switched back to (Neo)Vim
2022-10-30 - Installing DTail on OpenBSD
2022-09-30 - After a bad night's sleep
2022-08-27 - Gemtexter 1.1.0 - Let's Gemtext again
diff --git a/index.html b/index.html index 424c6f28..1a3c45ad 100644 --- a/index.html +++ b/index.html @@ -29,7 +29,7 @@ Subscribe to this blog's Atom feed
Subscribe to this blog's Gemfeed

Posts

-2022-11-24 - I tried Doom Emacs, but I switched back to (Neo)Vim
+2022-11-24 - I tried (Doom) Emacs, but I switched back to (Neo)Vim
2022-10-30 - Installing DTail on OpenBSD
2022-09-30 - After a bad night's sleep
2022-08-27 - Gemtexter 1.1.0 - Let's Gemtext again
-- cgit v1.2.3