মূল বিষয়বস্তুতে যান
kitlocal.dev

Vim চিটশিট

লোকালি চলে

১০০% আপনার ব্রাউজারে প্রসেস হয়। ইনপুট ও আউটপুট কখনো আপনার ডিভাইস ছেড়ে যায় না।

সহজ ভাষায় Vim কমান্ড: মোড, মোশন, অপারেটর, অনুসন্ধান ও প্রতিস্থাপন, ম্যাক্রো ও সেটিংস, যেখানে উদাহরণগুলো Vim 9.1-এ পরীক্ষা করা হয়েছে।

যেভাবে কাজ করে

Vim is modal: the same key does different things depending on the mode. Normal mode (the default) runs commands, Insert mode types text, Visual mode selects text and Command-line mode (the colon prompt) runs Ex commands. Most edits read like a sentence: an operator (d, c, y) plus a motion or text object (w, ip, i").

সারভাইভাল কিট

যে কয়েকটি কমান্ড সবার আগে শিখতে হবে।

৮০টি কমান্ড

কীবোর্ড শর্টকাট/সার্চে ফোকাস করুনJKনির্বাচন সরানCনির্বাচিতটি কপি করুনFনির্বাচিতটি বুকমার্ক করুনEscসার্চ মুছুন

Open, save & quit

If you ever feel lost, press Esc a couple of times: it always returns you to Normal mode, where the commands below work.

অফিসিয়াল ডকুমেন্টেশন: Starting Vim
  • অপরিহার্য

    Open a file in Vim.

    vim <file>

    কমান্ড তৈরি করুন

    vim <file>

    মানগুলো ঠিক যেভাবে টাইপ করা হয়েছে সেভাবেই বসানো হয়। স্পেস বা বিশেষ অক্ষর থাকলে নিজে কোট দিয়ে নিন।

    কখন ব্যবহার করবেন

    Starts editing an existing file, or a new one that is created the first time you save.

    বিশ্লেষণ

    vim
    the editor
    <file>
    path of the file to open (it need not exist yet)

    উদাহরণ

    Opens notes.txt, or an empty buffer called notes.txt if the file does not exist.

    vim notes.txt

    সতর্কতা

    • Stuck? Press Esc, type :q! and press Enter to leave without saving.

    আরও দেখুন

Move around

Learn motions first: every delete, change and yank command takes a motion, so moving well is the same skill as editing well.

অফিসিয়াল ডকুমেন্টেশন: Motion commands

Type & fix text

Small edits you will do all day: start typing in the right place, remove or replace a character, undo, and repeat.

অফিসিয়াল ডকুমেন্টেশন: Inserting and changing text

Delete, copy & change (operators)

Vim edits are sentences: operator + (count) + motion or text object. d = delete, c = change, y = yank (copy). Learn the verbs once and combine them with every noun.

অফিসিয়াল ডকুমেন্টেশন: Operators and text objects

Select first, then act

Visual mode shows what you will affect before you press the operator. It is slower than a good motion but friendlier while you learn.

অফিসিয়াল ডকুমেন্টেশন: Visual mode

Searching is just another motion, so d/foo deletes up to the next foo. Search and substitute both use regular expressions.

অফিসিয়াল ডকুমেন্টেশন: Patterns and search

Files, buffers, windows & tabs

A buffer is a file in memory, a window is a view of a buffer, and a tab page is a set of windows. You can have many buffers open without showing them all.

অফিসিয়াল ডকুমেন্টেশন: Windows, buffers and tab pages

Macros & registers

Registers are named clipboards: yanks and deletes go into them, and macros are keystrokes recorded into them.

অফিসিয়াল ডকুমেন্টেশন: Registers

Settings & your vimrc

Options are changed with :set and last until you quit. Put the ones you like in your vimrc so they apply every time.

অফিসিয়াল ডকুমেন্টেশন: Options and vimrc

KitLocal টুলে এটি চেষ্টা করে দেখুন

শব্দকোষ
Normal mode
The default mode, where keys are commands. Press Esc to return here.
Insert mode
The mode where typed characters become text.
Visual mode
Select text with v, V or Ctrl-v, then apply an operator to it.
Ex command
A command typed after a colon, such as :w or :%s/a/b/g.
Motion
A command that moves the cursor (w, $, gg). Operators act on the text it covers.
Operator
A command that acts on text: d (delete), c (change), y (yank = copy), > (indent).
Text object
A region such as a word, quoted string or paragraph, chosen with i (inner) or a (around).
Register
A named storage slot for yanked or deleted text, like a clipboard with many slots.
Buffer
A file loaded in memory. A window shows a buffer; a tab page holds windows.

১৫ নভে, ২০২৬ তারিখে যাচাইকৃত · Vim 9.1-এর বিপরীতে যাচাইকৃত

উৎস: Vim help index (vimhelp.org) · Vim user manual · Vim quick reference

অ্যাঙ্গেল ব্র্যাকেটের ভেতরের অংশগুলো আপনার নিজস্ব মান দিয়ে প্রতিস্থাপন করুন। কমান্ডগুলো অফিসিয়াল ডকুমেন্টেশন থেকে নেওয়া হয়েছে এবং প্রদর্শিত সংস্করণে উদাহরণগুলো পরীক্ষা করা হয়েছে।