1

When using Vi or Vim, I need to perform the following sequence to save a file: esc + :s

But the : key is hard to reach on my keyboard. So I would like to switch : and ; so that I can type esc + ;s to save the file.

(I'm looking for a solution that works with every commands, not only to save a file)

Julien
  • 13
  • 3
  • So why are you asking in a very specific manner for VI/VIM? You could try [this](http://askubuntu.com/questions/24916/how-do-i-remap-certain-keys-or-devices) to switch them around. – Seth Dec 28 '16 at 12:39

1 Answers1

3
nnoremap ; :

See also :help map.

u1686_grawity
  • 426,297
  • 64
  • 894
  • 966
  • You will want to supplement that with the inverse `nnoremap : ;` so you still have the original functionality of `;` available. – Aaron Thoma Dec 26 '16 at 10:16