Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Learn vi/vim in 50 lines and 15 minutes

by tachyon (Chancellor)
on Mar 04, 2004 at 00:05 UTC ( #333737=perltutorial: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    vi file.txt
    vim file.txt
  2. or download this
    gg     goes to top of file. NNgg goes to line NN. NN means an integer 
    Note Backspace will more you backwards (ie navigates but no deletion i
    +n nav mode) but 
    DEL deletes as normal (ie no navigation stuff disappears). GOK.
  3. or download this
    :w     writes file
    :w!    writes file even if read only
                 ie !./script while you are editing 'script' it will exec 
                 hit enter to return to vi as prompted, else type more com
    :%perldo s/this/that/   execs that perl s///
  4. or download this
    a     Insert after the current cursor pos 
    A     Insert after the end of current line
    i     Insert before the current cursor pos
    I     Insert at the begining of the current line

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perltutorial [id://333737]
erix .oO( that sounds Boyer-Mooreish )
[Corion]: erix: Yes, but that's mostly for skipping characters you'll never read, but this approach skips the problem of needing to load more data while looking at a half-match
[Corion]: I mostly wonder how I can add this "reversal" to my toolchest, and if it's worth it or just clever

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (14)
As of 2016-12-06 15:32 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (109 votes). Check out past polls.