Header Banner
Null Byte Logo
Null Byte
wonderhowto.mark.png
Cyber Weapons Lab Forum Metasploit Basics Facebook Hacks Password Cracking Top Wi-Fi Adapters Wi-Fi Hacking Linux Basics Mr. Robot Hacks Hack Like a Pro Forensics Recon Social Engineering Networking Basics Antivirus Evasion Spy Tactics MitM Advice from a Hacker

VIM, as Ugly as It Is Fast

Jan 21, 2016 10:33 PM
Jan 21, 2016 11:18 PM
"VIM, as Ugly as It Is Fast" cover image

Hello there Nullbyte users!

This will be my first article here.

Feel free to give feedback in the comments!

Today I'll be introducing the UNIX text editor VIM.

VIM is a text editor that is completely controlled from the keyboard.

An experienced VIM user is A LOT faster than a sublime user and since time = hacking, we don't want to waste time.

Getting VIM

VIM is available for all UNIX based OS'es. In fact big chance you already have it. You can see if you have vim by simply typing 'vim' in the terminal.

If you get an error 'command not found' simply download vim by using:

$ sudo apt-get install vim

or

$ sudo dnf install vim

if that doesnt work you can install it from source, unpack, read the README and follow from there.

Opening VIM

Alright, now that's done, type in 'vim' in the terminal.

what you'll see is something like:

635889730779845126.jpg

Using VIM

Now as you may have noticed, you are unable to write text and if you tried, some 'random' commands may have been executed.

The reason for this is that you are not in Insert Mode but in Normal mode.

To enter Insert Mode simply press i on your keyboard.

You can now type what you want.

To exit Insert Mode and go back to Normal Mode press Esc.

To save a file, make sure you are in Normal Mode and type

:save

To exit the program, make sure you are Normal Mode and type:

:exit

This is what VIM makes great. You have different modes and in each mode the keys have different meaning.

Insert Mode

Insert mode is not very special, it's basicly just Nano. You can type and (god forbid) navigate with arrow keys.

Normal Mode

This mode is what makes VIM, VIM. In this mode you can:

  • search
  • quickly edit code
  • copy and paste
  • turn settings on or off

And a whole lot of other stuff which I will explain in my next guide where I will be covering the Normal mode.

Hope you liked it.

> unh0lys0da

The next big software update for iPhone is coming sometime in April and will include a Food section in Apple News+, an easy-to-miss new Ambient Music app, Priority Notifications thanks to Apple Intelligence, and updates to apps like Mail, Photos, Podcasts, and Safari. See what else is coming to your iPhone with the iOS 18.4 update.

Related Articles

Comments

No Comments Exist

Be the first, drop a comment!