Skip to content

Commit

Permalink
Bug fix for git commit message trick in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Sep 25, 2015
1 parent b7c26af commit 6c55c66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -372,7 +372,7 @@ If the text formatting supported by the notes plug-in is not enough for you, con

If you write your git commit messages in Vim and want to use the notes file type (syntax highlighting and editing mode) to edit your git commit messages you can add the following line to your [vimrc script] [vimrc]:

au BufNewFile,BufRead *.git/COMMIT_EDITMSG setf notes
autocmd BufNewFile,BufRead */.git/COMMIT_EDITMSG setlocal filetype=notes

This is not a complete solution (there are more types of commit messages that the pattern above won't match) but that is outside the scope of this document. For inspiration you can take a look at the [runtime/filetype.vim] [filetype.vim] file in Vim's Mercurial repository.

Expand Down
2 changes: 1 addition & 1 deletion doc/notes.txt
Expand Up @@ -746,7 +746,7 @@ If you write your git commit messages in Vim and want to use the notes file
type (syntax highlighting and editing mode) to edit your git commit messages
you can add the following line to your |vimrc| script:
>
au BufNewFile,BufRead *.git/COMMIT_EDITMSG setf notes
autocmd BufNewFile,BufRead */.git/COMMIT_EDITMSG setlocal filetype=notes
<
This is not a complete solution (there are more types of commit messages that
the pattern above won't match) but that is outside the scope of this document.
Expand Down

0 comments on commit 6c55c66

Please sign in to comment.