
This is the fastest way to do this without any additional playing around, but there are a few other methods you can try if this either didn’t work or if you’d prefer other key combinations.

You’ll more than likely have to either hold down Alt or Esc when using them since those keys are already assigned, but other than that they should work just fine. Try loading up vim again and see if you can now use the WASD keys when you’re not in the insert mode like they’re cursor keys. In either case, push Esc and then type :wq to save your work. If you did have a problem, then instead try this: If not, then add these four following lines: Push enter to get an extra line, and then what you want to put in depends on if your terminal emulator acted up at all. Hold down the j key until you get all the way at the bottom and then type I to enter insert mode. Instead, type vim ~/.vimrc to load up your configuration file. Type Ctrl+C to exit, which might also cause some odd unprintable Unicode characters to splatter onto your terminal. You might also notice that some menus drop down as we did when we did this with the xfce4-terminal that we were using for taking screenshots. Push Alt+W, Alt+A, Alt+S and Alt+D to see if some weird command codes come up. At the terminal, type cat and push enter. It would be easy enough to hold down Alt and these keys, but we need to make sure that your terminal emulator doesn’t already assign those shortcuts to something. Since the WASD keys already have something assigned to them in vim, you’ll want to use a modifier key. Method 1: Assigning the WASD Keys to vi & vim
