Aman Jain wrote: > I want to read line n1->n2 from file foo.c into current buffer > I tried :147,227r /path/to/foo/foo.c
The ':read' command reads a whole file into the current buffer, below the specified range (after line 227 in the current buffer). You could use some external tool which reads the wanted lines and outputs them to stdout (see ':help :r!'). Or, these commands in Vim would work: :view /path/to/foo/foo.c :147,227y :bw P John --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
