The Holy Trinity: VIM, Arch, and Rust
That’s a weird way to spell Vim, Arch, and C
Seems you have a little typo, Emacs, Arch, and C
Fixed it for you: VSCode, Red Star OS, and sh
Fixed it for you: Emacs.
Its lighter weight
idk man, vims pretty chill, it even has a tutor in it already, what more could you want?
A text editor that doesn’t assume that the keys on my keyboard are in the same order as yours.
I remember looking up how to use Colemak with vim, and the advice was:
- Change the mappings so the position is the same, but it has the downside that every tutorial won’t match.
- Keep the mappings and do awkward stretches for common functions like up and down.
So I just gave up and moved on.
I hit the same wall with Dvorak layout.
A text editor that doesn’t need a tutor because the interface is intuitive enough that someone who has been using text editors (as a concept) for years can more or less instantly pick it up and start working without needing a tutorial to simply edit a config file.
a text editor that has a tutor because it’s been around for so long and it’s had so many years to establish itself with an outside control interface that’s quite literally about as optimal as it can be. Vim basically allows you to never move your hands away from the homerow keys, even when navigating and doing bulk edits. The sheer amount of gained speed and productivity you get from this combined with the amount of times you’ll have to deal with text editing throughout your life is probably going to outweight any potential learned annoyances.
it even has a tutor
Yeah, people are just lazy. I remember when I invented a new login screen and was told it was “difficult”, “confusing” and “took some getting used to”.
It even came with a free 100-page manual and a 4-hour master class. Some people, I tell you!
^This is meant more as a joke than an actual critique, even if it kind of reflects my thoughts. But ultimatly, I thought it was a funny bit.^
One that’s intuitive and doesn’t require a cheat sheet or what I like to call fingular contortionism discovery.
Get’er Robbie she’s under the desk!
stop using nano, if you want a non modal editor use
vim -y
Uh, just trying non-modal vim for the first time and… how do I quit it? I can’t :q.
Ctrl-q
and then if it asks to save, type “no, fuck you”Uh, just trying non-modal vim for the first time and… how do I quit it? I can’t :q.
I’ve never tried modal vim because I’ve only just heard about it. The next thing I’d try is restarting the computer. Or Ctrl + Q whichever’s easier.
I so would love to downvote this to oblivion.
Vscode is malware
VScodium is FOSS though
?
IME?
Integrated Memeing Environment
Integrated Mevelopment Environment. You should have known this
I’m a meveloper
MevOps Engineer
My mate mevops
tips fedora M’eveloper
The M stands for beefcake
That acronym usually stands for “Input Method Editor” and describes the program that makes people able to type east Asian characters with a usual keyboard.
日本語は楽しいです。
The problem I had with nano is that, for the time being, it was supposed to be easy to use. With that in account I always get lost when saving a file and closing the thing because one’s used to doing something else with Ctrl+O and Ctrl+X.
Whereas with Vim (and Neovim for a little while, and now with Vis) I knew it had a steep learning curve from the start so I always had it in mind. And all the funny stories about quitting vim.
I mean quitting vim isn’t hard you just reset the computer.
they’ve changed those bindings now, Ctrl+S, Ctl+V, and Ctrl+C all do what you think they do
I’m thinking Ctrl+C quits and Ctrl+S is scroll lock is that correct?
-
nano
- Ctrl-Q search backwards
- Ctrl-S and Ctrl-X is save file
- Ctrl-V is scroll down
- Ctrl-C is cancel or info
-
nano --modernbindings
- Ctrl-Q quits
- Ctrl-S is save file
- Ctrl-X is cut
- Ctrl-C is copy
- Ctrl-V is paste
-
Great, now the next time I use nano I surely will forget about this and get frustrated when trying to save a file with Ctrl+O
you still can, but I think Ubuntu and other prepacked distros will switch soon to the better bindings
Great so now I will mangle all my merge commits depending on which version the host is using.
Ed users entered the chat
Nano is my “daily drive”, but I’d use vim as well – takes a couple seconds to search for “how to type in linux vim” and “how to save a file in linux vim” anyways. :^)
I know
i
and:wq
and that’s all I ever plan on learningNot even Basic Command-Count-motion like c3w aka change 3 words after cursor, or d3b delete 3 words before the cursor?
To that, you add the D aka delete command C for change Y for yank (copy)
So yy to yank line, or dd to delete line.
Also p for paste
Also, i sends you before the cursor, a sends you after. Capital I is insert at beginning of line, Capital A is insert at end of line (append).
I terms of motions and moving around, you need: hjkl, C-d and C-u (half page jumps down and up), and within the line: 0 or ^ for beginning of line, $ for end (taken from regex), w for moving by word forwards, b for moving by word backwards. That’s pretty much all you need imo. There is also t and f. Where t goes forwards (think 'till aka until). Like dtc delete until the c character. F is the same but goes backwards in the line rather than forwards. Remember you can use these with xommands, so d$ deletes until the end of the line. Or “dt.” deletes till the “.” so… yeahI know there’s more, but that’s all you need for Normal and Insert mode imo.
For Visual mode, you only need to know how the Visual modes work. Visual (v), Visual Line (Shift-v) and Visual Block (Ctrl-V).
Also, for visual mode, it might be helpful to learn how to use V-Block to comment out multiple lines at once. Can’t be bothered to go into it.
But I’d argue that’s all there is to learn about vim keys in terms of getting work done.
Not gonna lie, once you’re getting past single button combos, I’m mentally checking out. Ctrl+K and Ctrl+U in nano are good enough for me, and if I need to do something more complex like actual coding, I’ll use an editor with a full GUI as well.
Fair enough. I basically gave you a large chunk of vim so it will feel super overwhelming. The trick is to do one command or combo at a time. For example, I started with dd. Then I added yanking. Then I added visual mode. Then I added “o” (which I think I forgot to mention: o creates a newline under the current one and puts you in insert mode. Capital O does the same but above the current line). The real trick is going little by little. And to be honest, there are some commands I still rarely use or forget to mention. I’ve never used f instead of t. And in terms of forgetting to mention, there’s the x command which deletes the single character under the cursor rn.
Also, I’m sure someone will find this list helpful, so on top of this, I’ll also add this video (and hope that Piped bot will appear): https://www.youtube.com/watch?v=RSlrxE21l_k
It contains some things I haven’t mentioned.
As for learning all this, I’m repeating myself for the third time. Do it little by little. And when a command is already a thing you do almost without thinking about it, you’re ready to add more.
I’m mentally checking out
Why? dw is delete word, c5b change 5 words backwards, and those are the most complicated commands you’ll ever get to use, unless you start adding cuatom keybinds.
But I digress. If you don’t want to learn it, it’s fine.
You noobs. I just use combinations of cat piped to sed to edit my files, which are mainly lisp code.
<file foobar
Huh does that actually work? Don’t have a system handy to try it out.
storage/documents/programs ro > echo puts "hello world" > main.rb storage/documents/programs ro via rb > ls c js main.rb python storage/documents/programs ro via rb > < main.rb grep hello puts hello world storage/documents/programs ro via rb >
I think so! I think it’s something like
< file
works anywhere in the line, not just the end. There may be some specifics about no space when it is the front but I don’t remember lol.
cat pipeing is safer though.
foobar > file and your file is gone.
You can always alias
to
<
in your shell.
Amateur! I write my code down on a piece of paper, scan it in, send it to my computer through email, then make a custom-built AI read the paper and print it in the terminal!
M-x M-c butterfly
Link.
isn’t there a separate instance for memes?
Emacs users laughing at VIM users.
Emacs - A pretty good OS you can use as a text editor.
And to counter the old saying of it lacking a decent editor, there’s always evil-mode.
Worst is when installing a new distro(usually in a vm ) and it defaults to nano and for some weird reason no vi of any sort is installed. I hated nano. Last time I intentionally used something like nano was the 90s with pine I think.
What is there to hate? I don’t really understand. It does what it says on the package, and seems to do it pretty well. At least with respect to making small and quick edits to config files in the command line.
My fingers don’t speak it is the problem.
Pardon?
I’ve come to the conclusion, people who use vim just continue to do so out of a stubborn sense of pride for finally learning the key combinations.
I honestly learned it just because I hated having to change hand position to use a mouse.
Can you use a mouse in nano? I always just use the arrow keys, or page up/down and home/end
I mostly use vim but I barely use the jkl; to navigate the document.
Ah sorry, I meant using Vim in a GUI program. I wanted something with the flexibility of a mouse (quick navigation, context menu actions, etc.) without using a mouse. Using just the arrow keys, shift highlighting, etc. is just too slow when writing lots of text, and it doesn’t follow the natural position of typing.
Even if you use arrows, you still have to reposition your hand.
I mean, yeah, kind of. In the same way pilots fly planes out of a stubborn sense of pride for knowing what all the flight deck controls do.
That’s funny, I feel the same way about Excel users.
There is no sense of pride. Every text/code editor has key combinations that many users will learn eventually. Vim has easier key bindings.
What do you mean? The vim users know their key combinations pretty well, that’s kind of the point of vim.
It’s not pride, it’s just that I know how to use it really well and that makes it easy for me to use.
But it’s really only for viewing files on another system over SSH. For local work I use Sublime Text
I am faster, more comfortable, and more productive in Vim. I use the same keybindings in all my editors and IDEs. It’s okay for people to have different preferences.
I just use vi
Is that stupid? It’s all I ever bothered to learn, hasn’t failed me yet. Now I’m not some big time linux guru but I’m a sysadmin and regularly find myself elbow deep in a CLI for stuff.
Somehow it seems this would apply to any linux user
In my case it’s not a sense of pride. I can’t use anything other than Vim because I keep accidentally putting random incantations into my word documents.
“There once was a dduuuZQ:q!”
haha, same. do you use vimium as well?
Ya know, I might throw that on to my browser but I doubt I’d actually use it much. I only really use my browser for research; notes, music, and most of my work is done in the terminal. Being able to swap tabs faster by not having to cycle could be useful, but other than that I find the mouse to be a pretty rapid way of navigating unfamiliar pages
in my case, my hand hurts if I use mouse(or a mobile phone) for some time. using
j
/k
for scrolling and clicking links viaf
help me a lot.
That extension is actually pretty cool. There is also tridactyl and a browser that was made with vim in mind, but a browser and a text editor are too different for many things to translate.
thanks for sharing, I’ll try it on my work machine
It’s just convenient that it’s pre-installed on many servers.
So I can use it now everywhere with my stubborn sense of pride for finally learning the key combinations.