# ভিম: একাধিক ফাইল নিয়ে কাজ করা

ভিমে একসাথে আপনি একাধিক ফাইল খুলতে চাইলে আপনার কমান্ড কাঠামোটি হবে এরকম:

```
vim file1 file2 file3...
```

অর্থাৎ, ভিমের আর্গুমেন্ট হিসেবে ফাইলগুলোর নাম। আসুন, ব্যবহারিক সুবিধার জন্য আমরা দুটো ফাইল তৈরী করি:

```
me@howtocode-pc:~$ ls -l /bin > ls-bin.txt                                         e@
me@howtocode-pc:~$ ls -l /sbin > ls-sbin.txt
```

এবার ফাইলদুটি আমরা ভিম দিয়ে খুলবো:

```
me@howtocode-pc:~$ vim ls-bin.txt ls-sbin.txt
```

আমরা স্ক্রীনে প্রথম ফাইলটি অর্থাৎ ls-bin.txt দেখতে পারবো। আমরা যদি পরের ফাইলে যেতে চাই তাহলে তার জন্য কমান্ড হবে `:n` আর পূর্ববর্তী ফাইলে যেতে `:N`। উল্লেখ্য, আপনি ফাইল এডিট করার পর সেভ না দিলে ফাইল(বাফার) চাইলে আপনাকে বাধা দেবে। জোরপূর্বক যেতে সাথে '**!**' যোগ করতে হবে।

তাছাড়াও আপনি `:buffers` কমান্ড দিলে বাফার লিস্ট দেখাবে। এক্ষেত্রে বলে রাখি, ভিম কোনো ফাইল সরাসরি এডিট করে না বরং তার প্রতিলিপি ব্যবহার করে। এই প্রতিলিপিটিই বাফার। আমরা এডিট করার সময় আসলে বাফার এডিট করি। সেভ দিলে মূল ফাইলটি বাফার দ্বারা প্রতিস্থাপিত হয়। এখন `:buffers` কমান্ড দিলে এমনকিছু দেখবেন:

```
:buffers
  1 %a   "ls-bin.txt"                   line 1
  2      "ls-sbin.txt"                  line 0
Press ENTER or type command to continue
```

এখন আপনি এন্টার চেপে বাফারলিস্ট বন্ধ করতে পারেন বা `:buffer` কমান্ডের সাথে নাম্বার ব্যবহার করে সেই বাফারে যেতে পারেন। যেমন ২য় ফাইল অর্থাৎ ls-sbin.txt এ যেতে গেলে আপনাকে লিখতে হবে `:buffer 2`

ভিম চালু থাকা অবস্থায় আপনি যদি আরেকটি ফাইল খুলতে চান তাহলে আপনাকে `:e` কমান্ড ব্যবহার করতে হবে। অর্থাৎ যদি আপনার ফাইলটির নাম হয় another.txt তাহলে কমান্ডটি হবে:

```
:e another.txt
```


---

# Agent Instructions: 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:

```
GET https://sh.howtocode.dev/3.0.0.part3intro/3.2.0.0.texteditors/3.2.2.0.vim/3.2.2.4.vim-editing-multiple-files.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
