TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Please send nonzealot opinions about (n)Vim and its future

3 pointsby bartqalmost 2 years ago
I&#x27;ve been trying to understand Vim recently. I can see how comfortable it can be to navigate codebases, keep fingers on home row. Of course by not using physical ESC but Ctrl+] or jj&#x2F;jk and having swappped Ctrl with Caps Lock. And of course with using leader key and not reaching for Shift+: to enter commands. I was playing with AstroVim with many plugins preinstalled and honestly I&#x27;m not interested in writing Lua scripts at all. Please don&#x27;t tell me I&#x27;m not &quot;target user of NeoVim&quot;, because it&#x27;s like saying water is wet or stones are solid. Highest possible configurability is already possible in Emacs which I&#x27;m more inclined to pursue using lisp language inside live programmable environment.<p>To the point: isn&#x27;t modal editing overrated and actually universal? Pressing caps lock moves editor into &quot;caps lock mode&quot;, shift&#x2F;ctrl&#x2F;alt&#x2F;cmd lifts editor into shortcuts mode, pressing ModKey+F transitions into search mode etc. In Vim in normal mode I actually keep my left pinky on Ctrl (caps lock) key while with my index fingers I create chords with d&#x2F;u&#x2F;f&#x2F;b to navigate. Pinky fatigue was meant to be a selling point of ergonomics of Vim motions, but it&#x27;s actually not gone. Ergonomics can be even better realised with ergonomic keyboard, thumbs clusters and keyboard level programmable layers. I&#x27;m very comfortable in VSCode using Emacs keybingins plus my custom ones which allow me to not leave home row do to anything I need.<p>If it comes to smart selection inside word, paragraph, fn body etc - it&#x27;s better handled by plugins like treesitter which actually understands AST without different ant algorithms crawling characters in unknown to me ways and trying to find edges.<p>One thing which you can argue is superior in modal editing is commands accumulation where you press &#x27;d&#x27; and subsequent keystrokes build up a command waiting to be executed with a final key. This of course is powerful, but not discoverable and with no undo when you make a mistake. All accumulated keystrokes can&#x27;t be reified (seen as an object) so they can&#x27;t be further programmed. It&#x27;s flat abstraction meant to be used in one certain way. Things which would be more interesting is search inside search on arbitrarly deep level with undo, backtracking, taking other branch with keeping previous branch etc. All this is more similar to Smalltalk actually.<p>Can anyone confirm or deny the modal editing had high meaning in early days of teletypes where it was easier to send single keys instead of chords?<p>Anyway, I have impression the (n)vim is great attention sink on which you can spend weeks&#x2F;months&#x2F;years and get amazing proficiency and reach some local maximum, but in general it&#x27;s nothing different from what we had elready long time ago in 1976.<p>Yes, I know popular youtubers (especially THE most popular one) talking about vim and I&#x27;ve seen what they do with their fingers.<p>I&#x27;d like also to apologize for unorganized shape of this post, it&#x27;s brain dump spanning different subjects. I also don&#x27;t consider myself a power user of (n)vim at all.<p>Please don&#x27;t try to bite me for criticism, I have intention to understand ideas underlying different editors and how to progress creating <i>the next editor</i> of course taking best features of all already existing ones. (n)vim is an amazing effort and made life of many people just better by not having to use popular editor of the year which can get destroyed by corporate incentives.

3 comments

bitwizealmost 2 years ago
As I like to say, Vim is the best of both worlds because it combines vi&#x27;s legendary ease of use with the small footprint of Emacs. :)<p>People like vim because they get used to the commands. It will take effort and practice for you to get used to vim&#x27;s way of working and arcane command set. But that&#x27;s true of every editor. It&#x27;s certainly true of Emacs, which I use most often for programming, and it&#x27;s even true of Visual Studio Code. I find the hill I need to climb to reach a proficiency plateau in VSCode is just too steep, and said plateau is not as high as it would be in Emacs because I can automate and extend Emacs as I use it... so I end up harrumphing back to Emacs every time I try giving VSCode a serious chance.<p>It&#x27;s up to you to decide whether the power of vim is worth the effort to learn it. It&#x27;s probably not going anywhere no matter what you choose. Just use what you feel comfortable with and don&#x27;t worry about the greener grass in some other editor&#x27;s yard.<p>&gt; I have intention to understand ideas underlying different editors and how to progress creating the next editor of course taking best features of all already existing ones.<p>Master Foo would like a word...<p><a href="https:&#x2F;&#x2F;www.catb.org&#x2F;esr&#x2F;writings&#x2F;unix-koans&#x2F;editor-wars.html" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.catb.org&#x2F;esr&#x2F;writings&#x2F;unix-koans&#x2F;editor-wars.htm...</a>
kjs3almost 2 years ago
<i>I have intention to understand ideas underlying different editors and how to progress creating the next editor of course taking best features of all already existing ones.</i><p>Awesome. Another <i>next editor</i>, also amalgamating the &quot;best features&quot; (surely, something trivial to objectively measure &#x2F;s) of all that have come before. Guaranteed to make all of us troglodytes opine &quot;how could I have wasted my life editing text with stone tools like &#x27;vi&#x27;...all is dust now&quot;.<p>I guess it&#x27;s that time of the week.<p>IMO...people don&#x27;t choose an editor because it has the most checkboxes in the &#x27;cool feature&#x27; column; most people use the editor they got used to (for many reasons) and invested in learning. Outside of navel-gazing, things like modal v non-modal aren&#x27;t something to be proven &#x27;best&#x27; or &#x27;worse&#x27;, they&#x27;re &#x27;what you are used to&#x27;. For a lot of us, we&#x27;re used to vi. For others (the heretical ones), it&#x27;s emacs. I hear there are others. Changing editors, relearning all those habits, is hard, or at least time consuming. I guess there are people who switch editors like socks (or fad programming languages), but I can&#x27;t imagine taking that kind of downtime from real work.<p>For me, I&#x27;ve been using a vi-ish editor since the mid-80s. It&#x27;s second nature, muscle memory for 90% of my text-slinging needs, most efficient for me at getting text out of my head and into the computer, and mostly just out of my way. I&#x27;m not going to switch to another editor because it has shiny new &#x27;abstractions&#x27;, because it has a cooler scripting language, and gawd knows not because of what <i>anyone</i> on youtube thinks. If you create a better &#x27;vi&#x27;, which works exactly like my brain&#x2F;fingers expect &#x27;vi&#x27; to work, but somehow rocks my world better than the incumbent, then maybe I&#x27;ll take a peek. Otherwise, don&#x27;t be surprised if the reaction is something like &quot;oh...new buzzword packed editor that doesn&#x27;t work like the one I use every day. Quaint. Have fun with that.&quot;.
asciimovalmost 2 years ago
Are you a chatbot? This is so disjointed and not ~write~ right.<p>In good faith, I&#x27;ll assume your a real person asking questions.<p>&gt; I was playing with AstroVim with many plugins preinstalled and honestly I&#x27;m not interested in writing Lua scripts at all.<p>First, I am not a fan of text editor distros. Sure its nice to see what is possible, but they get in the way of helping you discover the text editor and how it can work for you. Also, for many in the vim space, that distro wont be available on many of the machines you touch.<p>If you don&#x27;t like Lua you get to learn vimscript. And if you really feel Lua gets in the way, go back to standard vim.<p>&gt; isn&#x27;t modal editing overrated and actually universal? [...]<p>Modal editing isn&#x27;t for everybody. It provides a different way to think about text editing. There are different reasons to prefer modal editing, from expanded access to commands, to task focus, to just knowing that your not gonna accidentally put in some text while not in insert mode.<p>The rest of what you describe isn&#x27;t modes in the vim sense. Those are just chords and short-cut keys.<p>Don&#x27;t leave your pinky on the caps lock key that stretches your hand out unnaturally. The whole home row thing is about keeping your hands in a comfortable neutral position. If that doesn&#x27;t work for you find a position that does.<p>&gt; I&#x27;m very comfortable in VSCode using Emacs keybingins plus my custom ones which allow me to not leave home row do to anything I need.<p>Then by all means, stick with VSCode and&#x2F;or emacs. Nobody is forcing you to learn vim are they?<p>&gt; [...] not discoverable and with no undo when you make a mistake.<p>Yes it is well known that vim&#x27;s command keys are hard to learn. It is best to learn what you need and not worry about the rest. I&#x27;ve forgotten tons of vim over the years because I just don&#x27;t use it often enough. Fortunately looking stuff up is easy these days.<p>Not sure why you claim vim has no undo, it built in undo&#x2F;redo and it works nicely. (u and ctrl-r in command mode) Maybe you mean you can undo mid command sequence? In that case it would be better served to bail out and try again.<p>&gt; It&#x27;s flat abstraction meant to be used in one certain way. [...]<p>Vim is already difficult enough with it&#x27;s &quot;flat abstraction&quot; of commands. It would be infinitely more complex introducing any sort of command backtracking and branching.<p>&gt; Can anyone confirm or deny the modal editing had high meaning in early days of teletypes where it was easier to send single keys instead of chords?<p>It comes from the days of the teletype and 300 baud modems (that&#x27;s 300 bits a second). Minimizing commands was important because the bandwidth wasn&#x27;t available to be fast and verbose. Throwing up a chord was an extra text character to be sent and interpreted.<p>If you want to play with this kind of experience go try out the program ed.<p>&gt; Anyway, I have impression the (n)vim is great attention sink on which you can spend weeks&#x2F;months&#x2F;years and get amazing proficiency and reach some local maximum<p>Yes, the maximum is what commands you regularly use. People tend to forget the things they don&#x27;t need to know. The secret to learning vim is just learn what you need and be aware of what it can do, so its easier to search for it later.<p>&gt; but in general it&#x27;s nothing different from what we had elready long time ago in 1976.<p>Isn&#x27;t it funny that they had text editing figured out in the 70&#x27;s? But why wouldn&#x27;t they, it was what those systems were designed to do.<p>&gt; Yes, I know popular youtubers (especially THE most popular one)<p>This is vague, who do you mean? Lots of youtubers out there and I&#x27;m not sure MrBeast ever uses Vim.... doesn&#x27;t seem on brand for him.<p>It&#x27;s best to not worry about other people. Lots of people like to show off and that can be quite discouraging for people trying to learn a new skill.
评论 #36432628 未加载