I prefer the extremely intuitive:
["grep -P "PPid:\t(\d+)" /proc/$$/status | cut -f2 | xargs kill -9")
]=system(or
i:!grep -P "PPid:\t(\d+)" /proc/$$/status | cut -f2 | xargs kill -9[esc]Y:@"[cr]
It just rolls off the fingers, doesn’t it?
Edit: damn it lemmy didn’t like my meme because it assumes that characters between angle brackets are html tags :( you ruined it lemmy
EDIT 2: rewrote it, just assume that square brackets are buttons not characters
This is how you get buffer files everywhere
I always get annoyed when I’m on some system and nano pops up and I need to figure out how to kill that thing.
Nano literally tells you all the shortcuts to your face.
It shows a message which wastes valuable screen estate, especially on low resolution terminals, containing a message I have to read every single time because the keys are not in muscle memory, and never will because the bindings are stupid.
On systems I have control over the reaction to nano popping up is exiting, removing it, making sure the package system blocks reinstallation attempts, and go back to what I was initially doing in a sane editor.
You have so much pent up emotion over a text editor. Life can be so much more my friend!
First day on linux?
You know the bell curve meme? I’m just beyond this.
Very intuitive - Ctrl + X… unlike vim.
gg/un2x?-d/like
FTFY
I’m not planning on googling that 😒.
result: Very intuitive like vim.
gg
- top of the file/un
- find “un” place cursor at u2x
- remove 2 characters?-
- search backwards for the character-
d/like
- delete everything up until the characterslike
See, intuitive!
I don’t do that much search and replace in any terminal based text editor to actually use that on a regular basis. If I need edits like that, I use a GUI text editor.
Sure, I just hate moving from mouse to keyboard every few seconds as I code.
There’s a button to exit vim on your pc. Just hold it 7 seconds and vim is closed. 😅
it’s right next to the turbo button
:ggdGwq (please don’t do this)
E492: Not an editor command: ggdGwq
I feel like the images should be switched.
When you know how to exit, you just slap your face 🤦 and ask “why… why, please, why don’t they add new shortcuts 🤦!”.
Lol if you know how to exit, you may know that you actually can change almost everything about vim.
I don’t think you can add modifier keys in shortcuts.
And this behavior should come out of the box, not me changing stuff around so I can make it usable. For something that I use all the time, sure, but I only use a terminal text editor with git, and I don’t use git that often. For everything else, I use a GUI text editor (mousepad, leafpad, whatever).
Ctrl+Alt+F2
reboot
I’ve never understood people arguing about terminal text editors like nano and vim. Why not just use a GUI text editor like gedit?
I’m not the most Linux savvy but when I ssh onto a work machine I’ll use a terminal editor instead of copying the file onto a local machine, editing the file in a GUI and then overwriting the file on the remote machine
I thought you could just open the file in a GUI without copying it manually, just type
gedit path/to/file.extension
sshing only gives you access to CLI
Wouldn’t you want to just want to type q! As you’ve probably opened it and accidentally made changes you didn’t want to. So you wouldn’t want to save the config file. Or the text file you just created.
you don’t need the
!
when you have thew
, because your changes already get saved.If anything it is dangerous as it will still exit even if changes cannot be saved.
<ESC> <CTRL>+Z killall -9 vim
Alt+SysReq+O
And then
sudo apt install nano
If you wanna save changes: :wq
If not: :q!
Else: :SpanishInquisition
Why do so many people prefer :wq over :x?
Cause I don’t like to think about my x
I love how in the comments on even the most basic vim meme I learn something new
:qa!
ZZ