I’d like actual examples instead of “I work faster”, something like “I can move straight to the middle of the file with 7mv” or “I can keep 4 different text snippets in memory and paste each with a number+pt, like 2pt”, things that you actually use somewhat frequently instead of what you can do, but probably only did once.

4 points

Stockholm syndrome

permalink
report
reply
17 points

I am logged into various servers via ssh constantly and nano or vim (or at least vi) are installed pretty much by default everywhere.

permalink
report
reply
6 points

That doesn’t explain a preference for vi(m) over nano, tho

permalink
report
parent
reply
4 points
*

How could I live without dd, vap, 99j, 99k, 555gg, zt, zz, zb, [, ]?

If these were the only vim commands it would still be better than Nano.

permalink
report
parent
reply
2 points

For me it’s plain ol’ tT and fF. I get frightfully bored when a text field makes me use Home/End/arrows 😪

It’s like, I know where I want the cursor, just let me GO there. And no manually moving my cursor into position is not it. It’s so not it

permalink
report
parent
reply
1 point

Nano is extremely basic, it’s not really the right comparison. Vi competes well with heavyweight GUI editors and IDEs, yet is available about as ubiquitously as nano.

By learning vi, I can have my no-compromises favorite editor equally available to me locally or remotely. The terse, low-chord (looking at you, nano) editing language in vi means I’m not even that hampered when I do remote editing from my phone.

permalink
report
parent
reply
0 points

:%s =nano=vim=g

:123

d5d

y5y

Also, nano is not always present.

permalink
report
reply
2 points

The keybindings, the plugins, the general versatility of neo/vi/m. Can’t really say i use anything specific that maybe Notepad++ wouldn’t do, except that vim works via SSH.

permalink
report
reply
1 point

It is just from the ground up build to be an extension of your thoughts. One speaks to vim fluently. My advice would be: Ask yourself how some tedious thing could be done quicker, then search the help pages immediately. If not found, expand your search. Learn the default tool. By this you even learn the help. Don’t install plugins for no reason, configure the defaults to your likings instead.

I may not use 100% of vim but I guess you would have a hard time finding something I do not use regularly. My vimrc is <200 lines, <4 plugins. Tabs. I don’t use tabs anymore.

And yes, I even issue vi("*y by hand.

permalink
report
reply

Ask Experienced Devs

!ask_experienced_devs@programming.dev

Create post

Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient

Community stats

  • 1

    Monthly active users

  • 41

    Posts

  • 417

    Comments

Community moderators