syselement's Blog
TwitterGitHubBuy Me a BookContact
  • ℹ️Home
  • πŸ”³Operating Systems
    • 🐧Linux
      • πŸ“ƒEverything Linux
      • Linux Distros
        • Kali Linux - VM
        • ParrotOS - VM
        • Rocky Linux
        • Ubuntu Desktop - VM
        • Ubuntu Server - VM
      • Linux Tools
        • BookStack
        • Nessus Essentials
        • SysReptor
        • Terminator
        • UniFi
        • Zsh & Oh-My-Zsh
    • πŸͺŸWindows
      • πŸ“ƒEverything Windows
      • Windows Tools
        • Hashcat
        • Vagrant
      • Windows Virtual Machines
        • Windows 11 - VM
        • Windows Server 2025 - VM
  • πŸ“Courses Notes
    • eLearnSecurity / INE
      • eJPT - PTSv2
      • eMAPT
      • ICCA
    • Practical Networking
      • Practical TLS
        • TLS/SSL Overview
        • Cryptography
        • x509 Certificates and Keys
        • Security through Certificates
        • Cipher Suites
        • TLS/SSL Handshake
        • TLS Defenses
        • TLS Attacks & Vulnerabilities
        • What's new in TLS 1.3?
        • TLS 1.3 Under the Hood
        • TLS 1.3 Extensions
        • 🌐Practical TLS References
    • TCM Security
      • Linux101
      • MAPT
      • PEH
  • πŸ–₯️Cyber Everything
    • πŸ“ŒGeneric Resources
      • Cryptography
      • CVSS 3.1
      • Cyber Threat Intelligence (CTI)
    • πŸ“±Mobile
      • Apps Lab
        • Android Rooting Guide
        • iOS Jailbreak Guide
        • Intercepting Android App Traffic
      • OWASP MAS
        • MASTG Techniques
        • MASTG Tests
        • MASTG Theory
        • MASVS Notes
      • Tools
        • MobSF
    • 🧬Network
    • 🌐Web
      • API
        • API Sec Fundamentals
        • API Penetration Testing
      • PortSwigger Academy
        • Server-Side Topics
        • Client-Side Topics
        • Advanced topics
        • πŸ”¬Vulnerability Labs
    • ✍️Writeups & Walkthroughs
      • 🌩️TryHackMe
        • πŸ“–Learn
          • Cyber Threat Intelligence
          • Intro to Defensive Security
          • Juice Shop
          • Upload Vulnerabilities
        • 🎯Practice
          • Easy
            • Blaster
            • Blue
            • Bolt
            • Chill Hack
            • Ice
            • Ignite
            • Retro
            • Startup
          • Medium
            • Blog
      • πŸ“¦HackTheBox
      • 🚩Capture The Flag
  • ♾️DevOps Everything
    • πŸ”—DevOps Resources
      • Introduction to DevOps
      • Ansible
      • Docker
      • Git
      • Kubernetes
      • Terraform
      • Vim
  • πŸ”¬Home Lab
    • πŸ–₯️Hypervisors
      • Hyper-V
        • Windows WSL
      • Proxmox
        • Proxmox VE
        • Proxmox Upgrade 7 to 8
      • VMware
        • VMware Workstation Pro
    • πŸ”΄Offensive Labs
      • Hashcat Password Cracking
      • Metasploitable3
    • πŸ”΅Defensive Labs
      • Detection Lab
    • βšͺMisc Labs
      • Bitwarden On-Premise
      • OpenWrt & WiFi Exploitation
      • Passbolt CE - Ubuntu Server
Powered by GitBook
On this page
  • 🌐 Resources πŸ”—
  • Commands

Was this helpful?

Edit on GitHub
  1. DevOps Everything
  2. DevOps Resources

Vim

PreviousTerraformNextHypervisors

Last updated 9 months ago

Was this helpful?


🌐 Resources πŸ”—


Commands

sudo apt install vim
vim <filename>
# "i" key - enters insert mode
# "ESC" key - switch to command mode

# In command mode
:wq # save and quit
:q!	# force quit without save
dd	# delete entire line
d5	# delete next 5 lines
u 	# undo

A	# jump to end of line and switch to insert mode
0	# jump to start of the line
$	# jump to end of the line
10G # jump to line 10

/<string> # search for string
	n # jump to next match
	N # search in opposite direction

:%s/old/new # replace 'old' with 'new' throughout the file

♾️
πŸ”—
VIM Docs
Vim Cheat Sheet
vim.org