Skip to content

Commit 0be43dd

Browse files
committed
Add '--nofork' flag to vim example in Appendix C
The -f/--nofork flag is suggested to be used "... when Vim is executed by a program that will wait for the edit session to finish...." However, this flag is used when Vim has the GUI version, effectively no-op'ing when non-GUI Vim. This mirrors the existing "--nofork" flag for the Windows `gvim` example.
1 parent e58bd59 commit 0be43dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C-git-commands.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Accompanying the configuration instructions in <<ch01-getting-started#_editor>>,
6666
|Textmate |`git config --global core.editor "mate -w"`
6767
|Textpad (Windows 64-bit) |`git config --global core.editor "'C:\Program Files\TextPad 5\TextPad.exe' -m` (Also see note below)
6868
|UltraEdit (Windows 64-bit) | `git config --global core.editor Uedit32`
69-
|Vim |`git config --global core.editor "vim"`
69+
|Vim |`git config --global core.editor "vim --nofork"`
7070
|Visual Studio Code |`git config --global core.editor "code --wait"`
7171
|VSCodium (Free/Libre Open Source Software Binaries of VSCode) | `git config --global core.editor "codium --wait"`
7272
|WordPad |`git config --global core.editor '"C:\Program Files\Windows NT\Accessories\wordpad.exe"'"`

0 commit comments

Comments
 (0)