Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- augroup VCSCommand
- autocmd User VCSBufferCreated call s:vcs_buffer_created()
- augroup END
- function! s:vcs_buffer_created()
- if b:VCSCommandCommand ==# 'commitlog'
- call cursor('$', 1)
- delete _
- call append('$', b:VCSCommandSourceFile . ': ')
- call cursor('$', '$')
- startinsert!
- endif
- endfunction
Add Comment
Please, Sign In to add comment