Features of vi, modes of vi, creating, editing & saving text In Linux In Hindi

Vi ek versatile text editor hai jo Unix-like operating systems mein prachalit hai. Ismein kai features aur modes hote hain, jinse aap text ko create, edit, aur save kar sakte hain.

Features of vi, modes of vi, creating, editing & saving text In Linux In Hindi

Features of Vi:

  1. Modal Editing: Vi ke modes – Normal mode, Insert mode, aur Visual mode – text editing ko control karte hain.
  2. Command-Based Editing: Text ko manipulate karne ke liye specific commands ka istemal hota hai.
  3. Syntax Highlighting: Modern Vi variants, jaise ki Vim, syntax highlighting provide karte hain programming languages ke liye.
  4. Search and Replace: Vi mein powerful search aur replace commands available hain.
  5. Undo and Redo: Aap text ko undo aur redo kar sakte hain.
  6. Customization: Vim jaise variants mein plugins, themes, aur custom key bindings ka support hota hai.
  7. Portability: Vi almost sabhi Unix-based systems par available hota hai.

Modes of Vi:

  1. Normal Mode: Default mode hota hai, jisme aap commands type karke text ko navigate aur manipulate karte hain.
  2. Insert Mode: Text ko likhne ke liye switch kiya jata hai. i key se Insert mode mein ja sakte hain.
  3. Visual Mode: Text ko select aur copy karne ke liye use hota hai.

Creating, Editing & Saving Text in Vi:

  1. Creating a New File: New file create karne ke liye terminal mein vi filename likhein, jahan filename aapke file ka naam hoga. Enter press karne par Vi editor open hoga.
  2. Normal Mode: Vi editor open hone par aap Normal mode mein honge. Text ko navigate aur manipulate karne ke liye aap commands ka istemal karenge.
  3. Insert Mode: Insert mode mein jaane ke liye i key press karein. Iske baad, text ko type kar sakte hain.
  4. Editing Text: Normal mode mein, aap text ko cut, copy, paste, delete, undo, redo, search, aur replace kar sakte hain, jaise ki:
  • x: Ek character ko delete karne ke liye.
  • dd: Ek line ko delete karne ke liye.
  • yy: Ek line ko copy karne ke liye.
  • p: Clipboard se text ko paste karne ke liye.
  • u: Undo karne ke liye.
  • Ctrl + r: Redo karne ke liye.
  • /search_term: Text mein search karne ke liye.
  1. Saving Text: Text ko save karne ke liye : key press karein, fir w press karke Enter press karein. Yaad rahe ki aapko Normal mode mein hona chahiye jab aap save command type karte hain.
  2. Quitting Vi: Text ko save kiye bina Vi ko quit karne ke liye : key press karein, fir q press karke Enter press karein. Text ko save karke quit karne ke liye :wq type karein.
  3. Exiting Without Saving: Text ko save kiye bina exit karne ke liye : key press karein, fir q! type karke Enter press karein.

Yeh kuch basic operations hain jo Vi mein kiye ja sakte hain. Vi ek powerful editor hai, aur jaise jaise aap ismein experienced honge, aapko iske capabilities aur commands ke bare mein adhik gyan hoga.

Leave a Comment