[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Vi Editor: how to insert?

Posted on 2003-12-07
4
Medium Priority
?
640 Views
Last Modified: 2013-12-13

Ok, say, I am editing the following file with VIM (vi improved) and I want to insert <li> tag
in the beginning of line 5-7, how do I do this?  Be aware that I do not need <li> tag in
the beginning of lines 1-4 and 8-9

1 <html><head><title>Test</title></head>
2 <body>
3 Here is the points:
4 <ul>
5       Point 1;
6       Point 2;
7       Point 3;
8 </ul>
9 </body></html>


Thank You!
0
Comment
Question by:codenamecharlie
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 10

Expert Comment

by:anupnellip
ID: 9895032
0
 
LVL 12

Expert Comment

by:paullamhkg
ID: 9895131
after get into your vi editor use "i" for insert, "a" for append will do the job. and you can also try this vi reference http://www.rru.com/~meo/useful/vi/vi.rm.html
0
 
LVL 20

Expert Comment

by:Gns
ID: 9895460
4ji<li><Esc>j0.j0.

-- Glenn
0
 
LVL 7

Accepted Solution

by:
glassd earned 200 total points
ID: 9895515
:4,7s/^/<li>
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
Suggested Courses
Course of the Month13 days, 22 hours left to enroll

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question