Skip to content

Instantly share code, notes, and snippets.

@mattsgarrison
Created April 21, 2011 13:33
Show Gist options
  • Save mattsgarrison/934477 to your computer and use it in GitHub Desktop.
Save mattsgarrison/934477 to your computer and use it in GitHub Desktop.
Unbind the cursor keys in insert, normal and visual modes.
for prefix in ['i', 'n', 'v']
for key in ['<Up>', '<Down>', '<Left>', '<Right>']
exe prefix . "noremap " . key . " <Nop>"
endfor
endfor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment