Skip to content

Instantly share code, notes, and snippets.

@slimane
Created November 19, 2013 00:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slimane/7538020 to your computer and use it in GitHub Desktop.
Save slimane/7538020 to your computer and use it in GitHub Desktop.
command! -range=%
\ OverCommandLine
\ call over#command_line(
\ g:over_command_line_prompt,
\ ( <line1> == 1 && <line2> == line('$')
\ ? '%'
\ : <line1> != <line2>
\ ? printf("%d,%d", <line1>, <line2>)
\ : '.'
\ ) . 's/\v'
\ )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment