Search code examples
vimvi

how to copy by specifying line numbers in vi


How can I copy by specifying line numbers in vi, e.g. lines 364-757? I tried searching for this but cannot find such a command.


Solution

  • :364,757y should work just fine, but it is probably more common to just do something like 364GV757Gy, allowing the range to be interactively modified when you realize that you really means line 759 or so.