Bug#560083: ftplugin/sql imap's <Left> and <Right>

James Vega jamessan at debian.org
Fri Dec 11 13:51:14 UTC 2009

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

> 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.

GPG Key: 1024D/61326D40 2003-09-02 James Vega <jamessan at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20091211/a6ae58a0/attachment.pgp>

More information about the pkg-vim-maintainers mailing list