Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sichere Programmierung(d+019) OpenGL(20.09.2026 um 15:51 Uhr)
Sichere ProgrammierungYou Released an App. Now What?(20.09.2026 um 15:52 Uhr)
Sichere Programmierung(d+023) Triangle(20.09.2026 um 15:53 Uhr)
Sichere ProgrammierungHow many coding agents are you using for the same project?(20.09.2026 um 15:57 Uhr)
Sichere ProgrammierungCapyToolkit: 45+ free browser tools, each with a how-to guide(20.09.2026 um 16:00 Uhr)
Sichere ProgrammierungDay-01: Starting My Cybersecurity Journey(20.09.2026 um 16:02 Uhr)
Sichere ProgrammierungWhat crt.sh's Error Pages Taught Me About Retry Logic(20.09.2026 um 16:03 Uhr)
Sichere ProgrammierungI taught my shell to stop me *before* I run `rm -rf /`(20.09.2026 um 16:09 Uhr)
Sichere ProgrammierungTraditional Coding vs Agentic Coding: The Flow State Problem(20.09.2026 um 16:19 Uhr)
Sichere Programmierung(d+019) OpenGL(20.09.2026 um 15:51 Uhr)
Sichere ProgrammierungYou Released an App. Now What?(20.09.2026 um 15:52 Uhr)
Sichere Programmierung(d+023) Triangle(20.09.2026 um 15:53 Uhr)
Sichere ProgrammierungHow many coding agents are you using for the same project?(20.09.2026 um 15:57 Uhr)
Sichere ProgrammierungCapyToolkit: 45+ free browser tools, each with a how-to guide(20.09.2026 um 16:00 Uhr)
Sichere ProgrammierungDay-01: Starting My Cybersecurity Journey(20.09.2026 um 16:02 Uhr)
Sichere ProgrammierungWhat crt.sh's Error Pages Taught Me About Retry Logic(20.09.2026 um 16:03 Uhr)
Sichere ProgrammierungI taught my shell to stop me *before* I run `rm -rf /`(20.09.2026 um 16:09 Uhr)
Sichere ProgrammierungTraditional Coding vs Agentic Coding: The Flow State Problem(20.09.2026 um 16:19 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Vim: Commands Every Developer Must Know 💻🫵

Reagiere als Erste:r — dein Feedback zählt!

No matter if you are a sysadmin or a software developer, if you work in the Linux terminal, you would face the situation where you need to edit text files in the terminal

What is Vim?

Vim is a powerful text editor used in Unix/Linux systems, known for its efficiency and flexibility. It operates in different modes, each serving a specific purpose. Here are some essential Vim commands to help you get started:

Modes in Vim

Vim has three primary modes:

Command Mode: This is the default mode when you start Vim. You can navigate, delete, and copy text in this mode.

Insert Mode: Used for inserting text into the file. Enter this mode by pressing i, a, I, A, o, or O.

Visual Mode: Allows you to select text using the arrow keys.

Basic Commands

Entering Insert Mode

  • i: Insert before the cursor.
  • a: Insert after the cursor.
  • I: Insert at the beginning of the line.
  • A: Insert at the end of the line.
  • o: Open a new line below the current line.
  • O: Open a new line above the current line.

Navigating in Vim

  • h: Move left.
  • j: Move down.
  • k: Move up.
  • l: Move right.
  • gg: Move to the beginning of the file.
  • G: Move to the end of the file.
  • nG: Move to line number n.

Editing Text

  • x: Delete the character under the cursor.
  • X: Delete the character before the cursor.
  • dd: Delete the current line.
  • dw: Delete from the cursor to the end of the word.
  • d$: Delete from the cursor to the end of the line.
  • dG: Delete from the cursor to the end of the file.

Copying and Pasting

  • yy: Copy the current line.
  • yw: Copy from the cursor to the end of the word.
  • y$: Copy from the cursor to the end of the line.
  • yG: Copy from the cursor to the end of the file.
  • p: Paste after the cursor.
  • P: Paste before the cursor.

Undo and Redo

  • u: Undo the last change.
  • Ctrl + r: Redo the undone change.

Searching and Replacing

  • /search_term: Search for search_term.
  • n: Move to the next match.
  • N: Move to the previous match.
  • :%s/foo/bar/g: Replace all occurrences of foo with bar in the entire file.
  • :%s/foo/bar/gc: Replace all occurrences with confirmation.

Saving and Quitting

  • :w: Save the file.
  • :wq: Save and quit.
  • :q: Quit (if no changes have been made).
  • :q!: Quit without saving changes.

These commands cover the basics of using Vim effectively. For more advanced usage, refer to the detailed guides and cheat sheets available online

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Vim: Commands Every Developer Must Know 💻🫵

Thematisch verwandte Begriffe: Commands, Every, Developer, Must · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-93956 | A flaw has been found in olivier-ls PHP-FTS up to 1.1.2. Affected by thi…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick