目標文本文件。如何在位於`{`和`}`之間的行中添加四個空格?
<style type="text/css">
#wrap{
height: 550px;
width: 660px;
}
#wrap ul{
list-style: none;
}
#wrap li{
border-radius:3px;
cursor:pointer;
}
#wrap{
height: 550px;
width: 660px;
}
#wrap ul{
list-style: none;
}
#wrap li{
border-radius:3px;
cursor:pointer;
}
</style>
現在我想在這{
和}
之間找到行的開頭添加四個空格,使顯示爲低於上述。
<style type="text/css">
#wrap{
height: 550px;
width: 660px;
}
#wrap ul{
list-style: none;
}
#wrap li{
border-radius:3px;
cursor:pointer;
}
#wrap{
height: 550px;
width: 660px;
}
#wrap ul{
list-style: none;
}
#wrap li{
border-radius:3px;
cursor:pointer;
}
</style>
也許這是愚蠢的執行所有commonds做任務。
3,4s/^/ /g
7s/^/ /g
10,11s/^/ /g
14,15s/^/ /g
18s/^/ /g
21,22s/^/ /g
有沒有更簡單更聰明的方法呢?
驗證reg模式中有一些錯誤。 –