Muffinresearch Labs by Stuart Colville

vim tip: Fix the cursor keys echoing characters in insert mode | Comments (2)

Posted in Linux/Unix on 15th October 2006, 2:01 pm by Stuart

Occasionally you’ll log into a remote server and find that the cursor keys echo characters when you are in insert mode using vim. Here’s how to resolve it by modifying your vimrc configuration file:

  1. vim ~/.vimrc
  2. i (Enter insert mode)
  3. set t_ku= (now type Ctrl-V and press cursor up)
  4. set t_kd= (now type Ctrl-V and press cursor down)
  5. set t_kr= (now type Ctrl-V and press cursor right)
  6. set t_kl= (now type Ctrl-V and press cursor left)
  7. Press escape to exit insert mode
  8. Ctrl-zz (Saves the file and exits vim)

Post Tools

Comments: Add yours

1. On November 1st, 2006 at 3:37 pm Isofarro said:

After step 6, press Esc to get into command mode (beep mode) first, and then do Ctrl-zz to save and exit.

2. On November 1st, 2006 at 3:40 pm Stuart Colville said:

Well spotted Mike, I’ve amended the instructions. Thanks.







XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>



Standalone mac battery charger|(1)

Got a spare mac battery? I’ve often wondered why up until now no-one’s produced a standalone charger so that you can charge batteries without having to plug them into the mac. Fortunately Fastmac.com have produced a standalone charger that allows you to do just that. and it’s compatible with iBooks, Powerbooks, macbooks and Macbook Pros. It’s also 110/200v. Exactly what I was looking for!

Django Admin Ominigraffle Stencil|(0)

Colleague Alex Lee has created a nice stencil for omingraffle with the Django Admin UI components, perfect for wireframing customised admin screens. For more details and to download the stencil see Alex’s Blog csensedesign.co.uk

Photos on Flickr

© Copyright 2004-08 Stuart Colville, all rights reserved. May contain traces of Muffin. Powered by WordPress. Hosting by 1&1 This page was baked in 0.699s.