vi

vi filename

:w → Write the file

h→ left

j → move cursor down one line

k→up

l→right