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

Anthony DeRobertis anthony at derobert.net
Tue Dec 8 20:04:07 UTC 2009


Package: vim-runtime
Version: 2:7.2.284-1
Severity: normal
File: /usr/share/vim/vim72/ftplugin/sql.vim

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

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.



-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (100, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.31-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages vim-runtime depends on:
ii  dpkg                          1.15.5.2   Debian package management system

Versions of packages vim-runtime recommends:
ii  vim-gnome [vim]              2:7.2.284-1 Vi IMproved - enhanced vi editor -

vim-runtime suggests no packages.

-- no debconf information





More information about the pkg-vim-maintainers mailing list