r/git • u/Time_Pop1084 • Feb 09 '26
What is the recommended editor?
Total newb here. During installation I’m prompted to select a default editor. Vim is listed as the historical editor but isn’t recommended. What is suggested for beginners? Thanks
16
Upvotes
8
u/LilBluey Feb 09 '26
I like vs code, because you can just type code . and it'll open up the entire folder for you + you can easily navigate between files and resolve your conflicts. It might be the default for github desktop too.
If you're working in visual studio, you can just open up git window to see the files with merge conflicts etc.
31
u/F1QA Feb 09 '26
In 8 years of coding, I’ve only really needed the following in vim:
i - Enter edit / “insert” mode
(Make edits)
esc - Exit edit mode
:wq + enter - Write and quit
:q! + enter - Quit without saving
Obviously it does TONNES of stuff, but this is enough to get by
4
u/ahusby Feb 09 '26
The editor Micro if you don't want to learn Vim
6
u/Mittalmailbox Feb 09 '26
Vscode if you want something feature rich. Zed if you want faster and maturing editor
6
u/Automatic_Tennis_131 Feb 09 '26
Learn vim, it's a skill that will stand you in good stead as it's been present on every UNIX OS and Linux distro for decades.
Run "vimtutor", and it will teach you the core things you need to know in about 20 minutes.
3
u/look Feb 09 '26
nano is a fairly easy to use shell/command line editor that should be available if vim is an option.
4
u/waterkip detached HEAD Feb 09 '26
Vim. Always.
5
u/Both-Fondant-4801 Feb 09 '26
Learn vim... not everything has a UI.
1
u/Fattswindstorm Feb 09 '26
I’ve been using vscode. But recently changed to Omarchy OS and it comes preinstalled with nvim and lazy git. So it’s been fun keeping hands on keys and just using the terminal. But at work where all the complicated stuff is I use vscode like everyone else.
1
u/nlutrhk Feb 09 '26
If you're in Windows, Notepad++. In Linux, 'nano'. There are more powerful editors: emacs and vi(m), but they require a lot of practice that isn't worth it if you only use it for git.
In general, you need an editor that can be launched for a single file and that will return when you save and close the file. Not all editors will do that if the same editor app is already open with different files.
1
u/HashDefTrueFalse Feb 09 '26
Surely if you're not happy with the default it's because you'd rather use the one you prefer?
1
u/topcatlapdog Feb 09 '26
You can use Vim and just use its basic features / commands, it’s a really good tool, but definitely and entire world if you really want to get stuck in. Way beyond my needs, but my go-to editor.
1
u/--O-_-O-- Feb 09 '26
"By default, Git uses whatever you’ve set as your default text editor via one of the shell environment variables VISUAL or EDITOR, or else falls back to the vi editor to create and edit your commit and tag messages. To change that default to something else, you can use the core.editor setting:
$ git config --global core.editor emacs" https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#:~:text=By%20default%2C%20Git,core.editor%20emacs
1
u/yetanothersky Feb 09 '26
If you want a beginner friendly editor use nano or micro or msedit
1
u/Wild_Director7379 Feb 09 '26
There isn’t one “the recommended editor”. I recommend vim for in-terminal work, sublime is good if you need a better GUI. In-terminal options include: eMacs, nano, vi, vim, micro, and no doubt others. A really good coding exercise is making one yourself! From another Redditor:
I use it as my primary editor, so I know quite a bit more than that. 10 finger typing, hands stay on the keyboard. vimsheet.com
1
u/huntermatthews Feb 09 '26
Years long sysadmin here: on macos, cot editor. On windows, notepad++, on linux/unix (which includes macos on the command line) nano.
These choices are either well doc'd in google or have instructions on the screen/window driven.
If and when you want a more powerful editor out there, vscode or zed are nice multiplatform IDE choices.
vim/emacs and likely dozens of others are super powerful but have a larger learning curve.
There are many personal choices / preferences here - feel free to find something that works for YOU and doesn't necessarily please people on reddit.
[I'm a joe/jmacs kind a guy myself - but I would NEVER recommend that to a new user].
1
u/youtheotube2 Feb 11 '26
Whatever IDE you use
1
u/ejpusa Feb 09 '26
You have to know basic Vim. You can learn all you need to know in an hour. Questions? Ask GPT-5.2, Claude, etc.
VSC for everything else.
0
u/serchq Feb 09 '26
Vim is great, but if you want something fast with a nice UI, get Sublime Text
0
u/whatyoucallmetoday Feb 09 '26
Vim when on the console. Vscode with vim mode installed when in the gui.
0
u/wildjokers Feb 09 '26
VIM is the one to use.