On Tue, Dec 08, 2009 at 03:04:07PM -0500, Anthony DeRobertis wrote:
> " <C-Right> is not recognized on most Unix systems, so only create
> " these additional maps on the Windows platform.
> " If you would like to use these maps, choose a different key and make
> " the same map in your vimrc.
> " if has('win32')
> exec 'imap <buffer> '.g:ftplugin_sql_omni_key_right.'
> <C-R>=sqlcomplete#DrillIntoTable()<CR>'
> exec 'imap <buffer> '.g:ftplugin_sql_omni_key_left.'
> <C-R>=sqlcomplete#DrillOutOfColumns()<CR>'
> " endif
>
> First, that comment lies, C-Left and C-Right are definitely available
> under X11.
The problem is running Vim in a terminal emulator. Which terminals
correctly handle <C-Right>/<C-Left> correctly isn't something the script
should be littered with, IMO. On the other hand, gvim will recognize it
fine so I'll suggest upstream to change the check to include
has('gui_running').
> Second, that win32 test is commented out, and the defaults (earlier in
> the file) are Left and Right, instead of C-Left and C-Right. So, the
> left and right arrow keys don't work in insert mode when editing SQL. By
> default.
This is indeed a problem. Thanks for the info. I'll forward it
upstream and see what he says.
--
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <[email protected]>
signature.asc
Description: Digital signature

