F1 in vim

When typing quickly in vim I tend to hit F1 instead of Escape, at least on my Asus EEE 1000HA.

gnome-terminal catches the F1 before vim does, so it loads the manual.. how annoying. I never want to read that anyways, and it causes a bunch of hard disk reads. So I disabled it in gnome-terminal in Edit/Keyboard Shortcuts…

Then vim receives the F1. I don’t want to see Vim help either, so.. shove this in your .vimrc:
map <F1> <Esc>
imap <F1> <Esc>

yes, you need both.

This epic accomplishment (or lack thereof), like the previous post, deserved its own post.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: