r/vim • Some Rude Vimmer • Apr 22 '19

Vim theory and reflections

Why Vim? Feel free to post your thoughts. Mods if I'm over stepping, feel free to delete.

First a posting guide for new folks:

Resources:

Caveat: I'm only a little more than a year into Vim and this community, but I like it here and I hope you will too.

What is Vim?

  • Vim is an efficient editor with minimal frills to help us write and develop code in a way that suits our PERSONAL needs.Vim is not and IDE and it's not a solution to every problem.

Why is r/vim so elitist?

  • It's not. Everybody here (literally EVERYBODY HERE) wants you to be successful. BUT many people follow Vim philosophies you may or may not agree with.

  • If you like other tools: VScode, Eclipse, IntelliJ, etc. That's great! Use them if they fit your needs; they are great tools. Trying to make Vim behave like one of those tools is missing the point.

  • Vim has a great plugin structure where you can share your tools and ideas. Use what others have built, but don't collect them all and don't assume every solution is a plugin or hotkey away. Your config and your plugins are personal to you and are only good when they do what YOU want. Nobody else knows what you need or solves problems the same way.

  • The power of Vim is personalization for editing. If you want to copy a config, go checkout r/spacevim but to many in this community that is missing the point. Your configurations should be organic and you have to put in the effort to learn the tool if you ever want it to really work for you.

  • Just because you can do something with Vim doesn't mean you should. It's not a calendar, it's not an email client, it's not a terminal emulator, it's not a fuzzy finder, etc. etc. There are already good solutions for all of those problems.

So why are you here?

  • You want help with your config and you've searched stackoverflow and read :help as well as done vimtutor more times than you can count.

  • Your configurations/plugins are broken and you've already asked for help on their github pages or support.

  • You found something cool Vim can do and you want to share it.

  • You found another great resource and you want to share.

  • You love working in Vim and want to help other people.

These are just my reflections reading the threads over the last month. Everybody here is smart and has a busy life. The answers are in :help and on the web for everyone to find and use before you craft a post. This community is a great resource when you've already done your homework and you have a clear question, solution, or something to share. However, if your whole reason to post here is because you want to copy color schemes and take someone else's config, I think you've missed the point, and that's not what you're likely to find. I'm bothered by the influx of new blood who are eager but want to try to make this sub into something it isn't.

Edit:

Some other "WTF is the vim philosophy?!" content:

566 Upvotes

70 comments sorted by

8

u/[deleted] Apr 22 '19

It would be nice to point people to where they can learn vim's philosophies.

2

u/fuzzymidget Some Rude Vimmer Apr 22 '19

I'm sure I've got something like that pinned in my bookmarks, I'll give a look.

11

u/[deleted] Apr 22 '19

[removed] — view removed comment

8

u/crajun gave up on vim Apr 23 '19

Great stuff, and yet 8/9 out of the top 10 posts of all time on here are low-effort memes/images--so it seems we're outnumbered and/or mods aren't very heavy-handed.

4

u/fuzzymidget Some Rude Vimmer Apr 23 '19

Thanks.

I don't mind shaking up the content but I don't want people to lose track of the point or spirit of the community. Especially if they are brand new people and think we are all dicks for not liking their color schemes.

5

u/__nostromo__ Apr 24 '19

https://www.youtube.com/watch?v=1MefXuHn0ac&feature=youtu.be&t=15

:s/Nature/The Vim community/g

Why not just let the community be what it wants to be? Policing content like crajun somewhat implies here is not any way to encourage people to post more.

On a side note about point or spirit: People will naturally gravitate towards "The Vim Way" if it actually has benefits that plugins/alternatives can't provide. Other behavior does not need to be discouraged just for that to happen. Superior workflows are self-evident.

5

u/-romainl- The Patient Vimmer Apr 24 '19

I will take "post better" over "post more" anytime but I agree that the community should decide what it is and what it wants to be itself, whether I like that decision or not.

2

u/fuzzymidget Some Rude Vimmer Apr 24 '19

I also agree with that, but like I said to the guy above I think we could be a little more diligent about sorting content (see vimkeyboards relocation). Not that we need to go ban-hammering or sanitizing the hell out of it, but our "rules" are pretty minimal and we could keep a list of related subs in the sidebar.

The community is always deciding what it wants and it looks like most people are generally in agreement, taking this thread as one example.

3

u/fuzzymidget Some Rude Vimmer Apr 24 '19

I think everything you said is true and I think we're on the same page. I would make the argument that this community can be what it wants, but minimally I'd like it to stay on topic. Don't get me wrong I definitely did some soapboxing on what I would like it to see, but mostly I'd be happy with proper sorting. I guess I'm also annoyed by "Hey guys, how do you select a word?" style posts that are literally a 25 second google search away, but that's neither here nor there.

We've got vimporn, vimkeyboards, vim, unixporn, etc. etc., if there's a desire to shitpost, we could spin off a vimmasterrace, there could be vimconfigs or whatever. Or we could do weekly posts to that nature. I don't think entirely "organic" is the way to go; but we can certainly grow in a space.

4

u/abraxasknister :h c_CTRL-G Jun 25 '19

Hah! Noob, you didn't specify a range for the :s

3

u/FONZACUS please be gentle, senpai (*_*) May 30 '19

i think itd be nice to have a weekly Q&A thread like on other subs. sure some questions are pretty big and require their own thread, but for the most part most should be able to be squashed right in.

plus many noobs like myself may see a ton without jumping through many threads, browser and apps tend to lag a bit on my phone when jumping through many threads.

1

u/fuzzymidget Some Rude Vimmer May 30 '19

I agree

12

u/tehjimmeh Apr 22 '19

Imagine having a 'philosophy' about your text editor, jfc...

22

u/fuzzymidget Some Rude Vimmer Apr 22 '19

And yet here you are to read about it and comment!

Yes theres a style to it. Just like people might say your programming is not very pythonic, you can do things that are not very vim. Basically everything has a philosophy, editors included.

Though if you are the kind of guy who likes to drive screws with a hammer because none of that matters, go ahead.

13

u/tehjimmeh Apr 22 '19

I'm subscribed here because it's a great editor I've been using for about 12 years.

12

u/fuzzymidget Some Rude Vimmer Apr 22 '19

Well I'm honestly glad you're here.

I'm sorry if the point I was trying to make may have come across a little "metaphysical" or whatever, I wrote it after a few drinks. I made the post because I recognized people having the same issues I have had with other communities and I thought the sidebar was a little short and lacking in context.

One of the first internet questions I ever asked was in a linux thread when I was having some issues with permissions. I asked how to just give every user full permissions and the whole thread was collectively like "WHAT THE FUCK. We could tell you how to do that, but for your own benefit we aren't going to". I thought it was pretty shitty to say something like that, but now I understand why it was a terrible idea. Vim has the same stuff: "I wrote a plugin that lets you navigate in insert mode!" or "Is there a way to run touchpad windows in a vim split?" and the community groans so loud a new poster thinks it's full of self-righteous shitheads. I thought it was worth providing some context. I hope that makes sense.

7

u/[deleted] Apr 22 '19

Giving every user full permission is a very unsecure and serious problem. Using Nerdtree instead of Netrw is not.

2

u/fuzzymidget Some Rude Vimmer Apr 22 '19

Not really true on a machine you control locally, it's no worse than using a crappy password.

I don't think anyone is up in arms about using netrw vs nerdtree. Now vim vs spacevim, sure, but that's the same sort of deal where people are disagree with the entire idea of what you are doing.

7

u/somebodddy Apr 25 '19

True even on your own local machine that only you use. The problem is not with every person has all the permissions - the problem is with giving them to every user - these logical entities you use to login to the machine.

The problem is that when you run a program, that program has all the permissions of the user used to run it. If that program has malicious code, you don't want that malicious code to be able to touch the machine's configuration. So you usually run programs with a user that don't have root privileges, and only run as root programs that you trust and that you know they need to mess around with the configuration.

And I believe this demonstrates why it's not good to just tell people what they want to do is bad without explaining why.

3

u/lujar :help Apr 24 '19

I don't think anyone will argue if you use NERDTree. I mean, I am a anti-NERDTree person myself. But if the OP is not actively wanting to know why some people don't like nerdtree, I don't even mention that he is using nerdtree. But I guess, you're talking about those people who says things like, "You're using NERDTree? Moron!" Well, you should be able to check and filter them yourself if you have been into any internet forum at all. So, this post is not in the remotest anyhow related to NERDTree vs Netrw.

267

u/marklgr vimgor: good bot Apr 22 '19

A disciple said to Joshu:

  • Master, I have written rules so that new monks can follow the Vim Way!

  • Oh, and what is the Vim Way, monk?

  • Well, Vim is only an editor, don't use a lot of plugins, the UNIX philosophy...

  • You are attached to forms, so I will hit you thirty times. The Vim Way does not care about plugins, or doing this or that inside or outside of Vim. There is only the task in front of you, and how effortlessly you do it.

  • But Master, they are installing fancy status lines and fuzzy finders just to show off! They don't know the Vim commands and options behind them!

  • Oh, so you are out to set them right? Isn't that one-upmanship, monk? Tell me! The Vim Way is both the null laststatus and the ten thousands glyphs from powerline. Some people want to be very knowledgeable, understanding all the options and intricacies, while some other have fun tweaking their config with plugins. The Vim Way embraces them all. When the time is right, some of these tools might become less and less useful; the sharp blade can cut its way without forcing, but the apprentice fumbles and cut himself. The Moon does not show at noon. So, don't make good and bad, vim and not-vim.
    Now, go wash you bowl, monk!

54

u/w3_ar3_l3g10n Sep 26 '19

I wish vim koans were more popular. They’re so funny... and actually enlightening.

2

u/New_Green2342 Jan 09 '23

I wonder if chatGPT understands vim koans?

2

u/poopiepppoo May 08 '23

This Vim Koan is a story that uses a conversation between a disciple and his master to illustrate the principles of the Vim editor.

The disciple tells his master that he has written rules for new monks to follow the Vim Way. He explains that the Vim Way is about not using too many plugins, adhering to the UNIX philosophy, and focusing on the task at hand.

However, the master is not impressed with the disciple's definition of the Vim Way. He accuses the disciple of being attached to forms and hits him thirty times. The master explains that the Vim Way is not about whether or not to use plugins or adhere to a certain philosophy, but rather about how effortlessly one can accomplish the task at hand.

The disciple then complains about other monks who use fancy status lines and fuzzy finders just to show off, without knowing the Vim commands behind them. The master tells the disciple that he is engaging in one-upmanship and that the Vim Way embraces all approaches, including those who enjoy tweaking their config with plugins.

The master uses the analogy of a sharp blade that can cut its way without forcing, while the apprentice fumbles and cuts himself. He suggests that as the apprentice gains more experience and skill, they may find that some of the tools they initially relied on become less useful. Ultimately, the Vim Way is not about making judgments about what is good or bad, Vim or not Vim.

The story concludes with the master telling the disciple to go wash his bowl, a metaphor for returning to the mundane tasks of daily life and not getting too attached to one's own concepts and ideas about Vim.

14

u/[deleted] Feb 07 '22

[removed] — view removed comment

11

u/Technical_Flamingo54 Jul 05 '22

What noise does Master Wq make when he sleeps? ZZ

15

u/hdlo Apr 22 '19

Perfect.

14

u/TheCharon77 Jun 30 '19

what religion is this. I'm interested

5

u/pimpgrapefruit Jul 04 '19

you're going to scoff at this response....

https://youtu.be/ksVgOSJ_Kv0

it's less than three hours, and based on your interest in what you responded to, I'm betting you find takeaways.

:)

2

u/redwisdomlight Jul 03 '23

Video unavailable

1

u/TheCharon77 Jul 05 '19

Will check out

50

u/lujar :help Apr 22 '19

I vote for this post to be pinned, or whatever the reddit term is. People need to refer to this, otherwise a hell lot of shitpost will keep coming.

34

u/__nostromo__ Apr 22 '19

To be honest, if I need actual help with Vim, I go to vi.stackexchange. I admire your moxie for writing this but I don't see anyone's "Vim philosophies [that] you may or may not agree with" rubbing anyone the wrong way except for when I see veteran Vim purists discourage others that don't do things their way.

That said, I appreciate your post. It's a good guideline for posting :). I think this should be pinned, too.

2

u/Kit_Saels Oct 08 '23

I ask Google or ChatGPT. They can find answers anywhere.

8

u/sac_boy Jul 17 '19

Vimgolf is my new addiction. Just beat the lowest score for sorting months by 3 keystrokes so I'm feeling pretty good. Convinced there's at least 1 more keystroke to be trimmed off.

7

u/dustractor ^[ May 18 '19

VIM IS A VERB

Don't let anybody ever tell you different

6

u/snydergd Sep 17 '19

Just keep vimming, just keep vimming. :)

3

u/Toontje Sep 05 '19

Let me vim this.

7

u/Toontje Aug 31 '19

I started loving vim the moment i gave up on using hjkl as movement keys.

Keep the downvotes coming!!

6

u/gryphus-one Apr 23 '19

Possibly dumb question, but are there any trains of thought that oppose autocompletion?

I like the simplicity and lack of assumptions that Vim makes compared to a regular IDE, but I was wondering how Vim purists/elitists felt about autocomplete. Thanks!

19

u/-romainl- The Patient Vimmer Apr 23 '19

Autocompletion breaks my focus by causing thousands of unnecessary micro-interruptions all day long. I use manual completion, though, but only to save typing, NEVER to save thinking. Using completion for discovery is a big big big smell in my book.

1

u/gryphus-one Apr 23 '19

I see. Can you elaborate on manual completion?

11

u/cometsongs Apr 24 '19

Manually asking to complete what you are typing can mean: knowing the word you want to put in, then using keypresses such ^X^I for keywords in current and included files or ^X^N from current file or^X^F to get a file name.

Further help on completing words in insert mode: :h ins-completion

1

u/gryphus-one Apr 24 '19

Awesome, thanks!

6

u/-romainl- The Patient Vimmer Apr 24 '19

What elaboration do you want? You type the beginning of something and you press a key to see a list of suggestions based on what's already typed.

3

u/dustractor ^[ Sep 06 '19

If you have a blank buffer open but you're using dictionary completion then you already have a polluted namespace. The type of completion I like is that which breaks down the repetition, where the buffers *I* have loaded and the words *I* have typed form the completion namespace.

Everybody knows short variable names are bad, but they are so attractive... because they are easy to type. Once you get used to for example C^p and C^n then LongVariableNameString is not so bad because you only type it out fully once and after that, only the distinct part. Put a bit of thought towards keeping variable names maximally distinct and it really pays off.

4

u/odintsoff Jul 25 '19

I started using to make fun of people that uses Vim. Now I freaking love Vim 🤔

3

u/snydergd Sep 17 '19

Vim; because what other editor can you use on your wireless router through a serial port?

2

u/[deleted] Dec 03 '21

probably emacs via tramp

1

u/redditbiggie Apr 13 '24 edited Apr 13 '24

Vim9

Vim9 plugins:

Vim9 language:

If you are new to Vim, you should not be touching the legacy script with a 10 feet pole. Learn Vim9 script instead.

1

u/emile3141516 Apr 19 '24

I use vim because it minimalism and do not consumes tons of RAM like others editors does. And there is not visual pollution on the screen.

And sometimes, move my right hand between keyboard and mouse is anoying, it's stress me out.

1

u/mauroy Dec 09 '21

Because it is difficult as a hell.

1

u/[deleted] Dec 01 '22

I’m new to Vim , and enjoying the journey so far - but Luke Smith is insufferable.

1

u/ZachyNazaa Dec 18 '22

I got vimanized quite unexpextedly . Just fell in love ,as it often happens ,without any strong reason for loving or needing it. That led me to first dabble with Vim was shame of not being able to exit it when it popped up as a native editor in my terminal . Then I found the idea of going mousless extremely sexy and then.... you know.

1

u/Such-Working-6357 Jan 16 '23

In simplistic terms... disabling Vim feels like using a condom after raw sex

1

u/[deleted] Jan 17 '23

I like Vim, and I like VSCode even more

1

u/[deleted] Nov 24 '23

I cleaned out my Vim set up and kept only two plugins I really can't live without: fuzzy finders and YouCompleteMe. Invested myself in some proper JetBrains stuff and man, my life with Vim is so much better. It's just nice to know I am only going to write in it, and not have to worry about set up and stuff

1

u/mrbojingle Jul 04 '19

Why vim? Because 3 clicks instead of 4.

5

u/PaddiM8 Jul 08 '19

0 clicks*

3

u/mrbojingle Jul 08 '19

Since when do you not click the keys on your keyboard?

5

u/PaddiM8 Jul 08 '19

You press them

2

u/mrbojingle Jul 08 '19

Smart ass

2

u/PaddiM8 Jul 08 '19

Just pointing out one of the main benefits of vim

1

u/Toontje Sep 05 '19

Butterfly keyboard?

1

u/[deleted] Oct 09 '19

[removed] — view removed comment

3

u/fuzzymidget Some Rude Vimmer Oct 09 '19

About anything. But I'm not sure why that's relevant here.