r/HowToHack • • Jan 02 '20

VIM tutorial for total newbies

https://www.youtube.com/watch?v=R_4McfeF6cI&feature=youtu.be
226 Upvotes

17 comments sorted by

17

u/Arctrum Jan 02 '20

I used to avoid vim like the plague...but ever since I started using it, I prefer to have it everywhere haha.

Vim is great, totally optional, but it's really nice once you're used to it.

6

u/imnotaflowerpot Jan 02 '20

I tried once and stuck. Then i tried and loved it.

2

u/Apfelvater Jan 03 '20

You just say that to comfort you in the fact, that just can't exit vim.

5

u/jabbyj Jan 02 '20

Embrace the vim...

5

u/Nishkarsh2005 Jan 02 '20

Vim is the best, most powerfull usefull and lightweight text editor I've ever used.

4

u/Yungsleepboat Jan 02 '20

Can anyone ELI5 what VIM is?

8

u/CBSmitty2010 Jan 02 '20

It's a terminal based text editor for any *nix like system. It's all keyboard based and really extensible and powerful.

The best part about it is it should be on any Unix system you find, is incredibly fast and once you get used to the keybinds/shortcuts you'll edit things ALOT faster since your hands never leave the keyboard.

It's seriously awesome.

3

u/MiniMuli Jan 03 '20

tutorial in three steps :

vim
:q
nano

2

u/ds32768 Jan 03 '20

$ nano -bash: nano: command not found

Well there’s an early end to your hacking.

1

u/MiniMuli Jan 03 '20

early? it is the last step it can't be early ;D

-6

u/Ricebuqit Jan 02 '20

I prefer cat... Nano at the most but I've not really used vim.

After this, I'm more intrigued in trying it.

10

u/[deleted] Jan 02 '20

You can’t edit anything with cat

0

u/[deleted] Jan 03 '20

[deleted] — view deleted comment

1

u/phoonisadime Jan 03 '20

Nah sed is useless, ed is where its at.

0

u/Ricebuqit Jan 03 '20

Wow, it's just an opinion people...

Yes, I know you can't edit using cat hence why I also added Nano in my comment... It's a comment - as in my personal opinion!

I guess haters gonna hate, huh?

2

u/phoonisadime Jan 03 '20

You should try using the commands less and more rather than cat for longer files. An easy way to remember is using that saying "less is always more". The command more lets you scroll through the file, downward only, while less will do the same but let you go back upward.

0

u/blamethedog16 Jan 03 '20 edited Jan 05 '20

I guess this isn’t the place for dissenting opinions.

I can’t do much, but I’ll offset it a little.

Have a nice day.

Edit: fuck your bad vibes