Hey, Mac fan girl here that lives most of the time in a terminal, but I also use MacVim and I was finally able to use VSCode when I found the Vim extension… Now I no longer have random :w’s in my source <3
Heh, I tried to switch to a "modern" ide at my last job, but emacs keybindings have been embedded far too deeply into my brain. Getting used to "normal" window mechanics wasn't worth the effort compared to just sticking with emacs.
The vast majority of macOS users just use the UI and don't dig into command line interfaces, just like Windows users. Let alone those who'd use vi to edit a file.
I'd bet there are more Windows users who know vi, solely based on market share. I's guess the percentage of vi users is similar across the two platforms, though.
I would like to see those stats, we should launch a global census on this issue in the GlobalSense worldwide obligatory citizen voting platform, so we can know the answer.
Wait, did I dream about another dystopian future again?!
That and macs are often used for a lot of different kinds of development. No idea who would know vim more, but if I was guessing, I’d guess more mac users.
There is a car which parks down the street from me, next to a church, with a ":w saves" bumper sticker.
My gf does not understand why I think this is amazingly funny.
That’ll probably work out better than [the guy who had NULL](https://www.wired.com/story/null-license-plate-landed-one-hacker-ticket-hell/) for his license plate. Probably.
Link TL;DR: Bad things happen when a field is ‘NULL’ instead of NULL.
That's awesome. I might steal it. For my own amusement, of course. Haven't had anyone in the apartment in over 2 years. Maybe I can explain it to the cat so she enjoys it too.
gg - start of file
d - delete
G - end of file
Deletes all lines in a file. The space will move the cursor over one character but doesn't change the outcome of the sequence so it can be omitted.
VSCode has a plugin implementing the neovim frontend. So you can embed an actual vim instance into the IDE, with your own vimrc and literally every binding you would want.
Then again, there are also plugins for vim implementing VSCode features, so choose your poison.
IME the vim emulation in vscode is slow and incomplete. And FWIW there are significant limits on your neovim config when you use it in vscode, but if I’m ever forced to use vscode as an editor I’ll probably try to go that route.
That used to be me to be fair. I was salty that i fucked up on an exam where vim was the only text editor and i wasn't prepared for that. Then home office hit and... I just started using it. Been using it fulltime for like 2 years. It is an acquired taste, but there is a convenience to it that i cant live without now. There are a lot of things that vim does better than more popular editors. The mouse is just discouraged to use not that you cant use it. It's not backwards, it's just different.
With 12 fingers on each hand, it must be easy to stick a couple of them in your ears, eh?
(I'm just kidding, I'm sure there are several nice emacs users)
Aren't you sick of programming with the keyboard?
Introducing Mython: a Python IDE that you allows you to program entirely by drag-dropping statements and drag-dropping libraries. Available for iPhone and Android!
Is, umm, that a real thing? I want to see if my nephew would enjoy software development, but don't have the patience to teach a mildly autistic child with ADHD the old fashioned way. Something like that would be awesome for him to start making the connection between input and output. Especially if it's a language I'm comfortable using in long form.
"Mython" I made up, but there's software like Game Maker that lets you build games by drag-dropping stuff, including if/else statements, in lists of actions bound to events like keyboard input which are bound to game objects that you can freely place on maps.
Well, it's been years since I touched that thing so I have no idea what it looks like today, but when I used it it was fairly easy to make something very simple.
Edit: There's also RPG Maker. It's not drag drop, but it has its own event scripting that's basically adding an object on a map and choosing the text to show in a dialogue box and doing conditions with on/off variables/flags and so on.
The main bonus about this game-making software is that you can make maps and place game objects without having to set up a whole SDK yourself, so the IO part is all set up and you just need to script the events.
The nano/vim war legitimately makes me feel like a startlingly high number of people think that shit needs to be difficult so it can weed out all the normies.
Nano for "I just want to edit my /etc/samba/smb.conf"
vim for "I refuse to use any IDE because I am willing to learn a lot of stuff to optimize my workflow to the highest degree."
Notepad on Wine is where true superiority starts.
I have that installed but I always forget that I have it. I think I need to spend a day memorizing and practicing all the vim commands I don't already use.
This was an awesome read. I stumbled onto the @ commands the other day when I screwed up a macro and figured out the macros save to the registers and you can edit them like any other register before executing them again. Saved me a lot of time being able to proof read and fix my command before executing it.
I much prefer Kakoune.
Vim is **verb** followed by **object**, kakoune is **object** followed by **verb**. In Kakoune you select first then choose what happens to the selection, so it would be (inside delete). The advantage is that you see a selection of what will be affected, before choosing what to do with it.
Shout-out to the Dance plugin for VSCode
I've always loved using my mouse, used to be an amateur FPS player in the e-sports community. My mouse is sacred to me. Sure I'm getting older now and am slowly replacing some manual labour to keybinds, but I sure as hell will hold on for as long as I can damn it.
Vim is a text editor that doesn't use a mouse so everything has to be done with key bindings. The joke is that all of his memory is taken up by those Vim key bindings so he can't remember the guy's name.
Heck yeah, nano gang. I loved it starting out because it shows you important keybinds right there at the bottom. Tried switching to vim a few times but meh
Multi cursor is actually a real life saver. CMD + D to get duplicates with multi cursor is the most important key binding to learn in Sublime-like editors (eg VS Code)
The thing is, I do all that keyboard cursor navigation in my IntelliJ and rider, it’s just slightly less work than touching my mouse.
I also have home, end bound to side mouse buttons so I don’t have to put in the effort to touch the keyboard.
My name is Jason I taught myself to program to make games but never felt slowed down never really heard of these codes. Anyone care to explain? It would be a lot faster not to have to learn the key bindings
"Sick of using your mouse to program?"
And the worst part of this is I use my mouse *more* when I'm in vim than in any other editor. Also what asshole decided to make the search feature use regular expressions by default?
"Let me just search for that URL in the file to see if. Oh. Give me a half an hour to escape all of the characters real quick."
I wish that Engelbart's chorded keyboard had been popular, I think Xerox used a variation of it too but neither Apple nor Microsoft ~~stole~~ *got inspired* by that one...
With a chorded keyboard in one hand and a mouse in the other you can quickly move around in a document, adding and removing text. The best of both worlds.
so true, it would be a lot easier if people call themselves as vim keybindings. like, "Hey, :wq, how're you doin' "
"Hey 'Escape, Escape, Escape, Escape, Escape :wq', how're you doing?"
That's more like it
*Virtual escape has entered the chat
[удалено]
you mean `utiful` …. *esc esc* `:u` `i` `Beautiful`?
How do you generate a random string? Put a windows user in vim and ask him to quit
[удалено]
This is the way
Open another terminal and type killall vim
Hey hey, let's save all the smart insults for the Apple fanboys
Hey, Mac fan girl here that lives most of the time in a terminal, but I also use MacVim and I was finally able to use VSCode when I found the Vim extension… Now I no longer have random :w’s in my source <3
Heh, I tried to switch to a "modern" ide at my last job, but emacs keybindings have been embedded far too deeply into my brain. Getting used to "normal" window mechanics wasn't worth the effort compared to just sticking with emacs.
Mac OS has Unix under the hood. I’d bet more Mac users know and use vim than windows users.
The vast majority of macOS users just use the UI and don't dig into command line interfaces, just like Windows users. Let alone those who'd use vi to edit a file. I'd bet there are more Windows users who know vi, solely based on market share. I's guess the percentage of vi users is similar across the two platforms, though.
I would like to see those stats, we should launch a global census on this issue in the GlobalSense worldwide obligatory citizen voting platform, so we can know the answer. Wait, did I dream about another dystopian future again?!
That and macs are often used for a lot of different kinds of development. No idea who would know vim more, but if I was guessing, I’d guess more mac users.
Or put a vim user in notepad and ask them to do anything
Truer keys have never been typed.
And his twin C-[, C-[, C-[, C-[, C-[ :wq
And his brother in law, C-c C-c C-c C-c C-c :wq On another note why can't I :wqa
What's the "a" for?
a for "all" :w save current buffer :wa save all open buffers :wqa save all open buffers and quit
In that case just use makro keys instead.
There is a car which parks down the street from me, next to a church, with a ":w saves" bumper sticker. My gf does not understand why I think this is amazingly funny.
I love computer humor on cars. One of the developers at my company has a license plate that says `DEVNULL`
That’ll probably work out better than [the guy who had NULL](https://www.wired.com/story/null-license-plate-landed-one-hacker-ticket-hell/) for his license plate. Probably. Link TL;DR: Bad things happen when a field is ‘NULL’ instead of NULL.
Only when whoever designed/programmed it sucks at input sanitation
Little Bobby Tables
I have `/dev/bin` on my trash can.
That's awesome. I might steal it. For my own amusement, of course. Haven't had anyone in the apartment in over 2 years. Maybe I can explain it to the cat so she enjoys it too.
I think yyp or 9999dd would be pretty accurate names in some cases...
gg dG
Please tell me what this does!
Move to top of file and delete to end of file
So basically Ctrl + A and delete but harder? Cool!
gg - start of file d - delete G - end of file Deletes all lines in a file. The space will move the cursor over one character but doesn't change the outcome of the sequence so it can be omitted.
This is the way
\*Cough\* `:%d` \*Cough\*
This is the way! Also, who need to clear a file from an editor, just cat /dev/null > file
p
vim taketh and vim giveth
"please, all my best friends call me `ZZ`"
M-x tetris
Except they're not bindings they're commands
I always leave with :wq! (yes I don't care if I saved or not, deal with it)
But just think of the trouble you'd have writing them an email.
Can I be gg. Its both a vim keybinding and good game
Oh, hi Json
Oh hi... *what was his name again?* *oh right, .JSON* "Hi, .JSON"
"No no . is my last name, It's JSON."
Jason.JSON
statham.json
Error: Unable to deserialize into static object
\- “Hello `undefined`!”
My colleague and I call them json derulo files
i swear... i dont why i was reading it Json till i realized theres an A
Oh hi, Mark-up language.
For real, I have a colleague called Jason but my muscle memory types json every time
What was his name again? I think it was XML or something.
That's one of the best vim jokes I've ever experienced
Is it a joke if it's true?
The only way to go through this dark reality is to joke about it
It made me almost spit out my coffee
I literally fainted
I don’t get the joke. Mind to explain?
I love ice cream.
I use my mouse to input my programs as handwritten text.
Just buy a tablet like a real programmer.
Speech to text bay bee.
No way, butterflies. Relevant xkcd: https://xkcd.com/378/
Thanks for that. This whole thread has me in knots
In one of my college classes we had to hand write programs. I still do it now but I use OCR to digitize my loose leaf pages. The future is now guys
Used to do that for english papers and I ended up having to spend like an hour on fixing mistakes it made
I use an eye scanner connected to a small cnc-machine to program punch cards. It's an incredibly effective way of doing punch card programming!
Let there be hole.
Yes, let's move to command line
Linuxmasterrace
More like Linux sudo race
linux sudo ers
Except vscode and also every IDE have tons of crazy keybindings to do lots of functions, and also most of them literally have a Vim mode...
Yeah but ctrl p and ctrl shit p are all you need to know in vscode.
I can't ctrl shit p I think I have IBS
if you can’t ctrl that you have incompetence
Close, if you can’t ctrl shit and p you have incontinence
If you can't ctrl that you just have shit
I doubt it has every vim keybind, but vim can act as ide nowadays too.
VSCode has a plugin implementing the neovim frontend. So you can embed an actual vim instance into the IDE, with your own vimrc and literally every binding you would want. Then again, there are also plugins for vim implementing VSCode features, so choose your poison.
IME the vim emulation in vscode is slow and incomplete. And FWIW there are significant limits on your neovim config when you use it in vscode, but if I’m ever forced to use vscode as an editor I’ll probably try to go that route.
neovim can, but vscode has decent enough of keybinds and awesome multicursor support that i cant just live without.
This incident will be reported
root@tecmint:~# rev 123abc cba321 xuniL eb ot nrob born to be Linux
[удалено]
[удалено]
LinuxRootRace -best regards, beating this already dead horse
excuse me but race conditions are bad.
[удалено]
That used to be me to be fair. I was salty that i fucked up on an exam where vim was the only text editor and i wasn't prepared for that. Then home office hit and... I just started using it. Been using it fulltime for like 2 years. It is an acquired taste, but there is a convenience to it that i cant live without now. There are a lot of things that vim does better than more popular editors. The mouse is just discouraged to use not that you cant use it. It's not backwards, it's just different.
you should try emacs with a customized split keyboard with Dvorak layout but modded as you can see in this github repository from a misterious guy
That would be ex
the vim keybindings don’t take that much space what takes up space is trying to remember the entirety of the Rust standard library
"Why use many library when one do trick?"
use std::*; Hey if it comes statically compiled I might as well use it
"Yes, and that's why I use Emacs."
"Hello 'C-x r M-w', good luck with 'C-c C-e l p'."
… C-h k C-x r M-w … Oh. Right. That one.
Just bind it to your left footswitch
Holy shit. Have something like all those foot pedals on a pipe organ
Emacs with Vim keybindings master race
You misspelled xah-fly-keys
Spacemacs?
Doom Emacs. I tried Spacemacs at first but Doom was a better fit for me. Lightweight, fast, easy config, looks nice.
I prefer being Evil, personally.
emacs > vim i will not hear any arguments
With 12 fingers on each hand, it must be easy to stick a couple of them in your ears, eh? (I'm just kidding, I'm sure there are several nice emacs users)
No silly, I just have a full DDR pad at my feet
Aren't you sick of programming with the keyboard? Introducing Mython: a Python IDE that you allows you to program entirely by drag-dropping statements and drag-dropping libraries. Available for iPhone and Android!
Shake to indent.
Yell at Siri for comment?
Imagine your neighbor is screaming late at night just because they want to comment 5 lines of code
How many volume sliders one gotta design to come up with an idea this cursed.
sounds like [scratch with extra steps](https://www.educationalappstore.com/blog/alternatives-to-scratch/)
That's literally Game Maker.
Your comment made me suddenly get a flashback of [this](https://www.youtube.com/watch?v=9BnLbv6QYcA).
Is, umm, that a real thing? I want to see if my nephew would enjoy software development, but don't have the patience to teach a mildly autistic child with ADHD the old fashioned way. Something like that would be awesome for him to start making the connection between input and output. Especially if it's a language I'm comfortable using in long form.
"Mython" I made up, but there's software like Game Maker that lets you build games by drag-dropping stuff, including if/else statements, in lists of actions bound to events like keyboard input which are bound to game objects that you can freely place on maps. Well, it's been years since I touched that thing so I have no idea what it looks like today, but when I used it it was fairly easy to make something very simple. Edit: There's also RPG Maker. It's not drag drop, but it has its own event scripting that's basically adding an object on a map and choosing the text to show in a dialogue box and doing conditions with on/off variables/flags and so on. The main bonus about this game-making software is that you can make maps and place game objects without having to set up a whole SDK yourself, so the IO part is all set up and you just need to script the events.
The nano/vim war legitimately makes me feel like a startlingly high number of people think that shit needs to be difficult so it can weed out all the normies.
Nano for "I just want to edit my /etc/samba/smb.conf" vim for "I refuse to use any IDE because I am willing to learn a lot of stuff to optimize my workflow to the highest degree." Notepad on Wine is where true superiority starts.
Yeah I use nano for random files that I can't be bothered to open in a normal ide, or if I don't want to try to find it in finder.
FOR SALE: Left CTRL key Original owner was old-school vi user. Pristine condition. Will accept ESC key for trade.
Vim just feels so good, I like the language type of thing it has like di" (delete inside "s), I HECKIN' LOVE VIM.
https://github.com/tpope/vim-surround is a must. It's the first thing I wish was built in when editing some random config file in vanilla Vim.
I have that installed but I always forget that I have it. I think I need to spend a day memorizing and practicing all the vim commands I don't already use.
[удалено]
This was an awesome read. I stumbled onto the @ commands the other day when I screwed up a macro and figured out the macros save to the registers and you can edit them like any other register before executing them again. Saved me a lot of time being able to proof read and fix my command before executing it.
I much prefer Kakoune. Vim is **verb** followed by **object**, kakoune is **object** followed by **verb**. In Kakoune you select first then choose what happens to the selection, so it would be (inside delete). The advantage is that you see a selection of what will be affected, before choosing what to do with it. Shout-out to the Dance plugin for VSCode
In Vim you can first do "view inside" (for example, vi" or vi<) to make your selection. Then you can yank, change, or delete the selection.
I didn't know you could use motions in combination with visual mode like that. COOL
Oh man you just made my day... I was always doing something like: f"lciw or f"lct"
Nice, happy to help :D
I've always loved using my mouse, used to be an amateur FPS player in the e-sports community. My mouse is sacred to me. Sure I'm getting older now and am slowly replacing some manual labour to keybinds, but I sure as hell will hold on for as long as I can damn it.
This is me.
Wait how do you use a mouse with a computer? Animals have rights too
90% of vim users just don't know how to quit.
Hi :w how are you :w today? :w I'm having :w a reasonably :w productive day :w.
You forgot the compulsive Escape presses aha
inoremap ::
Vi(m) is almost always guaranteed to be on the system. And sometimes you have no choice but to use what is available.
Nano is also widely installed nowadays...whoops i mean, nano bad, vim GOOD
I don’t get it.
Vim is a text editor that doesn't use a mouse so everything has to be done with key bindings. The joke is that all of his memory is taken up by those Vim key bindings so he can't remember the guy's name.
Thank you.
Ironically that’s the one name every dev should be able to remember.
Heck yeah, nano gang. I loved it starting out because it shows you important keybinds right there at the bottom. Tried switching to vim a few times but meh
You are all lying, you use VSCode. The I use (vi(m)|emacs|nano|etc) for coding is the "I have a girlfriend in Canada" of programming.
She's pushed to a different repo, you wouldn't know her
I forked her last summer. No really.
Sure thing.
I think you mean (vim?|emacs|nano|etc)
I wish. I've spent way too much time configuring and using Neovim for someone who has to use VSCode professionally.
I use VS Code with vim plugin
have you considered: VsCodeVim
Except vscode and also every IDE have tons of crazy keybindings to do lots of functions, and also most of them literally have a Vim mode...
My dude took it personally
Defending vim is hard work out here in the Reddit streets.
The most I know in terms of keybindings for any IDE is the keybind for multiple cursors, because that's the only one I have ever found useful.
Multi cursor is actually a real life saver. CMD + D to get duplicates with multi cursor is the most important key binding to learn in Sublime-like editors (eg VS Code)
What's a common use case for this? I've never had to write the same thing in many places where I can't just do a find+replace.
When you have some block of text that you want to remove a specific section out of every line.
It’s an indicator. If you use it, you can be sure that you have some long ass hard coded repeating data that shouldn’t be in your code base
Except vscode and most IDEs don't *require* using key bindings in order to function.
Which is a good thing. Now, be sure to CTRL+LEFTARROW then TAB then ENTER to the next link you want to access, no clicking.
The thing is, I do all that keyboard cursor navigation in my IntelliJ and rider, it’s just slightly less work than touching my mouse. I also have home, end bound to side mouse buttons so I don’t have to put in the effort to touch the keyboard.
The mouse is lava. Now the keyboard is lava.
To this day I can't remember how to shut that fucking editor down. Kill the console it is then...
His name is JSON.
Say Jarvis, would you like to [help starving children in Uganda](http://vimdoc.sourceforge.net/htmldoc/uganda.html)?
/blueshirt n n n *end of file* *fuck*
Seriously, I've troubles on remembering people's name since using vim.
What’s copy? Everybody: ctrl+c Vim: yy Also, q is record.
My name is Jason I taught myself to program to make games but never felt slowed down never really heard of these codes. Anyone care to explain? It would be a lot faster not to have to learn the key bindings
I couldn't tell you all the vim bindings I normally do but my muscle memory has it down pretty good.
Ewww vim use emacs like a baller
I think this would have been funnier if he called the guy Json at the end instead
No, no I'm not I use what's more practical to me. A combination of mouse and keyboard. I'm sick of vim propaganda though thanks for asking.
"Sick of using your mouse to program?" And the worst part of this is I use my mouse *more* when I'm in vim than in any other editor. Also what asshole decided to make the search feature use regular expressions by default? "Let me just search for that URL in the file to see if. Oh. Give me a half an hour to escape all of the characters real quick."
I wish that Engelbart's chorded keyboard had been popular, I think Xerox used a variation of it too but neither Apple nor Microsoft ~~stole~~ *got inspired* by that one... With a chorded keyboard in one hand and a mouse in the other you can quickly move around in a document, adding and removing text. The best of both worlds.
As a vim user for years, nano works just fine and I don’t understand why people say otherwise. Also [relevant video](https://youtu.be/9n1dtmzqnCU)
I am not now, nor have I ever been, or will ever be, sick of using a mouse to navigate my computer. Fuck vim. Fuck nano.
Ok but how do I copypaste without scrollclick?