Skip to content

Instantly share code, notes, and snippets.

@mrk21
Last active August 29, 2015 14:02
Show Gist options
  • Save mrk21/58955e78863a94834111 to your computer and use it in GitHub Desktop.
Save mrk21/58955e78863a94834111 to your computer and use it in GitHub Desktop.
Display a line number for Vim script.
scriptencoding utf-8
function! g:CmdExpect(line)
echo a:line
endfunction
command! Expect
\ call g:CmdExpect(expand("<sfile>") .":". expand("<slnum>"))
Expect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment