some VI tricks
| Topic ID: 256 | |
| Created By: | 2003-DEC-05 18:36:46 [Oper01] |
| Updated By: | 2007-FEB-01 13:26:04 [Vitaliy] |
| Status: | Open |
| Severity: | Normal |
| Read Only: | No |
|
1063
2003-DEC-05 18:36:46
|
||||
|
some VI tricks to wrap line with line-breaks and put new line breaks after every COMMA (,) =========================================================================== z 0JJ$F,i^M^[K K z to map :map z 02J$F,i^M^[K <enter> :map K z <enter> to get ^M ctl-v ctl-m to get ^[ ctl-v ctl-Esc to convert text to UPPER :g/[a-z]/s//\u&/g to copy line (yank) yy pase copied lines p append "##" to beginning of all lines :g/^./s//\#\#/g
[edited by: Vitaliy at 13:26 (CST) on Feb. 01, 2007]
|
1064
2003-DEC-05 18:37:23
|
||||
|
I leave this one in WIP add what you know please.