• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Reply to: vi test

Collapse

You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:

  • You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
  • You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
  • If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Previously on "vi test"

Collapse

  • BrilloPad
    replied
    Originally posted by Spacecadet View Post
    :q!

    cd /
    \rm -rf *
    FTFY

    Leave a comment:


  • sasguru
    replied
    Ah vi. Dear old long-gone days of the 80s/90s. I wonder if my "muscle memory" would make my fingers do the right thing now. Probably not. Although I believe once learnt all you have to do is activate that memory so wouldn't take to long to become fluent again.

    Leave a comment:


  • eek
    replied
    Originally posted by OwlHoot View Post
    Watching a novice struggling with vi for the first time is one of life's little pleasures

    Why on Earth didn't emacs become the de facto standard? - Infinitely better than vi
    Because emacs v vi is a religious war with opinions more firmly held than ...

    Leave a comment:


  • TheFaQQer
    replied
    Originally posted by OwlHoot View Post
    Watching a novice struggling with vi for the first time is one of life's little pleasures
    I used to work with a guy who in all seriousness couldn't work Notepad because he was so used to vi. I ended up learning vi because that was easier than trying to fix the mess he left when using Notepad.

    Leave a comment:


  • OwlHoot
    replied
    Watching a novice struggling with vi for the first time is one of life's little pleasures

    Why on Earth didn't emacs become the de facto standard? - Infinitely better than vi

    Leave a comment:


  • Freamon
    replied
    Best to start with a new file if you're confused, so you don't screw up your existing one.

    To do this in vi, type:

    1GdG:w <return>

    Leave a comment:


  • FiveTimes
    replied
    Originally posted by eek View Post
    move cursor to where you want

    press :i

    escape when you've finished adding text.

    I'm not covering delete here as thats bound to confuse other readers.....
    Or

    o - for insert new line under where the cursor is

    or O for insert new line above where the cursor is is

    Leave a comment:


  • mudskipper
    replied
    Originally posted by eek View Post
    move cursor to where you want

    press :i

    escape when you've finished adding text.

    I'm not covering delete here as thats bound to confuse other readers.....
    Isn't that the x thread?

    Leave a comment:


  • eek
    replied
    move cursor to where you want

    press :i

    escape when you've finished adding text.

    I'm not covering delete here as thats bound to confuse other readers.....

    Leave a comment:


  • Spacecadet
    replied
    Originally posted by stek View Post
    Crap! - How do you insert, cursor keeps moving....?
    :q!

    subl filename.txt

    Leave a comment:


  • stek
    started a topic vi test

    vi test

    Crap! - How do you insert, cursor keeps moving....?

Working...
X