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...
Comprehensive list of commands for using the vi text editor on Linux in the command line. Basic Modes in vi Command Mode : The default mode when vi starts. Use it to execute commands. Insert Mode : Used for editing text. Enter this mode with commands like i , a , or o . 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...