The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

How do you move around in vi when writing HTML? by Route2002-12-29 14:55:15
  It moves by hard return lines by migiizis2002-12-29 14:59:04
    Shoot by Route2002-12-29 15:26:31
      It does move one line up or down. by caffine-iv2002-12-29 15:28:05
        So everything between <p> is one line? by Route2002-12-29 15:33:27
          On REALLY long lines, Use "77l" + "77h" by inittab 2006-11-19 12:55:59

When you are in commen mode in "vi", the lower case "L"
and "H" keys are interpreted as "Move one character Right (and left)".


If you are using a standard 80 char screen, then adding a numeric
multiplier of "77" will wrap you around to about one displayed
line down, on a line of text that is actually hundreds of text
characters long- and wraped on your screen.

Of course, in HTML it's easier to just add carriage-returns in
your file, to keep things going easier... since white space will
not affect what displays on a browser anyway.


Also: if you already know what you want to jump to, in the same
line, you can use "fx" to 'find' the next 'x' character - so if
you need to be near any character like the 2nd "r" type "f2r".
using a capital "F" will 'find' backwards, so "F3m" will back
you up to the 3rd previous "m" in the line. (';' repeats)

For some of my other thoughts on "vi" look here.
[ Reply ]

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)