From The Compiler, 5 Years ago, written in Vim scripting.
Embed
  1. function! CCinit(file)
  2.     nnoremap <F5> :Cstep<cr>
  3.     nnoremap <F6> :Cnext<cr>
  4.     nnoremap <F7> :Cfinish<cr>
  5.     Pyclewn
  6.     Cfile a:file
  7.     Ctarget remote localhost:11111
  8.     Cbreak main
  9.     Ccontinue
  10. endfunction
  11. command CCinit -nargs=1 -complete=file call CCinit(<args>)