Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
I've always find them annoying, and never, ever helpful. It hardly helps you in typing a wrong command, as almost any character is a valid command anyway. It's not that if you mistype a and hit s or z that you've hit a non-command. q is one of the few characters that's unclaimed (at least in standard vi, many clones have assigned a command to it - I've a command in my .rc file to disable it), but since it's unclaimed, it's tempting to :map it to something else.

beep! usually means "the command you tried to give cannot be performed with the cursor in this situation", like not being able to go to the next line if you're on the last line anyway. But since nothing is happening (if something would happen, vi wouldn't beep), it's bloody obvious already that the command you intended to give isn't working.

No, seriously, for newbies I think the bells are good instructional aids.
Oh, get out of your ivory tower. I detest this degenerate attitude that newbies are morons and can't think for themselves. (That's a general pet peeve of mine, and not specific to you, or to vi). I really love that fact that a few hits on the return keys or the (back)space button bring my cursor down, left or right towards to margin. I really don't want vi to beep because I couldn't bother to count whether it was 3 or 4 lines. If I hit 4 times, I'm there, even if it was three lines. (Yes, I know shift-G brings me there, and ^ or 0 brings me to one of the left margins, and $ to the end - return and space, due to their large keys, are sometimes faster). I don't think it'll help newbies that vi beeps.

Abigail


In reply to Re: Learn vi/vim in 50 lines and 15 minutes by Abigail-II
in thread Learn vi/vim in 50 lines and 15 minutes by tachyon

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    [atcroft]: stevieb: Sad to say that I only recently learned that particular trick, but I have since found it very useful.... :)
    [james28909]: ill be back with a solution eventually
    [stevieb]: it's a reminder to re-inforce it :P
    [atcroft]: james28909: That particular questions was a bit of trick, actually (depending on the country you are in). More interesting is, if you are trying to subtract from an epoch time, for instance, you might have to consider when/if DST occurs for a location,
    [atcroft]: because you may have to adjust the number of seconds you change from an epoch from 86400 (not to mention leap seconds)....
    [atcroft]: james28909: Although if your program is using a database, you might be able to "pass the buck" to the database and ask it to do the date change for you....

    How do I use this? | Other CB clients
    Other Users?
    Others drinking their drinks and smoking their pipes about the Monastery: (3)
    As of 2017-04-29 04:37 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      I'm a fool:











      Results (531 votes). Check out past polls.