From: Iain Patterson Date: Tue, 5 Aug 2008 13:43:14 +0000 (+0000) Subject: Don't hang trying to interpret keypresses which might be escape sequences, eg OA. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=aca9a1b0a3f372cc385ff2dc7c4e0c4e392e89f7;p=profile.git Don't hang trying to interpret keypresses which might be escape sequences, eg OA. Assume we are using a terminal with a dark background. This should be the case if Xresources are correctly loaded. If by some unfortunate happenstance we should find ourselves at the console of an old Solaris machine we can set bg=light. git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@121 6be0d1a5-5cfe-0310-89b6-964be062b18b --- diff --git a/.vimrc b/.vimrc index 77a1d45..ad273c6 100644 --- a/.vimrc +++ b/.vimrc @@ -58,6 +58,9 @@ se smartcase " Look for ctags in home directory first. se tags=~/.tags,./tags,tags +" Don't timeout waiting to interpet, eg, OA as an escape code. +se ttimeoutlen=100 + " Use - and = to create underlines. map - yyp:s/./-/g:let @/='': map = yyp:s/./=/g:let @/='': @@ -68,6 +71,11 @@ map = yyp:s/./=/g:let @/='': if version >= "500" version 5.0 +" Tell Vim we use dark backgrounds in our terminals. +if ! has("gui_running") + se bg=dark +endif + " Vim 5 hardcodes the size of numbers column to 8. let numberwidth=8