Swafox Blog
  • Home
  • Resources
  • linux
    • Microsoft Office on Linux
    • Vim
    • How to set up an unlimited secure VPN server for 5$/month
  • Exploit Development / BoF
    • Pwntools
    • Buffer Overflows
  • Ethical Hacking & Bug Bounty
    • Bug Bounty Methodology
    • XSS
    • XXE
    • CVE-2020-5902
    • Google XSS
    • Identifying IP via Email
    • OWASP ZAP
    • Server-side request forgery (SSRF)
  • Write-ups
    • TryHackMe - OWASP Top 10 Event
    • TryHackMe - Anthem
    • TryHackMe - Blog
    • TryHackMe - Poster
    • HTB - Traceback: User flag Walkthrough
    • TryHackMe - Tomghost
Powered by GitBook
On this page
  1. linux

Vim

Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient. It is included as "vi" with most UNIX systems and with Apple OS X. Vim is often called a "programmer's editor," and so useful for programming that many consider it an entire IDE. It's not just for programmers, though. Vim is perfect for all kinds of text editing, from composing an email to editing configuration files.

Generally speaking, there are three basic modes in Vim:

  • Command mode - allows you to run commands (Default).

  • Insert mode - allows you to insert/write text.

  • Visual mode - visual text selector.

Basic keybinds:

  • h - move the cursor left

  • j - cursor down

  • k - cursor up

  • l - move the cursor right

  • i - enter the insert mode

  • esc - enter the command mode

  • $ - move to the end of the line

  • yy - copy a line

  • p - paste

  • d - delete a line

  • x - cut a character

Basic commands:

  • :q - quit

  • :wq - write & quit

  • :q! - quit without saving

  • /word - search for 'word' in the document

  • :vimgrep - grep integration in Vim (allows to search in multiple files)

PreviousMicrosoft Office on LinuxNextHow to set up an unlimited secure VPN server for 5$/month

Last updated 2 years ago