![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TAHI Test Suite 3.0.13 (IPv6 Conformance Test Tool branch) | iBot | Software Releases - RSS News | 0 | 04-06-2008 09:20 AM |
| test and .test in same directory | vikashtulsiyan | SUN Solaris | 14 | 12-27-2007 10:25 PM |
| Keithley Introduces Linux-Based RF Parametric Test Systems - Test and Measurement.com | iBot | UNIX and Linux RSS News | 0 | 07-23-2007 07:30 AM |
| Select ALL in VI Editor | rakish | UNIX for Dummies Questions & Answers | 22 | 08-14-2006 02:51 AM |
| set EDITOR=vi -> default editor not setting for cron tab | aarora_98 | Shell Programming and Scripting | 2 | 12-12-2005 07:53 AM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
How to select Test in Vi Editor
Guys,
file1 is 10pages long in vi. How to select the complete contents of the life. Regards |
| Forum Sponsor | ||
|
|
|
|||
|
what is your intended operation ?
why do you want to select all the 10 pages ? |
|
|||
|
In colon-mode ("ESC", ":") enter "1,$ <your command>" to execute your command on every line between line 1 and the last line (line $). This comes as close to "selecting" a range of text in vi as is possible. In vi you "select" nothing, but use a prefix for every command to tell it which part of the file it has to work on.
I hope this helps. bakunin |
|||
| Google UNIX.COM |