• 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!

vi test

stek

Double Godlike!
Joined
Oct 6, 2009
Messages
11,506
Likes received
1,653
Thanks received
329
Location
East of Eden
Crap! - How do you insert, cursor keeps moving....?
 
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.....
 
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?
 
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
 
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>
 
Watching a novice struggling with vi for the first time is one of life's little pleasures :rolleyes:

Why on Earth didn't emacs become the de facto standard? - Infinitely better than vi :mad
 
Watching a novice struggling with vi for the first time is one of life's little pleasures :rolleyes:

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.
 
Watching a novice struggling with vi for the first time is one of life's little pleasures :rolleyes:

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

Because emacs v vi is a religious war with opinions more firmly held than ...
 
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.
 

Advertisers

Back
Top