1 / 5

How to Set Vim Default Editor for Git

Sometimes you may need to set default editor for Git. Here is how to set vim default editor for Git. #git #vim <br><br>Visit https://fedingo.com/how-to-set-vim-default-editor-for-git/

Download Presentation

How to Set Vim Default Editor for Git

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. How to Set Vim Default Editor for Git

  2. Set core editor Open terminal and run the following command to set core.editor for git. git config --global core.editor "vim" This is a permanent change and persists even if you quit your session or reboot your system.

  3. Set Global Editor Open terminal and run the following command to set GIT_EDITOR environment variable. export GIT_EDITOR=vim

  4. Set Default Editor for All Programs If you want vim to be the default editor for all programs run the following commands. export VISUAL=vim export EDITOR="$VISUAL" Please note, the above commands will work only till you quit your current session, or reboot your system. To make it permanent, you need to add these commands to ~/.bashrc file.

  5. Thank You Visit for details https://fedingo.com/how-to-set-vim-default-editor-for-git/

More Related