Skip to content

Commit

Permalink
Merge pull request spf13#385 from keelerm84/set-position-for-gitcommit
Browse files Browse the repository at this point in the history
Issue spf13#341 Cursor on first line for git commit msg
  • Loading branch information
spf13 committed Jun 24, 2013
2 parents 470be1f + 1eb005b commit 4148b13
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@
set spell " Spell checking on
set hidden " Allow buffer switching without saving

" Instead of reverting the cursor to the last position in the buffer, we
" set it to the first line when editing a git commit message
au FileType gitcommit au! BufEnter COMMIT_EDITMSG call setpos('.', [0, 1, 1, 0])

" Setting up the directories {
set backup " Backups are nice ...
if has('persistent_undo')
Expand Down

0 comments on commit 4148b13

Please sign in to comment.