Pssh, come on, it’s just :q or :q! - couldn’t be simpler or more intuitive!
That’s how you learn Linux and Google: how to kill vim? kill -9 vim.
“vim” isn’t a valid PID. I think you meant
killall -9 vim
Nano is pretty good if you’re in a terminal. Used to use vim for ssh related stuff but since nano added syntax highlights I didn’t go back.
Micro exists. It’s Nano with Lua plugins. Very robust and minimalist. No magic incantations. I actually use it to code simple stuff that I just don’t want to wait a minute for VSCode to spin its wheels.
Nano’s only appeal is that it’s beginner-friendly, but you already know Vim, so why switch?
Because Nano just works. Vim is insane affront to good design and standards.
I’ve always used the stock configuration and never had issues
Don’t get it neither, vim is hard to start but once you’re a bit familiar with it it’s kind of time saving imo
I’m not even close to master it (just basics editing) and still find it quite better
@glibg10b @GreenMario Why question it? Nano fits their workflow better than vim. Same for me.
Because if there’s something that Nano does better than Vim, I’d love to know what it is so I can make use of it
Nano fits their workflow better than vim. Same for me.
What’s your workflow?
Because if there’s something that Nano does better than Vim, I’d love to know what it is so I can make use of it
What nano does better: being more user friendly and showing you the most common actions in the bottom part of the editor. A tool to do quick edits without needing to learn specific keystrokes for everything you want to do.
@[email protected] already knows Vim, though:
Used to use vim for ssh related stuff
That’s why I asked:
Nano’s only appeal is that it’s beginner-friendly, but you already know Vim, so why switch?
Why would someone switch to a more user-friendly editor when they’re already used to their current editor?
What does user-friendliness have to do with workflow?
I barely know Vim compared to a seasoned programmer. I can open copy save and input mode just fine. All I use it for is fucking with config files and light scripting really.
I did start with vim tho because I didn’t know about nano and when I did it was bare bones. Today it has syntax highlights so that’s a great thing.
I keep vim around though but nano is way better than it was when Ubuntu first came out so shouldn’t be slept on. If you’re gonna do actual programming yes pls use vim I beg you 😂 or better yet an IDE.
It’s really easy, just unplug your computer.
deleted by creator
WTF. Why? I could maybe see someone preferring emacs over vim, but not nano. Maybe there are nano features I don’t know about, but it just seems like Windows Notepad to me.
I normally just use VS Code with a VIM extension. Unless I’m ssh-ing into something, then I use vim.
I edit in Micro. Which is Nano with Lua plugins. Come at me.
Well, you kind of got it but also didn’t I guess. If I want to quickly edit a none critial config file or similar a terminal version of Notepad is perfectly fine and for more complex stuff I prefer a GUI anyway.
it’s funny because as much as I hate gnome desktop, I feel like gnu really does makes the best Linux software. disks utility, nano editor, I’d even argue gnu paint without the ability to undo is more intuitive and superior to most of the closed source commercial stuff of similar purpose you can find out there.
actually, some of the best looking desktops I’ve seen are heavily customized versions of gnome (pop os, nobara official) so maybe I’m wrong on that too.
Init 6
-
Esc
× 2CTRL-[
× 2CTRL-\
CTRL-N
× 2
-
:q
:qa
:wq
:wq!
:wqa
:x
ZZ
:q!
ZQ
:q!
:cq
-
vimtutor
or if you are rich there this game
It’s the hotel California of text editors >:)
You can ZZ any time you like, but you can never leave.
I actually learned how to use vi like 30 years ago and I had all the commands memorized. Then, nano came along. All the commands are at the bottom of the screen to remind you. It was just too tempting to pass up. However, I can’t help but suspect that somewhere out there I might have left a vi session open because maybe I mistyped. I might have accidentally typed ;q! instead of :q! or something.
I get stressed out every time I need to jump into a server and check something and the only editor is vi. If I can I install nano straight away. Btw, :q! does nothing without pressing ESC first! Hehehe
Yeah, that’s part of the joke. I probably didn’t press ESC first. LOL
I’m feeling old now… I’ve been using vi for 35y now and was happy when I got vi.exe on a dos box, as I hated edit. I still don’t like ‘simple’ editors like nano/joe.
I used kill to get out of emacs when trying it agter 7y of vi usage, so I get the need to get mideval on editors users aren’t used off. ;)
vi has always been my bane because I’m a sloppy typist. I can’t count the number of files i had to fix because they ended with :q i like nano because the commands are ctrl + whatever. i don’t make a mess.
I’m a sloppy typer as well, but somehow I notice my mistakes while I make them and correct them on the go.
What doesn’t help is that the readout of the keyboard hasn’t changed (got faster) since decades, which sometimes hinders me more then my sloppyness.
All the commands are at the bottom of the screen to remind you. It was just too tempting to pass up.
But you already had the Vi commands memorized. Did you forget them in the meantime?
No. I sloppily typed them. Did you see my other comment?
No
!killall vim
ggVGdwq!
I love using vim, but I’m not great at it. I’m just happy I completely understood this.
This works everytime, but remember exiting Insert mode with ESCape
And don’t forget
:
Also, YSK this clears your file
The cool kids
rm -fr /
Closing nano is more complicated imo
No it isn’t, it respect’s ctrl+c, SIGINT and gives useful feedback for new users. Many shortcuts are immediately shown on screen.
If you open vim the first thing you will see it’s a text describing how to close it. Not saying other things are easier for a new user but closing is pretty simple.
And the whole time you have nano open it shows you all the shortcuts how to save and close at the bottom, so no, closing nano is not harder.
I had to look up the upside down V meant Ctrl, which makes sense to me now that I know, but I had to Google that.
Or you could look on the bar above the shortcuts that explicitly says Ctrl+G = help
It’s called a caret
stop making sense its annoying
Unless you don’t know that ^ means Ctrl 🥲
Then you press ctrl+g for help and it tells you:
Shortcuts are written as follows: Control-key sequences are notated with a ‘^’ and can be entered either by using the Ctrl key or pressing the Esc key twice.
:D
Actually TIL about pressing esc twice.
Why would you press CTRL+G if you didn’t know that ^ was CTRL?
Look at the screenshot I posted, it actually specifies “ctrl + g” for help.
Nano is overrated. I tell everyone who needs to edit from the terminal to use vimtutor. You’ll never go back to Nano.
What’s so great on vim for the average Joe which isn’t offered by nano?
-
Teleportation: the cursor can be teleport to any line without pressing down key multiple times…
-
Macro: for repeating a sequence of inputs multiple times…
-
Tabs: nano can’t open multiple files at once i believe…
-
Split screen(horizontal and vertical)
-
Themes and plugins
These are a few that comes to mind…
Yeah, for all of those things, there’s Micro.
Yes, but the person asked comparing to nano…
-
Reaching over to CTRL every time you want to copy some text, delete a word, delete the next character or perform any other basic edit starts to take a toll on your hands after 20 minutes
Vim has things like copy and paste, including being able to highlight text, search and replace, and I find its commands a lot less clunky than Nano’s. I am not a software developer or a sysadmin, just someone who uses Linux for fun. All of this stuff works without having X or Wayland running too.
Nano is the MS notepad of Linux. No more, no less. You don’t have the initial cost of learning vim with nano but in the end you’re working more. I really don’t understand how people can be productive without things like complex regexps, global commands, piping from the editor, etc.
Learning the basics of vim makes setting up a Linux system a lot easier. That’s all I’m saying. You don’t need to learn regexes or anything like that.
I totally agree. The point is that learning the more advanced features will pay off in the future.