by p-e-w · 3y ago · 0 comments
Sorry folks, but it turns out that the creators of Vi(m) didn't actually invent the ultimate UI paradigm half a century ago. It's bad enough that a text editor that ignores the past few decades of UX research is still in widespread use, but please, for the love of God, stop incorporating that broken paradigm into new products.
What a pity, because Nyxt looks like a well-designed piece of software otherwise.
Imagine if those precious keystrokes wasted on setting a keyboard layout could instead be utilized usefully. Say, to post some cloying, whiny critique of someone else's work, wherein one might go so far as invoking their diety in the hopes it might stem the tide of what, I guess, must be a massive recent influx of vi(m)-keybinding-based projects.
Actually, you probably understand that on a deeper level. Since we are not talking about a product where "you can configure vim bindings in the settings". Its just that you personally appear to like this default and seem offended by others preferring sth else.
Using ViM as an example, using the keys that are prevalent on a US keyboard, was a sensible approach when it was developed, and since remapping the keys is probably one of the easiest things to do, it's also not an issue. In fact, writing a simple remap into a text file is easier than remapping keys in most "modern" editors, where the option to do so usually lives behind 2 sub-menus hidden behind a hamburger-button, and forcing me to scroll down an endless list that may or may not have a search function. And good luck if I want to export/import my config, or, god forbid, check it into a repo.
> But defaults matter, if you target anyone else.
Products have to target an audience and cater to them. That's how we ended up with alot of the modern webapps sharing the same usability problems, because "being like everyone else because that's what the audience is familiar with" encourages stagnancy, not evolution.
FOSS Tools on the other hand, have the freedom to explore ideas. If people don't like these ideas, they don't have to use the tools.
Not necessarily, since it’d just be a matter of popularizing Vim + the community’s preferred shortcuts as a starter instead.
> in general hackers hate when their tools don't work out of the box
Indeed we do. However, we don’t give up on something if it doesn’t work. We simply hack at it until it works how we want ;)
There isn't that many software dev tools were a small variation in key bindings (or some similar small change) became ubiquious and propelled the popularity by adapting it to the local needs of American developers/IT (keyboard layout in this case), it's a chicken and egg problem because if Vim wasn't that popular there wouldn't be much interest in creation preferred shortcuts, so I conclude that what you suggested is not what would have happened.
It’s time we pander to each and every culture’s random conception of symbol manipulation and end this era of universal, gate-keeping, commonality. The time of personalized input devices is upon us.
Vim and thus this browser is unusable on my custom 20% HIQPK layout numpad.
I accept that U.S. English is the computer lingua franca.
Keyboard is a one-time investment of 20-200 Euro, but learning to use your editor efficiently is an investment of years of your life... amplified by the fact that there aren't that many good editors. So, any person who needs to work with the editor on a daily basis will have to make a choice between buying a keyboard that works well with that editor or a keyboard that allows them to type Euro / Pound sign more easily... And nobody in this situation is going to choose the keyboard that doesn't work well with the editor.
This obviously varies by country, but at the places I’ve worked at, most people used the local layout instead of the US one. They couldn’t bother relearning it and then switching every time they wanted to enter some text in the local (Slavic) language.
Has the US keys on the first/second levels and most/all special symbols for European languages easily accessible w/ modifier keys. Entirely removed the need to switch keyboard layouts for me.
However, even if I wouldn't switch - wouldn't it just be to remap the keys in my config?
One might even argue that it's terrible for some other keyboard shortcuts, as they stop making sense: E.g., when Ctrl+Z is undo and Ctrl+X is redo, that makes perfect sense on QWERTY, but is hard to grasp on QWERTZ. Yet this is seemingly never customized/"translated", even in software that customizes other shortcuts (e.g., in word processing).
So, long story short, do yourselves a favor and don't use QWERTZ for serious computer use ;-)
While I live in Spain now I still use the US layout I'm used to from the Netherlands. It means I can't type the Spanish accents which are kinda important but anyway...
Other ways to accomplish this would be coming up with macros or custom shortcuts (e.g., with one or more modifiers), to type the characters you don't have on an UK layout.
All of this is way easier to do than to fix all the 'bugs' in well established programs that have shortcuts that don't work or don't make sense on QWERTZ (or, to take it further, in the native language attached to that language - :wq should be :sb in German. ;-) )
My intention here was not to gatekeep, but to make the case/share my experience that when I first forced myself to use a different (UK [1]) keyboard layout and set my computer to English, many things that previously were cumbersome and hard to remember and did not really make sense, suddenly were easy to memorize and made perfect sense. It was almost life-changing!
Now: Should (1) it be this way, or should (2) internationalization/translation be way better? Certainly (2), but I just don't see it happen, neither in commercial (cost), nor in free (lack of contributors) software.
[1]: Don't do this, US international ISO is better: https://www.farah.cl/Keyboardery/A-Visual-Comparison-of-Diff...
Here's the most important one of them: Don't surprise me. Blend in. Look and behave like other programs.
There are 50 applications on my system. Yours is one of them. If all other applications use 'Ctrl+C' for copying text, but your application uses 'y', then your application is the problem.
In the context of the command line Ctrl+C sends SIGINT, which usually interrupts/terminates a program. When I press Ctrl+C, vim shows "Type :qa and press <Enter> to exit Vim". All my command line programs handle it as SIGINT. Imposing Ctrl+C as copy would be inconsistent and surprising.
If I'm using Visual Studio with vim keybindings Ctrl+C/Ctrl+V are still copy/paste (I suspect this is because VS provides this and the keybindings don't override it). I think every other editor with vim keybindings I've used preserves this behavior. Ctrl-C as copy is consistent with every other windowed program I'm running. Where have you encountered vim keybindings that don't permit this?
I don’t know about 50 applications. The rest of the applications I use are more specialized, and have their own shortcut madness. Browsers ate most of the small stuff.
How's this a "research"? It's just about you, your attitude, your lack of experience with computers...
Why should anyone take seriously claims coming from someone who didn't even bother to learn to use the thing they claim to have bad user experience?
And something innovative and effective would be both self explanatory and actually useful, so it ultimately gets adopted by others instead of simply surprising and confusing people
Trying to objectively describe vim as a problem by invoking UX research is very funny.
The end result of that logic is to rule out modal editors altogether.
There is hardly anything in the world that blends in better with everythign else, then a terminal application between other terminal applications.
I have been thinking the same for years. Some guys at work used to add Vim bindings to their IDE and I just didn’t understand it.
I used VI back in the day when the choice was vi or ed. It worked well given the constraints of a Wyse60 or VT100. But I was happy to leave it behind for X windows, a mouse, and modeless editing.
So today, 25 years after I learned VI because I had no choice, the idea that having Vi bindings makes a tool for “hackers” is just not something that resonates with me. I’m happy to discover I’m not the only one.
In case it’s not clear from my tone, I’m totally sympathetic to relieving injury, and whatever works, works. I just don’t understand how Vim bindings help, and am genuinely curious.
The purpose of insert mode is to insert text, and that’s it. This occupies a very small proportion of total editing time.
Yes! I very much do. I do not use the arrow keys for cursor movement in edit mode.
I‘m one of these guys.
I’m used to its text editing hotkeys from years of using it, but when jumping between a bunch of languages/environments it’s a lot easier to leverage the ‚integrated‘ nature of a lot IDEs (in my case Jetbrains).
Having to find, configure and remember how to use a bunch of different debuggers, linters, codegen tools and other tools manually is a pain
I use multi-language keyboard layouts and switch all the time... when coding (or using "hacker" software like this, which is completely based on emacs [and as far as I know is written in Common Lisp], not vim), just use a layout that makes it easier (in my case, en-AU).
But this doesn't work in shortcuts, e.g. when combined with Ctrl. That is, AltGr+8 generates the character '[', but Ctrl+AltGr+8 is not the same as pressing Ctrl+[ on keyboards that have a dedicated [ key.
This bug is decades old, and every Vim derivative suffers from it.
EDIT: the Dr Racket editor even lets you write Lisp using '[' and ']' because they don't require pressing shift like '(' and ')' so are easier to press.
If so, I'll try and remember that if ever tempted to use Ctrl and {[]} together I need to handle that as well.
Besides, the whole point of Vim bindings is supposed to be that they are the same everywhere (muscle memory yadda yadda yadda). When you have to change core bindings to something random to make them work, that whole idea falls apart, and you're probably better off using the platform standard bindings for everything. Plus, you get the additional benefit that the software fits in with the rest of the system, rather than sticking out like a sore thumb.
No, the point is customizability to tweak it to your personal needs. Vim has the most flexible keybinding system I've seen in a program so far. If you want "same everywhere" any editor will do. I have never in my life seen anyone make this argument that one of the most customizeable editors is meant to be used without configuration.
> you're probably better off using the platform standard bindings for everything
Or maybe I use Vim exactly because it fits my workflow better than the standard that was designed for the average user as a series of historical accidents?
> When a product is unusable without changing configuration, it absolutely is a bug
It's not a bug, it's a design based on how 99% of input devices in the region it was created in work. Just like US electrical appliances that you can't just plug into European power sockets. And honestly you're blowing this way out of proportion, very few Vim keybindings are incompatible with QWERTZ keyboards. I know because I used Vim for years with a QWERTZ keyboard and never felt limited by that.
I don't think that adage applies when the target user is the average VIM user
No, the whole point of ViM bindings is that MY bindings are the same everywhere. That's why it's main config is a simple textfile that I can just `git clone` or `sftp` onto whatever machine I intend to spend more than a few seconds writing code on.
Which, incidentially, is something that is an absolute PITA, if it's possible at all with the more "modern" editors, or on the off chance it isn't a PITA, usually depends on some specific platforms offerings.
> Plus, you get the additional benefit that the software fits in with the rest of the system, rather than sticking out like a sore thumb.
Well, from my PoV, what with i3 desktop, vim in the terminal, and the browser being the only GUI application that I use regularly, vim seems to fit in pretty well with everything else.
You don’t hear the Arabic, Chinese or Greek crowds complain about this, they just switch layouts.
I've been programmer for about 20 years now and I could never understand why Vi(m) or Emacs exists with those weird bindings which are completely different from pretty much everything else.
I'm not that old, maybe they had their cake in 80s, but perhaps time to move on to something modern which would have modern defaults (if many need to customize there's something wrong with the defaults) that appeal to all keyboards.
I doubt there's any hope for you... but from other thing you said:
> are completely different from pretty much everything else.
I can conclude that you were programming something that's not a typical modern computer. I.e. you never used things like terminal (with readline), never red a manpage, never used pagers like more / less, which would mean that you also never used the most popular operating system in the world, where, for instance, if you need to get access to its service logs, they'd open in a pager...
I mean... was it like 20 years of Scratch programming on a game console or something? Or maybe COBOL on a MF? Like, what were you doing all these 20 years that kept you so far away from the most popular thing in the world?
Yup, I'm pretty much working with terminal everyday, though nowadays most popular thing seems to be Vscode.
Maybe you should modernize yourself instead of attacking people with a childish level of humiliation.
Also, was looking at JS/TS back in the days when I had to migrate away from AS.
> Yup, I'm pretty much working with terminal everyday,
Doing something every day doesn't mean you do it well. Apparently, in your case, you don't. Readline interface to the terminal uses the same keybindings as vanilla Emacs. You just somehow don't know it. Kind of weird, as there are hardly any keybindings to learn, and yet.
> most popular thing seems to be Vscode.
VSCode is, well, junk. And so is Linux! Popular doesn't mean it's good. In programming, it's actually rare when it's both. And people like you and me have contributed to this being the case.
You see, the difference between you and me was the stupid chance. When FlashDevelop was considering Linux support, they didn't have a good program about what to do with their text editing component (Scintilla) that was festered with p-invokes. So, in a very ambitious project I wanted to replace that component with Vim. That proved to be absurdly hard... and I quickly gave up any hope of that happening. But, I learned few things about Linux that, later, made me switch.
My first editor on Linux was Eclipse. I still used it on and off for a long time due to Flex Builder, and later Flash Builder. It sucked, especially because Adobe's support sucked, and eventually, they cut it off entirely. I was still patching the last version of Eclipse to get Flash Builder running, but, eventually, that became irrelevant.
Somewhat in parallel and increasingly more often, once I started working mostly on Linux, I switched to Vim. Ironically, because I wanted to work with Common Lisp, which is another hilarious misunderstanding story. After trying it several times and giving up, eventually, I switched to Emacs.
In my professional life, I was at that time hired by HP to work on some sort of a SAP knock-off that had its interface written in Flex. By the time the project was due, they declared to the customer they won't support Flex anymore, and switched to GWT (the Java framework that generated JavaScript). I didn't make it into the group of developers who were assigned to continue that project, however, somehow, I got reassigned to the ops team.
HP had a corporate IntelliJ license, and made use of IntelliJ products mandatory at work. My job in the ops team was to navigate the cubicles of desperate Java dummies hired into this mindless grind of Java/XML and "fix" their Maven builds. Usually, the fixing amounted to explaining to them for the zillions time the basics of using their editor -- the fabled IntelliJ IDEA. It was ridiculous how unproductive these people were with that monster of an editor. Ironically, quite a few of them would also use Notepad++ as a side hustle. But they sucked at that too.
Later on, I switched to supporting MSBuild projects in a different company, and had to battle the unimaginable stupidity of its MSVS users, who couldn't understand how their editor worked, and didn't care. It was a game shop that made games for "smart" TV, and they actually wrote them in TS.
I've seen editors like Atom or VSCode come and go. And I've seen quite a few users of those too. It's a choice for people who don't have or don't value the skill of using their editor. These people are in constant fear of the tools they use, constant anxiety about the next Git command they are going to type and how this will "ruin their day", people who don't know how to open a file without extension...
I don't work with such people anymore. Not in my day job at least. Though my wife, she has to deal with this kind of audience. And, sometimes, she has to call me to fix the problems these people create for themselves.
But, you know what served me faithfully through the years, no matter the language I used, no matter the platform, no matter how modern or archaic, no matter if in the cloud, in a crippled unter-computer, or in HPC setting, no matter if having X-server? -- And, always with great performance, and always keeping few tricks up its sleeve? -- That's right, Emacs. VSCode is so pathetically bad compared to it, it's ridiculous to even think that someone may suggest it as a hacker's tool. It's a toy "doctor set" from AliExpress in the real surgery room. Good for giggles, but that's about it.
So, back to how we contribute to the awful state of affairs in programming: we don't create a system of values based on research. We proclaim that thing X is better than Y. And sometimes also give rationalization that is complete nonsense. While we might have real experts, those aren't found in the places they should be: academia failed us -- their titles are worthless. Industry failed us -- it doesn't need quality, it ranks software success by commercial success. People like me and you may stay in the industry for decades and end up complete noobs. With the added aspect that after a long time of being a noob, even if nothing really changed the noobs start to believe themselves to be pros. And then they take to teaching others.
We belong to the wave of programmers which wiped the little accomplishment that there was there in the 70's and flooded the field with ridiculous unga-bunga nonsense that we sell as "programming". We are the lords of the flies.
Though it might not work - the original Mac user research found that keyboards make users think they're faster, but don't actually make them faster, because of time blindness.
I'm not using it anymore myself, but I know and respect people who do. For me the tradeoff was not worth it, however it still annoys me to hell and back that I have to reach for the mouse so often in vscode.
I develop mostly mobile apps and I need to be using mouse/trackpad anyway frequently so that's not an issue.
Though about the keyboard part: I'm used to Vscode's keyboard shortcuts too (and I can in no way say I know all of it) and I can easily navigate and code in Vscode too.
Perhaps many people who got used to those tools developed muscle memory so much that they can't give Vscode (or anything modern) the chance it deserves.
Inertia, traditionalism, elitism, insider culture, ignorance, "good enough" mentality, blind spots, cargo culting, ...
There's really no mystery here. The reasons are the same as in every other part of society where outdated conventions are maintained despite massive, obvious problems. The phenomenon itself is as predictable as the arguments used by its defenders, mostly variations of "it works for me".
First of all, vi predates all those others. That means it's always had an active userbase werken other tools were in fashion. Changing the bindings at any point in time would have hurt a lot of people's muscle memory. It would also be extremely annoying when one has older versions on some machines with the old bindings and some with the new. I deal with the Mac vs Windows/Linux copy paste problem every day.
Also, vim just has a ton of functions and there's always going to be some shortcuts that will be awkward on some or other keyboard layout.
Finally, you don't have to use it :) or you could distribute your custom config file with bindings to every machine you use.
I was basically forced into learning vi to begin with (editing things on a -very- heterogenous collection of servers) but then found after a few weeks that I found it surprisingly pleasant and stuck with it.
Then again I don't recall sending a vi instance anything involving the control key except for Ctrl-C, Ctrl-L and Ctrl-Z.
> massive, obvious problems
It’s not problems, it’s opportunities you’re missing, because you don’t understand and aggressively don’t want to understand the actual reasons why people are using it, whining about elitism and other bullshit instead.
So something completely unattainable by a small dev team on a startup budget. Great! These are the standards by which we prevent any good things from being created.
So the user just presses Ctrl-AltGr-[, what's the problem? And changing keyboard layouts or keybinds, isn't something that someone using vim should have a lot of trouble with anyway.
> It's bad enough that a text editor that ignores the past few decades of UX research is still in widespread use,
Maybe that's because a lot of people using it decided that the "decades of UX research" produced precious little of worth. That's because alot of the "research" done in areas that are, by their nature, heavily opinionated, produces, what a surprise, mostly opinions.
And when we take a giant pile of opinions, and pile them all on top of one another, well...
...that's how we ended up in a world where, somehow, people now actually have to wait for an application to open, like they did in the early 90s, on machines that are orders of magnitude more powerful. Where webpages load 20MiB of giant hero images, useless framework code and spyware, to display 4 lines of text. Where applications get more "modern" and "streamlined" by somehow lowering information density, losing functionality and getting less self-explanatory.
In other words: you are complaining about a problem that doesn't exist. Users who want Vim / Emacs experience don't want keyboards that don't work well with their editor of choice. They will not be in a situation where they have to adjust their editor to the keyboard layout. If there's a mismatch, then the keyboard will be adjusted, not the editor.
Now, I'm not sure how Vi(m) users handle other written languages, but since I every now and then have to write in two non-Latin languages, in Emacs, I keep buffers for those languages with input method set accordingly. However, say, I need to write in Cyrillic, I still use the en_US modified QUERTY layout that I use for everything else + phonetic transliteration into Cyrillic. This is both easier for touch-typing, as I don't have to memorize several different layouts, and this method makes more letters easily available than there would've been on a physical keyboard.
So... no. don't stop incorporating Emacs / Vi key usage into new products. It works great.
Also:
> ignores the past few decades of UX research
Except there was none. Unless you mean it in the same way how for some reason people who make HTML pages call themselves "UX developers". What happened is that big companies wanted to sell products that looked "impressive", but offered worse user experience overall. This is how MSVS, Eclipse, and similar happened. There's literally no UX research on how people deal with typing text into computers. Whereas in practice, what I see is that people who use "visual" tools just suck at writing text. And, myself, having worked with both "visual" editors and Emacs / Vi, I would literally refuse a job position if I had to work with VSCode / IntelliJ products.
That's an oversight of Nyxt in particular.
Cue endless debates about how Vim is the best ever ...... I'm sick and tired of everyone telling me that their neovim setup with a tiling window manager with million customized rc files is somehow better than vscode with a mouse (which mind you still has plenty of keyboard shortcuts) with sane windows. /rant
Most of us think "we like it, some people don't, great if it's an option, probably shouldn't be the only option anywhere else."
The one-upmanship (over VSCode in your case but all editor wars get a dishonourable mention) is bullshit but, like, random strangers on the internet tell people with crippling depression "hey, you should do <thing>, it fixed -my- depression" so I think you have to just accept that "when something works really well for a human, sometimes they get overexcited and start trying to turn the something into a silver bullet that it isn't" is something that will always happen.
Note: The people doing the arseholish one-upmanship are not in any way forgiven by this, and the "everyone telling you" that you describe would aggravate me as well, but as with the Rust Evangelism Strike Force, you just have to nod and smile (and sometimes point and laugh) at the zealots and look at the technology for yourself.
Note 2: I use the original 1970 Bill Joy vi. Other people I know use VSCode. 'better' is relative, and what works best for any given person/project varies wildly - everything before this note is about the dynamics of people discussing such choices.
The only thing that emulates vi well enough is Evil in Emacs.