Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you reset defaults for VI?

Tags:

vi

editing

I am currently using VI on a remote host and for some reason a number of the commands are mapped incorrectly. For example when pressing lower case x, instead of it deleting the character under the cursor it actually deletes the character two spaces before the cursor, so if the following text is entered BOTY and I have the cursor over the T instead of removing T the O will be removed making the word BTY. Also when inserting text, instead of VI inserting the character under the cursor it will enter the the character two spaces before the cursor so if I have the following text HT and I want to insert ML instead of writing HTML VI will write HMLT.

Does anyone know what would be causing this and how I can fix it or how to reset all settings in VI to default because this is probably not the only items mapped incorrectly?

Thanks

like image 852
Matt Pascoe Avatar asked May 10 '11 15:05

Matt Pascoe


1 Answers

If you just want to reset all things to default, it's very simple, just :set all&

like image 120
qed Avatar answered Jan 02 '23 06:01

qed