Skip to main content

Welcome to Mastering Email Template Design and Development Course

List of editors you can use with Git Bash and how to open them

Git Bash on Windows typically includes several text editors, either as built-in options or through external installations. Below is a list of editors you can use with Git Bash and how to open them: 1. Nano (Default Editor) Description : A simple terminal-based text editor that's often the default in Git Bash. Command to Open : nano filename 2. Vim Description : A powerful and widely-used terminal-based editor. Command to Open : vim filename If vim is not installed by default, install it via a package manager like Chocolatey: choco install vim 3. Vi Description : The predecessor to Vim and a simpler terminal editor. Command to Open : vi filename Note : vi might redirect to vim in some systems. 4. Emacs Description : A versatile editor often used by developers. Command to Open : emacs filename Note : Emacs is not included by default in Git Bash but can be installed. 5. Notepad Description : The built-in Windows Notepad editor. Command to Open : notepad filename 6. Notepad++ Descri...

Terminal Editor commands for using the vi text editor on Linux in the command line.


Comprehensive list of commands for using the vi text editor on Linux in the command line.


Basic Modes in vi

  1. Command Mode: The default mode when vi starts. Use it to execute commands.
  2. Insert Mode: Used for editing text. Enter this mode with commands like i, a, or o.
  3. Visual Mode: Used for selecting text.

Starting vi

vi filename # Open a file in vi
vi -R filename # Open a file in read-only mode

Switching Modes

  • Insert Mode:

    • i : Insert text before the cursor.
    • I : Insert text at the beginning of the line.
    • a : Append text after the cursor.
    • A : Append text at the end of the line.
    • o : Open a new line below the cursor.
    • O : Open a new line above the cursor.
  • Return to Command Mode:
    Press Esc.

  • Visual Mode:

    • v : Start character-based selection.
    • V : Start line-based selection.
    • Ctrl+v : Start block selection.

Saving and Exiting

  • :w : Save the file.
  • :w filename : Save as a new file.
  • :q : Quit.
  • :q! : Quit without saving.
  • :wq or ZZ : Save and quit.
  • :x : Save and quit.
  • :e! : Discard changes and reload the file.

Navigation

  • Within a Line:

    • 0 : Move to the beginning of the line.
    • ^ : Move to the first non-blank character of the line.
    • $ : Move to the end of the line.
  • Between Lines:

    • j : Move down one line.
    • k : Move up one line.
    • H : Move to the top of the screen.
    • M : Move to the middle of the screen.
    • L : Move to the bottom of the screen.
  • Words:

    • w : Move to the beginning of the next word.
    • e : Move to the end of the current/next word.
    • b : Move to the beginning of the previous word.
  • Paragraphs:

    • { : Move to the beginning of the paragraph.
    • } : Move to the end of the paragraph.
  • Searching:

    • /text : Search forward for "text".
    • ?text : Search backward for "text".
    • n : Repeat the search forward.
    • N : Repeat the search backward.

Editing

  • x : Delete the character under the cursor.
  • X : Delete the character before the cursor.
  • dd : Delete the current line.
  • d$ : Delete from the cursor to the end of the line.
  • d0 : Delete from the cursor to the beginning of the line.
  • yy or Y : Copy (yank) the current line.
  • p : Paste after the cursor.
  • P : Paste before the cursor.
  • u : Undo the last change.
  • Ctrl+r : Redo the last undone change.

Advanced Editing

  • r<char> : Replace the character under the cursor with <char>.
  • R : Enter Replace mode (overwrite).
  • cw : Change (replace) the word under the cursor.
  • C : Change (replace) to the end of the line.
  • ~ : Toggle the case of the character under the cursor.

Working with Multiple Files

  • :e filename : Edit another file.
  • :bn : Go to the next file.
  • :bp : Go to the previous file.
  • :b# : Switch to the alternate file.
  • :buffers : List open files.

Split Windows

  • :split filename : Split window and open a file.
  • Ctrl+w s : Split the current file horizontally.
  • Ctrl+w v : Split the current file vertically.
  • Ctrl+w w : Switch between windows.
  • Ctrl+w q : Close the current window.

Marks

  • m<char> : Mark the current position with <char>.
  • ' <char> : Move to the beginning of the line where <char> was marked.
  • `<char>` : Move to the exact position where <char> was marked.

Macros

  • q<char> : Start recording a macro into register <char>.
  • q : Stop recording.
  • @<char> : Play the macro stored in register <char>.

Custom Commands

  • Find and Replace:
    :%s/old/new/g # Replace all occurrences of 'old' with 'new' in the file.
    :%s/old/new/gc # Replace all occurrences with confirmation.

Exiting Without Saving

If you're stuck in vi:

:q! # Quit without saving changes.

This should cover everything you need to work effectively in vi!



Comments

Popular posts from this blog

Mastering Email Design

The key features of the email template design and development training course focus on learning how to create responsive and visually appealing email templates. Students will gain skills in HTML and CSS coding, designing mobile-friendly templates, and ensuring compatibility across different email clients. The course covers both design and technical aspects, including best practices for email marketing and coding techniques to enhance user experience. For more details, you can view the full course details  here . đŸŽ¯ Mastering Email Template Design & Development: From Concept to Code! āĻļিāĻ–ুāύ Figma & Photoshop āĻĻি⧟ে āχāĻŽেāχāϞ āϟেāĻŽāĻĒ্āϞেāϟ āĻĄিāϜাāχāύ, āϤাāϰāĻĒāϰ HTML & CSS āĻĻি⧟ে āϰেāϏ্āĻĒāύ্āϏিāĻ­ āĻāĻŦং āĻĄাāϰ্āĻ• āĻŽোāĻĄ āĻ•āĻŽ্āĻĒ্āϝাāϟিāĻŦāϞ āχāĻŽেāχāϞ āĻŦাāύাāύো। āχāĻŽেāχāϞ āĻŽাāϰ্āĻ•েāϟিং āφāϜāĻ•েāϰ āĻŦ্āϝāĻŦāϏা⧟িāĻ• āĻ—্āϰোāĻĨেāϰ āĻāĻ•āϟি āĻļāĻ•্āϤিāĻļাāϞী āĻŽাāϧ্āϝāĻŽ! đŸ’ŧ āĻ•াāĻĻেāϰ āϜāύ্āϝ? āωāĻĻ্āϝোāĻ•্āϤা āĻ“ āĻŦ্āϝāĻŦāϏাāϰ āĻŽাāϞিāĻ• āĻĢ্āϰিāϞ্āϝাāύ্āϏাāϰ āĻ“ āĻĄিāϜিāϟাāϞ āĻŽাāϰ্āĻ•েāϟাāϰ āχ-āĻ•āĻŽাāϰ্āϏ āϏ্āϟোāϰ āĻŽাāϞিāĻ• āĻĄিāϜাāχāύাāϰ āĻ“ āĻĄেāĻ­েāϞāĻĒাāϰ āϰা  āĻāχ āĻ•োāϰ্āϏ āĻ•āϰে āϤাāĻĻেāϰ āĻĒāύ্āϝ āĻ“ āĻĻāĻ•্āώāϤা āĻĒ্āϰােāĻŽোāĻļāύ āĻ•āϰে  customer āĻāϰ āĻ•āĻ›ে āĻĒৌāĻ›াāϤে āĻĒাāϰ...

āφāωāϟāϏোāϰ্āϏিং āĻ•ি? āĻ•ি āĻ•ি āĻŦিāώ⧟েāϰ āĻ•াāϜ āĻļিāĻ–āϞে āφāωāϟāϏোāϰ্āϏিং āĻ•āϰে āχāύāĻ•াāĻŽ āĻ•āϰা āϝা⧟?

āφāωāϟāϏোāϰ্āϏিং āĻ•ী? āφāωāϟāϏোāϰ্āϏিং āĻšāϞ āĻāĻ•āϟি āĻĒ্āϰāĻ•্āϰি⧟া āϝেāĻ–াāύে āĻ•োāύো āĻŦ্āϝāĻ•্āϤি āĻŦা āĻĒ্āϰāϤিāώ্āĻ াāύ āϤাāĻĻেāϰ āĻ•াāϜ āĻ…āύ্āϝ āĻ•োāύো āĻŦ্āϝāĻ•্āϤি āĻŦা āĻĒ্āϰāϤিāώ্āĻ াāύেāϰ āĻŽাāϧ্āϝāĻŽে āĻ•āϰি⧟ে āύে⧟। āĻāϟি āϏাāϧাāϰāĻŖāϤ āĻŦিāĻļেāώāϜ্āĻžāĻĻেāϰ āĻŽাāϧ্āϝāĻŽে āĻĻāĻ•্āώāϤাāϰ āϏাāĻĨে āĻ•াāϜāϟি āϏāĻŽ্āĻĒāύ্āύ āĻ•āϰাāϰ āϜāύ্āϝ āĻ•āϰা āĻšā§Ÿ। āĻ•োāύ āĻ•াāϜāĻ—ুāϞো āĻļিāĻ–āϞে āφāωāϟāϏোāϰ্āϏিং āĻ•āϰে āχāύāĻ•াāĻŽ āĻ•āϰা āϝা⧟? āĻŦিāĻ­িāύ্āύ āϧāϰāύেāϰ āĻĻāĻ•্āώāϤা āĻ…āϰ্āϜāύ āĻ•āϰে āφāωāϟāϏোāϰ্āϏিং⧟েāϰ āĻŽাāϧ্āϝāĻŽে āĻ†ā§Ÿ āĻ•āϰা āϝা⧟, āϝেāĻŽāύ: āĻ“ā§ŸেāĻŦ āĻĄেāĻ­েāϞāĻĒāĻŽেāύ্āϟ āĻ—্āϰাāĻĢিāĻ•্āϏ āĻĄিāϜাāχāύ āĻĄিāϜিāϟাāϞ āĻŽাāϰ্āĻ•েāϟিং āĻĄাāϟা āĻāύ্āϟ্āϰি āϏāĻĢāϟāĻ“ā§Ÿ্āϝাāϰ āĻĄেāĻ­েāϞāĻĒāĻŽেāύ্āϟ āĻāϏāχāĻ“ (āϏাāϰ্āϚ āχāĻž্āϜিāύ āĻ…āĻĒ্āϟিāĻŽাāχāϜেāĻļāύ) āĻ•ীāĻ­াāĻŦে āφāωāϟāϏোāϰ্āϏিং āĻļুāϰু āĻ•āϰāĻŦেāύ? āφāωāϟāϏোāϰ্āϏিং⧟েāϰ āĻŽাāϧ্āϝāĻŽে āĻ†ā§Ÿ āĻ•āϰāϤে āϚাāχāϞে āĻĒ্āϰāĻĨāĻŽে āĻ•িāĻ›ু āϧাāĻĒ āĻ…āύুāϏāϰāĻŖ āĻ•āϰāϤে āĻšāĻŦে: āĻĻāĻ•্āώāϤা āĻ…āϰ্āϜāύ : āφāĻĒāύাāϰ āϝে āĻ•াāϜ āĻ­াāϞো āϞাāĻ—ে āĻŦা āĻ•āϰāϤে āφāĻ—্āϰāĻšী, āϏে āĻŦিāώ⧟ে āĻĻāĻ•্āώāϤা āĻ…āϰ্āϜāύ āĻ•āϰāϤে āĻšāĻŦে। āĻ•āĻŽ্āĻĒিāωāϟাāϰ āĻ“ āχāύ্āϟাāϰāύেāϟ : āĻ•াāϜ āĻ•āϰাāϰ āϜāύ্āϝ āĻ…āĻŦāĻļ্āϝāχ āĻ•āĻŽ্āĻĒিāωāϟাāϰ āĻāĻŦং āχāύ্āϟাāϰāύেāϟ āϏংāϝোāĻ— āĻĨাāĻ•া āϜāϰুāϰি। āĻĢ্āϰিāϞ্āϝাāύ্āϏিং āĻĒ্āϞ্āϝাāϟāĻĢāϰ্āĻŽে āύিāĻŦāύ্āϧāύ : āϜāύāĻĒ্āϰি⧟ āĻĢ্āϰিāϞ্āϝাāύ্āϏিং āϏাāχāϟ āϝেāĻŽāύ Upwork, Fiverr, Freelancer āχāϤ্āϝাāĻĻিāϤে āĻ…্āϝাāĻ•াāωāύ্āϟ āϤৈāϰি āĻ•āϰāϤে āĻšāĻŦে। āĻĒ্āϰোāĻĢাāχāϞ āϤৈāϰি : āφāĻĒāύাāϰ āĻĻāĻ•্āώāϤা āĻ“ āĻ…āĻ­িāϜ্āĻžāϤা āĻ…āύুāϝা⧟ী āĻāĻ•āϟি āĻĒ্āϰোāĻĢাāχāϞ āϤৈāϰি āĻ•āϰুāύ, āϝাāϤে āĻ•্āϞা⧟েāύ্āϟāϰা āφāĻĒāύাāĻ•ে āĻ•াāϜ āĻĻিāϤে āφāĻ—্āϰāĻšী āĻšā§Ÿ। āĻ•াāϜেāϰ āϜāύ্āϝ āφāĻŦেāĻĻāύ : āφāĻĒāύ...

A Comprehensive Guide to Git Commands with Examples

  A Comprehensive Guide to Git Commands with Examples Git is a powerful version control tool that lets you track changes, collaborate, and manage code efficiently. Here's a guide to essential Git commands, their uses, and cool examples. Getting Started with Git using Git bash 1. git init Use: Initializes a new Git repository. Example: Starting a new project. mkdir my_project cd my_project git init Output: Creates a .git directory to track changes. 2. git clone Use: Clones a remote repository to your local machine. Example: Cloning a GitHub repository. git clone https://github.com/user/repo.git Output: A local copy of the repository is created in repo/ . Working with Changes 3. git add Use: Stages changes for commit. Example: Adding all files in a project. echo "Hello, Git!" > file.txt git add . Output: file.txt is staged for the next commit. 4. git commit Use: Saves staged changes to the local repository. Example: Committing changes with a message. gi...