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
If you just want to reset all things to default, it's very simple, just :set all&
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With