Skip to content

Commit

Permalink
Add extra info about making non-Vim editors wait
Browse files Browse the repository at this point in the history
  • Loading branch information
csswizardry committed Apr 29, 2017
1 parent f7ec404 commit 4052c71
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions _posts/2017-03-16-configuring-git-and-vim.md
Expand Up @@ -246,7 +246,7 @@ $ git config --global core.editor atom
If you use Sublime:

```
$ git config --global core.editor subl
$ git config --global core.editor 'subl --wait'
```

This will now open all of your commit messages there, instead of the command
Expand All @@ -258,9 +258,13 @@ Hopefully now you’ll see something like this in your `.gitconfig`:

```
[core]
editor = atom
editor = atom --wait
```

The `--wait` flag tells the editor to <q>Wait for window to be closed before
returning.</q>, meaning our committing doesn’t resume/continue until we’ve saved
and closed our text editor window.

Vim users, we’re probably pretty well set already, but if you want to make
double sure then just run:

Expand Down

0 comments on commit 4052c71

Please sign in to comment.