save change to XF86config in vi
Just type ":wq", then press the enter key.
1) ":" is for changing to command mode from insert mode.
2) "w" is for write (means updating/saving) your current file.
3) "q" is for quitting the vi editor.
If you just want to save without leaving vi, then just
(a linux newbie)