Guest User

Untitled

a guest
Jan 22nd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. augroup VCSCommand
  2. autocmd User VCSBufferCreated call s:vcs_buffer_created()
  3. augroup END
  4.  
  5. function! s:vcs_buffer_created()
  6. if b:VCSCommandCommand ==# 'commitlog'
  7. call cursor('$', 1)
  8. delete _
  9. call append('$', b:VCSCommandSourceFile . ': ')
  10. call cursor('$', '$')
  11. startinsert!
  12. endif
  13. endfunction
Add Comment
Please, Sign In to add comment