Skip to content

Commit 9ced5b7

Browse files
committed
Merge pull request #382 from un1versal/Read-You-Like-a-Book
[core.editor] improve first time setup to include Notepad++
2 parents 0e4f169 + 510455b commit 9ced5b7

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

book/01-introduction/sections/first-time-setup.asc

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,38 @@ Many of the GUI tools will help you do this when you first run them.
4141
==== Your Editor
4242

4343
Now that your identity is set up, you can configure the default text editor that will be used when Git needs you to type in a message.
44-
If not configured, Git uses your system's default editor, which is generally Vim.
44+
If not configured, Git uses your system's default editor, which is system dependant.
45+
4546
If you want to use a different text editor, such as Emacs, you can do the following:
4647

4748
[source,console]
4849
----
4950
$ git config --global core.editor emacs
5051
----
5152

53+
While on a Windows system, if you want to use a different text editor, such as Notepad++, you can do the following:
54+
55+
On a x86 system
56+
[source,console]
57+
----
58+
$ git config --global core.editor "'C:/Program Files/Notepad++/notepad++.exe' -multiInst -nosession"
59+
----
60+
On a x64 system
61+
[source,console]
62+
----
63+
$ git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -nosession"
64+
----
65+
66+
[NOTE]
67+
====
68+
Vim, Emacs and Notepad++ are popular text editors often used by developers on Unix based systems like Linux and OS X or a Windows system.
69+
If you are not familiar with either of these editors, you may need to search for specific instructions for how to set up your favorite editor with Git.
70+
====
71+
5272
[WARNING]
5373
====
54-
Vim and Emacs are popular text editors often used by developers on Unix based systems like Linux and Mac.
55-
If you are not familiar with either of these editors or are on a Windows system, you may need to search for instructions for how to set up your favorite editor with Git.
56-
If you don't set an editor like this and you don't know what Vim or Emacs are, you will likely get into a really confusing state when they are launched.
74+
You may find, if you don't setup an editor like this, you will likely get into a really confusing state when they are launched.
75+
Such example on a Windows system may include a prematurely terminated Git operation during a Git initiated edit.
5776
====
5877

5978
==== Checking Your Settings

0 commit comments

Comments
 (0)