> For the complete documentation index, see [llms.txt](https://note.onurbolatoglu.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://note.onurbolatoglu.com/devops-pre-requisite/vi-editor-or-linux-basics-2.md).

# Vi Editor | Linux Basics #2

VI/Vim editörü, Unix ve Linux sistemlerinde yaygın olarak kullanılan, güçlü ve esnek bir metin editörüdür. VI, iki ana modda çalışır: Komut Modu (Command Mode) ve Ekleme Modu (Insert Mode).

#### VI Editör Modları:

* **Komut Modu (Command Mode):** Bu modda, kullanıcı komutlar vererek metin üzerinde işlem yapabilir.
* **Ekleme Modu (Insert Mode):** Bu modda, kullanıcı doğrudan metin ekleyebilir.

<figure><img src="/files/XT6phwCxwXVoYnhrBG6f" alt=""><figcaption></figcaption></figure>

<pre class="language-vim"><code class="lang-vim"><strong>### Temel Komutlar:
</strong>
1. Hareket Etme (Move Around):
   - h: Sol
   - j: Aşağı
   - k: Yukarı
   - l: Sağ

2. Silme (Delete):
   - x: İmleç altındaki karakteri siler.
   - dd: Bulunduğunuz satırı siler.
   - :5,10d: 5 ile 10 arasındaki satırları siler.

3. Kopyalama ve Yapıştırma (Copy &#x26; Paste):
   - yy: Satırı kopyalar.
   - p: Kopyalanmış içeriği yapıştırır.

4. Kaydırma (Scroll Up/Down):
   - CTRL + u: Yukarı kaydırır.
   - CTRL + d: Aşağı kaydırır.

5. Komutlar (Commands):
   - :: Komut girişi.
   - :w: Dosyayı kaydeder.
   - :q: VI editörden çıkar.
   - :wq: Dosyayı kaydedip çıkar.
   - :q!: Kaydetmeden çıkar.

6. Bulma (Find):
   - /kelime: Metinde kelime arar.
   - n: Bir sonraki eşleşmeye gider.

### Ek Komutlar:

1. Geri Alma ve Yeniden Yapma:
   - u: Son yapılan işlemi geri alır (undo).
   - CTRL + r: Geri alınan işlemi yeniden yapar (redo).

2. Metin Ekleme ve Değiştirme:
   - i: İmleçten önce metin ekler (insert).
   - a: İmleçten sonra metin ekler (append).
   - o: İmleç altına yeni satır açar ve ekleme moduna geçer.
   - c: Metni değiştirir (change).

3. Satırların Başına ve Sonuna Gitme:
   - 0: Satırın başına gider.
   - $: Satırın sonuna gider.

4. Kelime Kelime Hareket:
   - w: Sonraki kelimenin başına gider.
   - b: Önceki kelimenin başına gider.
   - e: Kelimenin sonuna gider.

5. Satıra Gitme:
   - G: Dosyanın son satırına gider.
   - gg: Dosyanın ilk satırına gider.
   - :n: n. satıra gider.

</code></pre>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://note.onurbolatoglu.com/devops-pre-requisite/vi-editor-or-linux-basics-2.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
