My opinions on worse-is-better

I got something from “Worse is Better” His example: two famous people, from MIT and Berkeley respectively, once met to discuss operating system issues. The “PC loser-ing” problem. The Berkeley (and Unix) guy , thought the right solution was “for the system routine to always finish, but sometimes an error code would be returned that signaled that the system routine had failed to complete its action.”, rather than “to back out and restore the user program PC to the instruction that invoked the system routine so that resumption of the user program after the interrupt, for example, re-enters the system routine.”. Because “the right thing was too complex.”. ...

September 14, 2023 · 2 min · ChaosNyaruko

What do I learn from trying to "master" an editor

Intro I am a Vim user(and now Neovim, wish that it wouldn’t be “was”). To be honest, I am not an expert on vim, and configuring my own vim really takes some time, but I really find something useful during my “playing” time. Apologies for my poor English in advance. Fun This is the most important thing. Defining my own editor is just like playing LEGO, even more interesting. There exists infinite possibilities in this amazing editor (So is Emacs/VSCode/…). You can almost create anything you want about text editing in this environment. Thanks to Bram, may he rest in peace🙏 . ...

August 26, 2023 · 3 min · ChaosNyaruko

How to edit efficiently

inspired by https://www.youtube.com/watch?v=5fBkVjNryVQ Sharpen the saw You have to keep on tuning the set of commands you use for your needs. Use Feedback: Learn from what you do. Don’t try to learn everything, just the things you need. Summary Step1: Detect inefficiency Find out what you waste time on Step2: Find a quicker way read the on-line help read the quick refeference, bookts, etc. ask friends and colleagues search the internet do it youself Step3: Make it a habit ...

August 20, 2023 · 1 min · ChaosNyaruko

Bulk rename files with Vim

Unix Shell Create list of files \ls | vim - The backslash tells your shell to disregard any aliases for ls; we need plain output with no color. Vim will open, displaying a list of file names. Change to list of shell commands In Vim you now have one file name per line. We need to change each line to be a valid stand-alone shell command. For example, to rename the files to lowercase: ...

August 19, 2023 · 2 min · ChaosNyaruko

Vim or Neovim in 2023?

Prologue Vim is one of the most famous based text editors(somehow infamous for serveral reasons). Neovim is a really weel-known fork of Vim, which even has its own community. So which one should I choose? It depends on your workflow and usage scenarios. I will introduce the pros and cons of both from my point view. Hope it will help you with the selection. Neovim vs Vim Neovim Pros/Vim Cons: Neovim has better default settings, which means you don’t need to “set nocompatible”/“set backspace”/…, see “:h nvim-default” for details in Neovim. Neovim has a more open and active community. (Check the “job control” story if you are interested). However, it depends on your attitude towards open source practice. Neovim has built-in LSP/treesitter support. Neovim makes Meta key available by default. Neovim uses Lua as first-class configure language, with high performance Lua-JIT as its engine. Lua is more like a programming language. Basicly all plugins written for Vim is available for Neovim, because Vimscript is still supported. The Vimscript engine is reserved. There are still some others advantages, which I personally don’t so much care, see offical website for details. ...

August 1, 2023 · 2 min · ChaosNyaruko